.youtube-channel-section {
    --youtube-navy: #024971;
    --youtube-blue: #087da6;
    --youtube-red: #e62117;
    --youtube-text: #17212b;
    --youtube-muted: #67717c;
    background: #f5f8fa;
    padding: 88px 0 96px;
}

.youtube-channel-intro {
    max-width: 760px;
    margin: 0 auto 36px;
    text-align: center;
}

.youtube-eyebrow,
.youtube-related-kicker,
.featured-video-label {
    color: var(--youtube-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.youtube-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.youtube-eyebrow i {
    color: var(--youtube-red);
    font-size: 18px;
}

.youtube-channel-intro h2 {
    color: var(--youtube-navy);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 14px;
}

.youtube-channel-intro p {
    color: var(--youtube-muted);
    font-size: 17px;
    line-height: 1.75;
    margin: 0;
}

.featured-video-card {
    background: #fff;
    border: 1px solid rgba(2, 73, 113, .09);
    border-radius: 18px;
    box-shadow: 0 22px 55px rgba(16, 45, 61, .13);
    overflow: hidden;
}

.featured-video-frame {
    background: #07141d;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.featured-video-frame iframe {
    border: 0;
    height: 100%;
    inset: 0;
    position: absolute;
    width: 100%;
}

.featured-video-content {
    align-items: center;
    display: flex;
    gap: 28px;
    justify-content: space-between;
    padding: 26px 30px 28px;
}

.featured-video-content > div {
    min-width: 0;
}

.featured-video-content h2 {
    color: var(--youtube-text);
    font-size: clamp(21px, 3vw, 29px);
    font-weight: 600;
    line-height: 1.35;
    margin: 7px 0 5px;
}

#featured-video-date {
    color: var(--youtube-muted);
    display: block;
    font-size: 13px;
}

.featured-video-youtube-link {
    align-items: center;
    background: var(--youtube-red);
    border: 2px solid var(--youtube-red);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 600;
    gap: 9px;
    padding: 11px 19px;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.featured-video-youtube-link:hover,
.featured-video-youtube-link:focus-visible {
    background: #fff;
    color: var(--youtube-red);
    transform: translateY(-2px);
}

.youtube-related {
    margin-top: 72px;
    scroll-margin-top: 110px;
}

.youtube-related-heading {
    align-items: end;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 25px;
}

.youtube-related-heading h2 {
    color: var(--youtube-navy);
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 700;
    margin: 5px 0 0;
}

.youtube-related-count {
    color: var(--youtube-muted);
    font-size: 13px;
    margin: 7px 0 0;
}

.youtube-related-heading > a {
    color: var(--youtube-navy);
    font-size: 14px;
    font-weight: 600;
    padding-bottom: 5px;
}

.youtube-related-heading > a:hover,
.youtube-related-heading > a:focus-visible {
    color: var(--youtube-blue);
}

.youtube-video-grid {
    display: grid;
    gap: 26px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.youtube-video-card {
    background: #fff;
    border: 1px solid rgba(2, 73, 113, .1);
    border-radius: 13px;
    box-shadow: 0 8px 24px rgba(16, 45, 61, .07);
    cursor: pointer;
    display: block;
    min-width: 0;
    overflow: hidden;
    padding: 0;
    text-align: left;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    width: 100%;
}

.youtube-video-card:hover,
.youtube-video-card:focus-visible,
.youtube-video-card[aria-current="true"] {
    border-color: rgba(8, 125, 166, .55);
    box-shadow: 0 15px 34px rgba(16, 45, 61, .14);
    outline: none;
    transform: translateY(-5px);
}

.youtube-video-card[aria-current="true"] {
    box-shadow: 0 0 0 3px rgba(8, 125, 166, .12), 0 15px 34px rgba(16, 45, 61, .14);
}

.youtube-video-thumbnail {
    background: #10212b;
    display: block;
    overflow: hidden;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.youtube-video-thumbnail::after {
    background: linear-gradient(to top, rgba(3, 17, 25, .48), transparent 55%);
    content: "";
    inset: 0;
    position: absolute;
}

.youtube-video-thumbnail img {
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
    width: 100%;
}

.youtube-video-card:hover .youtube-video-thumbnail img,
.youtube-video-card:focus-visible .youtube-video-thumbnail img {
    transform: scale(1.04);
}

.youtube-play-icon {
    align-items: center;
    background: rgba(230, 33, 23, .94);
    border-radius: 50%;
    bottom: 14px;
    color: #fff;
    display: flex;
    height: 44px;
    justify-content: center;
    left: 15px;
    position: absolute;
    width: 44px;
    z-index: 1;
}

.youtube-play-icon i {
    font-size: 14px;
    margin-left: 3px;
}

.youtube-video-info {
    display: flex;
    flex-direction: column;
    min-height: 128px;
    padding: 18px 19px 20px;
}

.youtube-video-info strong {
    color: var(--youtube-text);
    display: -webkit-box;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.youtube-video-info time {
    color: var(--youtube-muted);
    font-size: 12px;
    margin-top: auto;
    padding-top: 13px;
    text-transform: capitalize;
}

.youtube-pagination {
    align-items: center;
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr auto 1fr;
    margin-top: 42px;
}

.youtube-pagination > a,
.youtube-pagination-disabled {
    align-items: center;
    border: 1px solid rgba(2, 73, 113, .2);
    border-radius: 999px;
    display: inline-flex;
    font-size: 14px;
    font-weight: 600;
    gap: 9px;
    justify-content: center;
    min-height: 44px;
    padding: 9px 18px;
    width: max-content;
}

.youtube-pagination > a {
    background: #fff;
    color: var(--youtube-navy);
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.youtube-pagination > a:first-child,
.youtube-pagination > .youtube-pagination-disabled:first-child {
    justify-self: start;
}

.youtube-pagination > a:last-child,
.youtube-pagination > .youtube-pagination-disabled:last-child {
    justify-self: end;
}

.youtube-pagination > a:hover,
.youtube-pagination > a:focus-visible {
    background: var(--youtube-navy);
    border-color: var(--youtube-navy);
    color: #fff;
}

.youtube-pagination-disabled {
    color: #a1a9b0;
    cursor: not-allowed;
    opacity: .7;
}

.youtube-pagination-status {
    color: var(--youtube-muted);
    font-size: 13px;
    text-align: center;
}

.youtube-pagination-status strong {
    color: var(--youtube-text);
}

.youtube-feed-notice {
    align-items: flex-start;
    background: #fff;
    border: 1px solid rgba(2, 73, 113, .12);
    border-radius: 12px;
    color: var(--youtube-muted);
    display: flex;
    gap: 12px;
    margin-top: 28px;
    padding: 18px 20px;
}

.youtube-feed-notice i {
    color: var(--youtube-blue);
    margin-top: 4px;
}

.youtube-feed-notice p {
    margin: 0;
}

.youtube-feed-notice a {
    color: var(--youtube-navy);
    font-weight: 600;
}

@media (max-width: 991.98px) {
    .youtube-channel-section {
        padding: 70px 0 78px;
    }

    .youtube-video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .youtube-channel-section {
        padding: 58px 0 64px;
    }

    .featured-video-content {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px 20px 24px;
    }

    .youtube-related {
        margin-top: 55px;
    }

    .youtube-related-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 575.98px) {
    .youtube-video-grid {
        grid-template-columns: 1fr;
    }

    .featured-video-card {
        border-radius: 12px;
        margin-left: -5px;
        margin-right: -5px;
    }

    .youtube-pagination {
        gap: 12px 8px;
        grid-template-columns: 1fr 1fr;
    }

    .youtube-pagination-status {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .youtube-pagination > a,
    .youtube-pagination-disabled {
        grid-row: 2;
        padding-left: 14px;
        padding-right: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .featured-video-youtube-link,
    .youtube-video-card,
    .youtube-video-thumbnail img {
        transition: none;
    }
}
