/* Saturday Youth Curling program page */

.youth-page {
    --youth-deep: #2a4a6a;
    --youth-mid: #51789f;
    --youth-accent: #345f8b;
    --youth-ink: #1e2d3d;
    --youth-muted: #5a6b7c;
    --youth-surface: #ffffff;
    --youth-soft: #f4f7fa;
    --youth-radius: 14px;
    --youth-shadow: 0 10px 30px rgba(42, 74, 106, 0.12);
    --youth-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --youth-gutter: 1rem;
    max-width: 1140px;
    margin: 0 auto;
    /* Keep horizontal gutters: shorthand previously zeroed Bootstrap .container padding */
    padding: 0 var(--youth-gutter) 3rem;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.youth-page .carousel {
    margin-bottom: 1.5rem;
    border-radius: var(--youth-radius);
    overflow: hidden;
    box-shadow: var(--youth-shadow);
}

.youth-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--youth-radius);
    background:
        radial-gradient(ellipse 80% 60% at 15% 20%, rgba(255, 255, 255, 0.35), transparent 55%),
        radial-gradient(ellipse 70% 80% at 90% 80%, rgba(52, 95, 139, 0.35), transparent 50%),
        linear-gradient(135deg, #3d6a92 0%, var(--youth-deep) 55%, #1a3348 100%);
    color: #fff;
    padding: 2.75rem 2rem 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--youth-shadow);
}

.youth-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            -12deg,
            transparent,
            transparent 18px,
            rgba(255, 255, 255, 0.03) 18px,
            rgba(255, 255, 255, 0.03) 19px
        );
    pointer-events: none;
}

.youth-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 42rem;
}

.youth-hero__eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 0.75rem;
}

.youth-hero h1 {
    font-family: "Raleway", "Source Sans Pro", sans-serif;
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin: 0 0 0.75rem;
}

.youth-hero__tagline {
    font-size: clamp(1.15rem, 2.4vw, 1.45rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    margin: 0 0 1rem;
    opacity: 0.95;
}

.youth-hero__lead {
    font-size: 1.05rem;
    line-height: 1.65;
    opacity: 0.9;
    margin: 0;
}

.youth-section {
    margin-bottom: 2.5rem;
}

.youth-section__header {
    margin-bottom: 1.15rem;
    padding-bottom: 0.85rem;
    border-bottom: 2px solid rgba(82, 120, 159, 0.18);
}

.youth-section__header h2 {
    font-family: "Raleway", "Source Sans Pro", sans-serif;
    font-size: clamp(1.35rem, 2.4vw, 1.7rem);
    font-weight: 700;
    color: var(--youth-ink);
    margin: 0 0 0.35rem;
    line-height: 1.2;
}

.youth-section__header p {
    margin: 0;
    color: var(--youth-muted);
    line-height: 1.55;
    max-width: 44rem;
}

.youth-prose {
    color: var(--youth-ink);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 46rem;
}

.youth-prose p {
    margin: 0 0 1rem;
}

.youth-prose p:last-child {
    margin-bottom: 0;
}

.youth-callout {
    background: linear-gradient(135deg, #2e7a5b 0%, #245f48 100%);
    color: #fff;
    border-radius: var(--youth-radius);
    padding: 1.75rem 1.5rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--youth-shadow);
}

.youth-callout h2 {
    font-family: "Raleway", "Source Sans Pro", sans-serif;
    font-size: clamp(1.35rem, 2.4vw, 1.7rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.75rem;
}

.youth-callout p {
    margin: 0 0 0.85rem;
    line-height: 1.65;
    opacity: 0.95;
    max-width: 46rem;
}

.youth-callout p:last-child {
    margin-bottom: 0;
}

.youth-callout__note {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 0.98rem;
    opacity: 0.95;
}

.youth-groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem;
}

.youth-group {
    background: var(--youth-surface);
    border: 1px solid rgba(82, 120, 159, 0.18);
    border-radius: var(--youth-radius);
    padding: 1.35rem 1.25rem 1.4rem;
    box-shadow: 0 4px 16px rgba(42, 74, 106, 0.06);
    border-top: 4px solid var(--youth-mid);
}

.youth-group--rockers {
    border-top-color: #3d8a6e;
}

.youth-group--juniors-1 {
    border-top-color: var(--youth-mid);
}

.youth-group--juniors-2 {
    border-top-color: #345f8b;
}

.youth-group h3 {
    font-family: "Raleway", "Source Sans Pro", sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--youth-ink);
    margin: 0 0 0.45rem;
    line-height: 1.25;
}

.youth-group__meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: 0.9rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--youth-accent);
}

.youth-group p {
    margin: 0;
    color: var(--youth-muted);
    line-height: 1.6;
    font-size: 0.98rem;
}

.youth-placement {
    background: var(--youth-soft);
    border: 1px solid rgba(82, 120, 159, 0.16);
    border-radius: var(--youth-radius);
    padding: 1.5rem 1.35rem;
}

.youth-placement p {
    margin: 0 0 1rem;
    color: var(--youth-ink);
    line-height: 1.65;
}

.youth-placement p:last-child {
    margin-bottom: 0;
}

.youth-goals {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
    list-style: none;
    padding: 0;
}

.youth-goals li {
    background: #fff;
    border: 1px solid rgba(82, 120, 159, 0.22);
    color: var(--youth-deep);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
}

.youth-schedule {
    display: grid;
    gap: 0.85rem;
}

.youth-schedule__item {
    display: grid;
    grid-template-columns: minmax(8rem, 12rem) 1fr;
    gap: 1rem;
    align-items: start;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1rem 1.15rem;
    border-left: 4px solid var(--youth-mid);
}

.youth-schedule__item--break {
    border-left-color: #8a9aab;
    background: var(--youth-soft);
}

.youth-schedule__label {
    font-weight: 700;
    color: var(--youth-ink);
    line-height: 1.35;
}

.youth-schedule__label span {
    display: block;
    margin-top: 0.2rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--youth-accent);
}

.youth-schedule__body {
    margin: 0;
    color: var(--youth-muted);
    line-height: 1.6;
}

.youth-list {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--youth-ink);
    line-height: 1.7;
}

.youth-list li + li {
    margin-top: 0.35rem;
}

.youth-safesport {
    background: var(--youth-deep);
    color: #fff;
    border-radius: var(--youth-radius);
    padding: 1.75rem 1.5rem;
    box-shadow: var(--youth-shadow);
}

.youth-safesport h2 {
    font-family: "Raleway", "Source Sans Pro", sans-serif;
    font-size: clamp(1.35rem, 2.4vw, 1.7rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.85rem;
}

.youth-safesport p {
    margin: 0 0 0.85rem;
    line-height: 1.65;
    opacity: 0.92;
    max-width: 46rem;
}

.youth-safesport p:last-of-type {
    margin-bottom: 1.15rem;
}

.youth-safesport__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.youth-safesport__actions .btn {
    border: 0;
}

.youth-register {
    margin-top: 2.5rem;
    background: #fff;
    border: 1px solid rgba(82, 120, 159, 0.18);
    border-radius: var(--youth-radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 16px rgba(42, 74, 106, 0.06);
}

.youth-register h2 {
    font-family: "Raleway", "Source Sans Pro", sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--youth-ink);
    margin: 0 0 0.75rem;
}

.youth-register p {
    margin: 0 auto 1rem;
    max-width: 40rem;
    color: var(--youth-muted);
    line-height: 1.6;
}

.youth-register__note {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--youth-ink);
    line-height: 1.55;
}

@media (max-width: 900px) {
    .youth-page {
        --youth-gutter: 1rem;
    }

    .youth-groups {
        grid-template-columns: 1fr;
    }

    .youth-schedule__item {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .youth-safesport__actions .btn {
        flex: 1 1 auto;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .youth-page {
        --youth-gutter: 1.15rem;
        padding-bottom: 2.25rem;
    }

    .youth-page .carousel {
        margin-bottom: 1.15rem;
        border-radius: 10px;
    }

    .youth-hero,
    .youth-callout,
    .youth-safesport,
    .youth-placement,
    .youth-register {
        padding: 1.35rem 1.1rem;
        border-radius: 10px;
    }

    .youth-group {
        padding: 1.15rem 1.05rem 1.25rem;
        border-radius: 10px;
    }

    .youth-schedule__item {
        padding: 0.9rem 1rem;
    }

    .youth-hero__lead,
    .youth-prose,
    .youth-callout p,
    .youth-safesport p {
        font-size: 1rem;
        line-height: 1.65;
        overflow-wrap: anywhere;
    }

    .youth-safesport__actions {
        flex-direction: column;
    }

    .youth-safesport__actions .btn {
        width: 100%;
    }

    .youth-register .btn {
        display: inline-block;
        width: 100%;
        max-width: 20rem;
    }

    .youth-goals {
        gap: 0.4rem;
    }

    .youth-goals li {
        font-size: 0.88rem;
        padding: 0.35rem 0.7rem;
    }
}
