/* MAIN PODCASTS PAGE */

.sticky-content {
    top: 13rem;
    z-index: 5;
}

.sticky-content-upcoming {
    top: 18rem;
}

.podcast-card h5 {
    text-wrap: balance;
}

@media (max-width: 810px) {
    .sticky-content {
        top: 5rem;
    }
}

/* filters */

.podcast-filters .navbar-nav .nav-link.active,
.podcast-filters .navbar-nav .nav-link.show {
    color: #fff !important;
    background-color: #00263d !important;
}

.podcast-filters.navbar .nav-item {
    padding: 0; /* override padding being added in base-styles.css */
}

.podcast-filters {
    top: 6rem;
}

.podcast-filters::after {
    content: '';
    position: absolute;
    top: -4rem;
    left: 0;
    width: 100%;
    height: 15rem;
    background: #fff;
    z-index: -1;
    pointer-events: none;

    opacity: 0;
    transition: opacity 0.4s ease; /* fade in/out */
}

.podcast-filters.show-gradient::after {
    opacity: 1;
}

@media (max-width: 810px) {
    .podcast-filters {
        top: 0;
    }

    .podcast-filters::after {
        height: 14rem;
    }
}

/* transitions */

#podcastContentContainer {
    opacity: 1;
    transition: opacity 0.25s ease-in-out;
}

#podcast-header-container {
    opacity: 1;
    transition: opacity 0.25s ease-in-out, transform 0.25s ease-out;
}

#podcastContentContainer.transition-hide,
#podcast-header-container.transition-hide {
    opacity: 0;
}

#podcast-header-container.transition-transform-down {
    transform: translateX(2rem);
}

/* podcast sponsor */

main.events-podcasts .sponsor-img {
    margin-top: -2rem;
    filter: drop-shadow(0 0 5px #00000080);
}

/* podcast image */

main.events-podcasts .square-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%;
}

@media (max-width: 767px) {
    main.events-podcasts .square-wrapper {
        padding-top: 40%;
    }
}

/* podcast button */

main.events-podcasts .card-hover:hover .podcast-watch-btn {
    color: #f88d2b !important;
}

main.events-podcasts .podcast-watch-btn {
    transition: all 0.2s ease !important;
}

/* featured podcast */

main.events-podcasts .featured-podcast {
    background-color: #00263d;
    color: #fff;
}

main.events-podcasts .featured-podcast .podcast-category {
    color: #f88d2b !important;
}

main.events-podcasts .featured-podcast .podcast-watch-btn {
    color: #fff !important;
}

/* upcoming podcasts */

main.events-podcasts #upcoming-podcasts {
    scroll-margin-top: 4rem;
}

/* PODCAST EPISODE PAGE */

/* revert btn-group border-radius back to bootstrap default */

main#iir-podcast-episode .btn-group > .btn:first-child:not(:last-child) {
    border-bottom-left-radius: var(--bs-btn-border-radius);
}

main#iir-podcast-episode .btn-group > .btn:last-child:not(:first-child) {
    border-bottom-right-radius: var(--bs-btn-border-radius);
}

main#iir-podcast-episode #videoThumbnailOverlay {
    font-size: 6rem;
}

main#iir-podcast-episode .podcast-sponsor {
    height: 50px;
    width: 125px;
}

/* TRANSLATE DROPDOWN */

#languageDropdownWrapper {
    text-align: center;
}

.sleek-dropdown-toggle {
    border-radius: 2rem !important ;
    padding: 0.6rem 1.5rem !important;
    font-weight: 500 !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    transition: background-color 0.2s ease, transform 0.15s ease !important;
}

.sleek-dropdown-toggle:hover {
    background-color: #0b5ed7;
    transform: translateY(-1px);
}

.sleek-dropdown-menu {
    border-radius: 1rem !important;
    border: none !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2) !important;
    min-width: 200px !important;
    text-align: center !important;
    padding: 0.5rem 0 !important;
}

.sleek-dropdown-item {
    padding: 0.75rem 1rem;
    font-weight: 500;
    color: #333;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.sleek-dropdown-item:hover {
    background-color: #f1f5ff;
    color: #0d6efd;
}

@media (min-width: 992px) {
    .transition-all {
        transition: flex 0.4s ease, max-width 0.4s ease;
    }
    .sidebar-hidden {
        display: none !important;
    }
}
