/* ==========================================================================
   Volunteer page  —  /volunteer
   Self-contained, mirrors the sponsorship page's structure.
   rem base is 10px on this site.
   ========================================================================== */

.vol {
    display: block;
    color: var(--color-black);
    background: var(--color-white);
}

/* Neutralise the global `section` rule; each section re-declares its layout
   at `main.vol > .x` specificity so it wins over this reset. */
main.vol>section {
    display: block;
    padding: 0;
    margin: 0;
    max-width: none;
    background: none;
}

.vol h2,
.vol h3 {
    font-family: var(--display-font);
    font-weight: 500;
    line-height: 1.2;
    color: var(--color-black);
}

/* Section heading -------------------------------------------------------- */
.vol-section-head {
    max-width: 62rem;
    margin: 0 auto clamp(3rem, 5vw, 5rem);
    text-align: center;
}

.vol-section-head h2 {
    margin: 0;
    font-size: clamp(2.8rem, 4vw, 4rem);
}

.vol-section-head p {
    margin: 1.2rem 0 0;
    font-size: 1.8rem;
    color: var(--color-grey-dark-2);
}

/* ---- Hero (rendered outside <main>) --------------------------------- */
.vol-hero {
    position: relative;
    min-height: 62vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #1e2220;
}

.vol-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.vol-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.74) 0%, rgba(0, 0, 0, 0.45) 45%, rgba(0, 0, 0, 0.18) 100%);
}

.vol-hero__inner {
    position: relative;
    z-index: 1;
    width: min(120rem, 92vw);
    margin: 0 auto;
    padding: clamp(4rem, 7vw, 8rem) 0;
    color: #fff;
}

.vol-hero__eyebrow {
    margin: 0 0 1.4rem;
    font-family: var(--display-font);
    font-weight: 500;
    font-size: 1.4rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

.vol-hero__title {
    margin: 0;
    font-family: var(--display-font);
    font-weight: 500;
    font-size: clamp(3.4rem, 6.5vw, 6rem);
    line-height: 1.32;
}

.vol-hero__title span {
    background: var(--color-accent);
    color: #fff;
    padding: 0.06em 0.32em;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.vol-hero__lead {
    max-width: 46ch;
    margin: 2.2rem 0 0;
    font-size: clamp(1.7rem, 2vw, 2rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.vol-hero__cta {
    display: inline-block;
    margin-top: 2.8rem;
    padding: 1.3rem 2.8rem;
    background: #fff;
    color: var(--color-black);
    font-family: var(--body-font);
    font-size: 1.6rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid #fff;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.vol-hero__cta:hover,
.vol-hero__cta:focus-visible {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

/* ---- Intro ------------------------------------------------------- */
main.vol>.vol-intro {
    width: min(76rem, 92vw);
    margin: 0 auto;
    padding: clamp(5rem, 8vw, 8rem) 0 clamp(3rem, 5vw, 5rem);
    text-align: center;
}

.vol-intro__lead {
    margin: 0;
    font-size: clamp(1.9rem, 2.4vw, 2.4rem);
    line-height: 1.55;
    color: var(--color-black);
}

/* ---- Role cards ---------------------------------------------- */
main.vol>.vol-roles {
    width: min(118rem, 92vw);
    margin: 0 auto;
    padding: clamp(4rem, 7vw, 7rem) 0;
}

.vol-cards {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
    gap: 2.4rem;
}

.vol-card {
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    border: 1px solid var(--color-grey-light-3);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vol-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 1.6rem 3.6rem rgba(20, 20, 20, 0.14);
}

.vol-card__media {
    aspect-ratio: 3 / 2;
    background: var(--color-grey-light-2);
}

.vol-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vol-card__body {
    padding: 2.4rem;
}

.vol-card__title {
    margin: 0 0 1rem;
    font-size: 2rem;
}

.vol-card__body p {
    margin: 0;
    font-size: 1.6rem;
    line-height: 1.55;
    color: var(--color-grey-dark-1);
}

/* ---- Steps ------------------------------------------------- */
main.vol>.vol-steps {
    width: min(84rem, 92vw);
    margin: 0 auto;
    padding: clamp(4rem, 7vw, 7rem) 0;
}

.vol-steps__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 2.8rem;
}

.vol-step {
    display: grid;
    grid-template-columns: 5.6rem 1fr;
    gap: 2rem;
    align-items: start;
}

.vol-step__n {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5.6rem;
    height: 5.6rem;
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
    font-family: var(--display-font);
    font-weight: 700;
    font-size: 2.2rem;
}

.vol-step__title {
    margin: 0.4rem 0 0.6rem;
    font-size: 2.1rem;
}

.vol-step p {
    margin: 0;
    font-size: 1.65rem;
    line-height: 1.55;
    color: var(--color-grey-dark-1);
}

/* ---- Final CTA (dark) ------------------------------------ */
main.vol>.vol-cta {
    background: #1e2220;
    color: #fff;
    text-align: center;
}

.vol-cta__inner {
    width: min(62rem, 92vw);
    margin: 0 auto;
    padding: clamp(5rem, 9vw, 9rem) 0;
}

.vol-cta h2 {
    margin: 0 0 1.6rem;
    font-family: var(--display-font);
    font-weight: 500;
    font-size: clamp(3rem, 4.5vw, 4.2rem);
    color: #fff;
}

.vol-cta p {
    margin: 0 auto 3rem;
    max-width: 42ch;
    font-size: 1.8rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.85);
}

.vol-btn {
    display: inline-block;
    padding: 1.3rem 2.8rem;
    background: var(--color-accent);
    color: #fff;
    font-family: var(--body-font);
    font-size: 1.6rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--color-accent);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.vol-btn:hover,
.vol-btn:focus-visible {
    background: #fff;
    color: var(--color-accent);
    border-color: #fff;
    transform: translateY(-2px);
}

.vol a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 40rem) {
    .vol-hero {
        min-height: 56vh;
    }

    .vol-step {
        grid-template-columns: 4.4rem 1fr;
        gap: 1.4rem;
    }

    .vol-step__n {
        width: 4.4rem;
        height: 4.4rem;
        font-size: 1.8rem;
    }
}
