/* ============================================
   PAGES.CSS — Shared Page Styles
   CLEAN & GREEN Initiative CBO
   ============================================ */

/* ── Page Backgrounds ──────────────────────── */
.site-main > .home-page,
.site-main > .about-page,
.site-main > .projects-page,
.site-main > .leadership-page,
.site-main > .leadership-content,
.site-main > .membership-page,
.site-main > .main-content,
.site-main > .news-page-wrap,
.site-main > .news-shell,
.site-main > .project-detail-page {
    background: var(--color-off-white);
}

/* ── Section Spacing ───────────────────────── */
.section,
.impact,
.about-teaser,
.featured-projects,
.news-events,
.leadership-teaser,
.partners,
.gallery-preview,
.contact-cta,
.leadership-section,
.application-wizard,
.impact-section,
.events-section,
.news-grid-section,
.gallery-section,
.social-section,
.newsletter-section,
.project-detail {
    padding-block: var(--section-padding);
}

/* ── Section Headings ──────────────────────── */
.section-title,
.section h2,
.section-heading h2,
.section-header h2,
.leadership-section h2 {
    color: var(--color-black);
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    font-weight: var(--fw-extrabold);
    text-align: center;
}

.section-subtitle,
.section-copy,
.subheadline,
.hero-text,
.lead,
.hero-intro,
.hero-support,
.section-heading p,
.section-intro p {
    color: var(--color-mid-gray);
    max-width: 760px;
}

/* ── Eyebrow Labels ────────────────────────── */
.eyebrow,
.section-label,
.panel-label,
.step-label {
    color: var(--color-gold);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: var(--fw-extrabold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ── Unified Hero Sections ─────────────────── */
.page-hero .container,
.about-page .hero .container,
.projects-page .hero .container,
.leadership-hero .hero-content,
.project-hero .container,
.page-hero .hero-content,
.gallery-hero .hero-content {
    width: min(100% - 2rem, var(--page-width));
    max-width: var(--page-width);
    margin-inline: auto;
}

.about-page .hero,
.projects-page .hero,
.leadership-hero,
.project-hero,
.page-hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(18, 18, 18, 0.86), rgba(27, 18, 15, 0.92)),
        var(--color-brown-black);
    color: var(--color-white);
}

.leadership-hero {
    background:
        url('/assets/images/leadership-hero.jpe') center/cover no-repeat;
}

/* duplicate removed — see line 312 */

.about-page .hero::after,
.projects-page .hero::after,
.leadership-hero::after,
.project-hero::after,
.page-hero::after,
.cta-banner::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 5px;
    background: repeating-linear-gradient(
        90deg,
        var(--color-red) 0 10px,
        var(--color-gold) 10px 24px,
        var(--color-light-gold) 24px 40px,
        var(--color-black) 40px 52px
    );
}

.about-page .hero .container,
.about-page .hero-content,
.projects-page .hero .container,
.projects-page .hero-content,
.leadership-hero,
.project-hero .container,
.page-hero .container {
    position: relative;
    z-index: 1;
}

.about-page .hero,
.projects-page .hero,
.leadership-hero,
.project-hero,
.page-hero {
    min-height: clamp(420px, 62vh, 680px);
    display: grid;
    align-items: center;
    padding: clamp(4rem, 6vw, 5rem) 1rem;
}

.about-page .hero-content,
.projects-page .hero-content,
.leadership-hero .hero-content,
.project-hero .container,
.page-hero .container {
    width: min(100% - 2rem, var(--page-width));
    max-width: var(--page-width);
    margin-inline: auto;
}

.about-page .hero h1,
.projects-page .hero h1,
.leadership-hero h1,
.project-hero h1,
.page-hero h1,
.membership-intro h1,
.news-hero h1 {
    max-width: 760px;
    color: var(--color-white);
    font-size: clamp(2.25rem, 6vw, 3.6rem);
}

.about-page .hero p,
.projects-page .hero p,
.leadership-hero p,
.project-hero p,
.page-hero p {
    color: rgba(255, 255, 255, 0.78);
}

.slider {
    position: absolute;
    inset: 0;
}

.slider .slide {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    opacity: 0;
    transition: opacity 600ms ease;
}

.slider .slide.active,
.slider .slide:first-child {
    opacity: 0.34;
}

.overlay,
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(18, 18, 18, 0.48);
}

/* Button base + variants are now in main.css */

/* Page-specific button overrides (hero white-border variants) */
.about-page .hero .btn-secondary,
.about-page .hero .ghost,
.projects-page .hero .btn-secondary,
.membership-intro .btn-ghost,
.leadership-hero .scroll-indicator,
.project-hero .btn-secondary {
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--color-white);
}

.about-page .hero .btn-secondary:hover,
.about-page .hero .ghost:hover,
.projects-page .hero .btn-secondary:hover,
.membership-intro .btn-ghost:hover,
.project-hero .btn-secondary:hover {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-black);
}

.cta,
.hero-ctas,
.hero-actions,
.cta-buttons,
.membership-buttons,
.section-cta,
.partner-cta,
.navigation-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
    margin-top: 1.25rem;
}

.teaser-grid,
.projects-grid,
.leadership-grid,
.partners-grid,
.gallery-grid,
.features-grid,
.cards-grid,
.program-grid,
.pipeline-grid,
.dashboard-grid,
.impact-grid,
.event-grid,
.news-grid,
.social-grid,
.contact-info-grid,
.counters,
.hero-stat-grid,
.stats-grid,
.grid-two,
.review-grid,
.declaration-grid {
    display: grid;
    gap: 1.25rem;
}

.teaser-grid,
.features-grid,
.cards-grid,
.program-grid,
.pipeline-grid,
.partners-grid,
.contact-info-grid,
.hero-stat-grid,
.stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.projects-grid,
.leadership-grid,
.news-grid,
.event-grid,
.social-grid,
.impact-grid,
.gallery-grid,
.dashboard-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.about-page .counters {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.grid-two,
.review-grid,
.declaration-grid,
.two-col,
.detail-content,
.wizard-layout,
.news-hero,
.featured-story {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.5rem, 4vw, 3rem);
}

.card,
.teaser-card,
.project-card,
.leadership-card,
.leader-card,
.feature-card,
.partner-card,
.stat-card,
.counter-card,
.program-card,
.pipeline-card,
.event-card,
.news-card,
.impact-card,
.social-card,
.sidebar-card,
.wizard-panel,
.review-card,
.validation-card,
.metric-box,
.contact-info-card,
.gallery-card {
    overflow: hidden;
    border: 1px solid rgba(18, 18, 18, 0.08);
    border-radius: 8px;
    background: var(--color-soft-white);
    box-shadow: 0 10px 28px rgba(18, 18, 18, 0.07);
}

.teaser-card,
.project-content,
.leader-body,
.feature-card,
.partner-card,
.stat-card,
.counter-card,
.program-card,
.pipeline-card,
.event-card,
.news-card,
.impact-card,
.social-card,
.sidebar-card,
.wizard-panel,
.review-card,
.validation-card,
.metric-box,
.contact-info-card,
.featured-copy,
.newsletter-section,
.cta-inner {
    padding: var(--card-padding);
}

.project-image,
.featured-media,
.gallery-card,
.card-media,
.leader-image,
.leader-image-wrap,
.modal-portrait {
    overflow: hidden;
    background: var(--color-light-gray);
}

.project-image img,
.featured-media img,
.gallery-card img,
.card-media,
.leader-image img,
.leader-image-wrap img,
.modal-portrait img,
.hero-collage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-image,
.featured-media {
    aspect-ratio: 16 / 10;
}

.project-image-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    align-content: center;
    justify-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: linear-gradient(145deg, var(--brand-forest), var(--brand-leaf));
    color: var(--color-white);
    text-align: center;
}

.project-image-placeholder strong {
    color: inherit;
}

.leader-image,
.leader-image-wrap {
    aspect-ratio: 4 / 5;
}

.leader-image-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: var(--brand-forest);
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: var(--fw-extrabold);
}

.leader-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 220px) 1fr;
  gap: 1.2rem;
  padding: 1.15rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  border: 1px solid rgba(18, 18, 18, 0.06);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 320px;
}

.leader-image-wrap {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(212, 160, 23, 0.16), rgba(18, 18, 18, 0.06));
  aspect-ratio: 4 / 5;
  box-shadow: inset 0 0 0 1px rgba(212, 160, 23, 0.35);
}

.leader-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 2px rgba(212, 160, 23, 0.28);
  border-radius: inherit;
  pointer-events: none;
}

.tag,
.category-badge,
.project-badge,
.event-badge,
.event-status,
.leader-badge,
.modal-badge,
.filter-pill,
.chip,
.status-badge,
.partner-item,
.value,
.impact-areas span,
.leader-tags span,
.modal-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    border-radius: 999px;
    background: rgba(212, 160, 23, 0.13);
    color: var(--color-black);
    padding: 0.35rem 0.7rem;
    font-size: 0.78rem;
    font-weight: 700;
}

.filter-tabs,
.project-tags,
.impact-areas,
.leader-tags,
.modal-tags,
.chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn,
.chip,
.step-item,
.modal-close,
.mobile-sidebar__close {
    cursor: pointer;
}

.count,
.stat-value,
.metric-value,
.hero-stat-grid strong,
.stats-grid strong {
    display: block;
    color: var(--color-gold);
    font-family: var(--font-heading);
    font-size: clamp(1.7rem, 4vw, 2.6rem);
    line-height: 1;
}

.timeline-list,
.timeline-view {
    display: grid;
    gap: 1rem;
}

.timeline-item,
.timeline-detail {
    border-left: 4px solid var(--color-gold);
    padding: 1rem 0 1rem 1.2rem;
}

.cta-banner,
.membership-cta,
.newsletter-section {
    position: relative;
    background: #10251d;
    color: var(--color-white);
}

.cta-banner h2,
.membership-cta h2,
.newsletter-section h2 {
    color: var(--color-white);
}

.cta-banner p,
.membership-cta p,
.newsletter-section p {
    color: rgba(255, 255, 255, 0.74);
}

.partner-logo {
    display: grid;
    height: 96px;
    place-items: center;
    border: 1px solid rgba(212, 160, 23, 0.28);
    border-radius: 8px;
    background: var(--color-off-white);
}

.partner-logo span {
    color: var(--color-black);
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
}

.field-group,
.checkbox-field {
    display: grid;
    gap: 0.4rem;
}

.field-group input,
.field-group select,
.field-group textarea,
.newsletter-form input,
.search-box input {
    width: 100%;
    border: 1px solid rgba(18, 18, 18, 0.14);
    border-radius: 4px;
    background: var(--color-white);
    color: var(--color-black);
    padding: 0.78rem 0.9rem;
}

.field-group input.invalid,
.field-group select.invalid,
.field-group textarea.invalid {
    border-color: var(--color-red);
}

.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
}

.step-list {
    display: grid;
    gap: 0.65rem;
}

.step-item {
    width: 100%;
    display: flex;
    gap: 0.7rem;
    align-items: center;
    border: 1px solid rgba(18, 18, 18, 0.1);
    border-radius: 8px;
    background: var(--color-white);
    padding: 0.8rem;
    text-align: left;
}

.step-item.active {
    border-color: var(--color-gold);
    background: rgba(212, 160, 23, 0.12);
}

.step-number {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 50%;
    background: var(--color-black);
    color: var(--color-white);
    font-weight: 800;
}

.step-tracker {
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--color-light-gray);
    margin-bottom: 1rem;
}

.progress-bar {
    height: 100%;
    width: 0;
    background: var(--color-gold);
}

.sidebar {
    height: fit-content;
    position: sticky;
    top: 6rem;
}

.project-hero--green {
    background: linear-gradient(rgba(18,18,18,0.65), rgba(18,18,18,0.45)), url('/assets/images/gallery/slide1.jpg') center/cover;
}

.project-hero--culture {
    background: linear-gradient(rgba(18,18,18,0.65), rgba(18,18,18,0.45)), url('/assets/images/gallery/slide2.jpg') center/cover;
}

.project-hero--nursery {
    background: linear-gradient(rgba(18,18,18,0.65), rgba(18,18,18,0.45)), url('/assets/images/gallery/slide3.jpg') center/cover;
}

.leader-modal {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: none;
}

.leader-modal.is-open {
    display: block;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 18, 18, 0.72);
}

.modal-dialog {
    position: relative;
    width: min(100% - 32px, 980px);
    max-height: calc(100vh - 48px);
    overflow: auto;
    margin: 24px auto;
    border-radius: 8px;
    background: var(--color-white);
}

.modal-body {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 1.5rem;
    padding: 1.5rem;
}

.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: var(--color-black);
    color: var(--color-white);
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 860px) {
    .grid-two,
    .review-grid,
    .declaration-grid,
    .two-col,
    .detail-content,
    .wizard-layout,
    .news-hero,
    .featured-story,
    .modal-body {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .about-page .hero,
    .projects-page .hero,
    .leadership-hero,
    .project-hero,
    .page-hero {
        min-height: auto;
    }
}

/* About page */
.about-page .hero {
    background:
        linear-gradient(rgba(18, 18, 18, 0.72), rgba(18, 18, 18, 0.55)),
        url('/assets/images/gallery/slide4.jpg') center/cover no-repeat;
}

.about-page .hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-page .hero-overlay {
    padding: clamp(4rem, 8vw, 6rem) 0;
}

.about-page .two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}

.about-page .highlights {
    list-style: disc;
    padding-left: 1.25rem;
}

.about-page .values-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.about-page .story-inner {
    padding: clamp(1.2rem, 3vw, 1.8rem);
    border-radius: 8px;
    background: var(--color-soft-white);
    border: 1px solid rgba(18, 18, 18, 0.08);
}

.about-page .timeline-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-page .timeline-item {
    position: relative;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.about-page .timeline-item.is-visible {
    opacity: 1;
    transform: none;
}

.about-page .timeline-item::before {
    content: attr(data-date);
    display: inline-block;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background: rgba(212, 160, 23, 0.14);
    font-size: 0.85rem;
    font-weight: 700;
}

.about-page .why-list {
    display: grid;
    gap: 0.65rem;
    padding-left: 1.25rem;
}

.about-page .partner {
    padding: 0.85rem;
    border-radius: 8px;
    border: 1px solid rgba(18, 18, 18, 0.08);
    background: var(--color-soft-white);
    text-align: center;
    font-weight: 600;
}

.about-page .counter {
    padding: 1rem;
    border-radius: 8px;
    background: var(--color-soft-white);
    text-align: center;
}

.vmv .card {
    padding: 1rem;
    border-radius: 8px;
    background: var(--color-soft-white);
    border: 1px solid rgba(18, 18, 18, 0.08);
}

/* Projects page */
.projects-page .hero {
    background:
        linear-gradient(rgba(18, 18, 18, 0.72), rgba(18, 18, 18, 0.55)),
        url('/assets/images/gallery/slide1.jpg') center/cover no-repeat;
}

.projects-page .hero-overlay {
    padding: clamp(4rem, 8vw, 4rem) 0;
}

.projects-page .hero .hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.projects-page .hero .hero-content .hero-ctas {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.projects-page .hero .hero-content .hero-ctas .btn {
    min-width: 180px;
}

@media (max-width: 720px) {
    .projects-page .hero .hero-content {
        width: min(100%, calc(100% - 32px));
    }

    .projects-page .hero .hero-content .hero-ctas {
        flex-direction: column;
        align-items: center;
    }

    .projects-page .hero .hero-content .hero-ctas .btn {
        width: 100%;
        max-width: 340px;
    }
}

.projects-page .project-card {
    display: flex;
    flex-direction: column;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.projects-page .project-image {
    position: relative;
    height: 250px;
}

.projects-page .project-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.projects-page .project-badge.upcoming {
    background: var(--color-red);
    color: var(--color-white);
}

.projects-page .project-content {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.projects-page .project-card .btn {
    align-self: flex-start;
    margin-top: auto;
}

.projects-page .tag.environment { background: rgba(46, 125, 74, 0.15); color: #2e7d4a; }
.projects-page .tag.cultural { background: rgba(178, 34, 34, 0.15); color: var(--color-red); }
.projects-page .tag.youth { background: rgba(212, 160, 23, 0.15); }
.projects-page .tag.entrepreneurship,
.projects-page .tag.community { background: rgba(18, 18, 18, 0.08); }

.projects-page .program-card {
    border-left: 4px solid var(--color-gold);
    transition: transform var(--transition-base);
}

.projects-page .program-card:hover {
    transform: translateX(8px);
}

.projects-page .timeline-view .timeline-item {
    padding: 1.5rem;
    padding-left: 3rem;
    background: var(--color-soft-white);
    border-radius: 8px;
}

.projects-page .timeline-view .timeline-item::before {
    content: attr(data-date);
    position: absolute;
    left: -2rem;
    top: 1rem;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    background: var(--color-gold);
    color: var(--color-black);
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
}

.projects-page .timeline-view .timeline-item.active {
    border-left-color: var(--color-gold);
}

.projects-page .timeline-view .timeline-item.upcoming {
    border-left-color: var(--color-red);
}

.projects-page .gallery-item {
    position: relative;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
}

.projects-page .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.projects-page .gallery-item:hover img {
    transform: scale(1.08);
}

/* Project detail pages */
.project-detail-page {
    padding-bottom: 3rem;
}

.back-link {
    display: inline-flex;
    margin: 1rem auto 0;
    width: min(100% - 32px, var(--container));
    padding-left: 1rem;
    color: var(--color-mid-gray);
    font-weight: 600;
}

.back-link:hover,
.back-link:focus-visible {
    color: var(--color-gold);
}

.project-hero {
    min-height: clamp(320px, 45vh, 480px);
    display: grid;
    align-items: end;
    padding: clamp(3rem, 6vw, 5rem) 1rem;
}

.project-hero__lead {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.1rem;
}

.detail-section {
    margin-bottom: 2rem;
}

.detail-section h3 {
    margin-bottom: 0.75rem;
}

.detail-section ul {
    padding-left: 1.25rem;
}

.detail-action-secondary {
    margin-left: 0.5rem;
}

.project-detail .sidebar {
    padding: 1.5rem;
    border-radius: 8px;
    background: var(--color-soft-white);
    border: 1px solid rgba(18, 18, 18, 0.08);
}

.project-detail .sidebar h4 {
    margin-top: 1.25rem;
}

.project-detail .sidebar h4:first-child {
    margin-top: 0;
}

.opportunity-item {
    margin-bottom: 0.5rem;
}

.status-row {
    margin-bottom: 1.5rem;
}

.timeline-detail {
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 3px solid var(--color-gold);
}

/* Leadership page */
.leadership-hero {
    background:
        linear-gradient(rgba(18, 18, 18, 0.72), rgba(18, 18, 18, 0.55)),
        url('/assets/images/gallery/green/Community Tree Planting Team.webp') center/cover no-repeat;
}

.leadership-hero .hero-overlay {
    padding: clamp(2rem, 6vw, 3rem) 0;
}

.leadership-hero .hero-content {
    max-width: 760px;
    text-align: center;
    width: min(100% - 32px, var(--container));
    margin-inline: auto;
}

.leadership-hero h1,
.hero-copy {
    color: var(--color-white);
}

.hero-kicker {
    color: var(--color-light-gold);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-divider {
    width: 130px;
    height: 3px;
    margin: 1.5rem auto;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--color-light-gold), transparent);
}

.leadership-hero .scroll-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gold);
    border-radius: 999px;
    color: var(--gold);
}

.mouse {
    width: 26px;
    height: 40px;
    display: inline-flex;
    align-items: flex-start;
    justify-content: center;
    border: 2px solid var(--gold);
    border-radius: 999px;
    padding: 0.28rem;
}

.wheel {
    width: 6px;
    height: 10px;
    border-radius: 999px;
    background: var(--gold);
    animation: scroll-wheel 1.5s infinite;
}

@keyframes scroll-wheel {
    0%, 100% { transform: translateY(0); opacity: 0.8; }
    50% { transform: translateY(8px); opacity: 1; }
}

.leadership-content {
    padding-bottom: 3rem;
}

.leadership-section {
    width: min(100% - 32px, var(--container));
    margin-inline: auto;
}

.section-intro {
    max-width: 760px;
    margin: 0 auto 2rem;
    text-align: center;
}

.leadership-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.leader-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(180px, 220px) 1fr;
    gap: 1.2rem;
    min-height: 320px;
}

.leader-body {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    justify-content: center;
}

.leader-position {
    margin: 0;
    font-weight: 700;
    color: var(--color-red);
}

.leader-preview {
    margin: 0;
    color: var(--color-mid-gray);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.leader-card .read-more {
    width: fit-content;
    margin-top: 0.35rem;
    border: 0;
    cursor: pointer;
}

.leader-stats {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    max-width: 220px;
    padding: 0.95rem 1rem;
    border-radius: 8px;
    background: rgba(18, 18, 18, 0.94);
    color: var(--color-off-white);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.leader-card:hover .leader-stats,
.leader-card:focus-within .leader-stats {
    opacity: 0.98;
    transform: translateY(0);
}

.leader-stats ul {
    margin: 0;
    padding-left: 1rem;
}

.modal-content h3,
.modal-position,
.modal-biography,
.modal-impact h4,
.modal-quote {
    margin-bottom: 0.75rem;
}

.modal-impact ul {
    padding-left: 1.25rem;
}

body.modal-open {
    overflow: hidden;
}

/* Membership page */
.membership-page {
    padding-bottom: 3rem;
}

.membership-intro {
    position: relative;
    overflow: hidden;
    display: grid;
    align-items: end;
    width: 100%;
    min-height: clamp(360px, 50vh, 560px);
    padding: clamp(3rem, 6vw, 5rem) 1rem;
    border-radius: 0;
    background:
        linear-gradient(135deg, rgba(18, 18, 18, 0.86), rgba(27, 18, 15, 0.92)),
        var(--color-brown-black);
    color: var(--color-white);
    text-align: center;
}

.membership-intro::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 5px;
    background: repeating-linear-gradient(
        90deg,
        var(--color-red) 0 10px,
        var(--color-gold) 10px 24px,
        var(--color-light-gold) 24px 40px,
        var(--color-black) 40px 52px
    );
}

.membership-intro.project-hero--culture {
    background:
        linear-gradient(rgba(18, 18, 18, 0.72), rgba(18, 18, 18, 0.55)),
        url('/assets/images/gallery/green/School Tree-Planting Day Group Photo.webp') center/cover no-repeat;
}

.membership-intro .container,
.membership-intro .hero-content {
    position: relative;
    z-index: 1;
    width: min(100% - 32px, var(--container));
    margin-inline: auto;
}

.membership-intro .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 760px;
    text-align: center;
}

.membership-intro h1 {
    color: var(--color-white);
    font-size: clamp(2.25rem, 6vw, 3.6rem);
    margin-bottom: 1rem;
}

.membership-intro .hero-intro,
.membership-intro .hero-support {
    color: rgba(255, 255, 255, 0.78);
    max-width: 760px;
    margin-inline: auto;
}

.membership-intro .hero-actions {
    justify-content: center;
    width: 100%;
}

@media (max-width: 720px) {
    .membership-intro {
        min-height: clamp(360px, 70vh, 480px);
        padding-inline: 1rem;
    }

    .membership-intro .hero-ctas {
        flex-direction: column;
        align-items: stretch;
    }

    .membership-intro .hero-ctas .btn {
        width: 100%;
    }
}

.hero-visual-card {
    padding: 1.5rem;
    border-radius: 8px;
    background: var(--color-off-white);
    border: 1px solid rgba(212, 160, 23, 0.18);
}

.hero-benefits,
.benefit-list {
    display: grid;
    gap: 0.65rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.hero-benefits li,
.benefit-list li {
    padding: 0.85rem 1rem;
    border-radius: 8px;
    background: rgba(18, 18, 18, 0.03);
}

.membership-page .main-content {
    width: min(100% - 32px, var(--container));
    margin-inline: auto;
}

.membership-page .step-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.membership-page .step-item {
    flex: 1 1 140px;
}

.membership-page .chip.active {
    border-color: var(--color-gold);
    background: rgba(212, 160, 23, 0.14);
}

.membership-page .review-card dl {
    display: grid;
    gap: 0.65rem;
    margin: 0;
}

.membership-page .review-card dt {
    color: var(--color-mid-gray);
    font-size: 0.9rem;
}

.membership-page .review-card dd {
    margin: 0;
    font-weight: 600;
}

.membership-page .card-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.membership-page .btn-link {
    border: 0;
    background: transparent;
    color: var(--color-gold);
    padding: 0;
    min-height: auto;
}

.toast-overlay {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1500;
    min-width: 260px;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    background: rgba(18, 18, 18, 0.92);
    color: var(--color-white);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.28s ease, transform 0.28s ease;
    pointer-events: none;
}

.toast-overlay.show {
    opacity: 1;
    transform: translateY(0);
}

.hero-stat-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* ── News Page ─────────────────────────────── */
.news-page-wrap {
    padding-bottom: 3rem;
}

.news-hero {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: 2rem;
    align-items: center;
    width: min(100% - 32px, var(--container));
    margin-inline: auto;
    padding: clamp(2rem, 5vw, 3rem) 1rem 1.5rem;
    background: transparent;
    color: var(--color-black);
    min-height: auto;
}

.news-hero h1 {
    color: var(--color-black);
    font-size: clamp(2rem, 4vw, 3rem);
}

.news-hero-copy p {
    color: var(--color-mid-gray);
}

.news-hero-visual {
    padding: 1rem;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(212, 160, 23, 0.12), rgba(255, 255, 255, 0.9));
    box-shadow: var(--shadow-soft);
}

.hero-collage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
}

.hero-collage img {
    border-radius: 8px;
    aspect-ratio: 4 / 3;
}

.hero-collage img:last-child {
    grid-column: span 2;
    aspect-ratio: 16 / 8;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
    margin-top: 0.8rem;
}

.hero-stats div {
    padding: 0.8rem;
    border-radius: 8px;
    background: var(--color-soft-white);
    border: 1px solid rgba(18, 18, 18, 0.06);
}

.hero-stats strong {
    display: block;
    color: var(--color-red);
}

.hero-stats span {
    font-size: 0.84rem;
    color: var(--color-mid-gray);
}

.impact-ticker {
    width: min(100% - 32px, var(--container));
    margin: 0 auto 1.2rem;
    overflow: hidden;
    border-block: 1px solid rgba(18, 18, 18, 0.08);
    padding: 0.9rem 0;
}

.ticker-track {
    display: flex;
    gap: 1rem;
    width: max-content;
    animation: marquee 16s linear infinite;
}

.ticker-track span {
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(212, 160, 23, 0.14);
    font-weight: 600;
    white-space: nowrap;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.news-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    width: min(100% - 32px, var(--container));
    margin: 0 auto 1.5rem;
}

.filter-pill {
    border: 0;
    cursor: pointer;
}

.filter-pill.active,
.filter-pill:hover,
.filter-pill:focus-visible {
    background: var(--color-gold);
}

.search-box {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: min(320px, 100%);
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: var(--color-white);
    box-shadow: 0 10px 26px rgba(18, 18, 18, 0.06);
}

.search-box input {
    border: 0;
    outline: 0;
    background: transparent;
}

.news-shell {
    width: min(100% - 32px, var(--container));
    margin-inline: auto;
}

.featured-story {
    grid-template-columns: 0.95fr 1.05fr;
    padding: 1.2rem;
}

.featured-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: var(--color-black);
    color: var(--color-off-white);
    font-size: 0.75rem;
    font-weight: 700;
}

.meta-row,
.card-meta,
.engagement-metrics,
.event-topline,
.event-metrics,
.social-share {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    color: var(--color-mid-gray);
    font-size: 0.9rem;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1rem;
}

.text-link {
    color: var(--color-red);
    font-weight: 600;
}

.news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.news-card.is-loading {
    opacity: 0.4;
}

.news-card.is-loaded {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.filterable.is-hidden {
    display: none;
}

.event-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.event-badge.live {
    background: rgba(178, 34, 34, 0.12);
    color: var(--color-red);
}

.countdown {
    margin-top: 0.8rem;
    font-weight: 700;
    color: var(--color-red);
}

.impact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.impact-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 8px;
}

.gallery-section .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-card {
    position: relative;
    min-height: 220px;
}

.gallery-card.tall { grid-row: span 2; }
.gallery-card.wide { grid-column: span 2; }

.gallery-section .gallery-overlay {
    position: absolute;
    inset: auto 0 0;
    padding: 1rem;
    background: linear-gradient(180deg, transparent, rgba(18, 18, 18, 0.82));
    color: var(--color-white);
}

.gallery-section .gallery-overlay a {
    color: var(--color-light-gold);
}

.newsletter-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.4rem;
}

.newsletter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    width: min(520px, 100%);
}

.newsletter-form input {
    flex: 1;
    min-width: 180px;
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-white);
}

.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 0.5rem 0 1rem;
}

.news-page-wrap .cta-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    width: min(100% - 32px, var(--container));
    margin: 2rem auto 0;
    padding: 1.6rem;
}

@media (max-width: 860px) {
    .about-page .two-col,
    .leadership-grid,
    .leader-card,
    .membership-intro,
    .news-hero,
    .featured-story,
    .event-grid,
    .impact-grid,
    .gallery-section .gallery-grid {
        grid-template-columns: 1fr;
    }

    .leader-card {
        gap: 1rem;
    }

    .leader-stats {
        position: static;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        max-width: none;
    }
}

@media (max-width: 720px) {
    .membership-page .step-list {
        flex-direction: column;
    }

    .news-filters,
    .section-heading,
    .newsletter-section,
    .news-page-wrap .cta-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-stats,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .gallery-card.tall,
    .gallery-card.wide {
        grid-column: auto;
        grid-row: auto;
    }

    .detail-action-secondary {
        display: inline-flex;
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .about-page .timeline-item,
    .ticker-track {
        animation: none;
        transition: none;
        opacity: 1;
        transform: none;
    }
}
