/*ROOT*/

:root {
    --navy-950: #06111f;
    --navy-900: #08182b;
    --navy-800: #0b1f3a;
    --navy-700: #10345a;
    --blue-600: #145da0;
    --blue-500: #1e88e5;
    --blue-400: #3ba7ff;
    --blue-300: #70c4ff;
    --white: #ffffff;
    --white-soft: #eaf4fc;
    --text-dark: #172b40;
    --text-medium: #526b82;
    --text-light: #9db4c8;
    --border-light: rgba(255, 255, 255, 0.12);
    --border-blue: rgba(59, 167, 255, 0.25);
    --shadow-dark: rgba(0, 0, 0, 0.35);
    --max-width: 1180px;
}

/*  RESET*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--white);
    color: var(--text-dark);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    overflow-x: hidden;
}

img,
video {
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}
/*TEXT BRAND*/

.brand-text {

    display: flex;

    align-items: center;

    color: var(--white);

    white-space: nowrap;

    line-height: 1;

}


/*FOUNDATION */

.foundation-section {
    position: relative;
    padding:
        140px
        5%
        150px;
    background:
        #f5f9fd;
    overflow: hidden;
}

.foundation-section::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    top: -250px;
    right: -180px;
    border-radius: 50%;
    background:
        rgba(30, 136, 229, 0.07);
}


.section-intro {
    width: min(
        720px,
        100%
    );
    margin:
        0 auto
        90px;

    text-align: center;

}


.section-label {

    display: inline-block;

    margin-bottom: 18px;

    color:
        var(--blue-600);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 3px;

}


.section-intro h2 {

    margin-bottom: 25px;

    color:
        var(--navy-800);

    font-size:
        clamp(45px, 6vw, 70px);

    line-height: 0.98;

    letter-spacing: -3px;

}


.section-intro h2 span {

    display: block;

    color:
        var(--blue-500);

}


.section-intro p {

    max-width: 650px;

    margin:
        0 auto;

    color:
        var(--text-medium);

    font-size: 16px;

    line-height: 1.9;

}


.values-grid {

    width: min(
        var(--max-width),
        100%
    );

    margin:
        0 auto;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 22px;

}


.value-card {

    position: relative;

    min-height: auto;

    padding: 38px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    background:
        var(--white);

    border:
        1px solid
        #dfeaf3;

    border-radius: 20px;

    overflow: hidden;

    box-shadow:
        0 15px 45px
        rgba(17, 52, 84, 0.07);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;

}


.value-card::before {

    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    top: -80px;
    right: -70px;

    border-radius: 50%;

    background:
        rgba(30, 136, 229, 0.07);

}


.value-card:hover {

    transform:
        translateY(-8px);

    border-color:
        rgba(30, 136, 229, 0.25);

    box-shadow:
        0 25px 60px
        rgba(17, 52, 84, 0.12);

}


.value-number {

    position: relative;

    color:
        #b6cadb;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 3px;

}


.value-content {

    position: relative;

}


.value-label {

    display: block;

    margin-bottom: 15px;

    color:
        var(--blue-500);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 3px;

}


.value-content h3 {

    margin-bottom: 20px;

    color:
        var(--navy-800);

    font-size: 35px;

    line-height: 1;

    letter-spacing: -1.5px;

}


.value-content h3 span {

    display: block;

    color:
        var(--blue-500);

}


.value-content p {

    color:
        var(--text-medium);

    font-size: 14px;

    line-height: 1.8;

}


.core-values {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;

}


.core-values span {

    padding:
        10px
        14px;

    color:
        var(--blue-600);

    background:
        #edf7ff;

    border:
        1px solid
        #d8edfc;

    border-radius: 50px;

    font-size: 12px;

    font-weight: 700;

}



/* =========================================================
   QUOTE
========================================================= */

.quote-section {

    position: relative;

    padding:
        150px
        5%;

    background:
        var(--navy-800);

    overflow: hidden;

}


.quote-section::before {

    content: "";

    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            circle at 85% 30%,
            rgba(59, 167, 255, 0.18),
            transparent 30%
        );

}


.quote-decoration {

    position: absolute;

    width: 420px;
    height: 420px;

    left: -240px;
    bottom: -220px;

    border:
        1px solid
        rgba(112, 196, 255, 0.12);

    border-radius: 50%;

}


.quote-content {

    position: relative;

    width: min(
        900px,
        100%
    );

    margin:
        0 auto;

    text-align: center;

}


.quote-content .section-label {

    color:
        var(--blue-300);

}


.quote-content blockquote {

    color:
        var(--white);

    font-size:
        clamp(32px, 5vw, 58px);

    font-weight: 500;

    line-height: 1.18;

    letter-spacing: -2px;

}


.quote-line {

    width: 55px;
    height: 3px;

    margin:
        35px auto 20px;

    background:
        var(--blue-400);

    border-radius: 5px;

}


.quote-author {

    color:
        #88a7c0;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 3px;

}



/* =========================================================
   MEDIA SECTION
========================================================= */

.media-section {

    position: relative;

    padding:
        140px
        5%
        160px;

    background:
        #061526;

    color:
        var(--white);

    overflow: hidden;

}


.media-background {

    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(30, 136, 229, 0.18),
            transparent 24%
        ),
        radial-gradient(
            circle at 90% 65%,
            rgba(59, 167, 255, 0.10),
            transparent 26%
        );

    pointer-events: none;

}


.media-heading {

    position: relative;

    width: min(
        760px,
        100%
    );

    margin:
        0 auto
        105px;

    text-align: center;

}


.media-heading .section-label {

    color:
        var(--blue-300);

}


.media-heading h2 {

    margin-bottom: 25px;

    color:
        var(--white);

    font-size:
        clamp(48px, 7vw, 78px);

    line-height: 0.95;

    letter-spacing: -4px;

}


.media-heading h2 span {

    display: block;

    color:
        var(--blue-400);

}


.media-heading p {

    max-width: 650px;

    margin:
        0 auto;

    color:
        #9eb7cb;

    font-size: 15px;

    line-height: 1.9;

}



/* =========================================================
   MEDIA STORY
========================================================= */

.media-story {

    position: relative;

    width: min(
        var(--max-width),
        100%
    );

    margin:
        0 auto
        120px;

    display: grid;

    grid-template-columns:
        1.45fr
        0.75fr;

    gap: 70px;

    align-items: center;

}


.media-story.reverse {

    grid-template-columns:
        0.75fr
        1.45fr;

}


.media-story.reverse .media-video {

    order: 2;

}


.media-story.reverse .media-description {

    order: 1;

}



/* =========================================================
   VIDEO
========================================================= */

.media-video {

    position: relative;

    min-height: 430px;

    background:
        #020b16;

    border:
        1px solid
        rgba(112, 196, 255, 0.14);

    border-radius: 20px;

    overflow: hidden;

    box-shadow:
        0 30px 80px
        rgba(0, 0, 0, 0.35);

}


.media-video::after {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            135deg,
            rgba(59, 167, 255, 0.10),
            transparent 40%
        );

    pointer-events: none;

}


.media-video video {

    width: 100%;
    height: 100%;

    min-height: 430px;

    display: block;

    object-fit: cover;

}


.media-number {

    position: absolute;

    left: 25px;
    bottom: 22px;

    color:
        rgba(255, 255, 255, 0.75);

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 3px;

    z-index: 2;

}



/* =========================================================
   MEDIA DESCRIPTION
========================================================= */

.media-description {

    padding:
        20px 5px;

}


.media-label {

    display: inline-block;

    margin-bottom: 20px;

    color:
        var(--blue-400);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 3px;

}


.media-description h3 {

    margin-bottom: 25px;

    color:
        var(--white);

    font-size:
        clamp(40px, 5vw, 64px);

    line-height: 0.95;

    letter-spacing: -3px;

}


.media-description h3 span {

    display: block;

    color:
        var(--blue-400);

}


.media-description p {

    max-width: 430px;

    color:
        #9eb7cb;

    font-size: 15px;

    line-height: 1.9;

}


.media-line {

    width: 55px;
    height: 3px;

    margin:
        30px 0
        18px;

    background:
        var(--blue-500);

    border-radius: 5px;

}


.media-caption {

    color:
        #5f7d95;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 2px;

}



/* =========================================================
   PHOTO FEATURE
========================================================= */

.photo-feature {

    position: relative;

    width: min(
        var(--max-width),
        100%
    );

    margin:
        0 auto;

}


.photo-heading {

    margin-bottom: 35px;

}


.photo-heading .media-label {

    margin-bottom: 12px;

}


.photo-heading h3 {

    color:
        var(--white);

    font-size:
        clamp(40px, 5vw, 60px);

    line-height: 0.95;

    letter-spacing: -3px;

}


.photo-heading h3 span {

    color:
        var(--blue-400);

}

/* =========================================================
   VERTICAL OVERLAPPING PHOTO CAROUSEL
========================================================= */

.photo-feature {
    position: relative;

    width: min(1000px, 100%);

    margin: 0 auto;
}


/* =========================================================
   PHOTO HEADING
========================================================= */

.photo-heading {
    margin-bottom: 45px;

    text-align: center;
}


.photo-heading .media-label {
    margin-bottom: 12px;
}


.photo-heading h3 {
    color: var(--white);

    font-size: clamp(40px, 5vw, 60px);

    line-height: 0.95;

    letter-spacing: -3px;
}


.photo-heading h3 span {
    color: var(--blue-400);
}



/* =========================================================
   PHOTO CAROUSEL
   Slides are all the same size and only move with
   transform + opacity (GPU-accelerated = smooth).
========================================================= */

.photo-carousel {
    --slide-w: 46%;       /* center slide width            */
    --slide-h: 86%;       /* center slide height           */
    --shift: 78%;         /* how far side slides move out  */
    --side-scale: 0.85;
    --side-opacity: 0.48;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);

    position: relative;
    width: 100%;
    max-width: 1000px;
    height: clamp(320px, 56vw, 560px);
    margin: 40px auto;
    overflow: hidden;
    isolation: isolate;
    touch-action: pan-y;              /* vertical scroll OK, horizontal = swipe */
    -webkit-user-select: none;
    user-select: none;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

/* ---------- Slides ---------- */

.carousel-slide {
    --x: 0%;
    --s: 1;

    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--slide-w);
    height: var(--slide-h);
    overflow: hidden;
    border: 1px solid rgba(100, 150, 200, 0.12);
    border-radius: 16px;
    background: #020d19;
    cursor: pointer;

    opacity: 0;
    pointer-events: none;
    transform: translate(calc(-50% + var(--x)), -50%) scale(var(--s));
    transition:
        transform 0.6s var(--ease),
        opacity 0.4s ease,
        border-color 0.4s ease,
        box-shadow 0.4s ease;
    will-change: transform, opacity;
}

.carousel-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    -webkit-user-drag: none;
}

.carousel-slide[data-pos="center"] {
    --x: 0%;
    --s: 1;
    z-index: 3;
    opacity: 1;
    pointer-events: auto;
    cursor: default;
    border-color: #20364b;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.carousel-slide[data-pos="prev"],
.carousel-slide[data-pos="next"] {
    --s: var(--side-scale);
    z-index: 2;
    opacity: var(--side-opacity);
    pointer-events: auto;
}

.carousel-slide[data-pos="prev"] { --x: calc(var(--shift) * -1); }
.carousel-slide[data-pos="next"] { --x: var(--shift); }

.carousel-slide[data-pos="hidden-left"],
.carousel-slide[data-pos="hidden-right"] {
    --s: 0.7;
    z-index: 0;
}

.carousel-slide[data-pos="hidden-left"]  { --x: -100%; }
.carousel-slide[data-pos="hidden-right"] { --x: 100%; }

@media (hover: hover) {
    .carousel-slide[data-pos="prev"]:hover,
    .carousel-slide[data-pos="next"]:hover { opacity: 0.75; }
}

/* ---------- Buttons ---------- */

.carousel-button {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid #34465a;
    border-radius: 50%;
    background: rgba(8, 24, 41, 0.92);
    color: #fff;
    font-size: 21px;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.25s ease, border-color 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}

.carousel-button:hover {
    background: #1689d8;
    border-color: #1689d8;
}

.carousel-prev { left: 8%; }
.carousel-next { right: 8%; }

/* ---------- Dots ---------- */

.carousel-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    z-index: 6;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
    max-width: 85%;
    transform: translateX(-50%);
}

.carousel-dot {
    flex: 0 0 10px;
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.carousel-dot.active {
    background: var(--blue-400, #1689d8);
    transform: scale(1.25);
}

.carousel-button:focus-visible,
.carousel-dot:focus-visible,
.photo-carousel:focus-visible {
    outline: 2px solid var(--blue-400, #1689d8);
    outline-offset: 3px;
}

/* =========================================================
   PHOTO DESCRIPTION
========================================================= */

.photo-description {
    width: min(720px, 100%);
    margin: 15px auto 0;
    padding: 38px 5px 0;
    text-align: center;
}

.photo-description .media-label { display: inline-block; margin-bottom: 12px; }

.photo-description h4 {
    margin: 0 0 15px;
    color: var(--white, #fff);
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -1px;
}

.photo-description p {
    margin: 0;
    color: #8faabe;
    font-size: 15px;
    line-height: 1.8;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {
    .photo-carousel { --slide-w: 54%; --slide-h: 84%; --shift: 74%; }

    /* Phones & tablets: swipe or use the dots instead */
    .carousel-button { display: none; }
}

@media (max-width: 600px) {
    .photo-carousel { --slide-w: 66%; --slide-h: 82%; --shift: 70%; --side-scale: 0.82; }

    .carousel-slide { border-radius: 14px; }

    .carousel-dots { bottom: 4px; gap: 8px; }

    .photo-description { padding: 25px 15px 0; }
    .photo-description h4 { font-size: 27px; letter-spacing: -0.5px; }
    .photo-description p { font-size: 14px; line-height: 1.7; }
}

@media (max-width: 360px) {
    .photo-carousel { --slide-w: 70%; height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
    .carousel-slide,
    .carousel-button,
    .carousel-dot { transition: none; }
}
/* =========================================================
   CLOSING SECTION
========================================================= */

.closing-section {

    position: relative;

    padding:
        150px
        5%;

    background:
        #f5f9fd;

    overflow: hidden;

}


.closing-section::before {

    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    top: -300px;
    right: -150px;

    border-radius: 50%;

    background:
        rgba(30, 136, 229, 0.08);

}


.closing-content {

    position: relative;

    width: min(
        850px,
        100%
    );

    margin:
        0 auto;

    text-align: center;

}


.closing-content h2 {

    margin-bottom: 25px;

    color:
        var(--navy-800);

    font-size:
        clamp(48px, 7vw, 76px);

    line-height: 0.95;

    letter-spacing: -4px;

}


.closing-content h2 span {

    display: block;

    color:
        var(--blue-500);

}


.closing-content p {

    max-width: 600px;

    margin:
        0 auto;

    color:
        var(--text-medium);

    font-size: 16px;

    line-height: 1.8;

}


.closing-actions {

    margin-top: 35px;

    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 12px;

}


.primary-button,
.secondary-button {

    min-width: 170px;

    padding:
        15px
        22px;

    border-radius: 8px;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 0.5px;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;

}


.primary-button {

    background:
        var(--blue-500);

    color:
        var(--white);

    box-shadow:
        0 10px 25px
        rgba(30, 136, 229, 0.22);

}


.primary-button:hover {

    background:
        var(--blue-600);

    transform:
        translateY(-3px);

}


.secondary-button {

    border:
        1px solid
        #cbdbe8;

    background:
        var(--white);

    color:
        var(--navy-800);

}


.secondary-button:hover {

    border-color:
        var(--blue-400);

    color:
        var(--blue-600);

    transform:
        translateY(-3px);

}







/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 950px) {


    .values-grid {

        grid-template-columns:
            1fr;

    }


    .value-card {

        min-height: 320px;

    }


    .media-story,
    .media-story.reverse {

        grid-template-columns:
            1fr;

        gap: 35px;

        margin-bottom: 90px;

    }


    .media-story.reverse .media-video {

        order: 1;

    }


    .media-story.reverse .media-description {

        order: 2;

    }


    .media-description p {

        max-width: 650px;

    }
}



@media (max-width: 650px) {

    .hero-content {

        padding-top: 40px;

    }


    .hero-content h1 {

        font-size:
            clamp(48px, 14vw, 70px);

        letter-spacing: -3px;

    }


    .hero-description {

        font-size: 14px;

    }


    .hero-scroll {

        display: none;

    }


    .foundation-section {

        padding:
            95px
            20px
            110px;

    }


    .section-intro {

        margin-bottom: 65px;

    }


    .section-intro h2 {

        font-size: 44px;

        letter-spacing: -2px;

    }


    .section-intro p {

        font-size: 14px;

    }


    .value-card {

        min-height: 340px;

        padding: 30px;

    }


    .value-content h3 {

        font-size: 32px;

    }


    .quote-section {

        padding:
            105px
            20px;

    }


    .quote-content blockquote {

        font-size: 34px;

    }


    .media-section {

        padding:
            95px
            20px
            110px;

    }


    .media-heading {

        margin-bottom: 70px;

    }


    .media-heading h2 {

        font-size: 45px;

        letter-spacing: -2px;

    }


    .media-heading p {

        font-size: 14px;

    }


    .media-video,
    .media-video video {

        min-height: 240px;

    }


    .media-video {

        border-radius: 14px;

    }


    .media-description {

        padding:
            10px
            0;

    }


    .media-description h3 {

        font-size: 44px;

    }


    .photo-carousel {

        aspect-ratio: 4 / 3;

        border-radius: 14px;

    }


    .photo-heading h3 {

        font-size: 42px;

    }


    .carousel-button {

        width: 40px;
        height: 40px;

        font-size: 15px;

    }


    .carousel-prev {

        left: 12px;

    }


    .carousel-next {

        right: 12px;

    }


    .carousel-dots {

        bottom: 15px;

    }


    .photo-description {

        padding-top: 28px;

    }


    .photo-description h4 {

        font-size: 28px;

    }


    .closing-section {

        padding:
            100px
            20px;

    }


    .closing-content h2 {

        font-size: 45px;

        letter-spacing: -2px;

    }


    .closing-content p {

        font-size: 14px;

    }


    .closing-actions {

        flex-direction: column;

        align-items: stretch;

    }


    .primary-button,
    .secondary-button {

        width: 100%;

    }
}

/* =========================================================
   SCHOOL CLUBS SECTION — NUMBERED ROWS
   Starts from the same dark color as .media-section so the
   two sections blend with no visible edge.
========================================================= */

.school-clubs-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 30px 5% 150px;
    background:
        radial-gradient(
            circle at 92% 70%,
            rgba(59, 167, 255, 0.10),
            transparent 28%
        ),
        radial-gradient(
            circle at 4% 100%,
            rgba(30, 136, 229, 0.12),
            transparent 30%
        ),
        #061526;
    color: var(--white);
}

.clubs-container {
    width: min(var(--max-width), 100%);
    margin: 0 auto;
}

/* ---------- HEADING (same style as the events gallery) ---------- */

.clubs-heading {
    max-width: none;
    margin: 0 0 50px;
    padding-bottom: 35px;
    border-bottom: 1px solid rgba(112, 196, 255, 0.14);
    text-align: left;
}

.clubs-eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--blue-300);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    line-height: 1.8;
}

.clubs-heading h2 {
    margin: 0;
    color: var(--white);
    font-size: clamp(40px, 6vw, 68px);
    font-weight: 700;
    line-height: 0.96;
    letter-spacing: -3px;
    text-wrap: initial;
}

.clubs-heading h2 span {
    display: block;
    color: var(--blue-400);
}

/* ---------- ROWS ---------- */

.clubs-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: none;
    margin: 0;
    counter-reset: club;
}

.club-card {
    position: relative;
    display: grid;
    grid-template-columns: 50px 120px minmax(0, 1fr) auto;
    gap: 6px 32px;
    align-items: center;
    min-width: 0;
    padding: 20px 32px 20px 28px;
    overflow: hidden;
    counter-increment: club;
    background: linear-gradient(160deg, rgba(11, 31, 58, 0.7), rgba(8, 24, 43, 0.9));
    border: 1px solid rgba(112, 196, 255, 0.14);
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.club-card:hover {
    transform: translateY(-5px);
    background: linear-gradient(160deg, rgba(11, 31, 58, 0.7), rgba(8, 24, 43, 0.9));
    border-color: rgba(112, 196, 255, 0.55);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
}

/* automatic 01, 02, 03 */
.club-card::before {
    content: counter(club, decimal-leading-zero);
    grid-column: 1;
    grid-row: 1 / span 2;
    color: #5f7d95;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
}

/* the text wrapper dissolves so its children sit in the row grid */
.club-card-content {
    display: contents;
}

/* ---------- LOGO ---------- */

.club-logo-container {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    min-height: 0;
    padding: 16px;
    background:
        radial-gradient(circle at center, rgba(30, 136, 229, 0.17), transparent 72%),
        rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(112, 196, 255, 0.14);
    border-radius: 18px;
}

.club-logo {
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.25));
    transition: transform 0.3s ease;
}

.club-card:hover .club-logo {
    transform: scale(1.08);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.25));
}

/* ---------- TEXT ---------- */

.club-category {
    grid-column: 3;
    grid-row: 1;
    align-self: end;
    margin: 0;
    color: var(--blue-400);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    line-height: 1.6;
}

.club-card-content h3 {
    grid-column: 3;
    grid-row: 2;
    align-self: start;
    margin: 0;
    color: var(--white);
    font-size: clamp(22px, 2.6vw, 30px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1px;
    overflow-wrap: break-word;
}

/* ---------- FACEBOOK BUTTON ---------- */

.club-facebook-link {
    grid-column: 4;
    grid-row: 1 / span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: auto;
    min-height: 46px;
    margin: 0;
    padding: 12px 22px;
    color: var(--white);
    background: rgba(20, 93, 160, 0.22);
    border: 1px solid rgba(112, 196, 255, 0.3);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition:
        background 0.25s ease,
        border-color 0.25s ease;
}

.club-facebook-link:hover,
.club-card:hover .club-facebook-link {
    color: var(--white);
    background: var(--blue-600);
    border-color: var(--blue-300);
}

.club-link-arrow {
    color: var(--blue-300);
    font-size: 17px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.club-facebook-link:hover .club-link-arrow {
    transform: translate(3px, -3px);
}

.club-facebook-link:focus-visible {
    outline: 2px solid var(--blue-400);
    outline-offset: 3px;
}

/* ---------- BOTTOM MESSAGE ---------- */

.clubs-footer-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 65px;
    text-align: center;
}

.clubs-footer-message p {
    margin: 0;
    color: #9eb7cb;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.clubs-footer-line {
    width: 48px;
    height: 1px;
    flex-shrink: 0;
    background: rgba(112, 196, 255, 0.45);
}

/* =========================================================
   RESPONSIVE
========================================================= */

/* Tablet: logo left, text and button stacked on the right */
@media (max-width: 900px) {

    .school-clubs-section {
        padding-bottom: 110px;
    }

    .clubs-heading {
        margin-bottom: 40px;
        padding-bottom: 28px;
    }

    .club-card {
        grid-template-columns: 100px minmax(0, 1fr);
        gap: 6px 24px;
        padding: 20px;
    }

    /* number moves to the top-right corner */
    .club-card::before {
        position: absolute;
        top: 20px;
        right: 24px;
    }

    .club-logo-container {
        grid-column: 1;
        grid-row: 1 / span 3;
        width: 100px;
        height: 100px;
        padding: 14px;
    }

    .club-category {
        grid-column: 2;
        grid-row: 1;
        padding-right: 40px;
    }

    .club-card-content h3 {
        grid-column: 2;
        grid-row: 2;
    }

    .club-facebook-link {
        grid-column: 2;
        grid-row: 3;
        justify-self: start;
        margin-top: 12px;
    }
}

/* Phone */
@media (max-width: 650px) {

    .school-clubs-section {
        padding: 20px 18px 85px;
    }

    .clubs-heading {
        margin-bottom: 30px;
        padding-bottom: 24px;
    }

    .clubs-eyebrow {
        font-size: 9px;
        letter-spacing: 2px;
    }

    .clubs-heading h2 {
        font-size: clamp(35px, 9vw, 46px);
        line-height: 1.05;
        letter-spacing: -2px;
    }

    .clubs-grid {
        gap: 12px;
    }

    .club-card {
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 4px 16px;
        padding: 18px;
        border-radius: 16px;
    }

    .club-card::before {
        display: none;
    }

    .club-logo-container {
        grid-column: 1;
        grid-row: 1 / span 2;
        width: 76px;
        height: 76px;
        padding: 10px;
        border-radius: 14px;
    }

    .club-category {
        grid-column: 2;
        grid-row: 1;
        padding-right: 0;
        font-size: 9px;
        letter-spacing: 2px;
    }

    .club-card-content h3 {
        grid-column: 2;
        grid-row: 2;
        font-size: 19px;
        letter-spacing: -0.5px;
    }

    /* button spans the whole card width, easy to tap */
    .club-facebook-link {
        grid-column: 1 / -1;
        grid-row: 3;
        justify-self: stretch;
        justify-content: space-between;
        min-height: 46px;
        margin-top: 14px;
        padding: 12px 18px;
    }

    .clubs-footer-message {
        gap: 12px;
        margin-top: 45px;
    }

    .clubs-footer-line {
        width: 20px;
    }

    .clubs-footer-message p {
        font-size: 13px;
        line-height: 1.7;
    }
}

/* Touch screens: no hover lift */
@media (hover: none) {
    .club-card:hover {
        transform: none;
    }

    .club-card:hover .club-logo {
        transform: none;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .club-card,
    .club-logo,
    .club-facebook-link,
    .club-link-arrow {
        transition: none;
    }
}

/* =========================================================
   HOME.HTML — ADDITIONAL RESPONSIVE FIXES
   Existing class names and desktop styles are preserved.
========================================================= */

/* TABLET AND SMALLER SCREENS */
@media (max-width: 950px) {


    .values-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .value-card {
        min-width: 0;
        padding: 28px;
    }

    .media-story,
    .media-story.reverse {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .media-story.reverse .media-video,
    .media-story.reverse .media-description {
        order: initial;
    }

    .media-video {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .media-video video {
        width: 100%;
        height: 100%;
        min-height: 0;
    }

    .media-description {
        min-width: 0;
    }

    .media-description p {
        max-width: 100%;
    }


}


/* MOBILE PHONES */
@media (max-width: 650px) {

    .foundation-section {
        padding: 80px 18px;
    }

    .section-intro {
        margin-bottom: 42px;
    }

    .section-intro h2 {
        font-size: clamp(34px, 9vw, 44px);
        line-height: 1.05;
        letter-spacing: -1.8px;
    }

    .section-intro p {
        font-size: 14px;
        line-height: 1.8;
    }

    .values-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .value-card {
        min-height: 0;
        gap: 36px;
        padding: 25px;
        border-radius: 16px;
    }

    .value-content h3 {
        font-size: clamp(28px, 8vw, 34px);
    }

    .core-values {
        gap: 7px;
    }

    .core-values span {
        padding: 8px 11px;
        font-size: 11px;
    }

    .quote-section {
        padding: 80px 18px;
    }

    .quote-content blockquote {
        font-size: clamp(27px, 7.5vw, 35px);
        line-height: 1.25;
        letter-spacing: -1px;
    }

    .quote-author {
        line-height: 1.8;
        letter-spacing: 2px;
    }

    .media-section {
        padding: 80px 18px;
    }

    .media-heading {
        margin-bottom: 45px;
    }

    .media-heading h2 {
        font-size: clamp(35px, 9vw, 46px);
        line-height: 1.05;
        letter-spacing: -2px;
    }

    .media-heading p {
        font-size: 14px;
        line-height: 1.8;
    }

    .media-story,
    .media-story.reverse {
        gap: 20px;
        margin-bottom: 65px;
    }

    .media-video {
        min-height: 0 !important;
        height: auto;
        aspect-ratio: 16 / 9;
        border-radius: 12px;
    }

    .media-video video {
        display: block;
        width: 100%;
        height: 100%;
        min-height: 0 !important;
        object-fit: cover;
    }

    .media-number {
        left: 14px;
        bottom: 12px;
        font-size: 9px;
    }

    .media-description {
        padding: 8px 0;
    }

    .media-label {
        font-size: 9px;
        letter-spacing: 2px;
        line-height: 1.8;
    }

    .media-description h3 {
        font-size: clamp(34px, 9vw, 44px);
        line-height: 1.05;
        letter-spacing: -2px;
    }

    .media-description p {
        font-size: 14px;
        line-height: 1.8;
    }

    .photo-heading {
        margin-bottom: 25px;
    }

    .photo-heading h3 {
        font-size: clamp(33px, 8.5vw, 42px);
        line-height: 1.05;
        letter-spacing: -2px;
    }

    /* Keep the existing carousel and JavaScript class names. */
    .photo-carousel {
        width: 100%;
        height: clamp(350px, 105vw, 460px);
        margin: 25px auto;
        aspect-ratio: auto;
        overflow: hidden;
    }

    .photo-carousel .carousel-track {
        width: 100%;
        height: 100%;
    }

    .photo-carousel .carousel-slide {
        max-width: 100%;
        border-radius: 12px;
    }

    .photo-carousel .carousel-slide.center {
        left: 50% !important;
        right: auto !important;
        width: 58% !important;
        height: 78% !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: translate(-50%, -50%) scale(1) !important;
        z-index: 3;
    }

    .photo-carousel .carousel-slide.second {
        left: 0 !important;
        right: auto !important;
        width: 67% !important;
        height: 66% !important;
        transform: translate(0, -50%) scale(0.82) !important;
        z-index: 1;
    }

    .photo-carousel .carousel-slide.third {
        left: auto !important;
        right: 0 !important;
        width: 67% !important;
        height: 66% !important;
        transform: translate(0, -50%) scale(0.82) !important;
        z-index: 1;
    }

    .photo-carousel .carousel-slide.hidden {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none;
    }

    .photo-carousel .carousel-button {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .photo-carousel .carousel-prev {
        left: 4px;
    }

    .photo-carousel .carousel-next {
        right: 4px;
    }

    .photo-carousel .carousel-dots {
        bottom: 10px;
        gap: 8px;
    }

    .photo-carousel .carousel-dot {
        width: 9px;
        height: 9px;
    }

    .photo-description {
        width: 100%;
        padding: 25px 5px 0;
    }

    .photo-description h4 {
        font-size: clamp(24px, 7vw, 29px);
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    .photo-description p {
        font-size: 14px;
        line-height: 1.8;
    }

    .closing-section {
        padding: 80px 18px;
    }

    .closing-content h2 {
        font-size: clamp(35px, 9vw, 46px);
        line-height: 1.05;
        letter-spacing: -2px;
    }

    .closing-content p {
        font-size: 14px;
        line-height: 1.8;
    }

    .closing-actions {
        gap: 10px;
    }

    .primary-button,
    .secondary-button {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 46px;
        padding: 13px 16px;
        line-height: 1.5;
        text-align: center;
    }



    .school-clubs-section {
        padding: 65px 16px;
    }

    .clubs-heading h2 {
        font-size: clamp(30px, 9vw, 42px);
        line-height: 1.12;
        letter-spacing: -1px;
        overflow-wrap: anywhere;
    }

    .clubs-heading p {
        font-size: 14px;
        line-height: 1.8;
    }

    .clubs-grid {
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        gap: 18px;
    }

    .club-logo-container {
        min-height: 190px;
        padding: 24px;
    }

    .club-logo {
        width: 100%;
        max-width: 150px;
        height: 150px;
    }

    .club-card-content {
        padding: 22px;
    }

    .club-card-content h3 {
        font-size: 21px;
        line-height: 1.35;
    }

    .club-card-content p {
        font-size: 14px;
        line-height: 1.8;
    }

    .club-facebook-link {
        min-height: 46px;
        padding: 12px 14px;
        font-size: 13px;
    }

    .clubs-footer-message {
        flex-wrap: wrap;
    }
}


/* EXTRA-SMALL PHONES */
@media (max-width: 380px) {


    .value-card {
        padding: 22px;
    }

    .photo-carousel {
        height: 350px;
    }

    .photo-carousel .carousel-slide.center {
        width: 62% !important;
    }

    .photo-carousel .carousel-slide.second,
    .photo-carousel .carousel-slide.third {
        width: 68% !important;
    }

    .photo-carousel .carousel-button {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .club-card-content {
        padding: 19px;
    }
}

/* =========================================================
   SCHOOL EVENTS GALLERY — MOSAIC LAYOUT
   Text sits on top of the photos. Works with the existing HTML.
========================================================= */

.events-gallery {
    position: relative;
    width: min(var(--max-width), 100%);
    margin: 0 auto 120px;
}

/* ---------- HEADING: title left, paragraph right ---------- */

.events-header {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    column-gap: 60px;
    align-items: end;
    margin-bottom: 55px;
    padding-bottom: 35px;
    border-bottom: 1px solid rgba(112, 196, 255, 0.14);
    text-align: left;
}

.events-eyebrow {
    grid-column: 1 / -1;
    margin-bottom: 18px;
    color: var(--blue-300);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.events-header h2 {
    color: var(--white);
    font-size: clamp(40px, 6vw, 68px);
    line-height: 0.96;
    letter-spacing: -3px;
}

.events-header h2 span {
    display: block;
    color: var(--blue-400);
}

.events-header p {
    max-width: 440px;
    margin: 0 0 6px;
    color: #9eb7cb;
    font-size: 15px;
    line-height: 1.9;
}

/* ---------- MOSAIC GRID ---------- */

.events-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 230px;
    gap: 16px;
    counter-reset: event;
}

.event-card:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 3; }
.event-card:nth-child(2) { grid-column: 3 / 5; grid-row: 1; }
.event-card:nth-child(3) { grid-column: 3;     grid-row: 2; }
.event-card:nth-child(4) { grid-column: 4;     grid-row: 2; }
.event-card:nth-child(5) { grid-column: 1;     grid-row: 3 / 5; }
.event-card:nth-child(6) { grid-column: 2 / 5; grid-row: 3 / 5; }

/* ---------- TILE ---------- */

.event-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    counter-increment: event;
    background: #020b16;
    border: 1px solid rgba(112, 196, 255, 0.14);
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-6px);
    border-color: rgba(112, 196, 255, 0.55);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

/* The photo fills the whole tile */
.event-image-button {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: #020b16;
    cursor: pointer;
    font: inherit;
}

.event-image-button img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.event-card:hover .event-image-button img {
    transform: scale(1.07);
}

/* Dark fade so the text stays readable, plus a soft blue tint */
.event-image-button::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top,
            rgba(2, 11, 22, 0.94) 0%,
            rgba(2, 11, 22, 0.55) 38%,
            transparent 70%),
        linear-gradient(135deg, rgba(59, 167, 255, 0.12), transparent 40%);
    pointer-events: none;
}

/* Automatic 01, 02, 03... in the top-left corner */
.event-image-button::before {
    content: counter(event, decimal-leading-zero);
    position: absolute;
    top: 20px;
    left: 22px;
    z-index: 2;
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
}

.event-view-icon {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    background: rgba(8, 24, 41, 0.75);
    color: var(--white);
    font-size: 17px;
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.event-card:hover .event-view-icon {
    background: var(--blue-400);
    border-color: var(--blue-400);
    color: var(--navy-950);
    transform: rotate(45deg);
}

/* ---------- TEXT ON TOP OF THE PHOTO ---------- */

.event-card-content {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 24px 20px;
    pointer-events: none;           /* clicks pass through to the photo */
}

.event-category {
    display: inline-block;
    margin-bottom: 10px;
    padding: 5px 10px;
    color: var(--blue-300);
    background: rgba(8, 24, 41, 0.7);
    border: 1px solid rgba(112, 196, 255, 0.3);
    border-radius: 50px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
}

.event-card-content h3 {
    margin-bottom: 6px;
    color: var(--white);
    font-size: 20px;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

/* Short description: only shown on the big tiles */
.event-card-content p {
    display: none;
    max-width: 440px;
    margin-bottom: 10px;
    color: #c4d6e6;
    font-size: 14px;
    line-height: 1.7;
}

.event-card:nth-child(1) .event-card-content p,
.event-card:nth-child(2) .event-card-content p,
.event-card:nth-child(6) .event-card-content p {
    display: block;
}

.event-card:nth-child(1) .event-card-content h3,
.event-card:nth-child(6) .event-card-content h3 {
    font-size: 32px;
    letter-spacing: -1.5px;
}

.event-card:nth-child(1) .event-card-content,
.event-card:nth-child(6) .event-card-content {
    padding: 30px 32px 26px;
}

.event-view-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border: 0;
    background: transparent;
    color: var(--blue-300);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    pointer-events: auto;           /* the link stays clickable */
    transition: color 0.25s ease;
}

.event-view-link:hover {
    color: var(--white);
}

.event-view-link span {
    transition: transform 0.2s ease;
}

.event-view-link:hover span {
    transform: translate(3px, -3px);
}

.event-image-button:focus-visible,
.event-view-link:focus-visible,
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
    outline: 2px solid var(--blue-400);
    outline-offset: 3px;
}

/* =========================================================
   LIGHTBOX (event viewer)
========================================================= */

.event-lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px 90px;
    background: rgba(2, 11, 22, 0.94);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.event-lightbox[aria-hidden="false"],
.event-lightbox.active,
.event-lightbox.open,
.event-lightbox.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body:has(.event-lightbox[aria-hidden="false"]),
body:has(.event-lightbox.active),
body:has(.event-lightbox.open),
body:has(.event-lightbox.is-open) {
    overflow: hidden;
}

.lightbox-content {
    display: grid;
    grid-template-columns: 1.45fr 0.75fr;
    gap: 50px;
    align-items: center;
    width: min(1100px, 100%);
    max-height: 100%;
    transform: translateY(16px) scale(0.98);
    transition: transform 0.35s ease;
}

.event-lightbox[aria-hidden="false"] .lightbox-content,
.event-lightbox.active .lightbox-content,
.event-lightbox.open .lightbox-content,
.event-lightbox.is-open .lightbox-content {
    transform: none;
}

.lightbox-image-wrap {
    height: min(68vh, 600px);
    overflow: hidden;
    background: #020b16;
    border: 1px solid rgba(112, 196, 255, 0.14);
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.lightbox-image-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lightbox-details {
    min-width: 0;
}

.lightbox-details h2 {
    margin-bottom: 20px;
    color: var(--white);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1;
    letter-spacing: -2px;
}

.lightbox-details p {
    margin-bottom: 26px;
    color: #9eb7cb;
    font-size: 15px;
    line-height: 1.9;
}

.lightbox-counter {
    display: inline-block;
    padding-top: 18px;
    border-top: 3px solid var(--blue-500);
    color: #5f7d95;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid #34465a;
    border-radius: 50%;
    background: rgba(8, 24, 41, 0.9);
    color: var(--white);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
    background: #1689d8;
    border-color: #1689d8;
}

.lightbox-close {
    top: 22px;
    right: 22px;
    font-size: 28px;
}

.lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev { left: 22px; }
.lightbox-next { right: 22px; }

/* =========================================================
   RESPONSIVE
========================================================= */

/* Tablet: 2-column mosaic */
@media (max-width: 950px) {

    .events-gallery {
        margin-bottom: 90px;
    }

    .events-header {
        grid-template-columns: 1fr;
        row-gap: 18px;
        margin-bottom: 40px;
        padding-bottom: 28px;
    }

    .events-header p {
        max-width: 100%;
        margin: 0;
    }

    .events-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 230px;
        gap: 14px;
    }

    .event-card:nth-child(n) {
        grid-column: auto;
        grid-row: auto;
    }

    .event-card:nth-child(1) {
        grid-column: span 2;
        grid-row: span 2;
    }

    .event-card:nth-child(6) {
        grid-column: span 2;
    }

    /* every tile gets its short description on tablet */
    .event-card-content p {
        display: block;
    }

    .event-card:nth-child(6) .event-card-content h3 {
        font-size: 24px;
    }

    .event-card:nth-child(6) .event-card-content {
        padding: 22px 24px 20px;
    }

    .event-lightbox {
        padding: 80px 24px 100px;
        align-items: flex-start;
        overflow-y: auto;
    }

    .lightbox-content {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        max-height: none;
        margin: auto;
    }

    .lightbox-image-wrap {
        height: auto;
        aspect-ratio: 16 / 10;
        max-height: 50vh;
    }

    .lightbox-nav {
        position: fixed;
        top: auto;
        bottom: 22px;
        transform: none;
    }

    .lightbox-prev { left: calc(50% - 56px); }
    .lightbox-next { right: calc(50% - 56px); }
}

/* Phone: swipeable row of cards */
@media (max-width: 650px) {

    .events-gallery {
        margin-bottom: 65px;
    }

    .events-eyebrow {
        font-size: 9px;
        line-height: 1.8;
        letter-spacing: 2px;
    }

    .events-header h2 {
        font-size: clamp(35px, 9vw, 46px);
        line-height: 1.05;
        letter-spacing: -2px;
    }

    .events-header p {
        font-size: 14px;
        line-height: 1.8;
    }

    .events-grid {
        display: flex;
        gap: 14px;
        margin: 0 -18px;            /* run edge to edge past the section padding */
        padding: 6px 18px 18px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 18px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .events-grid::-webkit-scrollbar {
        display: none;
    }

    .event-card:nth-child(n) {
        flex: 0 0 78%;
        max-width: 340px;
        height: 420px;
        scroll-snap-align: center;
        border-radius: 18px;
    }

    .event-card:nth-child(n) .event-card-content,
    .event-card:nth-child(1) .event-card-content,
    .event-card:nth-child(6) .event-card-content {
        padding: 22px 20px 18px;
    }

    .event-card:nth-child(n) .event-card-content h3 {
        font-size: 24px;
        letter-spacing: -1px;
    }

    .event-card-content p {
        font-size: 14px;
    }

    .event-view-link {
        min-height: 44px;
    }

    .event-lightbox {
        padding: 70px 16px 96px;
    }

    .lightbox-image-wrap {
        border-radius: 14px;
        max-height: 40vh;
    }

    .lightbox-details h2 {
        font-size: clamp(26px, 8vw, 32px);
        letter-spacing: -1px;
        margin-bottom: 14px;
    }

    .lightbox-details p {
        font-size: 14px;
        line-height: 1.8;
        margin-bottom: 20px;
    }

    .lightbox-close {
        top: 14px;
        right: 14px;
        width: 42px;
        height: 42px;
    }

    .lightbox-nav {
        width: 42px;
        height: 42px;
        bottom: 20px;
    }

    .lightbox-prev { left: calc(50% - 52px); }
    .lightbox-next { right: calc(50% - 52px); }
}

/* Touch screens: no hover lift */
@media (hover: none) {
    .event-card:hover {
        transform: none;
    }

    .event-card:hover .event-image-button img {
        transform: none;
    }

    .event-card:hover .event-view-icon {
        transform: none;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .event-card,
    .event-image-button img,
    .event-view-icon,
    .event-view-link,
    .event-view-link span,
    .event-lightbox,
    .lightbox-content,
    .lightbox-close,
    .lightbox-nav {
        transition: none;
    }
}

/* =========================================
   SECTION DIVIDER
========================================= */

.section-divider {
    position: relative;
    width: min(320px, 60%);
    height: 1px;
    margin: 0 auto 120px;
    background: linear-gradient(
        to right,
        transparent,
        var(--blue-400),
        transparent
    );
}

/* small glowing dot in the center */
.section-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--blue-400);
    box-shadow: 0 0 14px rgba(59, 167, 255, 0.8);
    transform: translate(-50%, -50%);
}

@media (max-width: 650px) {
    .section-divider {
        width: 50%;
        margin-bottom: 80px;
    }
}

/* =========================================================
   CLUBS: FORCE BIGGER LOGO ON PHONES
========================================================= */

@media (max-width: 650px) {

    .school-clubs-section .club-card {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 0 !important;
        padding: 16px !important;
    }

    .school-clubs-section .club-logo-container {
        grid-column: 1 !important;
        grid-row: 1 !important;
        width: 100% !important;
        height: 240px !important;
        min-height: 240px !important;
        margin-bottom: 18px !important;
        padding: 8px !important;
    }

    .school-clubs-section .club-logo {
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        max-height: none !important;
        object-fit: contain !important;
    }

    .school-clubs-section .club-category {
        grid-column: 1 !important;
        grid-row: 2 !important;
        margin-bottom: 8px !important;
    }

    .school-clubs-section .club-card-content h3 {
        grid-column: 1 !important;
        grid-row: 3 !important;
    }

    .school-clubs-section .club-facebook-link {
        grid-column: 1 !important;
        grid-row: 4 !important;
        margin-top: 18px !important;
    }
}

/* =========================================
   SCHOOL EVENTS GALLERY
========================================= */

.events-gallery {
    width: 100%;
    padding: 50px 8%;
    background: #06111f;
    color: white;
    box-sizing: border-box;
}

.events-gallery * {
    box-sizing: border-box;
}

/* HEADER */

.events-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid #20344a;
}

.events-header h2 {
    margin: 0;
    font-size: clamp(32px, 5vw, 64px);
}

.events-header p {
    max-width: 450px;
    margin: 0;
    color: #9ccfff;
    line-height: 1.6;
}

/* IMAGE GRID */

.events-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    align-items: start;
}

/* EVENT CARD */

.events-grid .event-card {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid #3ba7ff;
    border-radius: 14px;
    background: #10345a;
}

/* EVENT IMAGE */

.events-grid .event-card img {
    display: block;
    position: static;
    width: 100%;
    height: 260px;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    object-fit: cover;
    object-position: center;
}

/* EVENT DESCRIPTION */

.events-grid .event-card-content {
    display: block;
    position: static;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 20px;
    background: #10345a;
    transform: none;
}

.events-grid .event-card-content h3 {
    margin: 0 0 10px;
    color: white;
    font-size: 24px;
}

.events-grid .event-card-content p {
    margin: 0;
    color: #dce9f7;
    line-height: 1.6;
}

/* TABLET */

@media (max-width: 768px) {
    .events-gallery {
        padding: 35px 5%;
    }

    .events-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .events-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .events-grid .event-card img {
        height: 240px;
    }
}

/* MOBILE */

@media (max-width: 480px) {
    .events-grid .event-card img {
        height: 200px;
    }

    .events-grid .event-card-content {
        padding: 16px;
    }

    .events-grid .event-card-content h3 {
        font-size: 22px;
    }
}