.athletics-page {
    background: #f9f6f1;
    color: #202020;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.athletics-hero {
    position: relative;
    overflow: hidden;
    background: #1e6330;
}

.athletics-hero-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1440 / 320;
    object-fit: cover;
}

.athletics-hero-copy {
    position: absolute;
    top: 12.5%;
    left: 5.55%;
    width: 43%;
    color: #fff;
}

.athletics-hero-copy h1 {
    margin: clamp(24px, 3.2vw, 46px) 0 10px;
    color: #eaba3b;
    font-family: "Noto Serif", Georgia, serif;
    font-size: clamp(24px, 2.78vw, 44px);
    font-weight: 700;
    line-height: 1.2;
}

.athletics-hero-copy p {
    max-width: 490px;
    margin: 0;
    font-size: clamp(11px, 1.12vw, 18px);
    line-height: 1.3;
}

.athletics-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: clamp(8px, .84vw, 13px);
    font-weight: 700;
    text-transform: uppercase;
}

.athletics-breadcrumb a { color: inherit; text-decoration: none; }
.athletics-breadcrumb a:hover { text-decoration: underline; }
.athletics-breadcrumb a:focus-visible { outline: 2px solid #eaba3b; outline-offset: 4px; }

.athletics-programs-intro {
    padding: clamp(32px, 3vw, 48px) 24px clamp(40px, 3.8vw, 60px);
    text-align: center;
}

.athletics-programs-intro h2 {
    margin: 0 0 10px;
    color: #28733a;
    font-family: "Noto Serif", Georgia, serif;
    font-size: clamp(24px, 1.9vw, 30px);
    font-weight: 700;
}

.athletics-programs-intro p {
    margin: 0 auto;
    max-width: 760px;
    font-size: 15px;
    line-height: 1.6;
}

.athletics-programs-showcase {
    position: relative;
    isolation: isolate;
    padding: clamp(32px, 3vw, 48px) 24px;
    background: #103f22 url('/assets/images/athletic_scholar.png') center 42% / cover no-repeat;
}

.athletics-programs-showcase::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(0, 48, 12, .86);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    pointer-events: none;
}

.athletics-slideshow { position: relative; }
.athletics-sports-viewport { overflow: hidden; }
.athletics-sports-track { display: flex; width: max-content; animation: athletics-sports-scroll var(--sports-scroll-duration, 38s) linear infinite; }
.athletics-speed-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; width: fit-content; margin: 24px auto 0; padding: 12px 16px; border: 1px solid #cad8cd; border-radius: 12px; background: #fff; color: #0b4228; }
.athletics-speed-controls label { font-size: 14px; font-weight: 600; }
.athletics-speed-controls input { width: clamp(100px, 16vw, 220px); accent-color: #1f5e2c; }
.athletics-speed-controls button { width: 32px; height: 32px; border: 1px solid #cad8cd; border-radius: 6px; background: #f4f8f4; color: #0b4228; font-weight: 700; }
.athletics-speed-controls button:disabled { opacity: .4; cursor: default; }
.athletics-speed-controls .athletics-motion-toggle { width: auto; padding: 0 12px; }
.athletics-speed-controls output { min-width: 42px; font-size: 14px; font-weight: 600; }
.athletics-speed-controls small { flex-basis: 100%; font-size: 12px; color: #65756a; }
.ve-previewing [data-ve-sports-speed-controls] { display: none; }
.athletics-sports-group { display: flex; flex-shrink: 0; gap: 24px; padding-right: 24px; }
.athletics-slideshow:hover .athletics-sports-track,
.athletics-slideshow:focus-within .athletics-sports-track,
.athletics-slideshow.is-paused .athletics-sports-track { animation-play-state: paused; }
@keyframes athletics-sports-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.athletics-pause { display: block; margin: 0 0 16px auto; padding: 6px 12px; border: 1px solid #ffffff80; border-radius: 20px; background: #0b4228; color: #fff; font-size: 12px; }
.athletics-pause:focus-visible,.athletics-add-sport:focus-visible { outline: 3px solid #eaba3b; outline-offset: 4px; }
.athletics-add-sport { margin-top: 20px; padding: 9px 18px; border: 0; border-radius: 24px; background: #eaba3b; color: #0b4228; font-weight: 600; }
.athletics-add-sport + .athletics-add-sport { margin-left: 8px; }
.ve-previewing [data-ve-sports-background] { display: none; }
html:not(.ve-previewing) [data-ve-sports-preview]:not(.sports-motion-preview) .athletics-sports-track { animation: none; transform: none; }
html:not(.ve-previewing) [data-ve-sports-preview]:not(.sports-motion-preview) .athletics-sports-viewport { overflow-x: auto; padding: 10px 4px; }
html:not(.ve-previewing) [data-ve-sports-preview]:not(.sports-motion-preview) .is-duplicate,
html:not(.ve-previewing) [data-ve-sports-preview]:not(.sports-motion-preview) .is-copy,
html:not(.ve-previewing) [data-ve-sports-preview] .athletics-pause,
.ve-previewing [data-ve-sport-add] { display: none; }

.athletics-sport {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    min-width: 0;
    flex: 0 0 clamp(280px, 30vw, 440px);
    width: clamp(280px, 30vw, 440px);
    min-height: clamp(210px, 17vw, 290px);
    overflow: hidden;
    background: linear-gradient(45deg, #38a34d 0%, #255e32 55%, #1e4d2b 100%);
}

.athletics-sport-image {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 34%;
}
.athletics-sport-image[hidden] { display: none; }
.athletics-sport.athletics-sport--placeholder::after { background: none; }

/* Frame the basketball players from the right side of the existing sports banner. */
.athletics-sport-image[src^="/assets/images/athletics-and-sports-header.png"] {
    width: auto;
    min-width: 100%;
    max-width: none;
    left: auto;
    right: 0;
    object-position: right center;
}

.athletics-sport--beach-volleyball .athletics-sport-image { object-position: 80% 62%; }

.athletics-sport::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 55, 16, .40), rgba(0, 32, 8, .72));
}

.athletics-sport-title {
    margin: 0;
    padding: 32px 12px;
    color: #fff;
    text-align: center;
    font-size: clamp(25px, 2.7vw, 42px);
    font-weight: 800;
    line-height: 1.15;
    text-transform: uppercase;
    text-shadow: 0 2px 12px #0008;
}

.athletics-sport-title span {
    display: block;
    margin-bottom: 6px;
    font-size: .63em;
    font-weight: 400;
    text-transform: none;
}
.athletics-sport-title strong { display: block; font: inherit; }
.athletics-teams { padding: 56px 24px 64px; background: #f9f6f1; text-align: center; }
.athletics-teams h2 { margin: 0; color: #28733a; font: 700 clamp(24px, 1.9vw, 30px)/1.3 "Noto Serif", Georgia, serif; }
.athletics-teams h2::after { content: ""; display: block; width: 40px; height: 3px; margin: 12px auto 0; background: #eaba3b; }
.athletics-teams-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 40px; max-width: 1100px; margin: 32px auto 0; }
.athletics-team { min-width: 0; margin: 0; }
.athletics-team-logo { display: block; width: 100%; height: clamp(240px, 29vw, 450px); object-fit: contain; }
.athletics-team-logo[hidden],.athletics-team-upload[hidden] { display: none; }
.athletics-team figcaption { width: fit-content; max-width: 100%; margin: 12px auto 0; padding: 6px 12px; color: #1f5e2c; font-weight: 600; }
.athletics-team-upload { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; width: 100%; height: clamp(240px, 29vw, 450px); border: 2px dashed #9cb6a2; border-radius: 12px; background: #edf3ed; color: #1f5e2c; }
.athletics-team-upload i { font-size: 42px; }
.ve-previewing [data-ve-team-add],.ve-previewing .athletics-team-upload,.ve-previewing .athletics-team figcaption { display: none; }
.ve-previewing .athletics-team:has(.athletics-team-logo[hidden]),.ve-previewing .athletics-teams:not(:has(.athletics-team-logo:not([hidden]))) { display: none; }
html:not(.ve-previewing) [data-ve-team-image] { cursor: pointer; }
.athletics-highlights { padding: 52px 24px 64px; background: #f9f6f1; scroll-margin-top: 90px; }
.athletics-highlights > h2 { margin: 0 0 32px; text-align: center; color: #28733a; font: 700 clamp(24px, 1.9vw, 30px)/1.3 "Noto Serif", Georgia, serif; }
.athletics-highlights > h2::after { content: ""; display: block; width: 40px; height: 3px; margin: 12px auto 0; background: #eaba3b; }
.athletics-highlights-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; max-width: 1280px; margin: 0 auto; }
.athletics-highlight { position: relative; isolation: isolate; display: flex; align-items: end; min-width: 0; min-height: 240px; aspect-ratio: 16/9; overflow: hidden; border-radius: 6px; background: linear-gradient(135deg,#368b48,#0b4228); color: #fff; text-decoration: none; }
.athletics-highlight > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.athletics-highlight::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg,#0b42280d 10%,#0b422850 40%,#064025 100%); }
.athletics-highlight:hover { color: #fff; }
.athletics-highlight:hover > img { transform: scale(1.04); }
.athletics-highlight:focus-visible { outline: 3px solid #d3a63a; outline-offset: 4px; }
.athletics-highlight-date { position: absolute; top: 14px; left: 16px; display: flex; flex-direction: column; align-items: center; min-width: 50px; padding: 8px 6px; border-radius: 4px; background: #28733ae6; color: #fff; text-transform: uppercase; font-size: 10px; line-height: 1.3; }
.athletics-highlight-date strong { font-size: 25px; line-height: 1.1; }
.athletics-highlight-content { width: 100%; padding: 110px 18px 18px; }
.athletics-highlight-category { font-size: 11px; color: #c7dfcb; }
.athletics-highlight-content h3 { margin: 5px 0 8px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; font: 700 17px/1.35 Inter,"Segoe UI",sans-serif; color: #fff; }
.athletics-highlight-meta { font-size: 11px; color: #d6e5d8; }
.athletics-highlights-empty { margin: 0; text-align: center; color: #65756a; }
.athletics-facilities { --gnc-template: #307056; --gnc-template-text: #1f5e2c; --gnc-gold: #eaba3b; padding: 52px 24px 20px; background: #f9f6f1; text-align: center; }
.athletics-facilities > h2 { margin: 0; color: #28733a; font: 700 clamp(24px,1.9vw,30px)/1.3 "Noto Serif",Georgia,serif; }
.athletics-facilities > h2::after { content: ""; display: block; width: 40px; height: 3px; margin: 12px auto 0; background: #eaba3b; }
.athletics-facilities-carousel { max-width: 1296px; margin-left: auto; margin-right: auto; }
.athletics-facility-slide { margin: 0; }
.athletics-facility-photo[hidden],.athletics-facility-upload[hidden] { display: none; }
.athletics-facility-slide figcaption { margin: 0; }
.athletics-facility-upload { width: 100%; height: 100%; min-height: 120px; border: 2px dashed #9cb6a2; background: #edf3ed; color: #1f5e2c; }
.athletics-facilities-controls { display: contents; }
.athletics-facilities-controls[hidden] { display: none; }
.sports-facility-lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 28px; border: 0; background: rgba(6,32,24,.93); color: #fff; }
.sports-facility-lightbox[open] { display: flex; align-items: center; justify-content: center; gap: 20px; }
.sports-facility-lightbox::backdrop { background: #062018cc; backdrop-filter: blur(8px); }
.sports-facility-lightbox figure { width: min(1000px,80vw); margin: 0; text-align: center; }
.sports-facility-lightbox img { display: block; max-width: 100%; max-height: 80vh; margin: 0 auto; border-radius: 14px; box-shadow: 0 24px 60px #0008; object-fit: contain; }
.sports-facility-lightbox figcaption { margin-top: 14px; font-size: 18px; font-weight: 600; }
.sports-facility-lightbox button { flex-shrink: 0; width: 44px; height: 44px; border: 1px solid #ffffff66; border-radius: 50%; background: #ffffff24; color: #fff; font-size: 28px; line-height: 1; }
.sports-facility-lightbox button[hidden] { display: none; }
.sports-facility-lightbox .sports-facility-lightbox-close { position: absolute; top: 16px; right: 16px; }
.athletics-facilities-dots { flex-wrap: wrap; margin-bottom: 24px; }
.ve-previewing [data-ve-facility-add],.ve-previewing .athletics-facility-upload { display: none; }
.ve-previewing .athletics-facility-slide:has(img[hidden]) { display: none; }
.athletics-facebook { min-height: clamp(320px, 38vw, 600px); padding: 40px 24px 64px; background: #f9f6f1; text-align: center; }
.athletics-facebook-kicker { display: inline-block; color: #b38b19; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.athletics-facebook h2 { margin: 10px 0 14px; color: #28733a; font: 700 clamp(24px, 1.9vw, 30px)/1.3 "Noto Serif", Georgia, serif; }
.athletics-facebook p { max-width: 760px; margin: 0 auto; font-size: 15px; line-height: 1.6; }
.athletics-facebook-box { position: relative; width: 100%; max-width: 500px; margin: 28px auto 0; border-radius: 8px; transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.3s ease; }
.athletics-facebook-box:hover { transform: translateY(-5px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12); }
.athletics-facebook-box iframe { display: block; max-width: 100%; border: 0; margin: auto; }
.dept-fb-link,
.athletics-fb-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px;
    text-align: left;
    background: #fff;
    border: 1px solid var(--gnc-green, #094024);
    border-radius: 8px;
    color: var(--gnc-green, #094024);
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.dept-fb-link:hover,
.athletics-fb-link:hover {
    color: var(--gnc-green, #094024);
    background: #f4f7f4;
}
.dept-fb-link:focus-visible,
.athletics-fb-link:focus-visible {
    outline: 3px solid #eaba3b;
    outline-offset: 4px;
}
.dept-fb-icon {
    flex: 0 0 44px;
    font-size: 36px;
    line-height: 1;
}
.dept-fb-copy {
    min-width: 0;
    overflow-wrap: anywhere;
}
.dept-fb-copy strong {
    display: block;
    font: 700 17px / 1.4 'Noto Serif', Georgia, serif;
    color: inherit;
}
.dept-fb-copy span {
    display: block;
    margin-top: 8px;
    font: 600 14px / 1.5 Inter, Arial, sans-serif;
    text-decoration: underline;
}
.dept-fb-copy span i {
    font-size: 13px;
    margin-left: 2px;
}
@media (max-width: 768px) {
    .dept-fb-link,
    .athletics-fb-link {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 20px 18px;
        gap: 12px;
    }
    .dept-fb-copy {
        text-align: center;
    }
}
.athletics-facebook-edit { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 90px; padding: 20px; border: 2px dashed #28733a; border-radius: 8px; background: #f2f7f2; color: #094024; font-weight: 600; cursor: pointer; }
.athletics-facebook-box :is(iframe, .dept-fb-link, .athletics-fb-link) + .athletics-facebook-edit { position: absolute; inset: 0; min-height: 0; border-radius: inherit; background: rgba(249,246,241,.92); opacity: 0; transition: opacity 0.2s ease; z-index: 2; }
.athletics-facebook-box:hover .athletics-facebook-edit,
.athletics-facebook-edit:focus-visible { opacity: 1; }
html.ve-previewing .athletics-facebook-edit { display: none; }
.athletics-highlights-pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.athletics-highlights-pagination a { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 4px; border: 1px solid #d3e0d5; border-radius: 4px; background: #fff; color: #28733a; text-decoration: none; font-size: 13px; font-weight: 600; }
.athletics-highlights-pagination a[aria-current="page"],.athletics-highlights-pagination a:hover { background: #28733a; border-color: #28733a; color: #fff; }
@media(max-width:991px) { .athletics-highlights-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:575px) { .athletics-highlights-grid { grid-template-columns: 1fr; } }
@media(prefers-reduced-motion:reduce) { .athletics-highlight > img { transition: none; } .athletics-highlight:hover > img { transform: none; } }
@media(max-width:575px) { .athletics-teams-grid { grid-template-columns: 1fr; gap: 32px; } .athletics-team-logo,.athletics-team-upload { height: 300px; } }
html:not(.ve-previewing) [data-ve-sport],html:not(.ve-previewing) [data-ve-sport-image] { cursor: pointer; }

@media (max-width: 767px) {
    .athletics-hero { min-height: 370px; }
    .athletics-hero-image {
        position: absolute;
        right: 0;
        bottom: 0;
        width: auto;
        max-width: none;
        height: 100%;
    }
    .athletics-hero::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, #15572dee, #15572dad 60%, #15572d33);
    }
    .athletics-hero-copy {
        position: relative;
        z-index: 1;
        top: auto;
        left: auto;
        width: auto;
        height: auto;
        max-width: 560px;
        padding: 32px 24px 48px;
        margin: 0;
        overflow: visible;
        clip-path: none;
        white-space: normal;
        background: transparent;
        color: #fff;
    }
    .athletics-breadcrumb { gap: 8px; font-size: 11px; line-height: 1.8; }
    .athletics-hero-copy h1 {
        margin: 38px 0 14px;
        color: #eaba3b;
        font-family: "Noto Serif", Georgia, serif;
        font-size: clamp(30px, 6vw, 40px);
        font-weight: 700;
    }
    .athletics-hero-copy p { max-width: 370px; margin: 0; font-size: 16px; line-height: 1.65; }
    .athletics-sport { min-height: 250px; width: 82vw; flex-basis: 82vw; }
    .athletics-sport-title { font-size: 36px; }
}

@media (prefers-reduced-motion: reduce) {
    .athletics-sports-track { animation: none; width: auto; }
    .athletics-sports-group { flex-wrap: wrap; justify-content: center; width: 100%; padding-right: 0; }
    .athletics-sports-group .is-duplicate,.athletics-sports-group.is-copy,.athletics-pause { display: none; }
    .athletics-sport { flex: 1 1 280px; max-width: 520px; }
}


/* =====================================================================
   RESPONSIVE LAYER (appended)
   Bootstrap breakpoints: xs <576 | sm 576-767 | md 768-991 | lg 992-1199 | xl 1200-1399 | xxl 1400+
   ===================================================================== */

/* "clip" (not "hidden") so nothing scrolls sideways and sticky navbars keep working */
.athletics-page { overflow-x: clip; }
.athletics-page h1,
.athletics-page h2,
.athletics-page h3,
.athletics-page p,
.athletics-page figcaption { overflow-wrap: anywhere; }
.athletics-page img { max-width: 100%; }

/* ---------- Tablet portrait / small laptop (768-991): hero text was too small over the banner,
   so use the same stacked, readable hero as phones ---------- */
@media (min-width: 768px) and (max-width: 991px) {
    .athletics-hero { min-height: 320px; }
    .athletics-hero-image { position: absolute; right: 0; bottom: 0; width: auto; max-width: none; height: 100%; }
    .athletics-hero::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, #15572dee, #15572dad 60%, #15572d33);
    }
    .athletics-hero-copy {
        position: relative;
        z-index: 1;
        top: auto;
        left: auto;
        width: auto;
        max-width: 600px;
        padding: 36px 32px 44px;
    }
    .athletics-breadcrumb { gap: 8px; font-size: 11px; line-height: 1.8; }
    .athletics-hero-copy h1 { margin: 28px 0 12px; font-size: clamp(30px, 4.4vw, 38px); }
    .athletics-hero-copy p { max-width: 460px; font-size: 16px; line-height: 1.6; }

    .athletics-sport { flex-basis: clamp(280px, 42vw, 380px); width: clamp(280px, 42vw, 380px); }
    .athletics-teams-grid { gap: 28px; }
    .athletics-team-logo,
    .athletics-team-upload { height: clamp(220px, 32vw, 320px); }
}

/* ---------- Tablet and below ---------- */
@media (max-width: 991px) {
    .athletics-teams { padding: 48px 20px 56px; }
    .athletics-highlights { padding: 44px 20px 56px; }
    .athletics-facilities { padding: 44px 16px 16px; }
    .athletics-facebook { padding: 36px 20px 56px; }
}

/* ---------- Phones (landscape and portrait) ---------- */
@media (max-width: 767px) {
    .athletics-programs-intro { padding: 32px 20px 36px; }
    .athletics-programs-intro p,
    .athletics-facebook p { font-size: 14.5px; }
    .athletics-programs-showcase { padding: 28px 16px; }
    .athletics-sports-group { gap: 16px; padding-right: 16px; }
    .athletics-speed-controls { width: 100%; max-width: 420px; }
    .athletics-speed-controls input { flex: 1 1 120px; }
    .athletics-highlight { min-height: 220px; }
    .athletics-highlight-content { padding-top: 96px; }
    .athletics-facebook { min-height: 0; }
}

@media (max-width: 575px) {
    .athletics-hero { min-height: 340px; }
    .athletics-hero-image { object-position: 72% center; }
    .athletics-hero-copy { padding: 26px 20px 38px; }
    .athletics-hero-copy h1 { margin: 28px 0 12px; }
    .athletics-hero-copy p { font-size: 15px; }

    .athletics-programs-showcase { padding: 24px 12px; }
    .athletics-sport { width: 86vw; flex-basis: 86vw; min-height: 230px; }
    .athletics-sport-title { font-size: clamp(26px, 8vw, 34px); padding: 28px 12px; }

    .athletics-teams,
    .athletics-highlights { padding-left: 16px; padding-right: 16px; }
    .athletics-team-logo,
    .athletics-team-upload { height: clamp(200px, 62vw, 300px); }

    .athletics-highlights > h2 { margin-bottom: 24px; }
    .athletics-highlights-grid { gap: 16px; }
    .athletics-highlight-content { padding: 88px 16px 16px; }
    .athletics-highlight-content h3 { font-size: 16px; }

    .athletics-facebook { padding: 32px 16px 48px; }
    .athletics-facebook-box { margin-top: 22px; }
    .athletics-highlights-pagination { gap: 6px; margin-top: 24px; }

    /* facility lightbox: photo on top, arrows underneath, close stays in the corner */
    .sports-facility-lightbox { padding: 16px; padding-top: max(16px, env(safe-area-inset-top)); padding-bottom: max(16px, env(safe-area-inset-bottom)); }
    .sports-facility-lightbox[open] { flex-wrap: wrap; align-content: center; gap: 16px; }
    .sports-facility-lightbox figure { order: -1; width: 100%; }
    .sports-facility-lightbox img { max-height: 62vh; }
    .sports-facility-lightbox figcaption { font-size: 16px; }
    .sports-facility-lightbox .sports-facility-lightbox-close { top: max(12px, env(safe-area-inset-top)); right: 12px; }
}

/* very small phones (iPhone SE / Galaxy Fold) */
@media (max-width: 359px) {
    .athletics-hero-copy { padding: 22px 16px 32px; }
    .athletics-hero-copy h1 { font-size: 27px; margin-top: 22px; }
    .athletics-hero-copy p { font-size: 14px; }
    .athletics-breadcrumb { font-size: 10px; gap: 6px; }
    .athletics-sport-title { font-size: 24px; }
    .athletics-speed-controls { padding: 10px 12px; gap: 8px; }
    .athletics-highlight-date { top: 10px; left: 10px; min-width: 44px; }
}

/* short landscape phones: do not let the hero eat the whole screen */
@media (max-height: 500px) and (orientation: landscape) and (max-width: 991px) {
    .athletics-hero { min-height: 0; }
    .athletics-hero-copy { padding-top: 20px; padding-bottom: 24px; }
    .athletics-hero-copy h1 { margin-top: 16px; font-size: clamp(24px, 4.5vw, 32px); }
    .athletics-hero-copy p { font-size: 14px; max-width: 520px; }
    .athletics-sport { min-height: 200px; }
    .sports-facility-lightbox img { max-height: 70vh; }
}

/* ---------- Large desktops / ultra-wide ---------- */
@media (min-width: 1600px) {
    .athletics-teams-grid { max-width: 1280px; }
    .athletics-highlights-grid { max-width: 1440px; }
    .athletics-facilities-carousel { max-width: 1440px; }
    .athletics-programs-intro p,
    .athletics-facebook p { font-size: 16px; }
}
@media (min-width: 2000px) {
    .athletics-hero-image { max-height: 520px; }
}

/* ---------- Touch devices: bigger tap targets, no sticky hover states ---------- */
@media (pointer: coarse) {
    .athletics-pause { min-height: 40px; padding: 8px 16px; }
    .athletics-add-sport { min-height: 44px; }
    .athletics-highlights-pagination a { min-width: 40px; height: 40px; }
    .athletics-speed-controls button { width: 40px; height: 40px; }
    .athletics-speed-controls .athletics-motion-toggle { width: auto; }
}
@media (hover: none) {
    .athletics-highlight:hover > img { transform: none; }
    .athletics-highlights-pagination a:hover:not([aria-current="page"]) { background: #fff; border-color: #d3e0d5; color: #28733a; }
}


/* =====================================================================
   ANIMATION LAYER (appended)
   - Hero entrance, hover micro-interactions, heading underlines, scroll-reveal.
   - .ath-reveal classes are added by JS only, so content is always visible
     without JS and inside the editor preview.
   - All of it is skipped under prefers-reduced-motion: reduce.
   ===================================================================== */

@keyframes ath-fade-up    { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes ath-fade-in    { from { opacity: 0; } to { opacity: 1; } }
@keyframes ath-pop        { from { opacity: 0; transform: scale(.88); } to { opacity: 1; transform: none; } }
@keyframes ath-hero-zoom  { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes ath-date-pop   { 0% { transform: scale(.6) rotate(-8deg); opacity: 0; } 70% { transform: scale(1.08) rotate(2deg); opacity: 1; } 100% { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: no-preference) {

    /* ---------- Hero: slow zoom on the banner, copy rises in one piece at a time ---------- */
    .athletics-hero-image { animation: ath-hero-zoom 2.4s cubic-bezier(.2,.7,.2,1) both; }
    .athletics-breadcrumb { animation: ath-fade-in .6s ease .1s backwards; }
    .athletics-hero-copy h1 { animation: ath-fade-up .75s cubic-bezier(.2,.7,.2,1) .2s backwards; }
    .athletics-hero-copy p { animation: ath-fade-up .75s cubic-bezier(.2,.7,.2,1) .38s backwards; }

    /* ---------- Gold heading underlines draw out from the centre once revealed ---------- */
    .athletics-teams h2::after,
    .athletics-facilities > h2::after,
    .athletics-highlights > h2::after {
        transform-origin: center;
        transition: transform .7s cubic-bezier(.2,.7,.2,1) .25s;
    }
    .ath-reveal:not(.is-visible)::after { transform: scaleX(0); }

    /* ---------- Sport slideshow cards ---------- */
    .athletics-sport-image { transition: transform .7s cubic-bezier(.2,.7,.2,1); }
    .athletics-sport::after { transition: opacity .4s ease; }
    .athletics-sport-title { transition: transform .4s cubic-bezier(.2,.7,.2,1); }
    .athletics-pause,
    .athletics-add-sport,
    .athletics-speed-controls button { transition: background .2s ease, transform .2s ease, box-shadow .2s ease; }
    .athletics-add-sport:hover { transform: translateY(-2px); box-shadow: 0 6px 14px #0b422840; background: #f1c653; }
    .athletics-pause:hover { background: #1f5e2c; transform: translateY(-1px); }

    /* ---------- Team logos ---------- */
    .athletics-team-logo { transition: transform .4s cubic-bezier(.3,1.4,.5,1), filter .3s ease; }

    /* ---------- Highlight cards ---------- */
    .athletics-highlight { transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease; }
    .athletics-highlight > img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
    .athletics-highlight-content h3 { transition: transform .3s ease; }
    .athletics-highlight-date { transition: transform .3s cubic-bezier(.3,1.5,.5,1), background .3s ease; }

    /* ---------- Pagination ---------- */
    .athletics-highlights-pagination a { transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }

    /* ---------- Facebook box ---------- */
    .athletics-facebook-box { transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.3s ease; border-radius: 8px; }

    /* ---------- Hover effects only where a real pointer exists ---------- */
    @media (hover: hover) {
        .athletics-sport:hover .athletics-sport-image { transform: scale(1.08); }
        .athletics-sport:hover::after { opacity: .8; }
        .athletics-sport:hover .athletics-sport-title { transform: translateY(-4px); }

        .athletics-team:hover .athletics-team-logo { transform: scale(1.05) translateY(-4px); filter: drop-shadow(0 12px 16px #0b422833); }

        .athletics-highlight:hover { transform: translateY(-5px); box-shadow: 0 14px 30px #0b422840; }
        .athletics-highlight:hover > img { transform: scale(1.07); }
        .athletics-highlight:hover .athletics-highlight-content h3 { transform: translateY(-2px); }
        .athletics-highlight:hover .athletics-highlight-date { transform: scale(1.06); background: #1f5e2c; }

        .athletics-highlights-pagination a:hover:not([aria-current="page"]) { transform: translateY(-2px); }
        .athletics-facebook-box:hover { transform: translateY(-5px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12); }
    }

    /* ---------- Scroll reveal (classes added by JS) ---------- */
    .ath-reveal:not(.is-visible) { opacity: 0; }
    .ath-reveal.is-visible { animation: ath-fade-up .75s cubic-bezier(.2,.7,.2,1) var(--reveal-delay, 0s) backwards; }
    .ath-reveal[data-reveal="pop"].is-visible  { animation-name: ath-pop; }
    .ath-reveal[data-reveal="fade"].is-visible { animation-name: ath-fade-in; }
    .athletics-highlight.ath-reveal.is-visible .athletics-highlight-date {
        animation: ath-date-pop .6s ease calc(var(--reveal-delay, 0s) + .35s) backwards;
    }
}

/* =====================================================================
   CAMPUS-EVENTS CARD HOVER ANIMATION (appended)
   Same hover behaviour as .campus-recent-card in campus-event-style.css:
   - card lifts with a soft green shadow
   - photo zooms slowly
   - text block floats up
   - date badge pops, tilts and turns gold
   - calendar icon spins slightly
   - card presses down on click
   ===================================================================== */
@keyframes ath-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

@media (prefers-reduced-motion: no-preference) {
    .athletics-highlight { transition: transform .3s cubic-bezier(.22,.61,.36,1), box-shadow .3s ease; }
    .athletics-highlight > img { transition: transform .6s cubic-bezier(.22,.61,.36,1); }
    .athletics-highlight-content { transition: transform .35s cubic-bezier(.22,.61,.36,1); }
    .athletics-highlight-date { transition: transform .3s cubic-bezier(.34,1.56,.64,1), background .2s ease, color .2s ease; }
    .athletics-highlight-meta i { display: inline-block; transition: transform .3s ease; }
    .athletics-highlight:active { transform: translateY(-1px) scale(.99); }
    .athletics-highlights-pagination a { transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
    .athletics-highlights-pagination a:active { transform: scale(.94); }

    @media (hover: hover) {
        .athletics-highlight:hover { transform: translateY(-4px); box-shadow: 0 12px 24px #09402430; }
        .athletics-highlight:hover > img { transform: scale(1.08); }
        .athletics-highlight:hover .athletics-highlight-content { transform: translateY(-5px); }
        .athletics-highlight:hover .athletics-highlight-content h3 { transform: none; }
        .athletics-highlight:hover .athletics-highlight-date { transform: scale(1.08) rotate(-3deg); background: #eaba3b; color: #094024; }
        .athletics-highlight:hover .athletics-highlight-meta i { transform: scale(1.25) rotate(-8deg); }
        .athletics-highlights-pagination a:hover:not([aria-current="page"]) { transform: translateY(-2px); box-shadow: 0 6px 12px rgba(9, 64, 36, .18); }
    }
}

@media (hover: none) {
    .athletics-highlight:hover { transform: none; box-shadow: none; }
    .athletics-highlight:hover .athletics-highlight-content,
    .athletics-highlight:hover .athletics-highlight-meta i { transform: none; }
    .athletics-highlight:hover .athletics-highlight-date { transform: none; background: #28733ae6; color: #fff; }
}


/* ---------- Sharp (square) edges for Competition Highlights, same as campus-events ---------- */
.athletics-highlight,
.athletics-highlight-date,
.athletics-highlights-pagination a {
    border-radius: 0;
}


/* ---------- Pause slideshow button removed (hidden so athletics-sports.js keeps working) ---------- */
.athletics-pause { display: none !important; }