/* ========== LAYOUT =========== */
.podcast__filters {
    display: flex;
    align-items: center;
    gap: var(--gap-s);
}

.podcast__filters__line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: var(--gap-s);
    margin-bottom: var(--gap-s);
}

.flex-end {
    margin-left: auto;
}

#podcasts-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap-s);
    margin: 1rem inherit;
}

@media screen and (max-width: 1023px) {
    #podcasts-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 767px) {
    #podcasts-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: calc(var(--gap-s) * 2);
    }

    #podcasts-container article {
        flex: 0 1 100%;
        justify-content: center;
    }

    .podcast__filters__line {
        flex-direction: column;
        align-items: flex-start;
    }
}

#podcasts-container article {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.podcast__thumbnail img {
    width: 100%;
    object-fit: cover;
}

.podcast__title {
    font-size: var(--title-m);
}

/* ========== FILTERS ========== */
#pagination-container {
    text-align: center;
    margin: var(--gap-s) 0;
}

#reset-filters {
    width: initial;
    background: var(--color-primary);
    color: #fff;
    margin-left: auto;
    cursor: pointer;
}

.podcast__filters__recent,
.taxonomy-filter {
    position: relative;
}

/* ========== PAGINATION ========== */
.pagination-link,
.page-numbers {
    color: var(--color-primary);
    transition: all .3s ease-in-out;
    margin: 0 2px;
    width: 35px;
    height: 35px;
    border: 1px solid rgba(0, 0, 0, .1);
    display: inline-block;
    border-radius: 50%;
}

.pagination-link.active,
.page-numbers.current {
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    line-height: 1;
    justify-content: center;
}

#pagination-container span,
#pagination-container a {
    font-size: calc(var(--base) + 4px);
}

.filters__sidebar__title .podcast__filters__arrow {
    transition: transform 0.3s ease;
    right: 0;
}

.open .filters__sidebar__title .podcast__filters__arrow {
    transform: rotate(180deg);
}

.podcast__filters__arrow {
    color: var(--color-primary);
}

.podcast__filters__arrow {
    cursor: pointer;
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 13px;
}

/* ========== SEE MORE ========== */
.content-wrapper {
    max-height: 240px;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.content-wrapper.expanded {
    max-height: none;
}

.see-more-btn-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.see-more-btn {
    display: block;
    margin: 1rem auto 0;
    padding: 0;
    background: none;
    color: var(--color-primary);
    border: none;
    cursor: pointer;
    position: relative;
}

.see-more-btn:focus-visible {
    outline: none;
}

.see-more-btn::after {
    content: "";
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    transition: transform 0.3s ease;
}

.see-more-btn.expanded::after {
    transform: translateY(-50%) rotate(180deg);
}

.see-more-btn.hidden {
    display: none;
}

.see-more-btn-arrow {
    color: #fff;
    background-color: var(--color-primary);
    padding: 2px;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: grid;
    place-content: center;
    cursor: pointer;
}

.see-more-btn-container.expanded .see-more-btn-arrow {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

/* ========== THUMBNAIL ========== */
.podcast__thumbnail {
    position: relative;
    display: block;
    /* Add display block to ensure full width */
    width: 100%;
}

.podcast__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.podcast__thumbnail__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(74, 189, 207, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.podcast__thumbnail:hover .podcast__thumbnail__overlay {
    opacity: 1;
}

.podcast__thumbnail__button {
    color: #fff;
    padding: 10px 20px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: var(--title-btn);
    transition: transform 0.2s ease;
}

.podcast__thumbnail__button:hover {
    transform: scale(1.05);
}

/* ========== TAXONOMIES ========== */
.taxonomy-badge {
    background-color: #fff;
    color: var(--color-dark);
    padding: 3px 8px;
    border-radius: 15px;
    font-size: calc(var(--base) - 2px);
    font-weight: 600;
    border: 1px solid var(--color-dark);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ========== SINGLE PODCAST ========== */
.podcast-single {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.podcast-single__header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.podcast__video {
    display: grid;
    place-content: center;
    margin: var(--gap-s) 0 calc(var(--gap-s) + 80px);
}

.podcast__video iframe {
    width: 900px;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    aspect-ratio: 16/9;
}

.podcast-single__title {
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
}

.podcast-single__content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recommended-podcasts {
    margin-top: 3rem;
}

.recommended-podcasts h2 {
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.recommended-podcasts h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary);
}

.recommended-podcasts {
    padding: var(--gap-s) 0;
    background-color: #f5f5f5;
}

.podcast-content-wrapper {
    display: flex;
    flex-direction: row;
    gap: 2rem;
}

.podcast__thumbnail--single {
    display: grid;
    place-content: center;
    margin: 3rem auto;
}

.podcast-content {
    flex: 3 1 0;
}

.podcast-content h2 {
    position: relative;
    padding-bottom: 1rem;
}

.podcast-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary);
}

.speaker {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: var(--color-primary);
    padding: 2rem;
    position: relative;
    padding-top: 120px;
    height: max-content;
}

.speaker__image {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    overflow: hidden;
    transform: translateY(-50%);
    position: absolute;
    top: 0;
    left: 2rem;
}

.speaker__image--second {
    left: 160px;
}

.speaker__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.speaker__name {
    font-size: var(--title-m);
    font-weight: 700;
    color: #fff;
    position: relative;
    padding-bottom: 1rem;
}

.speaker__name::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--color-secondary);
}

.speaker__description {
    font-size: var(--base);
    font-weight: 400;
    color: #fff;
}

.article--podcast a img{
    border-radius: var(--radius);
}
@media screen and (min-width: 1024px) {
    .page-template-archive-publication .podcast__thumbnail {
        width: 33%;
    }
}

@media screen and (max-width: 1279px) {
    .podcast-content-wrapper {
        flex-direction: column-reverse;
    }

    .speaker__image {
        width: 140px;
        height: 140px;
    }

    .podcast__thumbnail--single {
        margin-bottom: 8rem;
    }
}