/* ============================================================
   Cambridge International School – Dance Wing
   Design System & Styles
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,500;0,700;1,500&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
    /* Brand colours (from logo) */
    --navy: #1a1f6e;
    --navy-dark: #0e1148;
    --gold: #c8a435;
    --gold-light: #e8c94a;
    --red: #d42e2e;
    --red-dark: #a82222;
    --white: #ffffff;
    --off-white: #f8f6f1;
    --light-gray: #eae7e0;
    --dark: #181818;
    --text: #2d2d2d;
    --text-muted: #6b6b6b;

    /* Gradients */
    --grad-navy: linear-gradient(135deg, #1a1f6e 0%, #0e1148 100%);
    --grad-gold: linear-gradient(135deg, #c8a435 0%, #e8c94a 100%);
    --grad-hero: linear-gradient(160deg, rgba(14, 17, 72, .92) 0%, rgba(26, 31, 110, .78) 40%, rgba(200, 164, 53, .45) 100%);

    /* Typography */
    --font-body: 'Poppins', sans-serif;
    --font-display: 'Playfair Display', serif;

    /* Spacing */
    --section-pad: 5rem 1.5rem;
    --container: 1200px;

    /* Misc */
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 8px 32px rgba(0, 0, 0, .12);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, .18);
    --transition: .35s cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: rgba(14, 17, 72, .95);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    padding-top: 82px;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---------- Utility ---------- */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 1rem;
}

.section-tag::before {
    content: '';
    width: 32px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: .75rem;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 600px;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header .section-subtitle {
    margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .85rem 2rem;
    font-family: var(--font-body);
    font-size: .95rem;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    letter-spacing: .5px;
}

.btn-primary {
    background: var(--grad-gold);
    color: var(--navy-dark);
    box-shadow: 0 4px 20px rgba(200, 164, 53, .35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(200, 164, 53, .5);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, .4);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, .1);
    border-color: var(--white);
}

.btn-navy {
    background: var(--grad-navy);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(26, 31, 110, .3);
}

.btn-navy:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(26, 31, 110, .45);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: all var(--transition);
    background: rgba(14, 17, 72, .95);
    backdrop-filter: blur(12px);
}

.navbar.scrolled {
    background: rgba(14, 17, 72, .95);
    backdrop-filter: blur(12px);
    padding: .6rem 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .2);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.nav-logo img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .3));
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
}

.nav-logo-text .school-name {
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
}

.nav-logo-text .school-sub {
    font-size: .7rem;
    font-weight: 400;
    color: var(--gold-light);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: rgba(255, 255, 255, .8);
    font-size: .9rem;
    font-weight: 500;
    letter-spacing: .5px;
    position: relative;
    padding: .25rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    transition: width var(--transition);
}

.nav-links a:hover {
    color: var(--white);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.nav-toggle span {
    width: 26px;
    height: 2.5px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--grad-hero);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
    width: 100%;
}

.hero-text {
    padding: 2rem 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(200, 164, 53, .15);
    border: 1px solid rgba(200, 164, 53, .3);
    padding: .5rem 1.2rem;
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 600;
    color: var(--gold-light);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
}

.hero-badge .badge-dot {
    width: 8px;
    height: 8px;
    background: var(--gold-light);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .5;
        transform: scale(1.4);
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.hero-title .highlight {
    background: var(--grad-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, .75);
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 520px;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    max-width: 440px;
    width: 100%;
}

.hero-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 3 / 4;
}

.hero-image-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    border: 2px solid rgba(200, 164, 53, .3);
    z-index: 1;
    pointer-events: none;
}

.hero-float-card {
    position: absolute;
    bottom: -20px;
    left: -40px;
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--radius-sm);
    padding: 1rem 1.3rem;
    display: flex;
    align-items: center;
    gap: .75rem;
    z-index: 3;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.hero-float-card .float-icon {
    width: 40px;
    height: 40px;
    background: var(--grad-gold);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.hero-float-card .float-text {
    color: var(--white);
}

.hero-float-card .float-text span {
    display: block;
    font-size: .75rem;
    opacity: .7;
}

.hero-float-card .float-text strong {
    font-size: 1rem;
}

/* Decorative shapes */
.hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: .08;
    z-index: 0;
}

.hero-shape-1 {
    width: 400px;
    height: 400px;
    background: var(--gold);
    top: -100px;
    right: -100px;
}

.hero-shape-2 {
    width: 250px;
    height: 250px;
    background: var(--red);
    bottom: -50px;
    left: 10%;
}

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats-strip {
    background: var(--white);
    padding: 2rem 0;
    border-bottom: 1px solid var(--light-gray);
    position: relative;
    z-index: 3;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
    margin-bottom: .35rem;
}

.stat-number span {
    color: var(--gold);
}

.stat-label {
    font-size: .85rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about {
    padding: var(--section-pad);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-images {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.about-img {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition);
}

.about-img:hover {
    transform: scale(1.03);
}

.about-img:first-child {
    grid-row: span 2;
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text .section-tag {
    margin-bottom: 1rem;
}

.about-text .section-title {
    margin-bottom: 1.25rem;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    font-size: 1.02rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-weight: 500;
    font-size: .95rem;
}

.about-feature .icon {
    width: 36px;
    height: 36px;
    background: rgba(200, 164, 53, .12);
    color: var(--gold);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

/* ============================================================
   DANCE STYLES SECTION
   ============================================================ */
.programs {
    padding: var(--section-pad);
    background: var(--navy);
    position: relative;
    overflow: hidden;
}

.programs::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(200, 164, 53, .06);
    top: -200px;
    right: -200px;
}

.programs .section-title {
    color: var(--white);
}

.programs .section-subtitle {
    color: rgba(255, 255, 255, .6);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.program-card {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
    position: relative;
}

.program-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, .1);
    border-color: rgba(200, 164, 53, .3);
    box-shadow: 0 16px 48px rgba(0, 0, 0, .3);
}

.program-card-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.program-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.program-card:hover .program-card-img img {
    transform: scale(1.08);
}

.program-card-img .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(14, 17, 72, .7) 0%, transparent 60%);
}

.program-card-body {
    padding: 1.5rem;
}

.program-card-body h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: .6rem;
}

.program-card-body p {
    font-size: .9rem;
    color: rgba(255, 255, 255, .55);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.program-tag {
    display: inline-block;
    padding: .3rem .8rem;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    background: rgba(200, 164, 53, .15);
    color: var(--gold-light);
    border: 1px solid rgba(200, 164, 53, .25);
}

/* ============================================================
   GALLERY SECTION
   ============================================================ */
.gallery {
    padding: var(--section-pad);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 280px;
    gap: 1.25rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(14, 17, 72, .85) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h4 {
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.1rem;
}

.gallery-overlay span {
    display: block;
    color: var(--gold-light);
    font-size: .8rem;
    font-weight: 500;
    margin-top: .25rem;
}

/* Span variations for masonry-like layout */
.gallery-item.wide {
    grid-column: span 2;
}

.gallery-item.tall {
    grid-row: span 2;
}

/* ============================================================
   VIDEO SECTION
   ============================================================ */
.videos {
    padding: var(--section-pad);
    background: linear-gradient(180deg, var(--off-white) 0%, #ede9df 100%);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.video-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

.video-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.video-thumb {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.video-card:hover .video-thumb img {
    transform: scale(1.05);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, .95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .2);
    transition: all var(--transition);
}

.play-btn::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent var(--navy);
    margin-left: 3px;
}

.video-card:hover .play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--gold-light);
}

.video-card:hover .play-btn::after {
    border-color: transparent transparent transparent var(--white);
}

.video-card-body {
    padding: 1.25rem 1.5rem;
}

.video-card-body h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--navy);
    margin-bottom: .3rem;
}

.video-card-body p {
    font-size: .85rem;
    color: var(--text-muted);
}

.video-duration {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, .7);
    color: var(--white);
    font-size: .75rem;
    font-weight: 600;
    padding: .25rem .6rem;
    border-radius: 4px;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta {
    padding: 5rem 1.5rem;
    background: var(--grad-navy);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cta::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(200, 164, 53, .08);
    top: -300px;
    left: 50%;
    transform: translateX(-50%);
}

.cta-inner {
    position: relative;
    z-index: 1;
    max-width: 650px;
    margin: 0 auto;
}

.cta-inner .section-title {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-inner p {
    color: rgba(255, 255, 255, .65);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--navy-dark);
    color: rgba(255, 255, 255, .6);
    padding: 3.5rem 1.5rem 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    max-width: var(--container);
    margin: 0 auto;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.footer-brand .nav-logo {
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: .9rem;
    line-height: 1.7;
}

.footer h4 {
    font-family: var(--font-display);
    color: var(--white);
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
}

.footer-links li {
    margin-bottom: .6rem;
}

.footer-links a {
    font-size: .9rem;
    transition: all var(--transition);
}

.footer-links a:hover {
    color: var(--gold-light);
    padding-left: 4px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    margin-bottom: .75rem;
    font-size: .9rem;
}

.footer-contact .icon {
    color: var(--gold);
    font-size: 1rem;
    margin-top: 3px;
}

.footer-bottom {
    max-width: var(--container);
    margin: 0 auto;
    padding-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .82rem;
}

.footer-socials {
    display: flex;
    gap: .75rem;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .6);
    font-size: .9rem;
    transition: all var(--transition);
}

.footer-socials a:hover {
    background: var(--gold);
    color: var(--navy-dark);
    transform: translateY(-2px);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, .92);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox img {
    max-width: 85vw;
    max-height: 85vh;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    transform: scale(.9);
    transition: transform var(--transition);
}

.lightbox.active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.lightbox-close:hover {
    background: var(--red);
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all .8s cubic-bezier(.4, 0, .2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--grad-navy);
    color: var(--white);
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition);
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--grad-gold);
    color: var(--navy-dark);
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        display: none;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-btns {
        justify-content: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-pad: 3.5rem 1rem;
    }

    /* Mobile Nav */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--navy-dark);
        flex-direction: column;
        justify-content: center;
        gap: 1.5rem;
        padding: 2rem;
        transition: right var(--transition);
        box-shadow: -8px 0 32px rgba(0, 0, 0, .3);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        font-size: 1.1rem;
    }

    .nav-toggle {
        display: flex;
    }

    .programs-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 220px;
    }

    .gallery-item.wide {
        grid-column: span 1;
    }

    .gallery-item.tall {
        grid-row: span 1;
    }

    .videos-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 240px;
    }

    .about-images {
        grid-template-columns: 1fr;
    }

    .about-img:first-child {
        grid-row: span 1;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 398px) {
    body {
        padding-top: 95px;
    }
}