/* Central educational video index. Kept separate from the original site CSS. */
:root {
    --video-green: #005d42;
    --video-green-dark: #073f31;
    --video-red: #b12617;
    --video-ink: #18342d;
    --video-muted: #5d6d67;
    --video-paper: #f6f8f5;
    --video-line: rgba(0, 93, 66, .16);
    --video-shadow: 0 18px 45px rgba(7, 63, 49, .11);
}

.video-index-body {
    margin: 0;
    background: var(--video-paper);
    color: var(--video-ink);
    font-family: Tahoma, Arial, sans-serif;
}

.video-index-header {
    background: linear-gradient(135deg, var(--video-green-dark), var(--video-green));
    color: #fff;
    border-bottom: 4px solid #b12617;
}

.video-index-header-inner,
.video-index-main,
.video-index-footer-inner {
    width: min(1160px, 92vw);
    margin: 0 auto;
}

.video-index-header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.video-index-brand {
    color: #fff;
    text-decoration: none;
    font-size: clamp(1rem, 2vw, 1.35rem);
    font-weight: 900;
    line-height: 1.5;
}

.video-index-brand span {
    display: block;
    color: rgba(255, 255, 255, .8);
    font-size: .78em;
    font-weight: 400;
}

.video-index-home-link {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .55);
    padding: 10px 16px;
    text-decoration: none;
    font-weight: 800;
    white-space: nowrap;
}

.video-index-home-link:hover,
.video-index-home-link:focus-visible {
    background: #fff;
    color: var(--video-green);
}

.video-index-main {
    padding: 24px 0 56px;
}

.video-index-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin: 0 0 20px;
    color: var(--video-muted);
    font-size: .94rem;
}

.video-index-breadcrumb a {
    color: var(--video-green);
    font-weight: 800;
}

.video-index-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(250px, .6fr);
    align-items: center;
    gap: 28px;
    background: #fff;
    border: 1px solid var(--video-line);
    box-shadow: var(--video-shadow);
    padding: clamp(24px, 4vw, 48px);
    margin-bottom: 22px;
}

.video-index-kicker {
    display: inline-block;
    color: var(--video-red);
    font-size: .92rem;
    font-weight: 900;
    letter-spacing: .02em;
    margin-bottom: 8px;
}

.video-index-hero h1 {
    color: var(--video-green);
    font-size: clamp(2rem, 4.4vw, 3.7rem);
    line-height: 1.2;
    margin: 0 0 14px;
}

.video-index-hero p {
    color: var(--video-muted);
    line-height: 1.9;
    max-width: 760px;
    margin: 0;
}

.video-index-hero-stat {
    background: var(--video-green-dark);
    color: #fff;
    padding: 24px;
    text-align: center;
    border-top: 5px solid var(--video-red);
}

.video-index-hero-stat strong {
    display: block;
    color: #fff;
    font-size: clamp(2.3rem, 5vw, 4rem);
    line-height: 1;
}

.video-index-hero-stat span {
    display: block;
    color: rgba(255, 255, 255, .82);
    margin-top: 10px;
}

.video-index-ad {
    min-height: 110px;
    margin: 24px 0;
    padding: 12px 0;
    text-align: center;
    background: rgba(255, 255, 255, .72);
    border-top: 1px solid var(--video-line);
    border-bottom: 1px solid var(--video-line);
}

.video-index-ad-label {
    display: block;
    color: var(--video-muted);
    font-size: .78rem;
    margin-bottom: 8px;
}

.video-index-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin: 34px 0 16px;
}

.video-index-section-heading h2 {
    color: var(--video-green);
    font-size: clamp(1.45rem, 3vw, 2.2rem);
    margin: 0;
}

.video-index-section-heading p {
    color: var(--video-muted);
    margin: 0;
    line-height: 1.7;
}

.video-index-featured {
    display: grid;
    grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr);
    gap: 0;
    background: #fff;
    border: 1px solid var(--video-line);
    box-shadow: var(--video-shadow);
    margin-bottom: 22px;
    overflow: hidden;
}

.video-index-featured-media {
    min-height: 300px;
    background: var(--video-green-dark);
}

.video-index-featured-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
}

.video-index-card-body {
    padding: 24px;
}

.video-index-card-tag {
    display: inline-block;
    color: var(--video-red);
    font-size: .82rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.video-index-card-body h3 {
    color: var(--video-green);
    font-size: clamp(1.25rem, 2.2vw, 1.8rem);
    line-height: 1.45;
    margin: 0 0 10px;
}

.video-index-card-body p {
    color: var(--video-muted);
    line-height: 1.85;
    margin: 0 0 18px;
}

.video-index-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.video-index-card-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 14px;
    border: 1px solid var(--video-green);
    text-decoration: none;
    font-weight: 800;
}

.video-index-primary-link {
    background: var(--video-green);
    color: #fff;
}

.video-index-secondary-link {
    background: #fff;
    color: var(--video-green);
}

.video-index-card-actions a:hover,
.video-index-card-actions a:focus-visible {
    outline: 3px solid rgba(177, 38, 23, .24);
    outline-offset: 2px;
}

.video-index-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.video-index-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--video-line);
    box-shadow: 0 10px 28px rgba(7, 63, 49, .07);
}

.video-index-card-media {
    aspect-ratio: 16 / 9;
    background: var(--video-green-dark);
}

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

.video-index-card .video-index-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
}

.video-index-card h3 {
    font-size: 1.1rem;
    margin-bottom: 9px;
}

.video-index-card p {
    font-size: .94rem;
    line-height: 1.75;
    margin-bottom: 16px;
}

.video-index-card .video-index-card-actions {
    margin-top: auto;
}

.video-index-card .video-index-card-actions a {
    width: 100%;
    padding-inline: 8px;
    font-size: .88rem;
}

.video-index-related {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.video-index-related a {
    display: block;
    background: #fff;
    border: 1px solid var(--video-line);
    color: var(--video-green);
    padding: 15px 16px;
    text-decoration: none;
    font-weight: 800;
}

.video-index-related a span {
    display: block;
    color: var(--video-muted);
    font-size: .84rem;
    font-weight: 400;
    line-height: 1.6;
    margin-top: 5px;
}

.video-index-related a:hover,
.video-index-related a:focus-visible {
    border-color: var(--video-red);
}

.video-index-footer {
    background: var(--video-green-dark);
    color: rgba(255, 255, 255, .86);
    border-top: 4px solid var(--video-red);
}

.video-index-footer-inner {
    padding: 20px 0;
    text-align: center;
    line-height: 1.8;
}

.video-index-footer a {
    color: #fff;
    font-weight: 800;
}

@media (max-width: 980px) {
    .video-index-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .video-index-header-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px 0;
    }

    .video-index-hero,
    .video-index-featured {
        grid-template-columns: 1fr;
    }

    .video-index-featured-media,
    .video-index-featured-media img {
        min-height: 220px;
    }

    .video-index-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .video-index-related {
        grid-template-columns: 1fr;
    }
}

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

    .video-index-main {
        padding-top: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
    }
}
