section {
    display: flex;
    position: relative;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(6rem, 9vw, 10rem) clamp(2rem, 6vw, 8rem);
    scroll-margin-top: 9rem;
    background: var(--color-white);
}

@media screen and (max-width: 60rem) {
    section {
        padding: 5rem clamp(2.6rem, 5vw, 4rem);
    }
}

/* Westonbirt-style section header: small label + hairline rule + back-to-top,
   sitting above each homepage section (rendered by index.php). */
.section-head {
    padding: 0 clamp(2rem, 6vw, 8rem);
    margin-top: clamp(5rem, 8vw, 9rem);
}

@media screen and (max-width: 60rem) {
    .section-head {
        padding: 0 clamp(2.6rem, 5vw, 4rem);
    }
}

.section-head__inner {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--rule, #e6e3dd);
}

.section-head__label {
    margin: 0;
    font-family: var(--display-font);
    font-weight: 500;
    font-size: clamp(2.4rem, 3.4vw, 3.4rem);
    line-height: 1.15;
    color: var(--color-black);
}

.section-head__top {
    flex: none;
    font-size: 1.4rem;
    color: var(--color-grey-dark-2);
    text-decoration: none;
    transition: color 0.15s ease;
}

.section-head__top:hover,
.section-head__top:focus-visible {
    color: var(--color-accent);
}

/* The section heading now lives in the section-head row, so hide the
   in-body .section__title on the homepage (avoids a duplicate heading).
   Section body content stays centred (site default). */
main.home section .section__title {
    display: none;
}

/* Section directly under a section-head needs less top padding. */
.section-head+section {
    padding-top: clamp(2.5rem, 4vw, 4rem);
}

/* "Sponsorship" / "History" are full-bleed feature blocks, not sections:
   no section-head above them (see index.php) and a tighter band padding. */
main.home>.website-sponsor,
main.home>.photo-text {
    padding-top: clamp(4rem, 6vw, 6rem);
    padding-bottom: clamp(4rem, 6vw, 6rem);
}



.section__body {
    display: flex;
    margin: 0 auto;
    max-width: 700px;
    align-items: center;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;

    /* border: red solid 10px;
    background-color: blue; */
}

.section p span {
    text-align: center;
    font-weight: bold;

    display: block;
    font-size: 2.4rem;
    margin-bottom: 5rem;
}

@media (max-width: 60rem) {
    .section {
        padding: 5rem clamp(2.6rem, 5vw, 4rem);
    }
}

.section__title {
    font-family: var(--display-font);
    font-size: clamp(2.8rem, 4vw, 4rem);
    font-weight: 500;
    text-transform: none;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.section__title--gradient {
    background: var(--gradient-2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    z-index: 2;
}

.section__title--red {
    background: var(--gradient-2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 60rem) {
    .section__title {
        font-size: 3rem;
    }
}

.section--fundraise {
    background-color: var(--color-white);
}

.section--history {
    background: var(--color-white);
    color: var(--color-black);
}

.section--history p {
    max-width: 68rem;
    font-size: 1.75rem;
    line-height: 1.7;
}

.section--history .section__text>span:first-child {
    /* the lead sentence of each era intro */
    font-weight: 600;
}



section a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: bold;
    text-underline-offset: 0.2em;
    transition: color var(--duration-fast) var(--ease-smooth), text-decoration-color var(--duration-fast) var(--ease-smooth);
}

section a:hover {
    text-decoration: underline;
    color: var(--color-accent-dark);
}

/* Button- and tile-styled links are not body text — never underline them on hover. */
section a.button,
section a.button:hover,
section a.btn,
section a.btn:hover,
section a:has(> button),
section a:has(> button):hover,
section .hf-link,
section .hf-link:hover,
section [class*="__cta"],
section [class*="__cta"]:hover {
    text-decoration: none;
}

.gallery img.thumbnail {
    max-width: 200px;
    height: auto;
}

#register-msg {
    margin-bottom: 20px;
}

.map-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 800px;
    padding-top: 56.25%;
    margin: 2rem 0 2rem 0;
    /* 16:9 aspect ratio */
    border-radius: 12px;
    /* optional: rounded corners */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    /* optional: subtle shadow */
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.section__video {
    position: relative;
    width: min(900px, 100%);
    aspect-ratio: 16 / 9;
    margin: 2rem auto;
    background: #000;
}

.section__video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.section__right-panel {
    margin: 3rem 0 0;
    width: 100%;
    max-width: 600px;
}

.section__image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.section__subtitle {

    text-align: center;
    margin-bottom: 1rem;
}
