/* Component styles — one section per block */

/* ── Utility text colors ──────────────────────────────────────────────────── */
.text-accent  { color: var(--color-primary); }
.text-yellow  { color: var(--color-yellow); }
.text-white   { color: var(--color-white); }

/* ── Buttons ──────────────────────────────────────────────────────────────── */

html, body {
    overflow-x: hidden;
}

.btn {
    display: inline-block;
    font-weight: 700;
    text-align: center;
    padding: 1rem 3rem 0.8rem;
    border-radius: 200px;
    border: 2px solid transparent;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
    cursor: pointer;
    letter-spacing: 0.04em;
    font-size: clamp(0.875rem, 0.1vw + 0.875rem, 1rem);
    margin-bottom: 10px;
}

.btn--primary {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}
.btn--primary:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.btn--secondary {
    background: var(--color-secondary);
    color: var(--color-white);
    border-color: var(--color-secondary);
}
.btn--secondary:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.btn--outline {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}
.btn--outline:hover {
    background: var(--color-white);
    color: var(--color-secondary);
}

/* Yellow outline — used on dark/red backgrounds */
.btn--yellow-outline {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-yellow);
}
.btn--yellow-outline:hover {
    background: var(--color-yellow);
    color: var(--color-secondary);
}

/* Accent outline — maroon/red border */
.btn--accent-outline {
    background: transparent;
    color: var(--color-secondary);
    border-color: var(--color-accent);
}
.btn--accent-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    color: var(--color-white);
    text-align: center;
    padding: 5rem var(--padding-x-small);
}

.hero__inner {
    max-width: 860px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.hero__heading {
    color: var(--color-white);
    margin: 0;
}

.hero__subtext {
    font-size: clamp(1rem, 0.2vw + 1rem, 28px);
    line-height: calc(0.9vw + 1rem);
    max-width: 52ch;
    opacity: 0.92;
}

.hero__subtext p { margin: 0; font-weight: 600; }

/* Standard — interior pages */
.hero--standard {
    min-height: 40vh;
}

/* Prominent — full viewport, homepage-style */
.hero--prominent {
    min-height: 100vh;
    padding: 8rem var(--padding-x-small);
}

.hero--prominent .hero__heading {
    font-size: clamp(28px, 3vw + 1rem, 110px);
    line-height: calc(4vw + 1rem);
}

.hero--prominent .hero__subtext {
    font-size: clamp(1rem, 0.2vw + 1rem, 28px);
    line-height: 1.55;
    font-weight: 700;
    opacity: 1;
}

/* Reset heading tags inside the subtext so h5 "YEAR-LONG PROGRAM" stays small */
.hero--prominent .hero__subtext h1,
.hero--prominent .hero__subtext h2,
.hero--prominent .hero__subtext h3,
.hero--prominent .hero__subtext h4,
.hero--prominent .hero__subtext h5,
.hero--prominent .hero__subtext h6 {
    font-size: clamp(0.875rem, 0.1vw + 0.875rem, 1.1rem);
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 0.75rem;
    opacity: 0.85;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero--card {
    align-items: flex-end;
    justify-content: flex-end;
    padding: 60px 0;
    position: relative;
}

@media (max-width: 768px) {
    .hero--card {
        padding: 30px 0;
    }
}

.hero--card .hero__deco {
    position: absolute;
    left: 0;
    bottom: 0;
    top: 0%;
    width: 30%;
    pointer-events: none;
    z-index: 5;
}

@media (max-width: 1300px) {
    .hero--card .hero__deco {
        width: 20%;
        top: auto;
        bottom: 0;
    }
}

@media (max-width: 960px) {
    .hero--card .hero__deco {
        display: none;
    }
}

.hero--card .hero__deco svg {
    display: block;
    width: auto;
    height: 100%;
}

@media (max-width: 1300px) {
   .hero--card .hero__deco svg {
    width: 100%;
    height: auto;
   }
}

.hero--card .hero__inner {
    max-width: none;
    width: 70%;
    background: var(--color-primary);
    border-radius: 15vw 0 0 0;
    padding: 5vw 10vw 5vw 8vw;
    text-align: right;
    align-items: flex-end;
    gap: 1.25rem;
    position: relative;
    z-index: 2;
}

@media (max-width: 960px) {
    .hero--card .hero__inner {
        width: 95%;
        padding: 3vw 7vw 3vw 6vw;
    }
}

.hero--card .hero__heading {
    font-size: clamp(23px, 2.4vw + 1rem, 70px);
    line-height: calc(2.7vw + 1rem);
    text-wrap: balance;
}

.hero--card .hero__subtext {
    font-size: clamp(1rem, 0.2vw + 1rem, 28px);
    line-height: calc(0.9vw + 1rem);
    font-weight: 400;
    max-width: 60ch;
    opacity: 0.92;
}

.hero--card .hero__label {
    font-size: clamp(1rem, 0.1vw + 1rem, 28px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.85;
    margin: 0;
}

.hero--ribbon {
    position: relative;
    align-items: stretch;
    justify-content: flex-start;
    text-align: left;
    background: var(--color-accent);
    padding: 6rem var(--padding-x-small) 8rem;
    overflow: hidden;
    min-height: 50vw;
}

.hero--ribbon .hero__inner {
    align-items: flex-start;

    text-align: left;
    max-width: 600px;
    position: relative;
    z-index: 1;
}

.hero--ribbon .hero__heading {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.05;
    margin-top: 8rem;
}

@media (max-width: 1400px) {
    .hero--ribbon .hero__heading {
        margin-top: 5rem;
    }
}

@media (max-width: 1000px) {
    .hero--ribbon .hero__heading {
        margin-top: 3rem;
    }
}

@media (max-width: 800px) {
    .hero--ribbon .hero__heading {
        margin-top: 2rem;
    }
}

.hero--ribbon .hero__label {
    color: var(--color-yellow);
    font-size: clamp(1.1rem, 1.5vw, 1.5rem);
    font-weight: 700;
    margin: 220px 0 0 0;
    max-width: 300px;
    text-wrap: balance;
}

/* Ribbon spans the full content width: dot at the left margin, arcs and
   circles bleeding off the right and bottom edges. */
.hero--ribbon .hero__deco {
    position: absolute;
    top: 6vw;
    left: var(--padding-x-small);
    width: calc(100% - 2 * var(--padding-x-small));
    max-width: none;
    pointer-events: none;
    z-index: 0;
}

.hero--ribbon .hero__deco svg {
    display: block;
    width: 100%;
    height: auto;
}

.hero--leadership {
    display: block;
    position: relative;
    background: var(--color-white);
    padding: 4rem var(--padding-x-small) 2rem;
}

.hero--leadership .hero__deco {
    width: 85%;
    max-width: 1400px;
    margin: 0 auto;
    pointer-events: none;
}

.hero--leadership .hero__deco svg {
    display: block;
    width: 100%;
    height: auto;
}

.hero--leadership .hero__heading {
    position: absolute;
    top: 3rem;
    right: var(--padding-x-small);
    z-index: 1;
    color: var(--color-secondary);
    text-align: right;
    margin: 0;
}

@media (max-width: 768px) {
    .hero--leadership .hero__deco { width: 100%; }
}

@media (max-width: 768px) {
    .hero--prominent { min-height: 80vh; }
    .hero--card { align-items: flex-end; }
    .hero--card .hero__deco { display: none; }
    .hero--card .hero__inner {
        width: 100%;
        border-radius: 8vw 0 0 0;
        padding: 3rem var(--padding-x-small);
        text-align: center;
        align-items: center;
    }

}

/* Split — SVG left, title+label right, body in red pill */
.hero--split {
    display: flex;
    align-items: stretch;
    padding: 0;
    background: var(--color-white);
    text-align: left;
    min-height: 65vh;
}

.hero--split .hero__graphic {
    flex: 0 0 40%;
    position: relative;

}

.hero--split .hero__graphic svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: auto;
}

.hero--split .hero__inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    max-width: none;
    padding: 0;
    align-items: stretch;
    text-align: left;
}

.hero--split .hero__top {
    padding: 4rem 5rem 2.5rem 3rem;
}

.hero--split .hero__heading {
    color: var(--color-secondary);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.05;
    margin: 0 0 0.75rem;
}

.hero--split .hero__label {
    color: var(--color-accent);
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0;
    opacity: 1;
}

.hero--split .hero__bottom {
    background: var(--color-accent);
    border-radius: 80px 0 0 80px;
    padding: 3rem 5rem 3rem 3rem;
    display: flex;
    align-items: center;
}

.hero--split .hero__subtext {
    color: var(--color-white);
    font-size: 1rem;
    line-height: 1.75;
    opacity: 1;
    max-width: 52ch;
}

.hero--split .hero__subtext p { margin: 0; font-weight: 400; }

@media (max-width: 768px) {
    .hero--split {
        flex-direction: column;
        min-height: auto;
    }

    .hero--split .hero__graphic {
        display: none;
    }

    .hero--split .hero__top {
        padding: 2rem var(--padding-x-small) 1.5rem;
    }

    .hero--split .hero__bottom {
        border-radius: 60px 0 0 0;
        padding: 2rem var(--padding-x-small);
    }
}

/* Applications — white bg, body text left, two-color H1 + arcs right */
.hero--applications {
    background: var(--color-white);
    color: var(--color-black);
    padding: 5rem var(--padding-x-small);
    align-items: stretch;
    justify-content: flex-start;
    text-align: left;
    position: relative;
    overflow: hidden;
    min-height: 0;
}

.hero--applications .hero__inner {
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 6rem;
    flex-direction: row;
}

.hero__applications-text {
    flex: 0 0 38%;
    font-size: clamp(0.9rem, 0.3vw + 0.875rem, 1.05rem);
    line-height: 1.65;
    color: var(--color-black);
}

.hero__applications-text p { margin: 0 0 1.25rem; }
.hero__applications-text p:last-child { margin-bottom: 0; }
.hero__applications-text a { color: var(--color-accent); }

.hero__applications-heading-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero--applications .hero__heading {
    color: var(--color-secondary);
    font-size: clamp(2rem, 3.5vw + 1rem, 5rem);
    line-height: 1.05;
    margin: 0;
}

.hero__heading-accent {
    display: block;
    color: var(--color-primary);
}

.hero__applications-deco svg {
    width: 100%;
    max-width: 500px;
    height: auto;
}

/* Large arc bleeding off the right edge */
.hero__applications-arc {
    display: none;
    position: absolute;
    right: -160px;
    top: 50%;
    transform: translateY(-50%);
    width: 340px;
    height: 340px;
    border-radius: 50%;
    border: 60px solid var(--color-primary);
    pointer-events: none;
}

@media (max-width: 768px) {
    .hero--applications .hero__inner { flex-direction: column; gap: 3rem; }
    .hero__applications-text { flex: none; width: 100%; order: 2}
    .hero__applications-arc { display: none; }
}

/* Origin Story — white bg, H1 above yellow panel */
.hero--origin-story {
    background: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    color: var(--color-black);
    padding: 4rem 0 0;
    position: relative;
    overflow: hidden;
    min-height: 0;
}

.hero--origin-story .hero__heading {
    color: var(--color-secondary);
    padding: 0 var(--padding-x-small) 3rem;
    font-size: clamp(2rem, 3.5vw + 1rem, 5rem);
    line-height: 1.1;
    margin: 0;
}

.hero__origin-card {
    position: relative;
    background: var(--color-yellow);
    border-top-right-radius: 80px;

    width: 63%;
    padding: 6rem 5vw 6rem;
    overflow: visible;
    z-index: 2;
    margin-top: 30px;
}

.hero__origin-card:before {
    width: 100%;
      height: 100%;
      content: '';
      background: var(--color-yellow);
      border-top-right-radius: 80px;

      display: block;
      position: absolute;
      left: 0;
      top: 0;
}

.hero__origin-dot {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-secondary);
    margin-bottom: 2.5rem;
    display: none;
}

.hero__origin-card .hero__subtext {
    max-width: 750px;
    font-size: clamp(0.9rem, 0.4vw + 0.875rem, 1.1rem);
    line-height: 1.6;
    color: var(--color-black);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 80%;
}

.hero__origin-card .hero__subtext p,
.hero__origin-card .hero__subtext h5 {
    margin: 0;
    font-size: inherit;
    font-weight: 400;
}

.hero__origin-deco {
    position: absolute;
    pointer-events: none;
}

.hero__origin-deco--arcs {
    left: auto;
      top: -40px;
      width: 475px;
      right: 0px;
}

.hero__origin-deco--arcs svg { width: 100%; height: auto; }

/* Circles positioned relative to the section */
.hero__origin-deco--circles {
    right: -134px;
    top: -50px;
    width: 270px;
    z-index: -1;
}

.hero__origin-deco--circles svg { width: 100%; height: auto; }

@media (max-width: 768px) {
    .hero--origin-story { overflow: hidden; }
    .hero__origin-card {
        width: 100%;
        border-radius: 0;
        padding: 3rem var(--padding-x-small);
    }
    .hero__origin-deco--arcs { display: none; }
    .hero__origin-deco--circles { display: none; }
}

/* ── Text Section ─────────────────────────────────────────────────────────── */

.text-section {
    padding: 5rem var(--padding-x-small);
}

@media (max-width: 768px) {

.text-section {
    padding: 2rem var(--padding-x-small);
}
}

.text-section__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

@media (max-width: 768px) {

.text-section__inner {

    gap: 1rem
}

}

.text-section__heading {
    margin: 0;
    color: var(--color-secondary);
}

.text-section__columns {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

.text-section__col { flex: 1; }

.text-section--full-width .text-section__col {
    max-width: 780px;
}

.text-section__cta { margin-top: 2rem; }

/* Light text variant */
.text-section--text-light,
.text-section--text-light .text-section__heading,
.text-section--text-light p,
.text-section--text-light li {
    color: var(--color-white);
}

/* Centered — single column */
.text-section--centered .text-section__inner { text-align: center; }
.text-section--centered .text-section__columns { justify-content: center; }
.text-section--centered .text-section__col { max-width: 62ch; }
.text-section--centered .text-section__cta { margin-inline: auto; }


@media (max-width: 960px) {
   .text-section--centered .text-section__col h3 {
    font-weight: normal;
   }
}


/* Stylized Center — same layout as Centered, with its own decoration class */

.text-section--stylized-center {
    position: relative;
}

.text-section--stylized-center .text-section__inner { text-align: center; padding: 0 30px;}
.text-section--stylized-center .text-section__columns { justify-content: center; }
.text-section--stylized-center .text-section__col { max-width: 62ch; }
.text-section--stylized-center .text-section__cta { margin-inline: auto; }

.text-section--stylized-center .text-section__deco {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.text-section--stylized-center .text-section__deco svg {
    display: block;
    width: 100%;
    height: auto;
}

.text-section--stylized-center .text-section__deco--left {
    top: -15px;
    left: 0;
    width: 50%;
    max-width: 600px;
    z-index: 2;
}

@media (max-width: 1200px) {
   .text-section--stylized-center .text-section__deco--left {
    width: 30%;
   }
}

.text-section--stylized-center .text-section__deco--right {
    top: 0;
    right: 5%;
    width: 20%;
    max-width: 164px;
}

@media (max-width: 1200px) {
   .text-section--stylized-center .text-section__deco--right {
    width: 10%;
   }
}

.text-section--stylized-center .text-section__inner {
    position: relative;
    z-index: 1;
}

/* Full-width — no max-width cap, 80/20 split with SVG accent */
.text-section--full-width .text-section__inner {
    max-width: 100%;
    flex-direction: row;
    align-items: center;
    gap: 30px;
}

.text-section--full-width .text-section__text-content {
    flex: 0 0 80%;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

@media (max-width: 960px) {

.text-section--full-width .text-section__text-content {
    gap: 1rem;
}
}

.text-section--full-width .text-section__svg-accent {
    flex: 0 0 20%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-section--full-width .text-section__svg-accent svg {
    width: 100%;
    max-width: 180px;
    height: auto;
}

/* Split layouts */
.text-section--split-left .text-section__columns,
.text-section--split-right .text-section__columns {
    align-items: center;
}

/* Flip column order for split-right */
.text-section--split-right .text-section__col--primary  { order: 2; }
.text-section--split-right .text-section__col--secondary { order: 1; }

@media (max-width: 768px) {
    .text-section__columns { flex-direction: column; gap: 2rem; }
    .text-section--split-right .text-section__col--primary,
    .text-section--split-right .text-section__col--secondary { order: unset; }
    .text-section--full-width .text-section__inner { flex-direction: column; }
    .text-section--full-width .text-section__text-content,
    .text-section--full-width .text-section__svg-accent { flex: unset; width: 100%; }
    .text-section--full-width .text-section__svg-accent svg { max-width: 120px; }
}

.text-section.text-section--standard {
    max-width: 80%;
}

.text-section.text-section--centered {
    max-width: 80%;
    border-bottom-right-radius:200px;
    overflow: hidden;
    position: relative;
}

    .text-section.text-section--centered:after {
        content: ' ';
        width: 300px;
        height: 300px;
        border: 50px solid var( --color-secondary);
        border-radius: 50%;
        display: block;
        position: absolute;
        bottom: -150px;
        right: -150px;
    }

    @media (max-width: 1200px) {
        .text-section.text-section--centered:after {
            width: 200px;
            height: 200px;
            border: 30px solid var( --color-secondary);
            bottom: -100px;
            right: -100px;
        }
    }

     @media (max-width: 960px) {
        .text-section.text-section--centered:after {
            width: 100px;
            height: 100px;
            border: 20px solid var( --color-secondary);
            bottom: -30px;
            right: -30px;
        }
    }
    @media (max-width: 768px) {
        .text-section.text-section--centered:after {
           display: none;
        }
    }

.text-section.text-section--stylized-center {
    max-width: 100%;
    padding: 200px 0;
}

@media (max-width: 960px) {
    .text-section.text-section--stylized-center {
        padding: 200px 0 100px;
    }
}

@media (max-width: 768px) {
    .text-section.text-section--stylized-center {
        padding: 120px 0 60px;
    }
}


    .text-section.text-section--stylized-center:after {
        content: ' ';

    }

/* Color Band — colored pill inset on a peach backdrop, rounded right edge */
.text-section--color-band {
    background: var(--color-peach);
    padding: 4rem 0;
}

.text-section__band {
    background: var(--color-accent);
    margin-right: 8%;
    padding: 4rem var(--padding-x-small);
    border-top-right-radius: 999px;
    border-bottom-right-radius: 999px;
}

.text-section__band-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.text-section__band-inner .text-section__heading {
    color: var(--color-yellow);
    margin: 0 0 1rem;
}

.text-section__band-body {
    max-width: 62ch;
    margin: 0 auto;
    color: var(--color-white);
}

.text-section__band-body p {
    margin: 0;
}

@media (max-width: 768px) {
    .text-section__band {
        margin-right: 4%;
        padding: 3rem 5vw;
        border-top-right-radius: 60px;
        border-bottom-right-radius: 60px;
    }
}

/* Panel Split — colored rounded panel with heading left, free text right */
.text-section--panel-split {
    position: relative;
    padding-bottom: 7rem;
}

@media (max-width: 768px) {
    .text-section--panel-split {
        padding-bottom: 0rem;
    }
}

.text-section__panel-split {
    display: flex;
    align-items: stretch;
    min-height: 420px;
}

@media (max-width: 1500px) {
    .text-section__panel-split {
        min-height: 0;
    }
}

@media (max-width: 1300px) {
    .text-section__panel {
        flex: 0 0 20%;
    }
}

.text-section__panel {
    position: relative;
    flex: 0 0 48%;
    display: flex;
    align-items: center;
    background: var(--color-primary);
    border-top-right-radius: 999px;
    border-bottom-right-radius: 999px;
    padding: 2rem 4rem 2rem 10rem;
}

@media (max-width: 1300px) {
    .text-section__panel {
        flex: 0 0 20%;
    }
}

@media (max-width: 1100px) {
    .text-section__panel {
        padding: 1rem 3rem 1rem 6rem;
    }
}

@media (max-width: 900px) {
    .text-section__panel {
        padding: 0rem 3rem 0rem 6rem;
    }
}

.text-section__panel .text-section__heading {
    position: relative;
    z-index: 1;
    color: var(--color-peach);
    font-size: clamp(1.5rem, 3vw, 3rem);
    line-height: 1.05;
    margin: 0;
}

.text-section__panel-content {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    padding: 7rem var(--padding-x-small) 3rem 4rem;
}

.text-section__panel-body {
    color: var(--color-accent);
    max-width: 46ch;
}

.text-section__panel-body p {
    margin: 0 0 1em;
}

.text-section__panel-body p:last-child {
    margin-bottom: 0;
}

.text-section__deco--panel-top {
    position: absolute;
    top: -10px;
    right: -20px;
    width: 65%;
    max-width: 560px;
    pointer-events: none;
}

@media (max-width: 768px) {
    .text-section__deco--panel-top {
        right: 20px;
    }
}

.text-section__deco--panel-bottom {
    position: absolute;
    left: -10px;
    bottom: -70px;
    width: 40%;
    max-width: 260px;
    pointer-events: none;
    z-index: 2;
}

.text-section__deco--panel-top svg,
.text-section__deco--panel-bottom svg {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .text-section__panel-split { flex-direction: column; }
    .text-section__panel {
        flex: unset;
        border-radius: 0 0 60px 0;
        padding: 2rem 5vw;
    }
    .text-section__panel-content { padding: 5rem 5vw 2rem; }
    .text-section__deco--panel-top { width: 70%; }
    .text-section__deco--panel-bottom { display: none; }
}

/* Lead-in — small arc icon above a left-aligned heading, colored background */
.text-section--lead-in {
    background: var(--color-secondary);
    padding: 5rem var(--padding-x-small);
}

.text-section__lead-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.text-section__lead-icon {
    width: 70px;
    margin-bottom: 1.5rem;
}

.text-section__lead-icon svg {
    display: block;
    width: 100%;
    height: auto;
}

.text-section--lead-in .text-section__heading {
    color: var(--color-white);
    max-width: 16ch;
    margin: 0;
}

/* Corner Panel — colored panel, one large rounded corner, side decoration */
.text-section--corner-panel {
    background: var(--color-secondary);
    padding: 5rem var(--padding-x-small) 6rem;
    position: relative;
}

.text-section--corner-top-right { border-top-right-radius: 220px; }
.text-section--corner-top-left { border-top-left-radius: 220px; }

.text-section__corner-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.text-section__corner-deco {
    flex-shrink: 0;
    width: 130px;
    align-self: flex-start;
    margin-top: -5rem;
    display: none;
}

.text-section__corner-deco svg {
    display: block;
    width: 100%;
    height: auto;
}

.text-section--corner-panel .text-section__heading {
    color: var(--color-peach);
    margin: 0;
}

/* Top-left rounded corner mirrors the layout: content hugs the right side,
   so the deco/heading order flips (deco always comes first in markup). */
.text-section--corner-top-left .text-section__corner-inner {
    flex-direction: row-reverse;
    justify-content: flex-start;
}

.text-section--corner-top-left .text-section__heading {
    text-align: right;
}

@media (max-width: 768px) {
    .text-section--corner-top-right,
    .text-section--corner-top-left {
        border-radius: 0 0 80px 0;
    }
    .text-section__corner-inner,
    .text-section--corner-top-left .text-section__corner-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .text-section--corner-top-left .text-section__heading { text-align: left; }
    .text-section__corner-deco { width: 90px; margin-top: 0; }
}

/* Allies Panel — contained peach box, ring decorations behind/around it */
.text-section--allies-panel {
    position: relative;
    padding: 4rem var(--padding-x-small) 0rem;
}

.text-section__allies-deco {
    pointer-events: none;
    display: none;
}

.text-section__allies-deco svg {
    position: absolute;
    display: block;
    height: auto;
}

.text-section__allies-deco svg:first-child {
    top: -10px;
    left: 560px;
    width: 260px;
    z-index: 0;
}

.text-section__allies-deco-small {
    top: 90px;
    left: 460px;
    width: 130px;
    z-index: 0;
}

.text-section__allies-box {
    position: relative;
    z-index: 1;
    max-width: 620px;
    background: var(--color-peach);
    border-radius: 0 0 200px 0;
    padding: 3rem 3.5rem 3rem 3rem;
}

.text-section__allies-dot {
    position: absolute;
    top: -22px;
    left: 40px;
    width: 44px;
    height: 44px;
    background: var(--color-yellow);
    border-radius: 50%;
}

.text-section--allies-panel .text-section__heading {
    color: var(--color-secondary);
    margin: 0 0 0.75rem;
}

.text-section__allies-subtitle {
    color: var(--color-accent);
    font-weight: 600;
}

.text-section__allies-subtitle p { margin: 0; }

@media (max-width: 768px) {
    .text-section__allies-deco { display: none; }
    .text-section__allies-box { max-width: 100%; border-radius: 0 0 80px 0; }
}

/* Pill Title — inset stadium-shaped color panel, heading only */
.text-section--pill-title {
    position: relative;
    padding: 2rem var(--padding-x-small) 6rem;
}

.text-section__pill {
    position: relative;
    z-index: 1;
    margin-left: 18%;
    margin-right: 6%;
    background: var(--color-yellow);
    border-radius: 999px;
    padding: 3.5rem var(--padding-x-small);
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.text-section--pill-title .text-section__heading {
    color: var(--color-white);
    margin: 0;
}

.text-section__pill-deco {
    position: absolute;
    top: -40px;
    right: 4%;
    width: 34%;
    max-width: 460px;
    z-index: 0;
    pointer-events: none;
    display: none;
}

.text-section__pill-deco svg {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .text-section__pill {
        margin-left: 5%;
        margin-right: 5%;
        border-radius: 60px;
        justify-content: center;
        text-align: center;
    }
    .text-section__pill-deco { display: none; }
}

/* ── Seeking List ─────────────────────────────────────────────────────────── */

.seeking-list {
    padding: 5rem 0;
    overflow: hidden;
    position: relative;
}

.seeking-list:before {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    height: 300px;
    background-color: var(--color-peach);
    width: 100%;
    z-index: -1;
    top: -56px;
}

.seeking-list__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--padding-x-small);
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

.seeking-list__main {
    flex: 0 0 52%;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.seeking-list__header {
    padding: 1.5rem 0;
}

.seeking-list__heading {
    color: var(--color-secondary);
    margin: 0;
}

.seeking-list__items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.seeking-list__item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    border-radius: 28px;
    padding: 2rem 2rem 2rem 1.75rem;
}

.seeking-list__item--yellow { background: var(--color-yellow); }
.seeking-list__item--peach  { background: var(--color-peach); }

.seeking-list__dot {
    flex-shrink: 0;
    display: block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--color-secondary);
    margin-top: 0.3rem;
}

.seeking-list__item-title {
    color: var(--color-secondary);
    font-size: clamp(1rem, 0.8vw + 0.75rem, 1.35rem);
    margin: 0 0 0.75rem;
    font-weight: 700;
}

.seeking-list__item-content p {
    margin: 0;
    line-height: 1.65;
    font-size: clamp(0.875rem, 0.2vw + 0.875rem, 1rem);
}

/* Right decorative column */
.seeking-list__deco {
    flex: 1;
    position: relative;
    min-height: 420px;
}

.seeking-list__deco-svg {
    width: 68%;
    height: auto;
    display: block;
    margin-top: 1rem;
}

.seeking-list__deco-circle {
    position: absolute;
    right: 55%;
    top: 3%;
    width: clamp(90px, 10vw, 100px);
    height: clamp(90px, 10vw, 100px);
    border-radius: 50%;
    background: var(--color-yellow);
}

@media (max-width: 768px) {
    .seeking-list__inner { flex-direction: column; }
    .seeking-list__main { flex: none; width: 100%; }
    .seeking-list__deco { display: none; }
}

/* ── Beliefs Carousel ─────────────────────────────────────────────────────── */

.beliefs-carousel {
    position: relative;
    padding: 9rem 0 5rem;
    overflow: hidden;
    margin-top: -100px;
}

.beliefs-carousel__deco {
    left: -220px;
      position: relative;
      display: flex;
      align-items: center;
      max-width: 70%;
      margin-bottom: -100px;
}

.beliefs-carousel__deco svg {
    width: 100%;
    height: auto;
}

.beliefs-carousel__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--padding-x-small);
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.beliefs-carousel__heading {
    font-size: clamp(0.8rem, 0.3vw + 0.8rem, 1rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--color-secondary);
    margin: 0;
}

.beliefs-carousel__viewport {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.beliefs-carousel__track-wrapper {
    flex: 1;
    overflow: hidden;
}

.beliefs-carousel__track {
    display: flex;
    gap: 3rem;
    transform: translateX(calc(var(--bc-index, 0) * (-33.3333% - 1rem)));
    transition: transform 0.6s ease;
}

.beliefs-carousel__slide {
    flex: 0 0 calc(33.3333% - 2rem);
    min-width: 0;
    box-sizing: border-box;
}

.beliefs-carousel__slide p {
    margin: 0;
    color: var(--color-white);
    font-size: clamp(0.9rem, 0.4vw + 0.875rem, 1.1rem);
    line-height: 1.6;
}

.beliefs-carousel__arrow {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--color-secondary);
    background: transparent;
    color: var(--color-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), color var(--transition);
}

.beliefs-carousel__arrow:hover {
    background: var(--color-secondary);
    color: var(--color-white);
}

.beliefs-carousel__arrow svg {
    width: 20px;
    height: 20px;
}

.beliefs-carousel__tagline {
    font-size: clamp(1rem, 1vw + 0.75rem, 1.5rem);
    font-weight: 700;
    color: var(--color-secondary);
    margin: 0;

}

@media (max-width: 768px) {
    .beliefs-carousel__deco { display: none; }
    .beliefs-carousel__slide { flex: 0 0 100%; }
    .beliefs-carousel__track {
        gap: 0;
        transform: translateX(calc(var(--bc-index, 0) * -100%));
    }
}

/* ── Nav ──────────────────────────────────────────────────────────────────── */

.announcement-bar {
    background: var(--color-secondary);
    color: var(--color-white);
    text-align: center;
    padding: 0.5rem var(--padding-x-small);
    font-weight: 700;
}

.announcement-bar a {
    color: inherit;
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-white);
}

.site-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem var(--padding-x-small);
    margin: 0 auto;
}

.site-nav__logo img,
.site-nav__logo .custom-logo {
    height: auto;
    width: 400px;
    min-width: 400px;
    display: block;
}

@media (max-width: 1200px) {
    .site-nav__logo img,
    .site-nav__logo .custom-logo {
        width: 300px;
        min-width: 300px;
    }
}

@media (max-width: 960px) {
    .site-nav__logo img,
    .site-nav__logo .custom-logo {
        width: 200px;
        min-width: 200px;
    }
}

.site-nav__menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav__menu a {
    font-weight: 700;
    font-size: 18px;
    line-height: 30px;
    color: var(--color-primary);
}

@media (max-width: 960px) {
    .site-nav__menu a {
        font-weight: 700;
        font-size: 16px;
        line-height: 30px;
        color: var(--color-primary);
    }

}

.site-nav__menu a:hover {
    color: var(--color-secondary);
}

.site-nav__end {
    display: flex;
    align-items: center;
    gap: 30px;
}

.site-nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.site-nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-secondary);
    transition: var(--transition);
}

.site-nav__secondary-trigger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    flex-shrink: 0;
}

.site-nav__secondary-trigger span {
    display: block;
    width: 28px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: background var(--transition), transform var(--transition);
}

.site-nav__secondary-trigger:hover span {
    background: var(--color-black);
}

.site-nav__secondary-trigger:hover span:first-child {
    transform: translateX(5px);
}

.site-nav__secondary-trigger:hover span:last-child {
    transform: translateX(-5px);
}

@media (max-width: 768px) {
    .site-nav__toggle { display: none; }
    .site-nav__end { gap: 0; }
    .site-nav__menu { display: none; }
}

/* ── Contact Modal ────────────────────────────────────────────────────────── */

.contact-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: var(--color-white);
}

.contact-modal.is-open {
    display: flex;
}

/* Left column — white background with decorative SVG */
.contact-modal__graphic {
    flex: 0 0 42%;
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 3rem;
}

.contact-modal__graphic svg {
    width: 100%;
    max-width: 480px;
    height: auto;
}

/* Right column — peach background with content */
.contact-modal__content {
    flex: 1;
    background: var(--color-peach);
    border-top-left-radius: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 6rem 4rem 7rem;
}

.contact-modal__heading {
    font-size: clamp(2.25rem, 4vw, 3.25rem);
    font-weight: 800;
    color: var(--color-secondary);
    line-height: 1.1;
    margin: 0 0 1.75rem;
    text-wrap: balance;
}

.contact-modal__list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    color: var(--color-secondary);
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.contact-modal__list a {
    color: inherit;
    text-decoration: none;
}

.contact-modal__list a:hover {
    text-decoration: underline;
}

.contact-modal__follow {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-secondary);
    font-size: 1rem;
    margin-bottom: 2.5rem;
}

.contact-modal__social {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.contact-modal__social a {
    display: flex;
    align-items: center;
    color: var(--color-secondary);
    transition: opacity var(--transition);
}

.contact-modal__social a:hover {
    opacity: 0.7;
}

.contact-modal__social svg {
    width: 1.35rem;
    height: 1.35rem;
    fill: var(--color-secondary);
}

.contact-modal__close {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    align-self: flex-start;
    background: none;
    border: 2px solid var(--color-secondary);
    color: var(--color-secondary);
    border-radius: 2rem;
    padding: 0.45rem 1.25rem;
    font-size: 0.9rem;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.contact-modal__close:hover {
    background: var(--color-secondary);
    color: var(--color-white);
}

/* Floating trigger button */
.contact-modal__trigger {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 50;
    background: var(--color-secondary);
    color: var(--color-white);
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 2rem;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: var(--font-body);
    transition: background var(--transition);
}

@media (max-width: 768px) {
   .contact-modal__trigger {
        bottom: 1rem;
    }
}

.contact-modal__trigger:hover { background: var(--color-primary); }

/* Mobile — stack columns vertically */
@media (max-width: 768px) {
    .contact-modal.is-open {
        flex-direction: column;
        overflow-y: auto;
    }

    .contact-modal__graphic {
        flex: 0 0 220px;
        padding: 2rem;
    }

    .contact-modal__content {
        flex: 1;
        border-top-left-radius: 60px;
        padding: 2.5rem 2rem;
    }
}

/* ── Nav Modal ────────────────────────────────────────────────────────────── */

.nav-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1001;
    background: var(--color-secondary);
    align-items: center;
    justify-content: center;
}

.nav-modal.is-open {
    display: flex;
    flex-direction: column;
}

.nav-modal__close {
    position: absolute;
    top: 3.5rem;
    right: 3rem;
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 3rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem;
    transition: opacity var(--transition), transform var(--transition);
}

.nav-modal__close:hover {
    opacity: 0.7;
    transform: rotate(90deg);
}

.nav-modal__menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    text-align: center;
}

.nav-modal__menu .menu-item a {
    display: block;
    font-size: clamp(1.5rem, 3.5vw, 3rem);
    font-weight: 800;
    color: var(--color-yellow);
    text-decoration: none;
    line-height: 1.3;
    transition: opacity var(--transition);
}



.nav-modal__menu .menu-item a:hover {
    opacity: 0.75;
}


/* ── Footer ───────────────────────────────────────────────────────────────── */

.site-footer {
    background: var(--color-peach);
    color: var(--color-secondary);
    padding: 4rem var(--padding-x-small);
    border-top-right-radius: 200px;
    margin-top: 20px;
}

@media (max-width: 768px) {
   .site-footer {
    border-top-right-radius: 0px;
}

}

.site-footer__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
}

.site-footer__tagline {
    font-size: clamp(1rem, 1.5vw, 1.4rem);
    font-weight: 700;
    max-width: 40ch;
}

.site-footer__menu {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer__menu a {
    color: var(--color-secondary);
    opacity: 0.8;
    font-weight: 600;
}

.site-footer__menu a:hover {
    opacity: 1;
    color: var(--color-primary);
}

.site-footer__contact a { color: var(--color-primary); }

.site-footer__social {
    display: flex;
    gap: 1rem;
}

.site-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-footer__social-icon {
    width: 24px;
    height: 24px;
    fill: var(--color-secondary);
    transition: fill var(--transition);
}

.site-footer__social-link:hover .site-footer__social-icon {
    fill: var(--color-primary);
}

.site-footer__copyright {
    font-size: 0.85rem;
    opacity: 0.6;
}

/* ── Testimonial Carousel ─────────────────────────────────────────────────── */

.testimonial-carousel {
    padding: 5rem var(--padding-x-small);
    position: relative;
    margin-bottom: 60px;
}

.testimonial-carousel:after {
    content: '';
    width: calc(100% - 2*(var(--padding-x-small)));
    left: calc(10% - (var(--padding-x-small)/2));
    bottom: 0;
    position: absolute;
    display: block;
    background: var(--color-primary);
    height: 20px;
}

@media (max-width: 1200px) {
   .testimonial-carousel:after {
        width: 80%;
        left: 10%;
   }
}

.testimonial-carousel__inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.testimonial-carousel__heading {
    text-align: center;
    margin-bottom: 3rem;
}

.testimonial-carousel__track {
    position: relative;
    overflow: hidden;
}

.testimonial-carousel__slide {
    display: none;
    text-align: left;
}

.testimonial-carousel__slide.is-active {
    display: block;
    animation: tc-fade-in 0.5s ease forwards;
}

@keyframes tc-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.testimonial-carousel__quote {
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    line-height: 1.6;
    margin: 0 0 0 0;
    color: var(--color-primary);
}

.testimonial-carousel__quote p { margin: 0; }
.testimonial-carousel__quote p::before { content: '\201C'; }
.testimonial-carousel__quote p::after  { content: '\201D'; }

.testimonial-carousel__attribution strong::after { content: ','; }

.testimonial-carousel__attribution {
    color: var(--color-secondary);
    font-size: 1rem;
}

.testimonial-carousel__title {
    display: block;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--color-primary);
    margin-top: 0.25rem;
}

.testimonial-carousel__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.testimonial-carousel__prev,
.testimonial-carousel__next,
.testimonial-carousel__pause {
    background: none;
    border: 2px solid currentColor;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary);
    transition: background var(--transition), color var(--transition);
}

.testimonial-carousel__pause {
    font-size: 0.7rem;
}

.testimonial-carousel__prev:hover,
.testimonial-carousel__next:hover,
.testimonial-carousel__pause:hover {
    background: var(--color-secondary);
    color: var(--color-white);
    border-color: var(--color-secondary);
}

.testimonial-carousel__dots {
    display: flex;
    gap: 0.5rem;
}

.testimonial-carousel__dot {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    background: var(--color-secondary);
    opacity: 0.3;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: opacity var(--transition);
}

.testimonial-carousel__dot.is-active {
    opacity: 1;
}

/* With-video layout — two columns */
.testimonial-carousel--with-video .testimonial-carousel__heading {
    text-align: center;
    color: var(--color-secondary);
}

.testimonial-carousel--with-video .testimonial-carousel__body {
    display: flex;
    gap: 100px;
    align-items: center;
}

.testimonial-carousel--with-video .testimonial-carousel__carousel-col {
    flex: 1;
    min-width: 0;
}

.testimonial-carousel--with-video .testimonial-carousel__video-col {
    flex: 1;
    min-width: 0;
}

@media (max-width: 768px) {
   .testimonial-carousel--with-video .testimonial-carousel__video-col {
        min-width: 100%;
    }
}

.testimonial-carousel__video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0.5rem;
}

.testimonial-carousel__video-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 0.5rem;
}

.testimonial-carousel__video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 768px) {
    .testimonial-carousel--with-video .testimonial-carousel__body {
        flex-direction: column;
        gap: 2.5rem;
    }
}

/* ── Testimonial carousel — split layout ──────────────────────────────────── */

.testimonial-carousel--split {
    display: flex;
    align-items: center;
    padding: 0;
    background: var(--color-white);
    min-height: 480px;
}

.testimonial-carousel--split .testimonial-carousel__deco {
    flex: 0 0 30%;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
}

.testimonial-carousel--split .testimonial-carousel__deco svg {
    width: 75%;
    height: auto;
}

.testimonial-carousel--split .testimonial-carousel__content {
    flex: 1;
    padding: 4rem var(--padding-x-small) 4rem 2rem;
}

.testimonial-carousel--split .testimonial-carousel__heading {
    text-align: left;
}

.testimonial-carousel--split .testimonial-carousel__controls {
    justify-content: flex-start;
}

@media (max-width: 768px) {
    .testimonial-carousel--split {
        flex-direction: column;
        min-height: 0;
    }

    .testimonial-carousel--split .testimonial-carousel__deco {
        display: none;
    }

    .testimonial-carousel--split .testimonial-carousel__deco svg {
        width: 45%;
    }

    .testimonial-carousel--split .testimonial-carousel__content {
        padding: 2rem var(--padding-x-small) 3rem;
    }
}

/* ── Image Slider ─────────────────────────────────────────────────────────── */

.image-slider {
    padding: 5rem var(--padding-x-small);
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}

.image-slider__inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.image-slider__heading {
    margin: 0 0 3rem;
    color: var(--color-secondary);
}

.image-slider__track {
    position: relative;
}

.image-slider__slide {
    display: none;
}

.image-slider__slide.is-active {
    display: block;
    animation: tc-fade-in 0.5s ease forwards;
}

.image-slider__pause {
    margin: 1.5rem auto 0;
    background: none;
    border: 2px solid currentColor;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 0.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary);
    transition: background var(--transition), color var(--transition);
}

.image-slider__pause:hover {
    background: var(--color-secondary);
    color: var(--color-white);
    border-color: var(--color-secondary);
}

.image-slider__slide img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/* ── Two Columns ──────────────────────────────────────────────────────────── */

.two-columns {
    position: relative;
}

.two-columns__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    position: relative;
}

.two-columns__cell {
    padding: 3rem var(--padding-x-small);
}

.two-columns__cell--title {
    padding-top: 18rem;
    padding-bottom: 21rem;
}

@media (max-width: 1440px) {
    .two-columns__cell--title {
        padding-top: 14rem;
        padding-bottom: 15rem;
    }
}

@media (max-width: 1200px) {
    .two-columns__cell--title {
        padding-top: 12rem;
        padding-bottom: 11rem;
    }
}

@media (max-width: 1000px) {
    .two-columns__cell--title {
        padding-top: 10rem;
        padding-bottom: 8rem;
    }
}

@media (max-width: 860px) {
    .two-columns__cell--title {
        padding-top: 8rem;
        padding-bottom: 7rem;
    }
}

@media (max-width: 768px) {
    .two-columns__cell--title {
        padding-top: 2rem;
        padding-bottom: 1rem;
    }
}

.two-columns__cell--text {
    padding-top: 4rem;
    padding-bottom: 18rem;
}

@media (max-width: 1000px) {
    .two-columns__cell--text {
        padding-top: 4rem;
        padding-bottom: 12rem;
    }
}

@media (max-width: 768px) {
    .two-columns__cell--text {
        padding-top: 0rem;
        padding-bottom: 2rem;
    }
}

.two-columns__cell--text-light,
.two-columns__cell--text-light .two-columns__title,
.two-columns__cell--text-light p,
.two-columns__cell--text-light li {
    color: var(--color-white);
}

.two-columns__cell--text-dark .two-columns__title {
    color: var(--color-secondary);
}

.two-columns__cell--title-light .two-columns__title { color: var(--color-white); }
.two-columns__cell--title-dark  .two-columns__title { color: var(--color-secondary); }

.two-columns__title {
    margin: 0;
    color: inherit;
}

.two-columns__text {
    margin: 0;
}

.two-columns__text p {
    font-size: clamp(1rem, .1vw + 1rem, 28px);
    line-height: calc(.8vw + 1rem);
}

.two-columns__divider {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    pointer-events: none;
    z-index: 1;
}

.two-columns__divider svg {
    width: 100%;
    height: auto;
    display: block;
}

.two-columns__bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    background: var(--color-white);
}

@media (max-width: 1000px) {
    .two-columns__bottom {
        max-width: var(--max-width);
        margin: 0 auto;
        width: 100%;
        position: absolute;
        bottom: 60px;
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
        background: var(--color-white);
    }
}

@media (max-width: 768px) {
    .two-columns__bottom {
        position: static;
        transform: none;
        padding: 0 15px;
        max-width: 100%;
        width: auto;
    }
}

@media (max-width: 768px) {
    .two-columns__row {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }

    .two-columns__cell--left { order: 1; }
    .two-columns__cell--right { order: 2; }

    .two-columns__divider {
        display: none;
    }
}

/* ── How It Works ─────────────────────────────────────────────────────────── */

.how-it-works {
    padding: 5rem var(--padding-x-small);
}

.how-it-works__inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.how-it-works__heading {
    text-align: center;
    margin-bottom: 3rem;
}

.how-it-works__steps {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: hiw-step;
}

/* Grid layout */
.how-it-works--grid .how-it-works__steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
}

.how-it-works__step {
    counter-increment: hiw-step;
    position: relative;
    padding-top: 3.5rem;
}

.how-it-works__step::before {
    content: counter(hiw-step);
    position: absolute;
    top: 0;
    left: 0;
    width: 2.25rem;
    height: 2.25rem;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Linear layout */
.how-it-works--linear .how-it-works__steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.how-it-works--linear .how-it-works__step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding-top: 0;
}

.how-it-works--linear .how-it-works__step::before {
    position: static;
    flex-shrink: 0;
}

.how-it-works__step-heading {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-secondary);
}

.how-it-works__step-body {
    margin: 0;
    line-height: 1.6;
}

/* Ribbon — statements connected by a decorative S-curve */
.how-it-works--ribbon .how-it-works__inner {
    max-width: var(--max-width);
}

.how-it-works__ribbon-track {
    display: flex;
    flex-direction: column;
}

.how-it-works__ribbon-row {
    position: relative;
    width: 100%;
    max-width: 960px;
}

.how-it-works__ribbon-text {
    position: absolute;
    top: 8%;
    left: 16%;
    max-width: 55%;
    color: var(--color-secondary);
    font-size: 1.25rem;
    line-height: 1.5;
}

.how-it-works__ribbon-text p {
    margin: -40px 0 0 0;
}

.how-it-works__ribbon-curve {
    width: 100%;
    pointer-events: none;
}

.how-it-works__ribbon-curve svg {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .how-it-works__ribbon-row { max-width: none; }
    .how-it-works__ribbon-text {
        position: static;
        max-width: none;
        margin-bottom: 1rem;
    }
}

/* ── How It Works: Header ─────────────────────────────────────────────────── */

.how-it-works-header {
    background: var(--color-white);
}

.how-it-works-header__intro {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 6rem var(--padding-x-small) 4rem;
}

@media (max-width: 768px) {
    .how-it-works-header__intro {
        padding: 2rem var(--padding-x-small) 2rem;
    }

}

.how-it-works-header__heading {
    max-width: 14ch;
    margin: 0 0 2rem;
    color: var(--color-secondary);
}

.how-it-works-header__intro-body {
    max-width: 40ch;
    color: var(--color-accent);
    font-size: 0.95rem;
    line-height: 1.6;
}

.how-it-works-header__intro-body p + p {
    margin-top: 1.2em;
}

.how-it-works-header__body {
    position: relative;
    background: var(--color-peach);
    padding: 4rem var(--padding-x-small) 6rem;
}

@media (max-width: 768px) {
    .how-it-works-header__body {
        padding: 2rem var(--padding-x-small) 2rem;
    }
}

.how-it-works-header__deco {
    position: absolute;
    pointer-events: none;
}

.how-it-works-header__deco svg {
    display: block;
    width: 100%;
    height: auto;
}

.how-it-works-header__deco--top {
    bottom: 100%;
    right: 0;
    margin-bottom: -32px;
    width: 100%;
    max-width: 500px;
}

@media (max-width: 768px) {
    .how-it-works-header__deco--top {
   display: none;
    }
}

.how-it-works-header__items {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.how-it-works-header__item {
    max-width: 420px;
}

.how-it-works-header__item--2 {
    align-self: flex-end;
    margin-right: 8%;
    position: relative;
    top: -30px;
}

@media (max-width: 768px) {
    .how-it-works-header__item--2 {
        align-self: flex-start;
        top: 0px;
    }
}

.how-it-works-header__item-heading {
    color: var(--color-secondary);
    margin: 0 0 1rem;
    font-size: clamp(1.1rem,.6vw + 1rem,40px);
    line-height: 1.6;
}

.how-it-works-header__item-body {
    color: var(--color-accent);
    font-size: 0.95rem;
    line-height: 1.6;
}

.how-it-works-header__deco--bottom {
    position: absolute;
    width: 430px;
    right: 8%;
    bottom: -6rem;
}

@media (max-width: 960px) {
   .how-it-works-header__deco--bottom {
        width: 270px;
        right: 0;
   }
}


@media (max-width: 768px) {
   .how-it-works-header__deco--bottom {
       display: none;
   }
}

@media (max-width: 900px) {
    .how-it-works-header__deco--top {
        width: 42%;
    }
}

@media (max-width: 640px) {

    .how-it-works-header__deco--top { position: static; width: 60%; margin: 0 0 2rem auto; }
    .how-it-works-header__item,
    .how-it-works-header__item--2,
    .how-it-works-header__deco--bottom {
        max-width: 100%;
        align-self: stretch;
        margin: 0;
        width: 100%;
    }
}

/* ── CTA ──────────────────────────────────────────────────────────────────── */

/* NOTE: render.php outputs class="cta", not "cta-block" */
.cta {
    padding: 8rem var(--padding-x-small);
    background: var(--color-secondary);
    color: var(--color-white); /* default maroon bg; override with cta_text_light for dark bg */
    margin-left: 10%;
    border-bottom-left-radius: 150px;

    z-index: 2;
    position: relative;
}

/* Overlap — pulls CTA up to sit on top of the preceding block */
.cta--overlap {
    margin-top: -2rem;
}

/* .cta--light forces all text white (use on dark/colored backgrounds) */
.cta--light,
.cta--light h2,
.cta--light p,
.cta--light .cta__heading,
.cta--light .cta__subtext {
    color: var(--color-white);
}

.cta__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;

    gap: 3rem;
}

.cta__content {
    margin-right: 40px;
}

.cta__heading {
    color: var(--color-secondary);
    margin: 0;
}

.cta__subtext {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 60ch;
    margin: 0.75rem 0 0;
    color: inherit;
}

.cta__buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    flex-shrink: 0;
    flex-direction: column;
}

.cta__deco {
    flex-shrink: 0;
    width: 500px;
    display: flex;
    align-items: center;
    position: absolute;
    top: -10px;
    right: 0;
}

.cta__deco svg {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 960px) {
.cta__deco {
        display: none;
    }
}

@media (max-width: 768px) {
    .cta__inner {
        flex-direction: column;
        text-align: center;
    }

    .cta__buttons {
        justify-content: center;
    }


}

/* ── Stats ────────────────────────────────────────────────────────────────── */

/* NOTE: render.php outputs class="stats", not "stats-block" */
.stats {
    padding: 5rem var(--padding-x-small);
}

.stats--light,
.stats--light h2,
.stats--light p,
.stats--light .stats__number {
    color: var(--color-white);
}

.stats__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.stats__heading {
    margin-bottom: 0.75rem;
}

.stats__subtext {
    opacity: 0.85;
    max-width: 60ch;
    margin: 0 auto 3rem;
}

/* render.php outputs class="stats__grid" */
.stats__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.stats__item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stats__number {
    display: block;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stats__label {
    font-weight: 700;
    font-size: 1rem;
}

.stats__context {
    font-size: 0.875rem;
    opacity: 0.75;
    margin-top: 0.25rem;
}

/* ── Featured Content ─────────────────────────────────────────────────────── */

.featured-content {
    padding: 10rem var(--padding-x-small);
}

.featured-content__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.featured-content__title-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.featured-content__title-deco {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 216px;
    width: auto;
    pointer-events: none;
}

.featured-content__title-deco svg {
    height: 216px;
    width: auto;
    display: block;
}

.featured-content__title {
    position: relative;
    margin: 0;
    color: var(--color-secondary);
    padding: 2.1rem 1rem 1.5rem clamp(80px, 38%, 90px);
    z-index: 1;
}

.featured-content__top,
.featured-content__bottom {
    line-height: 1.7;
}


.featured-content__items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.featured-content__item {

    position: relative;
    line-height: 1.6;
    margin-bottom: 60px;
    font-size: clamp(1.1rem,.6vw + 1rem,40px);
}

.featured-content__item::before {
    content: '';
    display: inline-block;
    background-color: var(--color-peach);
    width: 140px;
    height: 30px;
    position: absolute;
    left: -160px;
    top: 4px;
}

@media (max-width: 960px) {
   .featured-content__item {
    margin-bottom: 20px;
   }

}

.featured-content__cta {
    align-self: flex-start;
}

.featured-content__body {
    display: grid;
    grid-template-columns: 1fr 30%;
    gap: 3rem;
}

.featured-content__body-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-top: 125px;
}

@media (max-width: 768px) {

    .featured-content__body-content {
        padding-top: 65px;
    }
}

.featured-content__side-deco {
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-content__side-deco svg {
    width: 100%;
    height: auto;
    display: block;
}

/* ── FAQ ──────────────────────────────────────────────────────────────────── */

/* NOTE: render.php outputs class="faq", not "faq-block" */
.faq {
    padding: 5rem var(--padding-x-small);
}

.faq__inner {
    max-width: 760px;
    margin: 0 auto;
}

.faq__heading {
    text-align: center;
    margin-bottom: 3rem;
}

.faq__list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.faq__item {
    border-top: 1px solid rgba(0,0,0,0.12);
}

.faq__item:last-child {
    border-bottom: 1px solid rgba(0,0,0,0.12);
}

/* render.php uses faq__toggle (button) inside faq__question (dt) */
.faq__question {
    margin: 0;
    padding: 0;
}

.faq__toggle {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 1.25rem 0;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    color: inherit;
    font-family: inherit;
}

.faq__icon {
    display: block;
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    position: relative;
}

.faq__icon::before,
.faq__icon::after {
    content: '';
    position: absolute;
    background: currentColor;
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.faq__icon::before {
    width: 100%;
    height: 2px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.faq__icon::after {
    width: 2px;
    height: 100%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.faq__toggle[aria-expanded="true"] .faq__icon::after {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}

.faq__answer {
    padding-bottom: 1.25rem;
    line-height: 1.7;
    margin: 0;
}

.faq__answer[hidden] {
    display: none;
}

/* ── Partners List ────────────────────────────────────────────────────────── */

.partners-list {
    position: relative;
    padding: 5rem var(--padding-x-small);
}

.partners-list__deco {
    position: absolute;
    top: 0;
    right: 8%;
    width: 18%;
    max-width: 220px;
    pointer-events: none;
    display: none;
}

.partners-list__deco svg {
    display: block;
    width: 100%;
    height: auto;
}

.partners-list__inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.partners-list__heading {
    text-align: center;
    margin-bottom: 3rem;
}

.partners-list__tier {
    margin-bottom:1rem;
}

.partners-list__tier-label {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.6;
    margin-bottom: 0.5rem;
}

.partners-list__tier-desc {
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.partners-list__entries {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
}

.partners-list__entry img {

    width: auto;

}

.partners-list__entry:hover img {
    filter: none;
}

/* Logos display style — proper 3-column grid, full color, generously spaced */
.partners-list__tier--logos .partners-list__entries {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem 2rem;
    align-items: center;
}

.partners-list__tier--logos .partners-list__entry {
    display: flex;
    align-items: center;
}

.partners-list__tier--logos .partners-list__entry img {
    max-height: auto;
    max-width: 300px;
    width: 100%;
    filter: none;
}

/* Names display style — 3-column grid to match Partners page donor lists */
.partners-list__tier--names .partners-list__entries {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem 2rem;
}

.partners-list__tier--names .partners-list__entry {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    line-height: 1.3;
}

.partners-list__tier--names .partners-list__entry-icon {
    width: 22px;
    height: auto;
    flex-shrink: 0;
    margin-top: 0.2rem;
    filter: none;
}

.partners-list__entry-text {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.partners-list__entry-text > a,
.partners-list__entry-text > span {
    font-weight: 700;
}

.partners-list__entry-text > span {
    font-size: clamp(1.1rem,.6vw + 1rem,40px);
}

.partners-list__entry-note {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--color-primary);
}

.partners-list__tier-note {
    margin-top: 2rem;
    font-weight: 700;
}

/* Light text variant — for dark/colored backgrounds */
.partners-list--text-light,
.partners-list--text-light .partners-list__heading,
.partners-list--text-light .partners-list__tier-label,
.partners-list--text-light .partners-list__tier-desc,
.partners-list--text-light .partners-list__tier-note,
.partners-list--text-light .partners-list__entry,
.partners-list--text-light .partners-list__entry a {
    color: var(--color-white);
}

.partners-list--text-light .partners-list__tier-desc {
    font-weight: bold;
    font-size: 24px;
    margin-bottom: 30px;
}

.partners-list--text-light .partners-list__tier-note {
    margin-top: 4rem;
    text-align: center;
}

/* "Show more" toggle */
.partners-list__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0rem auto 0;
    padding: 0;
    background: none;
    border: 2px solid var(--color-peach);
    border-radius: 50%;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
}

.partners-list__toggle svg {
    width: 14px;
    height: auto;
    fill: var(--color-primary);
}

.partners-list__toggle:hover {
    background: var(--color-peach);
}

/* Ribbon decoration — tall right-edge accent + bottom horizontal connector */
.partners-list__deco--ribbon-side {
    top: 0;
    right: 6%;
    width: 8%;
    max-width: 90px;
}

.partners-list__deco--ribbon-bottom {
    top: auto;
    bottom: 0;
    left: 3%;
    right: auto;
    width: 44%;
    max-width: 600px;
}

@media (max-width: 768px) {
    .partners-list__tier--logos .partners-list__entries {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem 1.5rem;
    }
    .partners-list__tier--names .partners-list__entries {
        grid-template-columns: repeat(2, 1fr);
    }
    .partners-list__deco--ribbon-side { display: none; }
    .partners-list__deco--ribbon-bottom { width: 70%; }
}

/* ── Applications Criteria ────────────────────────────────────────────────── */

.applications-criteria {
    padding: 5rem var(--padding-x-small);
}

.applications-criteria__inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.applications-criteria__heading {
    text-align: center;
    margin-bottom: 1rem;
}

.applications-criteria__intro {
    text-align: center;
    max-width: 65ch;
    margin: 0 auto 3rem;
    opacity: 0.85;
}

.applications-criteria__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.applications-criteria__card {
    background: var(--color-white);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 0.5rem;
    padding: 1.75rem;
}

.applications-criteria__icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
}

.applications-criteria__label {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
    display: block;
}

.applications-criteria__description {
    margin: 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ── Applications Timeline ────────────────────────────────────────────────── */

.applications-timeline {
    padding: 5rem var(--padding-x-small);
}

.applications-timeline__inner {
    max-width: 680px;
    margin: 0 auto;
}

.applications-timeline__heading {
    text-align: center;
    margin-bottom: 3rem;
}

.applications-timeline__events {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.applications-timeline__events::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-primary);
    opacity: 0.25;
}

.applications-timeline__event {
    display: grid;
    grid-template-columns: 2rem 1fr;
    gap: 1rem;
    margin-bottom: 2.5rem;
    position: relative;
}

.applications-timeline__marker {
    width: 2rem;
    height: 2rem;
    background: var(--color-primary);
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.applications-timeline__content {
    padding-top: 0.25rem;
}

.applications-timeline__date {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.applications-timeline__label {
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-secondary);
    margin-bottom: 0.375rem;
}

.applications-timeline__description {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.8;
}

/* ── Fellows Grid ─────────────────────────────────────────────────────────── */

.fellows-grid {
    padding: 3rem var(--padding-x-small);
}

.fellows-grid__inner {
    max-width: 1640px;
    margin: 0 auto;
}

.fellows-grid__heading {
    text-align: center;
    margin-bottom: 2rem;
}

.fellows-grid__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.fellows-grid__filter {
    background: none;
    border: 2px solid var(--color-secondary);
    color: var(--color-secondary);
    padding: 0.4rem 1.25rem;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
    font-family: inherit;
}

.fellows-grid__filter.is-active,
.fellows-grid__filter:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.fellows-grid__cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 0.75fr));
    justify-content: center;
    gap: 1rem;
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
}

.fellows-grid__card {
    display: flex;
    flex-direction: column;
}

.fellows-grid__card[hidden] {
    display: none;
}

.fellows-grid__photo {
    width: 100%;
    aspect-ratio: 311 / 404;
    overflow: hidden;
    background: var(--color-peach);
    position: relative;
}

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

.fellows-grid__photo-placeholder {
    width: 100%;
    height: 100%;
    background: var(--color-peach);
}

.fellows-grid__info {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.fellows-grid__name {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-secondary);
}

.fellows-grid__role {
    display: block;
    font-size: 14px;
    color: var(--color-accent);
}

.fellows-grid__year {
    display: block;
    font-size: 0.8rem;
    color: var(--color-secondary);
    opacity: 0.6;
}

/* ── Listing Tabs ─────────────────────────────────────────────────────────── */

.listing-tabs {
    padding: 2rem var(--padding-x-small);
}

.listing-tabs__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    text-align: center;
}

.listing-tabs__title {
    color: var(--color-secondary);
    margin: 0;
}

.listing-tabs__intro {
    max-width: 72ch;
    color: var(--color-black);
}

.listing-tabs__intro p { margin: 0; }

.listing-tabs__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 20px;
}

.listing-tabs__tab {
    background: transparent;
    border: 2px solid var(--color-secondary);
    color: var(--color-secondary);
    border-radius: 2rem;
    padding: 0.45rem 3.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.listing-tabs__tab:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.listing-tabs__tab.is-active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.listing-tabs__panels {
    width: 100%;
}

.listing-tabs__panel {
    display: none;
    width: 100%;
}

.listing-tabs__panel.is-active {
    display: block;
}

.listing-tabs__fellows {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    text-align: left;
}

@media (max-width: 960px) {
    .listing-tabs__fellows {
        grid-template-columns: repeat(2, 1fr);
    }
}

.listing-tabs__fellow {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.listing-tabs__fellow-photo {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--color-peach);
    border-radius: 4px;
    margin-bottom: 1rem;
}

.listing-tabs__fellow-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.listing-tabs__fellow-placeholder {
    width: 100%;
    height: 100%;
    background: var(--color-peach);
}

.listing-tabs__fellow-info {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
}

.listing-tabs__fellow-name {
    color: var(--color-secondary);
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.2;
}

.listing-tabs__fellow-role {
    color: var(--color-accent);
    font-size: 0.85rem;
    font-weight: 400;
}

.listing-tabs__fellow-year {
    color: var(--color-accent);
    font-size: 0.85rem;
    font-weight: 400;
}

.listing-tabs__fellow-more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    align-self: flex-start;
    margin-top: 1.25rem;
    background: none;
    border: 2px solid var(--color-secondary);
    color: var(--color-secondary);
    border-radius: 2rem;
    padding: 0.4rem 1.1rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.listing-tabs__fellow-more span {
    display: inline-block;
    transition: transform var(--transition);
}

.listing-tabs__fellow-more:hover {
    background: var(--color-secondary);
    color: var(--color-white);
}

.listing-tabs__fellow-more:hover span {
    transform: translateX(4px);
}

/* ── Fellow Modal ─────────────────────────────────────────────────────────── */

.fellow-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1002;
    background: var(--color-white);
}

.fellow-modal.is-open {
    display: flex;
}

.fellow-modal__left {
    flex: 0 0 42%;
    background: var(--color-primary);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-top-right-radius: 200px;
}

.fellow-modal__deco-left {
    position: absolute;
    left: 0;
    top:35%;
    transform: translateY(-50%);
    width: 38%;
    height: auto;
    z-index: 1;
}

.fellow-modal__photo {
    position: relative;
    z-index: 2;
    width: 68%;
    aspect-ratio: 3 / 4;
}

.fellow-modal__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    border-radius: 8px;
}

.fellow-modal__deco-bottom {
    position: absolute;
    bottom: -1.5rem;
    right: -1rem;
    width: 28%;
    z-index: 3;
}

.fellow-modal__right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    padding: 4rem 5rem;
    position: relative;
    overflow-y: auto;
}

.fellow-modal__deco-tr {
    width: 90px;
    align-self: flex-end;
}

.fellow-modal__name-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.fellow-modal__dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-primary);
    flex-shrink: 0;
    margin-top: 0.55rem;
}

.fellow-modal__name {
    color: var(--color-secondary);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
    text-wrap: balance;
    max-width: 14ch;
}

.fellow-modal__copy-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.4rem;
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--color-secondary);
    opacity: 0.4;
    cursor: pointer;
    padding: 0.2rem;
    transition: opacity var(--transition), color var(--transition);
}

.fellow-modal__copy-link:hover {
    opacity: 1;
    color: var(--color-primary);
}

.fellow-modal__copy-link svg {
    width: 18px;
    height: 18px;
}

.fellow-modal__copy-label {
    font-size: 0.75rem;
    font-family: var(--font-body);
}

.fellow-modal__role {
    color: var(--color-primary);
    font-size: 1rem;
    font-weight: 400;
    margin: 0;
}

.fellow-modal__bio {
    color: var(--color-black);
    font-size: 0.95rem;
    line-height: 1.75;
    max-width: 60ch;
    margin: 0;
}

.fellow-modal__bio p { margin: 0 0 1rem; }
.fellow-modal__bio p:last-child { margin-bottom: 0; }

.fellow-modal__close {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    align-self: flex-end;
    background: none;
    border: 2px solid var(--color-secondary);
    color: var(--color-secondary);
    border-radius: 2rem;
    padding: 0.45rem 1.25rem;
    font-size: 0.9rem;
    font-family: var(--font-body);
    font-weight: 400;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.fellow-modal__close:hover {
    background: var(--color-secondary);
    color: var(--color-white);
}

@media (max-width: 768px) {
    .fellow-modal.is-open {
        flex-direction: column;
        overflow-y: auto;
    }

    .fellow-modal__left {
        flex: 0 0 auto;
        padding: 2.5rem 0;
    }

    .fellow-modal__right {
        flex: 0 0 auto;
        justify-content: flex-start;
        padding: 2.5rem 1.5rem;
        overflow-y: visible;
    }

    .fellow-modal__close {
        align-self: flex-start;
    }
}

/* ── Fellow single page (mirrors modal layout) ───────────────────────────── */

.fellow-modal--page {
    display: flex;
    position: static;
    z-index: auto;
    min-height: 85vh;
}

@media (max-width: 768px) {
    .fellow-modal--page {
        flex-direction: column;
        overflow-y: visible;
        min-height: auto;
    }

    .fellow-modal--page .fellow-modal__left {
        flex: 0 0 auto;
        padding: 2.5rem 0;
    }
}

/* ── Champions Grid ───────────────────────────────────────────────────────── */

.champions-grid {
    padding: 6rem var(--padding-x-small) 9rem var(--padding-x-small) ;
    margin-top: 200px;
}

@media (max-width: 1140px) {
    .champions-grid {
        padding: 3rem var(--padding-x-small) 9rem var(--padding-x-small) ;
        margin-top: 100px;
    }
}

@media (max-width: 960px) {
    .champions-grid {
        padding: 1rem var(--padding-x-small) 1rem var(--padding-x-small) ;
        margin-top: 100px;
    }
}


.champions-grid__inner {
    max-width: 1640px;
    margin: 0 auto;
}

.champions-grid__heading {
    text-align: center;
    margin-bottom: 2rem;
}

.champions-grid__row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    list-style: none;
    margin: 0;
    position: absolute;
    width: 70%;
    margin-top: -40px;
    margin-left: 140px;
}

@media (max-width: 1140px) {
   .champions-grid__row {
        width: 80%;
        margin-top: -40px;
        margin-left: 80px;
    }
}

@media (max-width: 1060px) {
   .champions-grid__row {
        width: 80%;
        margin-top: -40px;
        margin-left: 0px;
    }
}

@media (max-width: 960px) {
   .champions-grid__row {
        width: 100%;
        margin-top: 0px;
        margin-left: 0px;
        position: static;
        margin-bottom: 80px;
    }

    .champions-grid__row:last-of-type {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
   .champions-grid__row {
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
        gap: 80px;
       padding: 0 20px;
    }

    .champions-grid__row:last-of-type {
        margin-bottom: 0;
    }
}

.champions-grid__ribbon {
    display: block;
    width: 100%;
    overflow: visible;
}

@media (max-width: 960px) {
   .champions-grid__ribbon {
        display: none;
    }
}

.champions-grid__card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.champions-grid__photo {
    width: 100%;
    aspect-ratio: 311 / 404;
    overflow: hidden;
    background: var(--color-peach);
}

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

.champions-grid__photo-placeholder {
    width: 100%;
    height: 100%;
    background: var(--color-peach);
}

.champions-grid__info {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

@media (max-width: 1600px) {
   .champions-grid__info {
        margin-top: 0rem;
    }
}

@media (max-width: 1400px) {
   .champions-grid__info {
        margin-top: -1rem;
    }
}

.champions-grid__name {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--color-secondary);
    line-height: 125%;
    margin-bottom: 0;
}

@media (max-width: 1200px) {
   .champions-grid__name {
        font-size: 21px;
    }
}

.champions-grid__role {
    display: block;
    font-size: 14px;
    color: var(--color-primary);
    margin-top: 0.375rem;
    padding-right: 1.25rem;
    font-weight: 500;
}

.champions-grid__bio {
    font-size: 0.875rem;
    line-height: 1.6;
    opacity: 0.8;
    margin: 0.5rem 0 0;
}

.champions-grid__read-more {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 0.4rem;
    margin-top: 0.75rem;
    padding: 0.4rem 1.1rem;
    border: 2px solid var(--color-secondary);
    border-radius: 2rem;
    background: none;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--color-secondary);
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.champions-grid__read-more span {
    display: inline-block;
    transition: transform var(--transition);
}

.champions-grid__read-more:hover {
    background: var(--color-secondary);
    color: var(--color-white);
}

.champions-grid__read-more:hover span {
    transform: translateX(4px);
}

/* ── Champion Modal ───────────────────────────────────────────────────────── */

.champion-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1002;
    background: var(--color-peach);
    overflow: hidden;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    /* content zone: left 45% is empty (SVG curves live there), right 50% is text */
    padding: 15vh 5% 3rem 45%;
}

.champion-modal.is-open {
    display: flex;
}

/* SVG: curves (first 320px of 800px) stay left of the 45% dialog edge;
   orange line (starts at 389px) enters the dialog zone from the left */
.champion-modal__image {
    position: absolute;
    z-index: 1;
    width: 800px;
    left: calc(45% - 340px);
    top: calc(15vh - 108px);
    pointer-events: none;
}

@media (max-width: 1440px) {
    .champion-modal__image {
        width: 700px;

    }
}

@media (max-width: 960px) {
    .champion-modal__image {
        width: 650px;

    }
}

.champion-modal__image svg {
    display: block;
    width: 100%;
    height: auto;
}

/* Dialog: no background — lets the SVG orange line show through the 60px gap */
.champion-modal__dialog {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 520px;
    padding-left: 40px;
}

@media (max-width: 7680px) {
    .champion-modal__dialog {
    padding-left: 0;
    max-width: 96% !important;
    }
}

.champion-modal__name {
    padding: 15px 0;
}

.champion-modal__name h2,
.champion-modal__name h1 {
    font-size: clamp(2rem, 3.5vw, 52px);
    font-weight: 700;
    color: var(--color-secondary);
    line-height: 115%;
    margin: 0;
}

.champion-modal__name h2 span,
.champion-modal__name h1 span {
    display: block;
}

/* 60px gap — SVG orange line shows through here */
.champion-modal__txt {
    padding-top: 60px;
    padding-right: 40px;
}

.champion-modal__role {
    color: var(--color-primary);
    font-size: clamp(0.875rem, 0.3vw + 0.875rem, 1.125rem);
    font-weight: 400;
    line-height: 1.4;
    padding: 0.875rem 0;
    margin: 0;
}

.champion-modal__bio p {
    color: var(--color-secondary);
    margin: 0 0 1rem;
}

.champion-modal__bio p:last-child { margin-bottom: 0; }

.champion-modal__close {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    padding: 0.5rem 1.25rem 0.375rem 1.5rem;
    border: 2px solid var(--color-accent);
    border-radius: 2rem;
    margin: 50px 0 35px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.champion-modal__close-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-primary);
    transition: color 0.2s;
}

.champion-modal__close-icon {
    font-size: 18px;
    color: var(--color-primary);
    transition: color 0.2s;
}

.champion-modal__close:hover { border-color: var(--color-primary); }
.champion-modal__close:hover .champion-modal__close-text,
.champion-modal__close:hover .champion-modal__close-icon { color: var(--color-secondary); }

@media (max-width: 768px) {
    .champion-modal {
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 3rem 1.5rem 2rem;
        overflow-y: auto;
    }

    .champion-modal__image { display: none; }

    .champion-modal__dialog {
        width: 100%;
        max-width: none;
    }

    .champion-modal__name h2,
    .champion-modal__name h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .champion-modal__txt {
        padding-top: 1.5rem;
        padding-right: 0;
    }
}

.champion-modal--page {
    display: flex;
    position: relative;
    min-height: 85vh;
    overflow: hidden;
}

/* ── Gallery Block ────────────────────────────────────────────────────────── */

.gallery-block {
    padding: 3rem var(--padding-x);
}

.gallery-block__inner {
    max-width: 1640px;
    margin: 0 auto;
}

.gallery-block__heading {
    text-align: center;
    margin-bottom: 2rem;
}

.gallery-block__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(var(--gallery-columns, 3), 1fr);
    gap: 4px;
}

@media (max-width: 768px) {
   .gallery-block__grid {
        grid-template-columns: 1fr 1fr;
   }
}

.gallery-block__item {
    aspect-ratio: 1;
    overflow: hidden;
}

.gallery-block__trigger {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: none;
    padding: 0;
    background: none;
}

.gallery-block__trigger img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-block__trigger:hover img {
    transform: scale(1.08);
}

.gallery-block__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-block__trigger:hover .gallery-block__overlay {
    opacity: 1;
}

.gallery-block__overlay svg {
    width: 36px;
    height: 36px;
    fill: var(--color-white);
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

/* ── Gallery Lightbox ─────────────────────────────────────────────────────── */

.gallery-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
}

.gallery-lightbox.is-open {
    display: flex;
}

.gallery-lightbox__stage {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 4rem;
}

.gallery-lightbox__img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    display: block;
    transition: opacity 0.25s ease;
}

.gallery-lightbox__img.is-fading {
    opacity: 0;
}

.gallery-lightbox__close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.75;
    transition: opacity 0.2s;
    padding: 0.25rem;
}

.gallery-lightbox__close:hover { opacity: 1; }

.gallery-lightbox__prev,
.gallery-lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--color-white);
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.gallery-lightbox__prev:hover,
.gallery-lightbox__next:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
}

.gallery-lightbox__prev { left: 1.5rem; }
.gallery-lightbox__next { right: 1.5rem; }

/* ── Donate Block ─────────────────────────────────────────────────────────── */

.donate-block {
    position: relative;
    z-index: 0; /* stacking context so child z-indexes are self-contained */
    overflow: hidden;
    background: var(--color-white);
    padding-bottom: 200px;
}

@media (max-width: 960px) {
   .donate-block {
        padding-bottom: 100px;
    }
}

@media (max-width: 768px) {
   .donate-block {
        padding-bottom: 20px;
    }
}

.donate-block__columns {
    display: grid;
    grid-template-columns: 55fr 45fr;
}

/* NO z-index on left column — lets SVG (z-index:1) paint over its background
   while heading/content (z-index:2) paint over the SVG */
.donate-block__left {
    background: var(--color-yellow);
    border-radius: 0 13vw 0 0;
    padding: 8rem var(--padding-x) 5rem var(--padding-x-small);
    position: relative;
    padding-bottom: 150px;
}

@media (max-width: 1200px) {
    .donate-block__left {
        padding: 6rem var(--padding-x) 5rem var(--padding-x-small);
    }

}

@media (max-width: 1000px) {


}

@media (min-width: 768px) {

}

@media (min-width: 768px) {

}

.donate-block__right {
    min-height: 420px;
}

/* Large bottom margin = gap where the SVG orange line shows through */
.donate-block__heading {
    font-size: clamp(2.5rem, 4vw, 64px);
    font-weight: 700;
    color: var(--color-white);
    margin: 0 0 8rem;
    line-height: 1.1;
    position: relative;
    z-index: 2;
}

.donate-block__content {
    color: var(--color-secondary);
    max-width: 500px;
    position: relative;
    z-index: 2;
    padding-top: 1rem;
}

.donate-block__content p { margin: 0 0 1rem; }
.donate-block__content p:last-child { margin-bottom: 0; }

.donate-block__secondary-cta {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.75rem 2.5rem;
    background: var(--color-secondary);
    color: var(--color-white);
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
    position: relative;
    z-index: 2;
}

.donate-block__secondary-cta:hover { opacity: 0.85; }

.donate-block__primary-cta {
    display: inline-flex;
    align-items: center;
    gap: 2rem;
    padding: 5vw 5vw 5vw 10vw;
    background: var(--color-secondary);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 0 500px 500px 0;
    font-size: clamp(1rem, 2vw, 2rem);
    font-weight: 700;
    position: relative;
    z-index: 2;
    transition: opacity 0.2s;
    top: -100px;
}

@media (max-width: 1200px) {
   .donate-block__primary-cta {
        top: -50px;
   }
}

@media (max-width: 900px) {
   .donate-block__primary-cta {
        top: -20px;
        padding: 2vw 2vw 2vw 5vw !important;
        font-size: clamp(0.7rem, 5vw, 1.5rem) !important;
   }
}


.donate-block__primary-cta:hover { opacity: 1; }

.donate-block__primary-arrow {
    font-size: 1em;
    line-height: 1;
    display: inline-block;
    transition: transform 0.2s ease;
}

.donate-block__primary-cta:hover .donate-block__primary-arrow {
    transform: translateX(6px);
}

/* SVG overlay: z-index 1 paints over the yellow background (z-index auto)
   but under heading/content (z-index 2).
   left: 8% shifts it so the maroon dot (~2% into SVG) lands at ~10% section width.
   At 100% width the orange line crosses from yellow into the white column. */
.donate-block__deco {
    position: absolute;
    top: 5%;
    left: 8%;
    width: 100%;
    height: auto;
    pointer-events: none;
    z-index: 1;
}

.donate-block__deco svg {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 900px) {
    .donate-block__columns {
        grid-template-columns: 1fr;
    }

    .donate-block__left {
        border-radius: 0;
        padding: 3rem var(--padding-x-small) 3rem;
    }

    .donate-block__right { display: none; }

    .donate-block__deco { display: none; }

    .donate-block__heading { margin-bottom: 2rem; }

    .donate-block__primary-cta {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
        padding: 6vw 6vw 6vw 8vw;
    }
}

/* ── Team Grid ────────────────────────────────────────────────────────────── */

.team-grid {
    padding: 3rem var(--padding-x);
}

.team-grid__inner {
    max-width: 1640px;
    margin: 0 auto;
}

.team-grid__banner {
    display: inline-block;
    position: relative;
    max-width: 780px;
    margin: 0 0 3rem;
    margin-left: calc(var(--padding-x-small) * -1);
    padding: 2.5rem 5rem 2.5rem var(--padding-x-small);
    border-top-right-radius: 999px;
    border-bottom-right-radius: 999px;
}

/* Fill the gap between the banner's left edge and the page edge so the
   banner reads as flush against the viewport. */
.team-grid__banner::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 100%;
    width: calc(var(--padding-x) - var(--padding-x-small));
    background: inherit;
}

.team-grid__banner--accent { background: var(--color-accent); }
.team-grid__banner--secondary { background: var(--color-secondary); }

.team-grid__banner-heading {
    margin: 0;
    color: var(--color-peach);
    font-size: clamp(20px,2.4vw + 1rem,50px);
}

@media (max-width: 768px) {
    .team-grid__banner {
        max-width: 100%;
        padding: 2rem 3rem 2rem 5vw;
        border-top-right-radius: 60px;
        border-bottom-right-radius: 60px;
    }
}

.team-grid__cards {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 0.75fr));
    justify-content: center;
    gap: 1rem;
}

.team-grid__card {
    display: flex;
    flex-direction: column;
    position: relative;
}

.team-grid__photo {
    width: 100%;
    aspect-ratio: 311 / 404;
    overflow: hidden;
    background: var(--color-peach);
    position: relative;
}

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

.team-grid__photo-placeholder {
    width: 100%;
    height: 100%;
    background: var(--color-peach);
}

.team-grid__info {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding-bottom: 6.5rem;
}

.team-grid__name {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-secondary);
}

.team-grid__title {
    display: block;
    margin-top: 0.65rem;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-accent);
}

.team-grid__read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    align-self: flex-start;
    margin-top: 0.75rem;
    background: var(--color-white);
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
    border-radius: 2rem;
    padding: 0.55rem 1.5rem;
    font-size: 0.9rem;
    font-family: var(--font-body);
    font-weight: 400;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.team-grid__read-more:hover {
    background: var(--color-accent);
    color: var(--color-white);
}

/* ── Team Modal ───────────────────────────────────────────────────────────── */

.team-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1002;
    background: var(--color-peach);
}

.team-modal.is-open {
    display: flex;
}

.team-modal__left {
    flex: 0 0 42%;
    background: var(--color-primary);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-top-right-radius: 200px;
}

.team-modal__deco-left {
    position: absolute;
    left: 0;
    top: 35%;
    transform: translateY(-50%);
    width: 38%;
    height: auto;
    z-index: 1;
}

.team-modal__photo {
    position: relative;
    z-index: 2;
    width: 68%;
    aspect-ratio: 3 / 4;
}

.team-modal__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    border-radius: 8px;
}

.team-modal__deco-bottom {
    position: absolute;
    bottom: -1.5rem;
    right: -1rem;
    width: 28%;
    z-index: 3;
}

.team-modal__right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    padding: 4rem 5rem;
    position: relative;
    overflow-y: auto;
}

.team-modal__deco-tr {
    width: 90px;
    align-self: flex-end;
}

.team-modal__name-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.team-modal__dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-primary);
    flex-shrink: 0;
    margin-top: 0.55rem;
}

.team-modal__name {
    color: var(--color-secondary);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
    text-wrap: balance;
    max-width: 14ch;
}

.team-modal__name span { display: block; }

.team-modal__copy-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.4rem;
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--color-secondary);
    opacity: 0.4;
    cursor: pointer;
    padding: 0.2rem;
    transition: opacity var(--transition), color var(--transition);
}

.team-modal__copy-link:hover {
    opacity: 1;
    color: var(--color-primary);
}

.team-modal__copy-link svg {
    width: 18px;
    height: 18px;
}

.team-modal__copy-label {
    font-size: 0.75rem;
    font-family: var(--font-body);
}

.team-modal__role {
    color: var(--color-primary);
    font-size: 1rem;
    font-weight: 400;
    margin: 0;
}

.team-modal__bio {
    color: var(--color-black);
    font-size: 0.95rem;
    line-height: 1.75;
    max-width: 60ch;
    margin: 0;
}

.team-modal__bio p { margin: 0 0 1rem; }
.team-modal__bio p:last-child { margin-bottom: 0; }

.team-modal__close {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    align-self: flex-end;
    background: none;
    border: 2px solid var(--color-secondary);
    color: var(--color-secondary);
    border-radius: 2rem;
    padding: 0.45rem 1.25rem;
    font-size: 0.9rem;
    font-family: var(--font-body);
    font-weight: 400;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.team-modal__close:hover {
    background: var(--color-secondary);
    color: var(--color-white);
}

@media (max-width: 768px) {
    .team-modal.is-open {
        flex-direction: column;
        overflow-y: auto;
    }

    .team-modal__left {
        flex: 0 0 320px;
    }

    .team-modal__right {
        padding: 2.5rem 1.5rem;
    }

    .team-modal__close {
        align-self: flex-start;
    }
}

/* ── Team single page (mirrors modal layout) ──────────────────────────────── */

.team-modal--page {
    display: flex;
    position: static;
    z-index: auto;
    min-height: 85vh;
}

@media (max-width: 768px) {
    .team-modal--page {
        flex-direction: column;
        overflow-y: visible;
        min-height: auto;
    }

    .team-modal--page .team-modal__left {
        flex: 0 0 320px;
    }
}

/* Responsive breakpoints */
@media (min-width: 768px) {
    .fellows-grid__filters,
    .champions-grid__filters {
        flex-direction: row;
        max-width: 800px;
    }
}

.fellows-grid__cards,
.champions-grid__row,
.team-grid__cards {
    grid-template-columns: repeat(3, minmax(200px, 0.75fr));
}

@media (max-width: 600px) {
    .fellows-grid__cards,
    .champions-grid__row,
    .team-grid__cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .champions-grid__ribbon {
        display: none;
    }
}

/* ── FAQ — applications two-column style ─────────────────────────────────── */

.faq--applications {
    padding: 0;
}

.faq--applications .faq__header {
    background: var(--color-accent);
    padding: 70px var(--padding-x-small) 80px;
    position: relative;
    overflow: hidden;
}

.faq--applications .faq__heading {
    text-align: left;
    margin-bottom: 1rem;
}

.faq--applications .faq__header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.faq--applications .faq__heading {
    color: var(--color-yellow);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin: 0 0 16px;
}

.faq--applications .faq__subtext {
    color: #fff;
    font-size: 1rem;
    line-height: 1.6;
}

.faq--applications .faq__subtext a {
    color: #fff;
    text-decoration: underline;
}

.faq--applications .faq__subtext a:hover {
    font-weight: bold;
}

.faq__header-arc {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 60px solid var(--color-secondary);
    pointer-events: none;
    z-index: 0;
}

.faq--applications .faq__body {
    padding: 60px var(--padding-x-small) 80px;
    background: #fff;
}

.faq--applications .faq__columns {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.faq--applications .faq__col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.faq__pair-question {
    font-weight: 700;
    font-size: 1rem;
    margin: 0 0 10px;
    color: #111;
}

.faq__pair-answer {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #333;
}

.faq__pair-answer p {
    margin: 0;
}

.faq__pair-answer a {
    color: var(--color-accent);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .faq--applications .faq__columns {
        flex-direction: column;
        gap: 36px;
    }
}

/* ── Feature Columns ─────────────────────────────────────────────────────── */

.feature-columns {
    background: var(--color-peach);
    padding: 80px var(--padding-x-small);
}

.feature-columns__inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.feature-columns__pill {
    background: var(--color-accent);
    border-radius: 24px 160px 160px 24px;
    padding: 70px 60px 120px;
    position: relative;
    overflow: visible;
}

.feature-columns__grid {
    display: flex;
    gap: 48px;
}

.feature-columns__item {
    flex: 1;
}

.feature-columns__item-title {
    color: var(--color-yellow);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 14px;
}

.feature-columns__item-text {
    color: #fff;
    margin: 0;
    line-height: 1.6;
}

.feature-columns__deco {
    position: absolute;
      bottom: -85px;
      left: 0px;
      width: 200px;
      pointer-events: none;
}

@media (max-width: 768px) {
    .feature-columns__grid {
        flex-direction: column;
        gap: 32px;
    }

    .feature-columns__pill {
        border-radius: 24px;
        padding: 50px 32px 90px;
    }

    .feature-columns__deco {
        width: 140px;
        bottom: -50px;
        left: -10px;
    }
}

/* ── Split CTA ───────────────────────────────────────────────────────────── */

.split-cta {
    background: var(--color-peach);
    padding: 80px var(--padding-x-small);
    overflow: visible;
}

.split-cta__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
}

.split-cta__content {
    flex: 1;
}

.split-cta__text {
    font-size: 1rem;
    line-height: 1.65;
    color: #222;
    margin: 0 0 32px;
}

.split-cta__buttons {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.split-cta__btn {
    display: inline-block;
    padding: 14px 32px;
    border: 2px solid var(--color-accent);
    border-radius: 999px;
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.split-cta__btn:hover {
    background: var(--color-accent);
    color: #fff;
}

.split-cta__deco {
    flex: 0 0 340px;
    display: flex;
    justify-content: center;
}

.split-cta__svg {
    width: 100%;
    max-width: 340px;
    overflow: visible;
}

@media (max-width: 768px) {
    .split-cta__deco {
        display: none;
    }
}

/* ── WordPress core blocks — site padding ─────────────────────────────────── */

.wp-block-heading,
.wp-block-paragraph,
.wp-block-list,
.wp-block-quote,
.wp-block-separator,
.wp-block-buttons,
.wp-block-embed,
.wp-block-image:not(.alignfull):not(.alignwide) {
    padding-left: var(--padding-x-small);
    padding-right: var(--padding-x-small);
}

.wp-block-embed__wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.wp-block-embed__wrapper iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* ── Scroll-reveal for decorative SVG draw animations ─────────────────────── */
/* Every decorative graphic's stroke-draw animation is paused by default, and
   main.js adds .jtl-anim-in-view (via IntersectionObserver, or on modal-open
   for content that's display:none until then) to let it play once revealed. */
[aria-hidden="true"] * {
    animation-play-state: paused;
}

[aria-hidden="true"].jtl-anim-in-view * {
    animation-play-state: running;
}
