/* =========================
   CUSTOM PROPERTIES
========================= */
/*
   Edit these values to change the site's appearance site-wide.
   --color-brand    The primary blue used for the navbar, buttons, and accents.
   --color-bg-card  The light gray used for card and info box backgrounds.
   --max-width      The maximum width of the main content area.
*/
:root {
    --color-brand:       #0d4f8b;
    --color-brand-dark:  #0a3d6b;
    --color-brand-hover: #0b3f70;
    --color-bg-card:     #f4f4f4;
    --max-width:         1100px;
}


/* =========================
   RESET + BASE
========================= */
* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: #222;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    margin-top: 90px;
}

.home main {
    margin-top: 0;
}

/* Non-home pages always show a solid navbar since there is no hero to overlap */
body:not(.home) .site-header {
    background: var(--color-brand);
}


/* =========================
   TYPOGRAPHY
========================= */
h1, h2, h3 {
    margin: 0 0 0.5rem;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 4vw, 2.6rem);
}

h2 {
    font-size: clamp(1.5rem, 3vw, 1.9rem);
    position: relative;
}

/* Blue accent bar displayed below every h2 */
h2::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    background: var(--color-brand);
    margin: 0.4rem 0 1.2rem;
    border-radius: 2px;
}

h3 {
    font-size: 1.2rem;
}

p {
    margin: 0 0 1rem;
}


/* =========================
   TEXT LINKS
========================= */
/*
   Animated underline effect on links within body text.
   The underline slides in on hover using a background-image trick.
*/
p a,
.history-text a,
.section a:not(.button),
.info-box a:not(.button),
.info-box a {
    color: var(--color-brand);
    text-decoration: none;
    font-weight: 500;
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-size: 0% 2px;
    background-position: 0 100%;
    transition: background-size 0.25s ease, color 0.2s ease;
}

@media (hover: hover) {
    p a:hover,
    .history-text a:hover,
    .section a:not(.button):hover,
    .info-box a:hover {
        color: #08365f;
        background-size: 100% 2px;
    }
}

p a:active,
.history-text a:active,
.section a:not(.button):active,
.info-box a:active {
    opacity: 0.7;
}


/* =========================
   NAVBAR
========================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: background 0.4s ease;
}

/* Becomes solid when the user scrolls past the home page hero */
.nav-solid .site-header {
    background: var(--color-brand);
}

.nav {
    display: flex;
    align-items: center;
    padding: 0.75rem 2rem;
}

.nav-logo img {
    height: 72px;
    display: block;
}

/* Logo is hidden on the home page until the user scrolls down */
.nav-logo {
    opacity: 1;
    transition: opacity 0.4s ease;
}

.home .nav-logo {
    opacity: 0;
    pointer-events: none;
}

.home.scrolled .nav-logo {
    opacity: 1;
    pointer-events: auto;
}

/* Mobile: vertical dropdown, hidden until the hamburger button is pressed */
.nav-links {
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--color-brand);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    padding: 0;
    margin: 0;
}

.nav-links.active {
    max-height: 100vh;
    padding: 0;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Underline indicates the current page */
.nav-links a.active {
    border-bottom: 2px solid white;
    padding-bottom: 2px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: 3rem;
}

/* Social icon links — hidden on mobile, shown on desktop */
.socials {
    display: none;
    gap: 1rem;
}

.socials a {
    display: flex;
    align-items: center;
}

.icon {
    width: 32px;
    height: 32px;
    fill: white;
    transition: transform 0.2s ease;
}

@media (hover: hover) {
    .icon:hover {
        transform: scale(1.1);
    }
}

/* Hamburger button — visible on mobile only */
.nav-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0.5rem 1rem;
}


/* =========================
   HERO (HOME PAGE)
========================= */
.hero {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 75vh;
    overflow: hidden;
    margin-bottom: 2rem;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.45);
    color: white;
    text-align: center;
    padding: 1rem;
    gap: 0.25rem;
    overflow: hidden;
}

.hero-logo {
    max-width: 240px;
    width: 70%;
    margin-bottom: 1rem;
}

.hero-overlay h1 {
    font-size: 1.8rem;
    max-width: 90%;
}

.hero-sub {
    margin-top: 0.5rem;
    font-size: 1rem;
    max-width: 600px;
}

@media (min-width: 1024px) {
    /* Push overlay content below the fixed nav so the logo never hides behind it.
       The video still fills the full hero; only the text/logo zone shifts down. */
    .hero-overlay {
        padding-top: 90px;
    }

    .hero-overlay h1 {
        font-size: clamp(1.4rem, 2.2vw, 2.5rem);
    }

    .hero-logo {
        /* width: auto + max-height lets the square logo scale down
           proportionally on short viewports (Windows/zoom) while
           staying at the full 420px on macOS where 55vh >> 420px */
        width: auto;
        max-width: 420px;
        max-height: 45vh;
    }
}


/* =========================
   PAGE HERO (INNER PAGES)
========================= */
/* Banner image with page title overlay — used on About, Program, etc. */
.page-hero {
    position: relative;
    width: 100%;
    height: 45vh;
    min-height: 260px;
    max-height: 420px;
    overflow: hidden;
    margin-bottom: 2rem;
}

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

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
}

.page-hero-overlay h1 {
    color: white;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    max-width: 90%;
}


/* =========================
   SECTIONS
========================= */
/* Default content wrapper — centers and constrains all page sections */
.section {
    padding: 2.5rem 1.25rem 1rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.mission {
    max-width: 560px;
    margin: 0 auto;
    padding-bottom: 2rem;
}

.mission::before {
    content: "\2605";
    display: block;
    text-align: center;
    font-size: 2.5rem;
    line-height: 1;
    color: #ccc;
    margin-bottom: 0.5rem;
}

.mission p {
    font-size: 1.2rem;
    font-style: italic;
    color: #444;
    line-height: 1.8;
    text-align: justify;
    text-align-last: center;
}


/* =========================
   VIDEO EMBED
========================= */
.video-prompt {
    font-size: 0.95rem;
    font-style: italic;
    color: #555;
    margin-bottom: 0.75rem;
}

.video-embed {
    margin-top: 1.5rem;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.video-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}


/* =========================
   HISTORY (ABOUT PAGE)
========================= */
.history-layout {
    display: block;
}

.history-image-wrap {
    margin: 0;
}

.history-image {
    width: 100%;
    border-radius: 10px;
    display: block;
}

.history-image-wrap figcaption {
    font-size: 0.85rem;
    margin-top: 0.4rem;
    color: #555;
    text-align: center;
}

.history-text p {
    margin-bottom: 1rem;
}

@media (max-width: 1023px) {
    .history-image-wrap figcaption {
        font-size: 0.7rem;
        white-space: nowrap;
        padding-bottom: 20px;
    }
}

@media (min-width: 1024px) {
    .history-image-wrap {
        float: right;
        width: 40%;
        margin: 0 0 1rem 1.5rem;
    }

    .history-image-wrap figcaption {
        text-align: center;
    }
}


/* =========================
   BLOCKQUOTE (ABOUT PAGE)
========================= */
.history-text blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--color-brand);
    background: #f9fafc;
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    line-height: 1.7;
}

.history-text blockquote p {
    margin-bottom: 0.8rem;
}

/* The last paragraph in a blockquote is treated as the attribution line */
.history-text blockquote p:last-child {
    font-style: normal;
    font-weight: 600;
    text-align: right;
    margin-top: 1rem;
    color: #444;
}


/* =========================
   CARDS (HOME PAGE)
========================= */
.quick-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.card {
    display: flex;
    flex-direction: column;
    background: var(--color-bg-card);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: left;
    border-top: 4px solid var(--color-brand);
    overflow: hidden;
}

.card .button {
    margin-top: auto;
    align-self: flex-start;
}

.card-title {
    font-size: 1.5rem;
}

.card-title::after {
    margin-bottom: 0.75rem;
}

.card-image {
    aspect-ratio: 3 / 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    margin-bottom: 1rem;
}


/* =========================
   BUTTONS
========================= */
.button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.6rem 1.2rem;
    background: var(--color-brand);
    color: white !important;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

@media (hover: hover) {
    .button:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
        background: var(--color-brand-hover);
    }
}

.button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}


/* =========================
   INFO BOX
========================= */
/* Highlighted content box — used on the About and Get Involved pages */
.info-box {
    background: var(--color-bg-card);
    padding: 1.5rem;
    border-radius: 10px;
}

.info-box ul {
    margin: 0;
    padding-left: 1.2rem;
}

.info-box li {
    margin-bottom: 0.6rem;
}

.info-box h2 {
    margin-top: 0;
}


/* =========================
   DONATE PAGE
========================= */
/*
   Two-column layout: text on the left, photo on the right.
   Stacks to a single column on mobile, with the photo below the text.
*/
.donate-layout {
    display: flex;
    flex-direction: column;
}

.donate-text {
    order: 1;
}

.donate-image-wrap {
    order: 2;
    margin: 1.5rem 0;
}

.donate-image {
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
}

@media (min-width: 1024px) {
    .donate-layout {
        flex-direction: row;
        align-items: center;
        gap: 2rem;
    }

    .donate-text {
        flex: 1;
    }

    .donate-image-wrap {
        width: 26%;
        max-width: 300px;
        margin: 0;
        flex-shrink: 0;
    }
}

/* Centered donation options box */
.donate-center {
    display: flex;
    justify-content: center;
}

.donate-box {
    width: 100%;
    max-width: 650px;
}


/* =========================
   VENMO BUTTON
========================= */
.venmo-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem 1.2rem;
    background: #008cff;
    color: white !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.venmo-icon {
    height: 1.4em;
    width: auto;
    flex-shrink: 0;
    fill: white;
}

@media (hover: hover) {
    .venmo-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
        background: #0074d4;
    }
}

.venmo-button:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}


/* =========================
   GET INVOLVED PAGE
========================= */
/* Italic subheading used beneath section headings */
.subheading {
    font-size: 1.1rem;
    font-weight: 600;
    font-style: italic;
    color: #444;
    margin-top: 0.25rem;
    margin-bottom: 1rem;
}

/* Two-column grid: volunteers on the left, skaters on the right */
.get-involved-grid {
    display: block;
}

.get-col {
    padding-bottom: 2rem;
}

@media (min-width: 1024px) {
    .get-involved-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
        align-items: start;
    }

    .get-col {
        margin-bottom: 0;
    }
}


/* =========================
   FOOTER
========================= */
.site-footer {
    background: var(--color-brand);
    color: white;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
}

.footer-top {
    padding: 1.5rem 1.25rem;
    margin-top: 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: auto auto auto auto;
    column-gap: 1.75rem;
    align-items: start;
}

.footer-logo {
    margin-top: -10px;
    padding-left: 2.25rem;
}

.footer-logo img {
    width: 140px;
}

.footer-col {
    font-size: 0.95rem;
    max-width: 200px;
}

.footer-col p {
    margin: 0;
    line-height: 1.5;
}

.footer-col p + p {
    margin-top: 0.25rem;
}

.footer-heading {
    font-weight: 600;
    margin-bottom: 0.4rem;
}

/* Animated underline on footer text links */
.footer-col a {
    color: white;
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-size: 0% 2px;
    background-position: 0 100%;
    transition: background-size 0.25s ease, color 0.2s ease;
}

.footer-col a:hover {
    color: #d6e9ff;
    background-size: 100% 2px;
}

/* Logo and social icon links do not use the underline animation */
.footer-logo a,
.footer-socials a {
    background-image: none !important;
}

.footer-socials {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.footer-bottom {
    background: var(--color-brand-dark);
    padding: 1.25rem;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 40px;
}

.footer-bottom-inner > * {
    display: flex;
    align-items: center;
}

.footer-nav {
    display: flex;
    gap: 1rem;
}

.footer-nav a {
    color: white;
    text-decoration: none;
}

.copyright {
    margin: 0;
    line-height: 1;
}


/* =========================
   DESKTOP  (min-width: 1024px)
========================= */
@media (min-width: 1024px) {

    /* Nav: switch from vertical dropdown to horizontal inline links */
    .nav-links {
        position: static;
        max-height: none;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 2rem;
        background: none;
        padding: 0;
        width: auto;
        margin-left: auto;
    }

    .nav-links a {
        font-size: clamp(0.875rem, 1.1vw, 1.2rem);
        white-space: nowrap;
    }

    .nav-toggle {
        display: none;
    }

    .socials {
        display: flex;
    }

    /* Cards: side-by-side row */
    .quick-links {
        flex-direction: row;
    }

    .quick-links .card {
        flex: 1;
    }

    .footer-bottom-inner {
        flex-direction: row;
    }

    .footer-nav {
        justify-content: flex-end;
    }
}


/* =========================
   MOBILE  (max-width: 1023px)
========================= */
@media (max-width: 1023px) {

    /* Account for the solid navbar height on all pages */
    main,
    .home main {
        margin-top: 72px;
    }

    .site-header {
        background: var(--color-brand) !important;
    }

    .nav a:active,
    .nav button:active {
        opacity: 0.7;
    }

    .nav {
        padding: 0.5rem 1rem;
        height: 5rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .nav-logo {
        display: flex;
        align-items: center;
        height: 70px;
    }

    .nav-logo img {
        height: clamp(40px, 7.5vw, 56px);
        width: auto;
    }

    /* Full-width nav rows separated by dividers */
    .nav-links {
        align-items: stretch;
        gap: 0;
        padding: 0;
    }

    .nav-links.active {
        box-shadow: 0 12px 16px -10px rgba(0, 0, 0, 0.35);
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 64px;
        padding: 0 1rem;
        text-align: center;
    }

    /* Active page: underline only the text, not the full-width row */
    .nav-links a.active {
        border-bottom: none;
    }

    .nav-links a.active span {
        border-bottom: 2px solid white;
        padding-bottom: 2px;
    }

    .nav-right {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-left: auto;
        flex-shrink: 1;
    }

    .socials {
        display: flex;
        gap: 0;
    }

    .socials a {
        width: 34px;
        height: 42px;
        padding: 5px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Hamburger icon — three bars that animate into an X when the menu is open */
    .nav-toggle {
        width: 70px;
        height: 70px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        position: relative;
    }

    .nav-toggle span {
        position: absolute;
        left: 50%;
        top: 50%;
        width: 28px;
        height: 3px;
        background: white;
        border-radius: 2px;
        transform-origin: center;
        transform: translate(-50%, -50%);
        transition: all 0.3s ease;
    }

    .nav-toggle span:nth-child(1) { transform: translate(-50%, -10px); }
    .nav-toggle span:nth-child(2) { transform: translate(-50%, -50%); }
    .nav-toggle span:nth-child(3) { transform: translate(-50%, 8px); }

    .nav-toggle.active span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

    .icon {
        width: 28px;
        height: 28px;
    }

    /* Hero: fixed height on mobile since aspect-ratio would make it too short */
    .hero {
        aspect-ratio: auto;
        height: 50vh;
        max-height: none;
    }

    .hero-overlay {
        padding: 1rem;
        gap: 0.5rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100%;
        overflow: hidden;
    }

    .hero-overlay h1 {
        font-size: clamp(1.5rem, 3.5vw, 1.4rem);
        white-space: normal;
        line-height: 1.2;
    }

    .hero-logo {
        width: clamp(140px, 42vw, 240px);
    }

    .hero-sub {
        font-size: clamp(1.1rem, 3.5vw, 1.1rem);
        max-width: 100%;
        font-style: italic;
    }

    /* Footer: single column, centered */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        row-gap: 1.5rem;
    }

    .footer-logo {
        padding-left: 0;
        margin-top: 0;
    }

    .footer-col {
        max-width: none;
    }

    .footer-socials {
        justify-content: center;
    }

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

    .footer-nav {
        display: none;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-top {
        margin-bottom: 1rem;
    }

    .footer-bottom {
        font-size: 0.8rem;
        transform: translateZ(0);
    }

    .footer-nav a {
        font-size: 0.75rem;
        margin: 0 0.25rem;
    }

    .copyright {
        padding-top: 1rem;
        font-size: 0.75rem;
    }
}


/* =========================
   UPDATE BOX
========================= */
/* Blue announcement banner used on the Program page for season updates */
.update-box {
    background: var(--color-brand);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
}

.update-box h2 {
    display: inline-block;
}

/* Override the h2 accent bar to span the full heading width and use white */
.update-box h2::after {
    width: 100%;
    background: white;
    margin-left: auto;
    margin-right: auto;
}


/* =========================
   SCHEDULE
========================= */
.schedule-time {
    font-weight: 600;
    margin-bottom: 1rem;
}

.schedule-grid {
    display: grid;
    gap: 1rem;
}

.schedule-card {
    background: var(--color-bg-card);
    padding: 1rem;
    border-radius: 8px;
}

.schedule-card ul {
    margin: 0;
    padding-left: 1.2rem;
}

.schedule-card li {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

/* Extra sessions — date on top, time below in muted text */
.schedule-card .extra-sessions-list {
    list-style: none;
    padding-left: 0;
}

.extra-sessions-list li {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 0;
}

.extra-sessions-list li:first-child {
    padding-top: 0;
}

.extra-sessions-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.extra-session-date {
    font-weight: 600;
    font-size: 0.95rem;
}

.extra-session-time {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.1rem;
}

.extra-session-details {
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
    margin-top: 0.1rem;
}

.schedule-card h3 {
    margin-bottom: 0.4rem;
}

.schedule-extras {
    margin-top: 2rem;
}

.schedule-extras h3 {
    text-align: left;
    margin-bottom: 1rem;
}

/*
   Accent card variant: left-aligned with a brand-color top border.
   Uses inline-block so it does not stretch to full width.
*/
.schedule-card-accent {
    border-top: 4px solid var(--color-brand);
    background: #f7f9fc;
    display: inline-block;
    max-width: 100%;
}

.featured-time {
    font-size: 1.2rem;
    font-weight: 700;
    text-align: left;
    margin-bottom: 1.5rem;
}

@media (max-width: 1023px) {
    .featured-time .highlight {
        display: inline-block;
        margin-top: 0.4rem;
    }
}

/* Inline badge used to highlight a specific time or label */
.highlight {
    background: var(--color-brand);
    color: white;
    padding: 0.15rem 0.3rem;
    border-radius: 4px;
}

@media (min-width: 1024px) {
    .schedule-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Shared wrapper for events and fundraiser lists below the schedule */
.schedule-events {
    margin-top: 1.5rem;
}

.schedule-events ul {
    padding-left: 1.2rem;
}


/* =========================
   EVENT CARDS
========================= */
.event-grid {
    display: grid;
    gap: 1rem;
}

.event-card {
    background: var(--color-bg-card);
    padding: 0.9rem 1.1rem;
    border-radius: 8px;
    border-top: 4px solid var(--color-brand);
}

.event-card div {
    display: block;
}

.event-title {
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.event-line {
    font-size: 0.9rem;
}

.event-card a {
    color: var(--color-brand);
    text-decoration: none;
    font-weight: 500;
}

/* Featured event card (e.g. the Ice Show) — inverted brand colors */
.event-card-featured {
    background: var(--color-brand);
    color: white;
    border-top: 4px solid rgba(255, 255, 255, 0.7) !important;
}

.event-card-featured a {
    color: #e6f2ff !important;
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-size: 0% 2px;
    background-position: 0 100%;
    transition: background-size 0.25s ease, color 0.2s ease, opacity 0.2s ease;
    position: relative;
}

@media (hover: hover) {
    .event-card-featured a:hover {
        color: #ffffff !important;
        background-size: 100% 2px;
    }
}

.event-card-featured a:active {
    opacity: 0.7;
    top: 1px;
}

@media (min-width: 1024px) {
    .event-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* =========================
   FEATURE BAND (HOME PAGE)
========================= */
/* Full-bleed colored section — no max-width on the outer element */
.feature-band {
    background: #1a6fad;
    color: white;
    padding: 3rem 1.25rem;
    margin-top: 2rem;
}

.feature-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.feature-body {
    margin-bottom: 1rem;
}

.feature-image {
    width: 100%;
    border-radius: 10px;
    display: block;
    margin-bottom: 1.25rem;
}

.feature-cta {
    clear: both;
}

.feature-band h2 {
    color: white;
}

.feature-band h2::after {
    background: rgba(255, 255, 255, 0.6);
}

.feature-band strong {
    color: white;
}

.feature-band a:not(.button) {
    color: #d6ecff;
}

.feature-button {
    background: white !important;
    color: var(--color-brand) !important;
    font-weight: 600;
    margin-top: 1.5rem;
}

@media (hover: hover) {
    .feature-button:hover {
        background: #e8f4ff !important;
    }
}

@media (min-width: 1024px) {
    .feature-image {
        float: right;
        width: 42%;
        margin: 0 0 1rem 2rem;
    }
}


/* =========================
   OUR TEAM (ABOUT PAGE)
========================= */
.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 0.5rem;
}

@media (min-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    /* Row 1: Leadership + Board — two equal halves */
    .team-group:nth-child(1),
    .team-group:nth-child(2) {
        grid-column: span 3;
    }

    /* Row 2: three coach groups — equal thirds */
    .team-group:nth-child(3),
    .team-group:nth-child(4),
    .team-group:nth-child(5) {
        grid-column: span 2;
    }
}


.team-group {
    background: var(--color-bg-card);
    border-radius: 10px;
    border-top: 4px solid var(--color-brand);
    padding: 1.25rem 1.5rem;
}

.team-group h3 {
    margin-bottom: 0.75rem;
    color: var(--color-brand);
}

.team-group ul {
    margin: 0;
    padding-left: 1.2rem;
}

.team-group li {
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

/* =========================
   GALLERY CAROUSEL
========================= */
.gallery-group-title {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.gallery-group-title:first-of-type {
    margin-top: 0;
}
.gallery-carousel {
    position: relative;
    overflow: hidden;
}

.gallery-track {
    display: flex;
    gap: 0.3rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.5rem;
    scroll-behavior: smooth;
    /* Hide the scrollbar across all browsers */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar {
    display: none;
}

/* Mobile: one image at a time, portrait height — full image always visible */
.gallery-item {
    min-width: 100%;
    height: auto;
    aspect-ratio: auto;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-item img {
    aspect-ratio: 2 / 3;
    width: auto;
    max-height: clamp(260px, 58vh, 480px);
    object-fit: contain;
    background: var(--color-bg-card);
    border-radius: 10px;
    cursor: pointer;
    display: block;
}

.gallery-item figcaption {
    font-size: 0.85rem;
    margin-top: 0.4rem;
    color: #555;
}

/* Horizontal gallery (mobile): natural proportions, capped to fit screen */
.gallery-horizontal .gallery-item img {
    aspect-ratio: auto;
    width: 100%;
    height: auto;
    max-height: 33.5vh;
    object-fit: contain;
    background: none;
}

/* Desktop: film strip — consistent height, natural width per image */
@media (min-width: 1024px) {
    .gallery-item {
        min-width: 0;
        flex-shrink: 0;
    }

    .gallery-item img {
        height: clamp(220px, 28vw, 360px);
        width: auto;
        aspect-ratio: auto;
        object-fit: cover;
    }
}

/* Previous / Next scroll buttons */
.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-100%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    border-radius: 6px;
    z-index: 2;
}

.gallery-btn.prev { left: 0; }
.gallery-btn.next { right: 0; }


/* =========================
   LIGHTBOX
========================= */
/* Full-screen overlay that shows an enlarged image when a gallery photo is clicked */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 1rem;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 95%;
    max-height: 75vh;
    border-radius: 10px;
}

.lightbox-caption {
    color: white;
    margin-top: 1rem;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}


/* =========================
   BLOG INDEX
   ========================= */

.blog-intro {
    font-size: 1.05rem;
    color: #555;
    max-width: 640px;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.blog-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-list-item {
    padding: 1.1rem 0;
    border-bottom: 1px solid #e5e5e5;
}

.blog-list-item:first-child {
    padding-top: 0;
}

.blog-list-date {
    font-size: 0.85rem;
    color: #999;
    margin: 0 0 0.2rem;
}

.blog-list-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
}

.blog-list-title a {
    color: var(--color-brand);
    text-decoration: none;
}

.blog-list-title a:hover {
    text-decoration: underline;
}


/* =========================
   BLOG POST
   ========================= */

.blog-post {
    max-width: 720px;
}

.blog-post-back {
    display: inline-block;
    margin-bottom: 1.75rem;
    font-size: 0.9rem;
    color: var(--color-brand);
    text-decoration: none;
}

.blog-post-back:hover {
    text-decoration: underline;
}

.blog-post-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e5e5;
}

.blog-post-header h1 {
    margin-bottom: 0.4rem;
}

.blog-post-meta {
    font-size: 0.9rem;
    color: #999;
    margin: 0;
}

.blog-post-body p {
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.blog-post-body h2 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.blog-post-body h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.blog-post-body a {
    color: var(--color-brand);
}

.blog-post-body ul,
.blog-post-body ol {
    padding-left: 1.4rem;
    margin-bottom: 1.25rem;
}

.blog-post-body li {
    margin-bottom: 0.4rem;
    line-height: 1.7;
}

.blog-post-body blockquote {
    border-left: 4px solid var(--color-brand);
    margin: 1.5rem 0;
    padding: 0.5rem 1rem;
    color: #555;
    font-style: italic;
}

.blog-post-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e5e5e5;
}

.blog-post-nav-prev,
.blog-post-nav-next {
    flex: 1;
}

.blog-post-nav-next {
    text-align: right;
}

.blog-nav-btn {
    display: inline-flex;
    flex-direction: column;
    gap: 0.2rem;
    text-decoration: none;
    color: inherit;
    max-width: 280px;
}

.blog-nav-btn-right {
    align-items: flex-end;
}

.blog-nav-arrow {
    font-size: 1.2rem;
    color: var(--color-brand);
}

.blog-nav-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #999;
}

.blog-nav-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-brand);
    line-height: 1.3;
}

@media (hover: hover) {
    .blog-nav-btn:hover .blog-nav-title {
        text-decoration: underline;
    }
}
