/* AFSN hero slider — adds to hero.css, does not override video internals */

.hero-slider {
    overflow: hidden;
}

.hero-track {
    display: flex;
    height: calc(100vh - 66px);
    transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1);
    will-change: transform;
}

.hero-slide {
    position: relative;
    flex: 0 0 100%;
    height: 100%;
    overflow: hidden;
}

/* Fix: keep your hero-content above the particle/connection layers (z-index 3 and 4) */
.hero-slide .hero-content {
    z-index: 10;
}

/* Photo slides only — does not touch the video slide at all */
.hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
}

.slide-tint-blue-2:not(.slide-align-right) .hero-media { object-position: center 33%; }
.slide-tint-orange:not(.slide-align-right) .hero-media { object-position: center 50%; }
.slide-tint-blue:not(.slide-align-right) .hero-media { object-position: center 42%; }

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(7,17,39,0.9) 0%, rgba(7,17,39,0.5) 40%, rgba(7,17,39,0.1) 70%);
}


.slide-tint-blue .hero-shade {
    background: linear-gradient(100deg, rgba(0,0,80,0.75) 0%, rgba(0,0,80,0.3) 55%, rgba(0,0,80,0.05) 100%);
}

.slide-tint-orange .hero-shade {
    background: linear-gradient(100deg, rgba(120,45,0,0.75) 0%, rgba(120,45,0,0.3) 55%, rgba(120,45,0,0.05) 100%);
}

.hero-copy {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    max-width: 680px;
    padding: 0 40px 60px;
    color: #fff;
}

.hero-badge {
    display: inline-block;
    background: #e74900;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 14px;
    margin-bottom: 22px;
}

.slide-align-center .hero-copy {
    margin: 0 auto;
    text-align: center;
    padding-top: clamp(10rem, 32vh, 17rem);
}

.slide-align-right .hero-copy {
    margin-left: auto;
    margin-right: clamp(1.25rem, 7vw, 7rem);
    text-align: right;
}

.hero-copy h1 {
    font-family: 'Lora', Georgia, serif;
    font-weight: 600;
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.2;
    margin: 0 0 20px;
}


.hero-copy .hl {
    color: #ffffff;
}

.hero-copy p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.88);
    margin: 0 0 30px;
    max-width: 560px;
}

.slide-align-center .hero-copy p {
    margin-left: auto;
    margin-right: auto;
}

.slide-align-right .hero-copy p {
    margin-left: auto;
    margin-right: 0;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    color: #071127;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 14px 26px;
    border: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.hero-slide .hero-content { display: none; } /* old feature-grid markup no longer used */

.hero-cta:hover {
    background: #1a237e;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Arrows */
.hero-arrow {
    position: absolute;
    top: calc(50% - 33px);
    transform: translateY(-50%);
    z-index: 20;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background 0.2s ease;
}

/* Bottom toggle bar — same visual pattern as Oxford's Undergraduate/Graduate strip */
.hero-toggle-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    background: #0d1b3d;
    display: flex;
    justify-content: center;
    gap: 50px;
    padding: 22px 20px;
}

.hero-toggle {
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.hero-toggle.active { color: #fff; }

.hero-radio {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    position: relative;
}

.hero-toggle.active .hero-radio { border-color: #bd4c01; }

.hero-toggle.active .hero-radio::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: #bd4c01;
}

@media (max-width: 640px) {
    .hero-copy {
        padding: 0 20px 40px;
    }
    .hero-badge {
        font-size: 0.75rem;
    }
    .hero-arrow { width: 40px; height: 40px; }
    .hero-arrow.prev { left: 0.5rem; }
    .hero-arrow.next { right: 0.5rem; }
    .hero-toggle-bar { gap: 30px; padding: 16px; }
}


.hero-arrow:hover { background: rgba(255,255,255,0.35); }
.hero-arrow.prev { left: 1.25rem; }
.hero-arrow.next { right: 1.25rem; }

@media (max-width: 640px) {
    .slide-photo .hero-copy {
        position: absolute;
        left: 1.25rem;
        right: 1.25rem;
        bottom: 2.5rem;
        top: auto;
        margin: 0;
        padding-top: 0;
        text-align: left;
        max-width: none;
    }
    .slide-photo.slide-align-center .hero-copy {
        text-align: center;
    }
    .slide-photo.slide-align-right .hero-copy p {
        margin-left: 0;
    }
    .hero-arrow { width: 40px; height: 40px; }
    .hero-arrow.prev { left: 0.5rem; }
    .hero-arrow.next { right: 0.5rem; }
}

@media (max-width: 640px) {
    .hero-slide.slide-photo::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 45%;
        background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.55));
        z-index: 1;
        pointer-events: none;
    }
}

.hero-rule {
    width: 400px;
    height: 1.5px;
    background: #ffffff;
    border: none;
    margin: 1.25rem 0 1.5rem;
}

.slide-align-center .hero-rule {
    margin-left: auto;
    margin-right: auto;
}

.slide-align-right .hero-rule {
    margin-left: auto;
    margin-right: 0;
}

/* CTA Buttons */
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    margin-top: 30px;
    flex-wrap: wrap;
}

.cta-button {
    position: relative;
    display: inline-block;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cta-button.primary {
    background: linear-gradient(45deg, rgba(139, 69, 19, 0.7), rgba(47, 79, 79, 0.7));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
}

.cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    border-color: rgba(255,255,255,0.4);
}

.cta-button.secondary {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

.cta-button.secondary:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,0.25);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.cta-button span {
    position: relative;
    z-index: 2;
}

.bold {
    background: rgb(3, 3, 80);
    width: 100px;
}

.slide-tint-blue-2 .hero-shade {
    background: linear-gradient(100deg, rgba(0,0,60,0.88) 0%, rgba(0,0,60,0.55) 55%, rgba(0,0,60,0.15) 100%);
}


/* Programs Showcase Section */
.programs-showcase {
    padding: 80px 20px;
    background: #f4f5f7;
}

.programs-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 0;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

/* Photo panel */
.programs-photo {
    position: relative;
    min-height: 500px;
    overflow: hidden;
}

.programs-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.programs-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,20,60,0.85) 0%, rgba(0,20,60,0.15) 55%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
}

.programs-photo-overlay h3 {
    color: #fff;
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 15px;
    font-family: Georgia, 'Times New Roman', serif;
}

.photo-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.25s ease;
}

.photo-arrow:hover {
    background: #b15408;
    border-color: #b15408;
    transform: translateX(4px);
}

/* Program cards */
.program-card {
    padding: 35px 30px;
    border-left: 1px solid #e5e5e5;
    display: flex;
    flex-direction: column;
}

.program-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #10286b;
    line-height: 1.3;
    margin: 0 0 18px;
    font-family: Georgia, 'Times New Roman', serif;
}

.program-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
    margin: 0 0 20px;
}

.program-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
    flex: 1;
}

.program-list li {
    font-size: 0.9rem;
    color: #333;
    padding: 10px 0;
    border-bottom: 1px solid #e5e5e5;
    position: relative;
}

.program-list li:nth-child(odd)::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 55%;
    height: 2px;
    background: #1a2a6b;
}

.program-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #1a2a6b;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 14px 20px;
    transition: background 0.25s ease;
    margin-top: auto;
}

.program-btn i {
    font-size: 0.8rem;
}

.program-btn:hover {
    background: #1a2a6b 
}

/* Responsive */
@media (max-width: 1100px) {
    .programs-container {
        grid-template-columns: 1fr 1fr;
    }
    .programs-photo {
        grid-column: 1 / -1;
        min-height: 320px;
    }
    .program-card {
        border-top: 1px solid #e5e5e5;
    }
}

@media (max-width: 640px) {
    .programs-showcase {
        padding: 50px 15px;
    }
    .programs-container {
        grid-template-columns: 1fr;
    }
    .programs-photo {
        min-height: 260px;
    }
    .program-card {
        border-left: none;
        border-top: 1px solid #e5e5e5;
        padding: 28px 22px;
    }
    .programs-photo-overlay h3 {
        font-size: 1.5rem;
    }
}

/* Section background: dark blue at top fading down */
.programs-showcase {
    padding: 100px 20px 80px;
    background: linear-gradient(180deg, #0a1440 0%, #1a2a6b 25%, #6b7280 60%, #f4f5f7 100%);
}

/* Card + photo hover lift */
.programs-photo,
.program-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.programs-photo:hover,
.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.18);
    z-index: 2;
    position: relative;
}

/* Slight lift also brightens the red accent on hover */
.program-card:hover .program-btn {
    background: #c94110;
}

.program-card:hover h3 {
    color: #c94110;
}

/* Mission Statement Section */
.mission-showcase {
    position: relative;
    overflow: hidden;
    background: linear-gradient(115deg, #0a1f44 0%, #0a1f44 45%, #c94110 100%);
    padding: 90px 40px;
    margin-top: -66px;
}

.mission-pattern {
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(60deg, rgba(255,255,255,0.05) 0px, rgba(255,255,255,0.05) 2px, transparent 2px, transparent 22px),
        repeating-linear-gradient(-60deg, rgba(255,255,255,0.04) 0px, rgba(255,255,255,0.04) 2px, transparent 2px, transparent 22px);
    opacity: 0.6;
    pointer-events: none;
}

.mission-container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 60px;
    align-items: stretch;
}

/* Drop cap text block */
.mission-text {
    display: flex;
    align-items: flex-start;
}

.drop-cap {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 15rem;
    line-height: 0.75;
    font-weight: 700;
    color: rgba(255,255,255,0.18);
    margin-right: 10px;
    flex-shrink: 0;
}

.mission-text p {
    font-size: 1.15rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.92);
    margin: 0;
    padding-top: 8px;
}

/* Poster card */
.mission-poster {
    background: linear-gradient(160deg,  #b15408 0%, #0a1f44  100%);
    padding: 18px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.35);
    max-width: 280px;
    margin-top: 0;
    justify-self: start;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.poster-image {
    width: 100%;
    max-width: none;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    margin-bottom: 16px;
    aspect-ratio: 4 / 3;
    flex-shrink: 0;
}

.poster-image img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.mission-poster h3 {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 8px;
}

.mission-poster p {
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0 0 16px;
    max-width: none;
    flex: 1;
}

.poster-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 10px 18px;
    border-radius: 3px;
    transition: background 0.25s ease;
    width: 100%;
    justify-content: center;
    margin-top: auto;
}

.poster-btn i {
    font-size: 0.75rem;
}

.poster-btn:hover {
    background: rgba(255,255,255,0.22);
    transform: none;
}

/* Responsive */
@media (max-width: 900px) {
    .mission-container {
        grid-template-columns: 1fr;
        gap: 45px;
    }
    .mission-poster {
        max-width: 320px;
    }
    .drop-cap {
        font-size: 6.5rem;
    }
    .mission-text p {
        font-size: 1.05rem;
    }
}

@media (max-width: 480px) {
    .mission-showcase {
        padding: 60px 20px;
    }
    .drop-cap {
        font-size: 5rem;
        margin-right: 6px;
    }
    .mission-text p {
        font-size: 0.98rem;
        line-height: 1.65;
    }
    .mission-poster {
        max-width: 100%;
        padding: 18px;
    }
}

.afsn-notice {
    position: fixed;
    top: 78px; /* sits just below your fixed navbar; adjust to match navbar height exactly */
    left: 0;
    width: 100%;
    z-index: 998;
    background: linear-gradient(90deg, #b8102e 0%, #8f0c22 100%);
    color: #fff;
    padding: 12px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
}

.afsn-notice.show {
    transform: translateY(0);
    opacity: 1;
}

.afsn-notice.hide {
    transform: translateY(-120%);
    opacity: 0;
}

.afsn-notice-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.afsn-notice-icon {
    flex-shrink: 0;
    font-size: 1.1rem;
    margin-top: 3px;
}

.afsn-notice-inner p {
    flex: 1;
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
}

.afsn-notice-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #fff;
    opacity: 0.8;
    cursor: pointer;
    font-size: 1rem;
    padding: 2px 4px;
    transition: opacity 0.2s ease;
}

.afsn-notice-close:hover {
    opacity: 1;
}

@media (max-width: 640px) {
    .afsn-notice {
        padding: 10px 15px;
        top: 130px; /* mobile navbars are often taller when wrapped */
    }
    .afsn-notice-inner p {
        font-size: 0.85rem;
    }
}

.open  {
    background: white;
}