@import url(https://fonts.bunny.net/css?family=nunito-sans:300,400,500,600,700,800);

/* Brand colours */
:root {
    --color-primary: #7413dc;
    --color-primary-dark: #5c10b4;
    --color-primary-rgb: 116, 19, 220;
}

/* Base reset and setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Nunito Sans", sans-serif;
    line-height: 1.6;
    color: #222;
}
img {
    max-width: 100%;
    display: block;
}
.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--color-primary);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    text-decoration: none;
    z-index: 10000;
}
.skip-link:focus {
    top: 0;
}
.required {
    color: #c91f0a;
}

/* Focus states for keyboard navigation */
a:focus,
button:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-color: var(--color-primary);
}

.btn-primary:focus,
.btn-primary-white:focus {
    outline: 2px solid #222;
    outline-offset: 2px;
}

/* Header */
header {
    background: white;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.5rem;
    border-bottom: 1px solid transparent;
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        backdrop-filter 0.25s ease;
}
header.header-scrolled {
    background: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    backdrop-filter: blur(16px) saturate(180%);
    border-bottom-color: rgba(244, 244, 245, 0.9);
}
/* backdrop-filter creates a containing block for fixed children,
   which breaks the full-screen nav drawer — disable it while open */
header.nav-open {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: white;
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: none;
    padding: 0.5rem 6rem;
}
.logo a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.logo-small {
    height: 40px;
    margin-bottom: -5px;
}
.logo-name {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 0.8rem;
}
nav {
    display: flex;
    align-items: center;
    gap: 3rem;
}

/* Mobile menu toggle - HIDDEN on desktop by default */
nav .mobile-menu-toggle {
    display: none;
    background: none;
    border: 1.5px solid #555;
    border-radius: 4px;
    cursor: pointer;
    padding: 0.5rem;
    color: #222;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 5px 0 0 0;
    padding: 0;
    align-items: center; /* Vertically align list items */
}
nav ul li {
    display: flex;
    align-items: center;
    margin: 0 0.25rem;
}

/* Join button in nav */
nav ul li .btn-primary {
    display: inline-flex;
    align-items: center;
}

/* Navigation links - consolidated styles */
nav a {
    text-decoration: none;
    color: #222;
    font-size: 0.985rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

nav a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.nav-link-icon {
    display: inline-flex;
    align-items: center;
    width: 22px;
    height: 22px;
}

.nav-link-icon svg {
    width: 100%;
    height: 100%;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    padding: 0.4rem 0.9rem;
    text-decoration: none;
    border-radius: 2px;
}
.btn-primary:hover {
    background: var(--color-primary-dark);
    text-decoration: none;
    color: #ffffff;
}
.btn-secondary {
    background: black;
    color: white;
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    border-radius: 4px;
    margin-left: 1rem;
}
.btn-primary-white {
    background: white;
    color: #222;
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    border-radius: 2px;
    font-weight: 700;
}

/* Social Media Links in Header */

/* Desktop: Divider item (vertical line) */
.social-divider-item {
    display: flex;
    align-items: center;
    margin-right: -0.6rem;
}

.social-divider {
    width: 1px;
    height: 24px;
    background: rgba(var(--color-primary-rgb), 0.2);
}

/* Desktop: Social section wrapper */
.social-item {
    display: flex;
    align-items: center;
}

.social-section {
    display: flex;
    align-items: center;
}

/* Social links list */
.social-links {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-direction: row;
}

.social-links li {
    display: flex;
    border-bottom: none;
    width: auto;
}

/* Social icon links */
.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    color: #222;
    transition: all 0.2s ease;
    text-decoration: none;
    border-radius: 8px;
}

.social-links a:hover {
    color: var(--color-primary);
}

.social-links a:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Icon sizing */
.social-links svg {
    width: 22px;
    height: 22px;
}

/* Hero */
.hero {
    background: url("https://cdn.scoutpages.co.uk/images/hero.jpg") center/cover
        no-repeat;
    position: relative;
    margin-top: 80px;
    padding: 3rem 0;
}
.hero .container {
    min-height: 50vh;
    display: flex;
    align-items: center; /* vertical center */
}
.hero-text-box {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 3rem;
    max-width: 600px;
    text-align: left;
    border-radius: 2px;
    opacity: 0;
    transform: translateY(-20px);
    animation: heroFloat 2s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
@keyframes heroFloat {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.hero-text-box h1 {
    font-size: 2.7rem;
    margin-bottom: 1rem;
    line-height: 3.2rem;
}
.hero-text-box p {
    font-size: 1.1rem;
}
.hero-buttons {
    margin-top: 2rem;
}

/* Form */
form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

label {
    font-weight: bold;
    margin-bottom: 0.3rem;
}

input,
select,
textarea {
    padding: 0.8rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
}

button {
    background-color: var(--color-primary);
    color: white;
    padding: 0.9rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

button:hover {
    background-color: var(--color-primary-dark);
}
.form-response-box {
    width: 100%;
    padding: 1rem;
    background: #a7f3d0;
    border-radius: 2px;
    border: 1px solid #34d399;
}
.form-response-box p {
    color: #022c22;
}
.form-response-box.form-error {
    background: #fee2e2;
    border-color: #f87171;
}
.form-response-box.form-error p {
    color: #7f1d1d;
}

/* Join form — preferred days chips */
fieldset {
    border: 1.5px solid #e4e4e7;
    border-radius: 8px;
    padding: 14px 16px;
}
fieldset legend {
    padding: 0 6px;
    font-size: 14px;
    font-weight: 600;
    color: #18181b;
}
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 6px;
    padding: 4px 0;
}
.checkbox-group .checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #f4f4f5;
    border: 1.5px solid #e4e4e7;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition:
        border-color 0.15s,
        background 0.15s;
    user-select: none;
    white-space: nowrap;
}
.checkbox-group .checkbox-label:has(input:checked) {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1d4ed8;
}
.checkbox-group .checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    accent-color: #3b82f6;
    flex-shrink: 0;
}

/* Join form — standalone checkbox rows (volunteer, sibling) */
.check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 15px;
    line-height: 1.4;
}
.check-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: #3b82f6;
}

/* Page Content */
.content {
    padding: 3rem 1rem;
}
.content .container {
    max-width: 1024px;
}
.content .intro {
    font-size: 1.2rem;
    padding: 0;
    margin: 0 0 1rem 0;
    color: #222;
}
.content p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 2rem;
    color: #4b5563;
}
.pb-1 {
    padding-bottom: 1rem;
}
.opportunities {
    max-width: 1280px;
    padding: 0 1rem 4rem 1rem;
    margin: 0 auto;
    background: white;
}

/* Opportunity detail page */
.opp-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.25rem 1.5rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.opp-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.opp-meta-item strong {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6b7280;
}

.opp-meta-item span {
    font-size: 1.05rem;
    color: #222;
}

/* Venue hire — capacity & map tags */
.hire-info-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.hire-info-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    background: #f4f0fd;
    color: #5b21b6;
    border: 1px solid #ddd6fe;
    border-radius: 99px;
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
}

.hire-info-tag--link {
    text-decoration: none;
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    transition: background 0.15s ease;
}

.hire-info-tag--link:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: #fff;
}

.hire-info-tag svg {
    flex-shrink: 0;
}

/* Venue hire — facilities 2-column list */
.hire-facilities-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.hire-facilities-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 0.75rem;
}

.hire-facilities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.hire-facilities-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: #374151;
}

.hire-facilities-item svg {
    flex-shrink: 0;
    color: var(--color-primary);
}

.opp-apply {
    margin-top: 1.5rem;
}

.opp-enquiry {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid #e5e7eb;
}

.opp-enquiry h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 0.5rem;
}

.opp-enquiry-desc {
    color: #4b5563;
    margin-bottom: 1.5rem;
}

.volunteer {
    max-width: 800px;
    padding: 2rem;
    background: #006ddf;
    border-radius: 2px;
    margin: 1rem auto;
    color: white;
    font-size: 1.2rem;
}

.opportunities h2 {
    margin: 0;
    font-size: 2.5rem;
    color: #222;
    font-weight: 800;
}

.volunteer-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    table-layout: fixed;
    margin-bottom: 10rem;
}

.volunteer-table th {
    background: #088486;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 16px;
}

.volunteer-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.volunteer-table tr:last-child td {
    border-bottom: none;
}

.volunteer-table tr:hover {
    background-color: #f8f9ff;
    transition: background-color 0.3s ease;
}

/* Column width distribution */
.volunteer-table th:nth-child(1),
.volunteer-table td:nth-child(1) {
    width: 25%; /* Role column - more space */
}

.volunteer-table th:nth-child(2),
.volunteer-table td:nth-child(2) {
    width: 55%; /* Description column */
}

.volunteer-table th:nth-child(3),
.volunteer-table td:nth-child(3) {
    width: 20%; /* Apply column - adequate button space */
    text-align: center;
}

.apply-btn {
    background: #006ddf;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 1px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.apply-btn:hover {
    transform: translateY(-1px);
    background: #3b82f6;
}

.apply-btn:active {
    transform: translateY(0);
}

/* Opportunity cards */
.opp-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.opp-card {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    padding: 1.5rem 2rem;
    background: #f9fafb;
    border-radius: 6px;
    border-left: 3px solid var(--color-primary);
}

.opp-card-field {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.opp-card-role {
    flex: 0 0 200px;
}

.opp-card-summary {
    flex: 1;
    min-width: 0;
}

.opp-card-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
}

.opp-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
}

.opp-card-team {
    font-size: 0.9rem;
    color: #6b7280;
}

.opp-card-value {
    font-size: 0.95rem;
    color: #222;
    line-height: 1.5;
}

.opp-card-action {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    align-self: center;
    margin-left: auto;
}

.opp-card-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
}

.opp-card-link:hover {
    text-decoration: underline;
}

/* Intro section */
.intro {
    background: white;
    padding: 4rem 1rem;
    max-width: 1280px;
    margin: 0 auto;
}
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}
.intro h2 {
    font-size: 3.4rem;
    margin-bottom: 1rem;
    font-weight: 800;
    line-height: 3.7rem;
}
.highlight {
    color: var(--color-primary);
    font-weight: 800;
    display: block;
}
.intro p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 2.3rem;
    color: #4b5563;
}
.intro-image {
    justify-self: end;
    margin-right: 20px;
}
.image-wrapper {
    position: relative;
    max-width: 300px;
    margin: 0 auto;
}

.image-wrapper img {
    border-radius: 2px;
    position: relative;
    z-index: 2;

    transform: translateX(-16px);
    animation: imageIn 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) 0.1s forwards;
}
.purple-box {
    position: absolute;
    bottom: -24px;
    right: -24px;
    background: var(--color-primary);
    width: 100%;
    height: 100%;
    z-index: 1;
    border-radius: 4px;

    transform: translateX(50px);
    animation: purpleIn 1s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.intro .btn-primary {
    padding: 0.8rem 1.2rem;
    text-decoration: none;
    border-radius: 2px;
    font-size: 1.1rem;
}
@keyframes imageIn {
    to {
        transform: translateX(0);
    }
}

@keyframes purpleIn {
    to {
        transform: translateX(0);
    }
}

/* Get Involved */
.involved {
    max-width: 1280px;
    padding: 5rem 1rem;
    margin: 0 auto;
}

.involved h2 {
    margin: 0;
    font-size: 2.5rem;
    color: #222;
    font-weight: 800;
}
.involved p,
.opportunities p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    line-height: 2.3rem;
    color: #4b5563;
}

.columns {
    display: flex;
    gap: 4rem 6rem;
    flex-wrap: wrap;
    justify-content: left;
}

.column {
    flex: 1 1 400px;
    max-width: calc(50% - 3rem);
    text-align: left;
    background: color-mix(in srgb, var(--section-color) 5%, white);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.column:hover {
    transform: translateY(-3px);
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.05);
}

.column h3,
.column h3 a {
    font-size: 1.2rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--section-color);
}

.column p {
    font-size: 1rem;
    line-height: 1.8rem;
    color: #4b5563;
    margin: 0 0 1rem 0;
}

.column strong {
    color: var(--section-color);
}

.column ul {
    margin-top: 1rem;
    padding-left: 0;
    list-style: none;
}

.column li {
    margin-bottom: 0.5rem;
    color: #4b5563;
}

.accent {
    width: 50px;
    height: 3px;
    background: var(--section-color);
    display: block;
}

.blue {
    --section-color: #006ddf;
}
.green {
    --section-color: #205b41;
}
.purple {
    --section-color: var(--color-primary);
}
.red {
    --section-color: #c91f0a;
}
.teal {
    --section-color: #00838f;
}

.section-join {
    margin-top: 2rem; /* adjust this value as you like – 2rem looks perfect */
}

/* Section title link styling */
.section-title-link {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.section-title-link:hover {
    text-decoration: underline;
}

.external-link-icon {
    display: inline-block;
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.section-title-link:hover .external-link-icon {
    opacity: 1;
}

/* Update button styles - remove border-radius and fix sizing */
.red-btn,
.blue-btn,
.green-btn,
.purple-btn,
.teal-btn {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 0;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    color: white;
    font-size: 0.9rem;
}

.red-btn {
    background-color: #e02a2a;
}

.red-btn:hover {
    background-color: #c41e3a;
}

.blue-btn {
    background-color: #006dcc;
}

.blue-btn:hover {
    background-color: #005bb5;
}

.green-btn {
    background-color: #007a36;
}

.green-btn:hover {
    background-color: #005c28;
}

.purple-btn {
    background-color: var(--color-primary);
}

.purple-btn:hover {
    background-color: #5e0fb3;
}

.teal-btn {
    background-color: #00838f;
}

.teal-btn:hover {
    background-color: #006064;
}

/* Footer */
footer {
    background: var(--color-primary);
    color: white;
    text-align: center;
    padding: 3rem 0;
    font-size: 0.9rem;
    margin-top: 3rem;
}
footer .container {
    max-width: none;
    padding: 0 6rem;
}
footer .columns {
    justify-content: space-between;
}

footer .column:not(:first-child) {
    flex-grow: 0;
}
footer .column {
    flex: 1 1 150px;
    text-align: left;
    border-top: 0;
    padding: 0;
}
footer .column:hover {
    transform: translateY(0);
    box-shadow: none;
}
footer .column h3 {
    font-size: 1rem;
}
footer .social {
    width: 30px;
    height: 30px;
    display: block;
    margin-top: 1rem;
    color: white;
}
footer .column ul {
    margin: 1rem 0 0 0;
    padding: 0;
}
footer .column li {
    color: white;
}
footer a {
    color: white;
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}

footer .column p {
    color: white;
    font-size: 0.9rem;
    opacity: 0.7;
    margin: 0;
    line-height: 1.45rem;
}
/* ===== Pages (About, Parents, Volunteer Hub) ===== */

/* Page Banner - constrained to content width */
.page-banner {
    margin-top: 80px;
    padding: 5rem 1rem;
    color: white;
}

.page-banner .container {
    max-width: 1024px;
}

.page-banner h1 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.page-banner p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    line-height: 1.6;
}

/* Page Content (user-written from editor) */
.page-content {
    background: white;
    padding: 2rem 1rem;
}

.page-content-alt {
    background: #f9fafb;
}

.page-content .container {
    max-width: 1024px;
}

.page-content h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #222;
    margin-bottom: 1rem;
}

.page-content p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 2rem;
    color: #4b5563;
}

.page-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #222;
    margin: 2rem 0 0.5rem;
}

.page-content h3:first-child {
    margin-top: 0;
}

.page-content ul,
.page-content ol {
    margin: 0 0 1rem 1.5rem;
    color: #4b5563;
    font-size: 1.1rem;
    line-height: 2rem;
}

.page-content li {
    margin-bottom: 0.1rem;
    margin-left: 1rem;
}

.page-content a {
    color: var(--color-primary);
    text-decoration: underline;
}

.page-content a:hover {
    color: var(--color-primary-dark);
}

/* Inline links in body text use blue for readability */
.page-content p a,
.page-content li a {
    color: #006ddf;
    text-decoration: none;
}

.page-content p a:hover,
.page-content li a:hover {
    text-decoration: underline;
    color: #003982;
}

.page-content strong {
    font-weight: 700;
    color: #222;
}

/* Highlight section (e.g. Safeguarding) */
.page-highlight {
    background: #fef08a;
    padding: 2rem 1.8rem;
    border-top: 3px solid #fde047;
    max-width: 1024px;
    margin: 5rem auto;
    border-radius: 6px;
}

.page-highlight h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #09090b;
    margin-bottom: 0.75rem;
}

.page-highlight p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #27272a;
    margin: 0;
}

.page-highlight a {
    color: #166534;
    text-decoration: underline;
    font-weight: 600;
}

.page-highlight a:hover {
    color: #14532d;
}

/* Section cards (age groups for parents page) */
.page-section-cards {
    background: white;
    padding: 0 1rem;
}

.page-section-cards .container {
    max-width: 1024px;
}

.page-section-cards h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #222;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
}

.section-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.section-card {
    display: block;
    padding: 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    color: white;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.section-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: white;
}

.section-card-ages {
    display: block;
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 0.25rem;
}

.section-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}

.section-card p {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.4;
    margin: 0;
}

.section-card-red {
    background-color: #e02a2a;
}
.section-card-blue {
    background-color: #006dcc;
}
.section-card-green {
    background-color: #007a36;
}
.section-card-purple {
    background-color: var(--color-primary);
}

/* ===== Volunteer Hub - Team Structure ===== */

.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1rem;
    margin-top: 1.5rem;
}

.team-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-left: 4px solid;
    border-radius: 6px;
    padding: 1.5rem;
}

/* Trustee Board - blue, top left */
.team-card-trustee {
    grid-column: 1;
    grid-row: 1;
    border-left-color: #006dcc;
}
.team-card-trustee h3 {
    color: #006dcc;
}

/* Section Teams - purple, right side spanning both rows */
.team-card-sections {
    grid-column: 2;
    grid-row: 1 / 3;
    border-left-color: var(--color-primary);
}
.team-card-sections h3 {
    color: var(--color-primary);
}

/* Group Leadership - green, bottom left */
.team-card-leadership {
    grid-column: 1;
    grid-row: 2;
    border-left-color: #007a36;
}
.team-card-leadership h3 {
    color: #007a36;
}

.team-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.team-card > p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #4b5563;
    margin: 0 0 1rem 0;
}

.team-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.team-roles span {
    font-size: 0.85rem;
    font-weight: 600;
    color: #222;
    padding: 0.3rem 0.75rem;
    background: #f3f4f6;
    border-radius: 4px;
}

.team-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.team-section-col {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.team-section-col strong {
    font-size: 0.9rem;
    color: #222;
    margin-bottom: 0.25rem;
}

.team-section-col span {
    font-size: 0.85rem;
    color: #6b7280;
}

/* ===== Resource Grid (3 columns) ===== */

.page-resources {
    padding-top: 3rem;
}

.page-resources .container {
    max-width: 1024px;
}

.page-resources h2 {
    margin-bottom: 1rem;
}

.resource-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.resource-card {
    display: flex;
    flex-direction: column;
    padding: 1.75rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    text-decoration: none;
    color: #222;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.resource-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(var(--color-primary-rgb), 0.1);
}

.resource-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.resource-card p {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

.resource-card-arrow {
    display: flex;
    align-items: center;
    margin-top: 1.25rem;
    color: #9ca3af;
    transition: color 0.15s ease;
}

.resource-card:hover .resource-card-arrow {
    color: var(--color-primary);
}

.powered-by {
    text-align: left;
}

.footer-contact-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.powered-by-badge {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    padding: 0.3rem 0.85rem;
    text-decoration: none;
    color: inherit;
}

/* ===== Learning Page ===== */

/* Timeline groups */
.learning-group {
    margin-bottom: 2rem;
}

.learning-group:last-child {
    margin-bottom: 0;
}

.learning-group-header {
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.learning-group-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    color: white;
}

.learning-group-urgent .learning-group-badge {
    background: #dc2626;
}

.learning-group-standard .learning-group-badge {
    background: #003982;
}

.learning-group-extended .learning-group-badge {
    background: #6b7280;
}

/* Card grid */
.learning-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Individual cards */
.learning-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
}

.learning-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.learning-card-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #222;
    margin: 0;
    line-height: 1.3;
}

.learning-card > p {
    font-size: 0.9rem;
    line-height: 1.55;
    color: #4b5563;
    margin: 0;
    flex: 1;
}

/* Tags */
.learning-tag {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    white-space: nowrap;
    flex-shrink: 0;
}

.learning-tag-renew {
    background: #fef3c7;
    color: #92400e;
}

/* Who needs this */
.learning-who {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7280;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f3f4f6;
}

/* ===== Banner Split (2-column with link) ===== */

.banner-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.banner-split-text {
    flex: 1;
}

.banner-split-links {
    flex-shrink: 0;
}

.banner-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 600;
    transition: opacity 0.15s ease;
}

.banner-link:hover {
    opacity: 0.8;
}

.banner-link svg {
    color: white;
}

/* Responsive Design */

/* Tablet landscape and below — switch to hamburger nav */
@media (max-width: 1024px) {
    nav {
        position: relative;
    }

    nav .mobile-menu-toggle {
        display: block;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }

    nav > ul {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        flex-direction: column;
        padding: 5rem 0 2rem 0;
        gap: 0;
        z-index: 1001;
        overflow-y: auto;
    }

    nav > ul.active {
        display: flex;
    }

    nav > ul::before {
        content: "×";
        position: fixed;
        top: 1rem;
        right: 1rem;
        font-size: 3rem;
        line-height: 1;
        color: #222;
        cursor: pointer;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1000;
    }

    nav > ul > li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    nav > ul > li a {
        padding: 1.2rem 1.5rem;
        display: flex;
        width: 100%;
        font-size: 1.1rem;
    }

    nav > ul > li .btn-primary {
        width: calc(100% - 3rem);
        margin: 1rem 1.5rem;
        text-align: center;
        justify-content: center;
    }

    nav > ul > li:last-child {
        border-bottom: none;
    }

    .social-divider-item {
        display: none !important;
    }

    .social-item {
        width: 100% !important;
        border-bottom: none !important;
        padding: 1rem 0 !important;
    }

    .social-section {
        width: 100%;
        justify-content: center;
        padding: 0.5rem 0;
    }

    .social-links {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center;
        gap: 0.75rem !important;
    }

    .social-links li {
        border-bottom: none !important;
        width: auto !important;
    }

    .social-links a {
        width: 44px !important;
        height: 44px !important;
    }

    .social-links svg {
        width: 26px;
        height: 26px;
    }
}

@media (max-width: 768px) {
    .opp-meta {
        flex-direction: column;
        gap: 1rem;
    }

    header .container,
    footer .container {
        padding: 0 2rem;
    }

    /* Reduce hero height on mobile */
    .hero .container {
        min-height: 35vh;
    }

    .hero-text-box {
        padding: 2rem;
    }

    .hero-text-box h1 {
        font-size: 1.8rem;
        line-height: 2.2rem;
    }

    .hero-text-box p {
        font-size: 1rem;
    }

    .banner-split {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }

    /* Typography adjustments */
    .intro h2 {
        font-size: 2rem;
        line-height: 2.4rem;
    }

    .intro p {
        font-size: 1rem;
        line-height: 1.8rem;
    }

    .involved h2 {
        font-size: 1.8rem;
    }

    .involved p {
        font-size: 1rem;
        line-height: 1.8rem;
    }

    .involved .column {
        max-width: 100%;
    }

    /* Intro grid stacks on mobile */
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .intro-image {
        display: none;
    }

    .image-wrapper {
        max-width: 250px;
    }

    /* Footer stacks on mobile */
    footer .columns {
        flex-direction: column;
        gap: 2rem;
    }

    footer .column {
        flex: 1 1 100%;
        text-align: left;
    }

    body {
        padding: 10px;
    }

    .container {
        padding: 20px;
    }

    /* Stack opportunity cards on mobile */
    .opp-card {
        flex-direction: column;
        gap: 1rem;
        padding: 1.25rem 1.5rem;
    }

    .opp-card-role {
        flex: none;
    }

    .opp-card-action {
        margin-left: 0;
    }

    h1 {
        font-size: 24px;
    }

    .page-banner {
        padding: 3.5rem 1rem;
    }

    .page-banner h1 {
        font-size: 1.8rem;
    }

    .section-cards-grid {
        grid-template-columns: 1fr;
    }
    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-card-sections {
        grid-column: 1;
        grid-row: auto;
    }

    .team-card-leadership {
        grid-column: 1;
        grid-row: auto;
    }

    .team-sections {
        grid-template-columns: 1fr 1fr;
    }

    .resource-grid {
        grid-template-columns: 1fr;
    }
    .learning-cards {
        grid-template-columns: 1fr;
    }
}

/* ===== FAQ Accordion (public site) ===== */

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.125rem 1.375rem;
    cursor: pointer;
    list-style: none;
    font-size: 1rem;
    font-weight: 700;
    color: #111;
    user-select: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question span {
    flex: 1;
}

.faq-chevron {
    flex-shrink: 0;
    color: #6b7280;
    transition: transform 0.2s ease;
}

.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.375rem 1.25rem;
    border-top: 1px solid #f3f4f6;
}

.faq-answer p {
    margin: 0;
    padding-top: 1rem;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #374151;
    white-space: pre-wrap;
}
