/* Podcast Carousel Section - Mobile First */
.podcast-carousel-section {
    padding: 40px 20px;
    background: #fff;
}

.podcast-carousel-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Carousel Wrapper */
.podcast-carousel-wrapper {
    position: relative;
}

.podcast-carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db #f3f4f6;
}

/* Trailing spacer — lets the last card scroll to the left edge on touch devices */
.podcast-carousel::after {
    content: '';
    flex: 0 0 calc(100vw - 220px - 40px);
}

@media (min-width: 641px) {
    .podcast-carousel::after {
        flex-basis: calc(100vw - 220px - 60px);
    }
}

@media (min-width: 1025px) {
    .podcast-carousel::after {
        display: none;
    }
}

.podcast-carousel::-webkit-scrollbar {
    height: 8px;
}

.podcast-carousel::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 4px;
}

.podcast-carousel::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.podcast-carousel::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Podcast Card */
.podcast-card {
    flex: 0 0 220px;
    width: 220px;
    scroll-snap-align: start;
    text-decoration: none;
    display: block;
    transition: transform 0.2s;
}

.podcast-card:hover {
    transform: translateY(-4px);
}

/* Section title */
.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-top: 12px;
}

@media (min-width: 769px) {
    .section-title {
        font-size: 28px;
    }
}

/* Video card */
.video-card {
    width: 220px;
    flex-shrink: 0;
    scroll-snap-align: start;
}

.video-media {
    position: relative;
    width: 100%;
    height: 320px;
    border-radius: 4px;
    overflow: hidden;
    background: #000;
}

.video-media img,
.video-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-media video {
    position: absolute;
    top: 0;
    left: 0;
    display: none;
}

.video-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.7),
        rgba(0, 0, 0, 0.2),
        transparent
    );
}

.duration {
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-size: 12px;
    color: #fff;
    z-index: 2;
}

.play-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.video-meta {
    margin-top: 10px;
}

.video-meta .category {
    font-size: 12px;
    font-weight: 600;
    color: #FF8C00;
    text-transform: uppercase;
}

.video-meta h3 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 4px;
    color: #003366;
}

/* Navigation Arrows (hidden on mobile) */
.carousel-nav {
    display: none;
}

/* Tablet (641px and up) */
@media (min-width: 641px) {
    .podcast-carousel-section {
        padding: 50px 30px;
    }

    .podcast-carousel {
        gap: 20px;
    }

    .podcast-card {
        flex: 0 0 220px;
        width: 220px;
    }
}

/* Desktop (1025px and up) */
@media (min-width: 1025px) {
    .podcast-carousel-section {
        padding: 60px 40px;
    }

    .podcast-carousel {
        gap: 24px;
        overflow-x: hidden;
        scrollbar-width: none;
    }

    .podcast-carousel::-webkit-scrollbar {
        display: none;
    }

    .podcast-card {
        flex: 0 0 220px;
        width: 220px;
    }

    .carousel-nav {
        display: block;
    }

    .carousel-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 48px;
        height: 48px;
        background: rgba(255, 255, 255, 0.95);
        border: 2px solid #f18d11;
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s;
        z-index: 10;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .carousel-arrow:hover {
        background: #FF8C00;
        border-color: #FF8C00;
    }

    .carousel-arrow.prev:hover .arrow-icon {
        border-color: transparent #fff transparent transparent;
    }

    .carousel-arrow.next:hover .arrow-icon {
        border-color: transparent transparent transparent #fff;
    }

    .carousel-arrow.prev {
        left: -24px;
    }

    .carousel-arrow.next {
        right: -24px;
    }

    .arrow-icon {
        width: 0;
        height: 0;
        border-style: solid;
        transition: border-color 0.3s;
    }

    .carousel-arrow.prev .arrow-icon {
        border-width: 8px 12px 8px 0;
        border-color: transparent #003366 transparent transparent;
        margin-right: 3px;
    }

    .carousel-arrow.next .arrow-icon {
        border-width: 8px 0 8px 12px;
        border-color: transparent transparent transparent #003366;
        margin-left: 3px;
    }

    .carousel-arrow:disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }

    .carousel-arrow:disabled:hover {
        background: rgba(255, 255, 255, 0.95);
        border-color: #e5e7eb;
    }

    .carousel-arrow:disabled:hover .arrow-icon {
        border-color: transparent #003366 transparent transparent;
    }

    .carousel-arrow.next:disabled:hover .arrow-icon {
        border-color: transparent transparent transparent #003366;
    }
}

/* Large Desktop (1280px and up) */
@media (min-width: 1280px) {
    .podcast-carousel-container {
        padding: 0 60px;
    }

    .carousel-arrow.prev {
        left: -30px;
    }

    .carousel-arrow.next {
        right: -30px;
    }
}
