/* =============================================================
   SGLN 2026 — Main Stylesheet
   Designer mockup: SGLN_08_WebsiteConcepts 7.0.ai (March 2026)
   Font: Rethink Sans (variable)
   ============================================================= */

/* ---------- Font ---------- */
@font-face {
    font-family: 'Rethink Sans';
    src: url('../fonts/RethinkSans-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* ---------- Custom Properties ---------- */
:root {
    --green:        #4b6b44;   /* header/footer/nav accents */
    --green-dark:   #3d5838;
    --sage:         #8ab09b;   /* Projects + Support sections */
    --slate:        #66818b;   /* BPP section */
    --brown-hero:   rgba(177, 125, 77, 0.73); /* hero pill overlay */
    --brown-solid:  #b17d4d;   /* News section */
    --sage-mid:     #607e6f;   /* Join Us + stats accent */
    --brown:        #b87842;   /* keep for misc use */
    --bg:           #eeebe3;
    --bg-white:     #ffffff;
    --text:         #2a2a2a;
    --text-muted:   #5a5a5a;
    --white:        #ffffff;
    --radius-card:  8px;
    --shadow:       0 2px 12px rgba(0,0,0,0.08);
    --transition:   0.22s ease;
    --max-width:    1280px;
    --gutter:       clamp(1.25rem, 4vw, 3rem);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Rethink Sans', system-ui, -apple-system, sans-serif;
    font-weight: 400;
    color: var(--text);
    background: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ---------- Utility ---------- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* =============================================================
   HEADER
   ============================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-white);
    box-shadow: 0 1px 0 rgba(0,0,0,0.08);
    /* Clean white header — no top bar */
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.75rem var(--gutter);
}

.header-logo { flex-shrink: 0; }
.site-logo { height: 60px; width: auto; }

/* Nav */
.header-nav { flex: 1; }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.125rem;
    list-style: none;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-menu li { position: relative; }

.nav-menu a {
    display: block;
    padding: 0.5rem 0.7rem;
    font-size: 0.925rem;
    font-weight: 600;
    color: var(--sage-mid);
    white-space: nowrap;
    border-radius: 4px;
    transition: color var(--transition), background var(--transition);
}

.nav-menu a:hover {
    color: var(--green);
}

/* Dropdown items from WP */
.nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    min-width: 200px;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    z-index: 200;
    padding: 0.5rem 0;
}

.nav-menu li:hover > .sub-menu,
.nav-menu li:focus-within > .sub-menu {
    display: block;
}

.nav-menu .sub-menu a {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Dropdown caret for items-with-children */
.nav-menu .menu-item-has-children > a::after {
    content: ' \2304';
    font-size: 24px;
    opacity: 0.6;
    margin-top: -13px !important;
    float: right;
}

/* Header search bar — inline pill */
.header-search-bar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    border: 1.5px solid rgba(0,0,0,0.2);
    border-radius: 2rem;
    overflow: hidden;
    width: clamp(100px, 10vw, 140px);
    transition: width var(--transition), border-color var(--transition);
}

.header-search-bar:focus-within {
    width: 200px;
    border-color: var(--green);
}

.header-search-bar input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.4rem 0.7rem;
    font-family: inherit;
    font-size: 0.8rem;
    background: transparent;
    color: var(--text);
    min-width: 0;
}

.header-search-bar button {
    flex-shrink: 0;
    background: none;
    border: none;
    padding: 0.4rem 0.6rem;
    color: var(--sage-mid);
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color var(--transition);
}

.header-search-bar button:hover { color: var(--green); }

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    padding: 6px;
    margin-left: auto;
    border-radius: 4px;
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* =============================================================
   HERO
   ============================================================= */
.hero-section {
    position: relative;
    overflow: hidden;
    height: clamp(380px, 50vw, 560px);
    background: #5a7a52;
}

.hero-image-wrap {
    position: absolute;
    inset: 0;
}
.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

.hero-content {
    position: absolute;
    inset: 0;
}

/* Pill shape vertically centered left, matching reference design */
.hero-blob {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 50%;
    max-width: 720px;
    background: var(--brown-hero);
    border-radius: 0 90px 90px 0;
    padding: clamp(1.5rem, 3vw, 2.5rem) clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem) calc((100vw - var(--max-width)) / 2 + var(--gutter));
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-heading {
    font-size: clamp(1.1rem, 2vw, 1.75rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.3;
}

/* SGLN colour icon overlay — right edge, 95% height, half off-canvas */
.hero-circle-decor {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(50%, -50%);
    width: auto;
    height: 95%;
    aspect-ratio: 1;
    border-radius: 0;
    background: transparent url('https://www.sgln.net.au/wp-content/uploads/sites/2/2026/04/SGLN_IconA_FullColour_CMYK.png') center / contain no-repeat;
    opacity: 0.75;
    pointer-events: none;
}

/* =============================================================
   STATS
   ============================================================= */
.stats-section {
    background: #eff0f0;
    padding: clamp(3rem, 6vw, 5rem) 0;
}

.stats-heading {
    text-align: center;
    font-size: clamp(1.2rem, 2.2vw, 1.65rem);
    font-weight: 600;
    color: var(--sage-mid);
    max-width: 640px;
    margin: 0 auto clamp(2.5rem, 5vw, 4rem);
    line-height: 1.35;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: clamp(1.5rem, 4vw, 4rem);
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    min-width: 100px;
}

.stat-icon-wrap {
    width: clamp(70px, 10vw, 90px);
    height: clamp(70px, 10vw, 90px);
    border-radius: 50%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Icon PNGs already include the coloured circle background */
}

.stat-icon {
    width: clamp(70px, 10vw, 90px);
    height: clamp(70px, 10vw, 90px);
    object-fit: contain;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--sage-mid);
    text-align: center;
    line-height: 1.3;
}

/* =============================================================
   MAP
   ============================================================= */
.map-section {
    position: relative;
    overflow: hidden;
    padding-bottom: 0;
}

.map-image-wrap {
    width: 100%;
    overflow: hidden;
    position: relative;
}
.map-image {
    width: 100%;
    max-height: 700px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.map-caption {
    position: absolute;
    bottom: clamp(1.5rem, 3vw, 2.5rem);
    left: 0;
    right: 0;
    z-index: 2;
    padding: 0 var(--gutter);
    max-width: var(--max-width);
    margin: 0 auto;
    color: var(--green);
}

.map-caption-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.map-caption-text {
    font-size: 0.925rem;
    max-width: 480px;
    line-height: 1.6;
}

/* Decorative shape top-right of map — subtle */
.map-circle-decor {
    position: absolute;
    top: -8%;
    right: -3%;
    width: clamp(100px, 16vw, 200px);
    height: clamp(100px, 16vw, 200px);
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    pointer-events: none;
}

/* =============================================================
   SHARED SECTION PATTERNS
   ============================================================= */

/* Projects — darker sage */
.projects-section {
    background: var(--sage-mid);
    padding: clamp(3rem, 6vw, 5rem) 0;
}

/* News — same layout as projects, inverted colors */
.news-section {
    background: #ffffff;
    padding: clamp(3rem, 6vw, 5rem) 0;
}
.news-section .section-icon {
    filter: none;
}
.news-section .section-heading {
    color: var(--green);
}
.news-section .section-description {
    color: var(--text-muted);
}
.news-section .btn-outline {
    border-color: var(--green);
    background: var(--green);
    color: var(--white);
}
.news-section .btn-outline:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
}
.news-section .card-title {
    color: var(--text);
}
.news-section .card-excerpt {
    color: var(--text-muted);
}
.news-section .carousel-btn {
    background: rgb(75 107 68 / 82%);
    color: #ffffff;
}
.news-section .carousel-btn:hover {
    background: rgba(75,107,68,0.3);
}

/* Support — light warm grey */
.support-section {
    background: #eff0f0;
    padding: clamp(4rem, 8vw, 7rem) 0;
}

/* Section header layout — icon+heading stacked left, button right */
.section-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem 2rem;
    align-items: end;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-title-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.section-icon {
    width: 56px;
    height: auto;
    flex-shrink: 0;
    filter: brightness(0) invert(1); /* Make white */
}

.section-icon--color {
    filter: none; /* Keep original color for light sections */
    width: 56px;
}

.section-heading {
    font-size: clamp(1.6rem, 2.8vw, 2.25rem);
    font-weight: 700;
    color: var(--white);
}

.section-heading--dark {
    color: var(--green);
}

.section-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 0.75rem;
}

.section-description {
    font-size: 0.925rem;
    font-weight: 600;
    color: rgba(255,255,255,0.88);
    max-width: 320px;
    text-align: left;
    line-height: 1.5;
}

.section-description--dark {
    color: var(--text-muted);
    font-weight: 600;
    text-align: left;
}

/* =============================================================
   BUTTONS
   ============================================================= */

/* Outlined white button (on dark sections) */
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    border: 1.5px solid var(--white);
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--white);
    background: transparent;
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
}
.btn-outline:hover {
    background: rgba(255,255,255,0.18);
}

.btn-arrow { font-size: 1rem; line-height: 1; }

/* Green button (on light sections) */
.btn-outline--green {
    border-color: var(--green);
    background: var(--green);
    color: var(--white);
}
.btn-outline--green:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    color: var(--white);
}

/* Solid green button (on light sections) */
.btn-solid {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.2rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1.5px solid var(--green);
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
}

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

.btn-solid--green-dark {
    background: var(--green);
    color: var(--white);
    border-color: var(--green);
}
.btn-solid--green-dark:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
}

/* =============================================================
   CARDS CAROUSEL
   ============================================================= */
.carousel-wrap {
    position: relative;
}

.carousel-btn {
    position: absolute;
    top: 28%;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.25);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
    z-index: 3;
}
.carousel-btn--prev { left: -20px; }
.carousel-btn--next { right: -20px; }
.carousel-btn svg { width: 18px; height: 18px; }
.carousel-btn:hover {
    background: rgba(255,255,255,0.45);
}

.carousel-btn--dark {
    background: rgba(75,107,68,0.2);
    color: var(--green);
}
.carousel-btn--dark:hover {
    background: rgba(75,107,68,0.35);
}

.cards-carousel {
    display: flex;
    gap: 1.25rem;
    overflow: hidden;
    width: 100%;
    scroll-behavior: smooth;
}

/* Cards */
.card {
    flex: 0 0 calc(33.333% - 0.84rem);
    min-width: 0;
    background: transparent;
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: transform var(--transition);
}
.card:hover { transform: translateY(-3px); }

.card--light {
    background: var(--bg-white);
    box-shadow: var(--shadow);
}

.card-image-wrap {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-card);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    border-radius: 0;
}
.card-image-link:hover .card-image { transform: scale(1.04); }

.card-image--placeholder {
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.08);
}
.card-image--placeholder-light {
    background: var(--bg);
}

.card-body {
    padding: 0.9rem 1rem 1.1rem;
}

.card-date {
    font-size: 0.75rem;
    color: var(--green);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.2rem;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.35;
    margin-bottom: 0.4rem;
}
.card-title a { color: inherit; }
.card-title a:hover { text-decoration: underline; }

.card-title--dark { color: var(--text); }

.card-excerpt {
    font-size: 0.86rem;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    line-height: 1.55;
}
.card-excerpt--dark { color: var(--text-muted); }

/* =============================================================
   FEATURE SPLIT SECTIONS (BPP + JOIN US) — 50/50 layout
   ============================================================= */

/* Container */
.feature-split {
    display: flex;
    min-height: clamp(380px, 40vw, 520px);
    overflow: hidden;
}

/* Text panel — left half */
.split-text-panel {
    width: 50%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 4vw, 4rem) clamp(2rem, 5vw, 5rem);
    gap: 1rem;
}

/* BPP: slate blue-grey */
.bpp-section .split-text-panel  { background: var(--slate); }

/* Join Us: medium sage */
.join-section .split-text-panel { background: var(--sage-mid); }

/* Image panel — right half, photo with top-left arch */
.split-image-panel {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.split-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-top-left-radius: clamp(160px, 22vw, 280px);
}

/* Shared text/icon styles inside split panels */
.feature-icon {
    width: 36px;
    height: auto;
    opacity: 0.9;
}

.feature-heading {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.25;
}

.feature-description {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.92);
    line-height: 1.6;
    max-width: 420px;
}

/* =============================================================
   NEWS SECTION OVERRIDES (cream background — no overrides needed,
   default dark text + green accents are correct)
   ============================================================= */

/* (Support button styles are in the support section above) */

/* =============================================================
   SUPPORT SECTION
   ============================================================= */
.support-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 6rem);
    align-items: center;
}

.support-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.support-icon {
    width: 40px;
    height: auto;
}

.support-heading {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--green);
}

.support-description {
    font-size: 0.95rem;
    color: var(--green);
    line-height: 1.65;
    max-width: 420px;
}

.support-btn {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.7rem 2rem;
    background: var(--green);
    color: var(--white);
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background var(--transition);
}

.support-btn:hover {
    background: var(--green-dark);
}

.support-image-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.support-image-rect {
    width: 100%;
    max-width: 480px;
    border-radius: 16px;
    overflow: hidden;
}

.support-image {
    width: 100%;
    height: auto;
    display: block;
}

.charity-badge {
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: clamp(80px, 10vw, 110px);
    height: auto;
}

/* =============================================================
   FOOTER
   ============================================================= */
.site-footer {
    background: #ffffff;
    border-top: 1px solid rgba(0,0,0,0.08);
    padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: clamp(1.5rem, 3vw, 3rem);
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
    align-items: start;
}

.footer-org-name {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    color: var(--text);
}

.footer-col p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
}
.footer-col a { color: var(--text-muted); transition: color var(--transition); }
.footer-col a:hover { color: var(--green); }

/* Social icons */
.footer-social {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--green);
    color: var(--white);
    transition: background var(--transition), transform var(--transition);
    flex-shrink: 0;
}
.social-icon:hover {
    background: var(--sage);
    transform: translateY(-2px);
}
.social-icon svg { width: 18px; height: 18px; fill: var(--white); stroke: var(--white); }
.social-icon svg[fill="currentColor"] { stroke: none; }
.social-icon svg[fill="none"] { fill: none; }

/* Newsletter */
.footer-heading {
    font-weight: 600;
    font-size: 0.925rem;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.newsletter-input-wrap {
    display: flex;
    border: 1.5px solid rgba(75,107,68,0.35);
    border-radius: 2rem;
    overflow: hidden;
    background: var(--bg-white);
}

.newsletter-input-wrap input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.55rem 1rem;
    font-family: inherit;
    font-size: 0.875rem;
    background: transparent;
    color: var(--text);
    min-width: 0;
}
.newsletter-input-wrap input::placeholder { color: #aaa; }

.newsletter-input-wrap button {
    background: none;
    border: none;
    padding: 0.55rem 0.9rem;
    color: var(--green);
    display: flex;
    align-items: center;
    transition: color var(--transition);
}
.newsletter-input-wrap button:hover { color: var(--green-dark); }

/* Acknowledgement column — text + flag side by side */
.footer-col--acknowledgement {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.footer-col--acknowledgement p {
    flex: 1;
}

/* Aboriginal flag */
.aboriginal-flag {
    width: clamp(60px, 7vw, 90px);
    height: auto;
    border-radius: 0;
    flex-shrink: 0;
}

/* Copyright bar */
.footer-copyright {
    background: var(--green);
    color: var(--white);
    text-align: center;
    padding: 0.75rem var(--gutter);
    font-size: 0.8rem;
    font-weight: 400;
}
.footer-copyright a {
    color: var(--white);
    text-decoration: underline;
    text-decoration-color: rgba(255,255,255,0.4);
}
.footer-copyright a:hover {
    text-decoration-color: var(--white);
}

/* =============================================================
   FULL-BLEED SECTIONS (BPP + JOIN US) — image bg + curved overlay
   ============================================================= */
.fullbleed-section {
    position: relative;
    overflow: hidden;
    min-height: clamp(420px, 48vw, 580px);
}

.fullbleed-image-wrap {
    position: absolute;
    inset: 0;
}

.fullbleed-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.fullbleed-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 45%;
    max-width: 560px;
    padding: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 5vw, 4.5rem) clamp(2rem, 4vw, 3rem) calc((100vw - var(--max-width)) / 2 + var(--gutter));
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    z-index: 2;
}

.fullbleed-overlay .feature-icon { width: 36px; opacity: 0.9; }
.fullbleed-overlay .feature-heading { color: var(--white); }
.fullbleed-overlay .feature-description { color: rgba(255,255,255,0.92); }

/* BPP: slate overlay with large sweeping curve */
.bpp-overlay {
    background: #66818b;
    border-radius: 0 clamp(120px, 22vw, 280px) 0 0;
}

/* Join Us: brown overlay with large sweeping curve */
.join-overlay {
    background: #b17d4d;
    border-radius: 0 clamp(120px, 22vw, 280px) 0 0;
}

/* =============================================================
   INNER PAGES (page.php)
   ============================================================= */
.page-content {
    padding: clamp(2.5rem, 5vw, 4rem) 0;
    min-height: 50vh;
}

.entry-title {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.entry-content {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text);
    max-width: 780px;
}
.entry-content p { margin-bottom: 1rem; }
.entry-content h2, .entry-content h3 { font-weight: 700; margin: 1.5rem 0 0.5rem; }
.entry-content a { color: var(--green); text-decoration: underline; }

/* =============================================================
   RESPONSIVE
   ============================================================= */

/* Tablet (≤ 1024px) */
@media (max-width: 1024px) {
    .card {
        flex: 0 0 calc(50% - 0.63rem);
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-col--flag {
        display: flex;
        align-items: flex-end;
    }
}

/* Tablet portrait (≤ 768px) */
@media (max-width: 768px) {

    /* Header */
    .nav-toggle { display: flex; }

    .header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        box-shadow: 0 4px 16px rgba(0,0,0,0.1);
        padding: 1rem var(--gutter);
        z-index: 99;
    }

    .header-nav.is-open { display: block; }

    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .nav-menu a {
        padding: 0.65rem 0;
        width: 100%;
        font-size: 1rem;
        border-radius: 0;
        border-bottom: 1px solid rgba(0,0,0,0.06);
    }

    .nav-menu .sub-menu {
        position: static;
        box-shadow: none;
        padding-left: 1rem;
        display: block;
        border-radius: 0;
    }

    /* Hero */
    .hero-section { height: clamp(300px, 65vw, 420px); }

    .hero-blob {
        width: 70%;
        border-radius: 0 60px 60px 0;
        min-height: 110px;
    }

    .hero-circle-decor {
        height: 70%;
        right: 0;
        transform: translate(50%, -50%);
    }

    /* Stats */
    .stats-grid { gap: 1.5rem 2.5rem; }
    .stat-icon-wrap, .stat-icon { width: 70px; height: 70px; }

    /* Section header */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .section-meta { align-items: flex-start; }
    .section-description, .section-description--dark { text-align: left; }

    /* Cards */
    .card { flex: 0 0 calc(100% - 0rem); }
    .carousel-btn { display: none; }

    /* Feature split (legacy — kept for compatibility) */
    .feature-split { flex-direction: column; min-height: 0; }
    .split-text-panel { width: 100%; padding: 2rem var(--gutter); }
    .split-image-panel { min-height: 260px; }
    .split-photo { border-top-left-radius: 0; }

    /* Full-bleed overlay sections */
    .fullbleed-section { min-height: 380px; }
    .fullbleed-overlay {
        width: 75%;
        border-radius: 0 80px 0 0 !important;
        padding: 1.5rem var(--gutter) 1.5rem;
    }

    /* Support */
    .support-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .support-image-wrap { justify-content: flex-start; }
    .charity-badge { bottom: 0.5rem; right: -1rem; }

    /* Footer */
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Mobile (≤ 480px) */
@media (max-width: 480px) {
    .site-logo { height: 46px; }
    .hero-heading { font-size: 1.1rem; }
    .hero-blob { padding: 1rem 1.25rem; }
    .stats-grid { gap: 1.25rem 2rem; }

    .split-image-panel { min-height: 200px; }

    .fullbleed-section { min-height: 320px; }
    .fullbleed-overlay { width: 85%; border-radius: 0 60px 0 0 !important; }
}

/* =============================================================
   PAGE HERO — Reusable sage banner for inner pages
   ============================================================= */
.page-hero {
    background: var(--sage-mid);
    padding: clamp(3rem, 6vw, 5rem) 0;
}

.page-hero-inner {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.page-hero-icon {
    width: 36px;
    height: auto;
    opacity: 0.9;
}

.page-hero-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
}

.page-hero-subtitle {
    font-size: clamp(0.9rem, 1.4vw, 1.05rem);
    color: rgba(255,255,255,0.88);
    max-width: 560px;
    line-height: 1.6;
}

/* =============================================================
   BOARD GRID — Member cards
   ============================================================= */
.board-section {
    background: var(--bg);
    padding: clamp(3rem, 6vw, 5rem) 0;
}

.board-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.board-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.board-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}

.board-card-photo {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--sage);
}

.board-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.board-card:hover .board-card-photo img {
    transform: scale(1.04);
}

.board-card-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    color: var(--text-muted);
}

.board-card-info {
    padding: 1.25rem 1.4rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.board-card-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.board-card-role {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--sage-mid);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.board-card-bio {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 0.4rem;
}

.board-card-group {
    font-size: 0.8rem;
    color: var(--green);
    font-weight: 500;
    margin-top: 0.25rem;
}

/* Board responsive */
@media (max-width: 1024px) {
    .board-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 580px) {
    .board-grid { grid-template-columns: 1fr; max-width: 400px; }
}

/* =============================================================
   ABOUT PAGE
   ============================================================= */
.about-block {
    padding: clamp(3rem, 6vw, 5rem) 0;
}

.about-block--white { background: var(--bg-white); }
.about-block--cream { background: var(--bg); }

.about-block--sage {
    background: var(--sage-mid);
    padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.about-heading {
    font-size: clamp(1.3rem, 2.2vw, 1.75rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.25rem;
    line-height: 1.25;
}

.about-prose {
    max-width: 780px;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text);
}

.about-prose p { margin-bottom: 1rem; }
.about-prose p:last-child { margin-bottom: 0; }

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

.about-list li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text);
}

.about-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sage);
}

.about-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

/* Region overlay — sage-mid */
.region-overlay {
    background: var(--sage-mid);
    border-radius: 0 clamp(80px, 14vw, 160px) 0 0;
}

.about-region-hero {
    min-height: clamp(340px, 40vw, 480px);
}

/* Map */
.about-map-wrap {
    border-radius: 12px;
    overflow: hidden;
}

/* CTA cards */
.about-cta-row {
    gap: 1.5rem;
}

.about-cta-card {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    background: rgba(255,255,255,0.1);
    border: 1.5px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--white);
    transition: background var(--transition), transform var(--transition);
}

.about-cta-card:hover {
    background: rgba(255,255,255,0.18);
    transform: translateY(-2px);
}

.about-cta-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
}

.about-cta-card p {
    font-size: 0.9rem;
    opacity: 0.88;
}

.about-cta-card .btn-arrow {
    font-size: 1.4rem;
    margin-top: 0.5rem;
}

/* About responsive */
@media (max-width: 768px) {
    .about-two-col { grid-template-columns: 1fr; }
    .about-region-hero { min-height: 320px; }
}

@media (max-width: 480px) {
    .about-region-hero { min-height: 280px; }
}

/* =============================================================
   SINGLE POST
   ============================================================= */
.single-hero {
    position: relative;
    overflow: hidden;
    height: clamp(280px, 38vw, 440px);
    background: var(--sage-mid);
}

.single-hero-image-wrap { position: absolute; inset: 0; }

.single-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.single-article {
    padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(3rem, 6vw, 5rem);
}

.single-breadcrumb {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.single-breadcrumb a {
    color: var(--green);
    text-decoration: none;
}

.single-breadcrumb a:hover { text-decoration: underline; }

.breadcrumb-sep {
    margin: 0 0.4rem;
    color: var(--text-muted);
    opacity: 0.5;
}

.breadcrumb-current { color: var(--text-muted); }

.single-title {
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.single-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.single-meta-sep { opacity: 0.4; }

.single-categories {
    color: var(--green);
    font-weight: 500;
}

.single-content {
    max-width: 780px;
    font-size: 1rem;
    line-height: 1.75;
}

.single-content p { margin-bottom: 1.25rem; }
.single-content h2, .single-content h3 { font-weight: 700; margin: 2rem 0 0.75rem; }
.single-content a { color: var(--green); text-decoration: underline; }
.single-content img { border-radius: 8px; margin: 1.5rem 0; }
.single-content ul, .single-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.single-content li { margin-bottom: 0.4rem; }
.single-content blockquote {
    border-left: 3px solid var(--sage);
    padding-left: 1.25rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-muted);
}

/* Post navigation */
.single-postnav {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.postnav-link {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 8px;
    transition: border-color var(--transition), background var(--transition);
}

.postnav-link:hover {
    border-color: var(--green);
    background: rgba(75,107,68,0.03);
}

.postnav-link--next { text-align: right; }

.postnav-label {
    font-size: 0.78rem;
    color: var(--green);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.postnav-title {
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 500;
    line-height: 1.35;
}

@media (max-width: 580px) {
    .single-postnav { flex-direction: column; }
}

/* =============================================================
   ARCHIVE (PROJECTS / NEWS)
   ============================================================= */
.archive-section {
    background: var(--bg);
    padding: clamp(2rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 5rem);
}

.archive-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
    flex-wrap: wrap;
}

.archive-filter-btn {
    padding: 0.5rem 1.1rem;
    border: 1.5px solid var(--green);
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--green);
    background: transparent;
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
}

.archive-filter-btn:hover {
    background: var(--green);
    color: var(--white);
}

.archive-filter-btn.is-active {
    background: var(--green);
    color: var(--white);
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.archive-pagination {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
    gap: 0.25rem;
}

.archive-pagination a,
.archive-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    transition: background var(--transition);
}

.archive-pagination a:hover { background: rgba(75,107,68,0.1); }
.archive-pagination .current { background: var(--green); color: var(--white); }

.archive-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 3rem 0;
    font-size: 1rem;
}

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

@media (max-width: 580px) {
    .archive-grid { grid-template-columns: 1fr; }
}

/* =============================================================
   GROUPS PAGE
   ============================================================= */
.groups-intro {
    background: var(--bg-white);
    padding: clamp(2rem, 4vw, 3rem) 0;
}

.groups-content {
    background: var(--bg);
    padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(3rem, 6vw, 5rem);
}

/* Make the embedded map widget full-width within container */
.groups-content #sgln-wrap {
    margin: 0 auto;
    max-width: 100%;
}

/* Style accordion-style group details if they exist */
.groups-content .elementor-tab-title,
.groups-content [tabindex="0"] {
    display: block;
    padding: 0.9rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    background: var(--bg-white);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: background var(--transition);
}

.groups-content .elementor-tab-title:hover,
.groups-content [tabindex="0"]:hover {
    background: rgba(75,107,68,0.05);
}

/* =============================================================
   SEARCH RESULTS
   ============================================================= */
.search-section {
    background: var(--bg);
    padding: clamp(2rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 5rem);
}

.search-form { margin-bottom: 2rem; }

.search-input-wrap {
    display: flex;
    align-items: center;
    background: var(--bg-white);
    border: 1.5px solid rgba(75,107,68,0.3);
    border-radius: 2rem;
    overflow: hidden;
    max-width: 600px;
    transition: border-color var(--transition);
}

.search-input-wrap:focus-within { border-color: var(--green); }

.search-input-icon {
    flex-shrink: 0;
    margin-left: 1rem;
    color: var(--text-muted);
}

.search-input-wrap input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.7rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    background: transparent;
    color: var(--text);
    min-width: 0;
}

.search-input-wrap input::placeholder { color: #aaa; }

.search-submit-btn {
    padding: 0.7rem 1.5rem;
    background: var(--green);
    color: var(--white);
    border: none;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
}

.search-submit-btn:hover { background: var(--green-dark); }

.search-count {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.search-results {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-result {
    display: flex;
    gap: 1rem;
    background: var(--bg-white);
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: var(--shadow);
    transition: transform var(--transition);
    align-items: flex-start;
}

.search-result:hover { transform: translateY(-2px); }

.search-result-type {
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--white);
    background: var(--sage-mid);
    border-radius: 4px;
    padding: 0.2rem 0.5rem;
    align-self: flex-start;
}

.search-result-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.search-result-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-content { flex: 1; min-width: 0; }

.search-result-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
    margin-bottom: 0.3rem;
}

.search-result-title a { color: inherit; }
.search-result-title a:hover { color: var(--green); }

.search-result-excerpt {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 0.3rem;
}

.search-result-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.7;
}

.search-empty {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-muted);
}

.search-empty a { color: var(--green); text-decoration: underline; }

@media (max-width: 580px) {
    .search-result { flex-wrap: wrap; }
    .search-result-thumb { width: 60px; height: 60px; }
}
/* Back to section link */
.single-back {
    margin-top: 2.5rem;
}

/* =============================================================
   CONTACT PAGE
   ============================================================= */
.contact-section {
    background: var(--bg);
    padding: clamp(3rem, 6vw, 5rem) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 5rem);
    align-items: start;
}

.contact-intro {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text);
    margin-bottom: 2rem;
}

.contact-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
}

.contact-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.5;
}

.contact-detail-row svg {
    flex-shrink: 0;
    color: var(--green);
    margin-top: 0.15rem;
}

.contact-detail-row a {
    color: var(--green);
    text-decoration: underline;
}

.contact-social {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

/* Form */
.contact-form-wrap {
    background: var(--bg-white);
    border-radius: 12px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    box-shadow: var(--shadow);
}

.form-field {
    margin-bottom: 1.25rem;
}

.form-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1.5px solid rgba(0,0,0,0.15);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--bg-white);
    transition: border-color var(--transition);
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--green);
}

.form-field textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-submit {
    display: inline-flex;
    align-items: center;
    padding: 0.7rem 2rem;
    background: var(--green);
    color: var(--white);
    border: none;
    border-radius: 2rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
}

.contact-submit:hover {
    background: var(--green-dark);
}

.contact-success {
    text-align: center;
    padding: 2rem 0;
}

.contact-success h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 0.5rem;
}

.contact-success p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
}

.contact-error p {
    font-size: 0.875rem;
    color: #b91c1c;
    margin: 0;
}

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

/* =============================================================
   404 PAGE
   ============================================================= */
.error-section {
    background: var(--bg);
    padding: clamp(5rem, 10vw, 8rem) 0;
    min-height: 50vh;
    display: flex;
    align-items: center;
}

.error-content {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.error-icon {
    width: 64px;
    height: auto;
    margin: 0 auto 1.5rem;
    opacity: 0.4;
}

.error-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.error-message {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.error-section .search-form {
    margin-bottom: 2rem;
}

.error-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.error-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--green);
    transition: color var(--transition);
}

.error-links a:hover {
    color: var(--green-dark);
    text-decoration: underline;
}

.error-links-sep {
    color: var(--text-muted);
    opacity: 0.4;
}

/* =============================================================
   RESOURCE ARCHIVE + DETAIL — Sprint 5
   ============================================================= */

/* ---------- Sub-filters (weed type chips) ---------- */
.archive-sub-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.archive-sub-filter-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 100px;
    border: 1.5px solid var(--green);
    color: var(--green);
    background: transparent;
    transition: all var(--transition);
}

.archive-sub-filter-btn:hover {
    background: rgba(75,107,68,0.08);
}

.archive-sub-filter-btn.is-active {
    background: var(--green);
    color: var(--white);
}

/* ---------- Resource badges ---------- */
.resource-card { position: relative; }

.resource-badge {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 4px;
    color: var(--white);
    z-index: 2;
}

.resource-badge--factsheet    { background: var(--sage-mid); }
.resource-badge--video        { background: #c44d3f; }
.resource-badge--audio        { background: var(--brown); }
.resource-badge--guide        { background: var(--slate); }
.resource-badge--newsletter   { background: var(--brown); }
.resource-badge--document     { background: var(--sage-mid); }
.resource-badge--link         { background: var(--slate); }
.resource-badge--map          { background: var(--sage); }
.resource-badge--spreadsheet  { background: var(--sage-mid); }
.resource-badge--weed-species { background: var(--green); }
.resource-badge--pest-animal  { background: #c44d3f; }

.resource-badge--large {
    position: static;
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    margin-bottom: 0.75rem;
    display: inline-block;
}

/* ---------- Scientific name on cards ---------- */
.resource-scientific-name {
    font-size: 0.8rem;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

/* ---------- Filter count badge ---------- */
.filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.3rem;
    height: 1.3rem;
    margin-left: 0.35rem;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 100px;
    background: rgba(0,0,0,0.08);
    color: var(--text-muted);
}
.archive-filter-btn.is-active .filter-count {
    background: rgba(255,255,255,0.25);
    color: var(--white);
}

/* ---------- Placeholder card icon ---------- */
.card-image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =============================================================
   RESOURCE DETAIL — single-sgln_resource.php
   ============================================================= */

.resource-detail-hero {
    position: relative;
    height: 320px;
    overflow: hidden;
    background: var(--green);
}

.resource-detail-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.resource-detail-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem 0 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.65));
    color: var(--white);
}

.resource-detail-title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.resource-detail-scientific {
    font-size: 1.1rem;
    font-style: italic;
    opacity: 0.85;
}

/* Detail grid */
.resource-detail-content {
    padding: 2.5rem 0 4rem;
    background: #f7f7f7;
}

.resource-detail-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
}

.resource-detail-body {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
}
.resource-detail-body p { margin-bottom: 1rem; }

/* Cards in detail */
.resource-detail-card {
    background: var(--white);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.resource-detail-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--green);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

/* Control methods list */
.control-methods-list {
    list-style: none;
    padding: 0;
}
.control-methods-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--text);
    border-bottom: 1px solid #f0f0f0;
}
.control-methods-list li:last-child { border-bottom: none; }
.control-methods-list li svg { flex-shrink: 0; margin-top: 2px; }

/* Tags */
.resource-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.resource-tag {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 100px;
    background: rgba(75,107,68,0.1);
    color: var(--green);
}

/* Factsheet button */
.resource-detail-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 100px;
    background: var(--green);
    color: var(--white);
    transition: background var(--transition);
    width: 100%;
    justify-content: center;
}
.resource-detail-btn:hover { background: var(--green-dark); }

/* Back link */
.resource-detail-back {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--green);
}
.resource-detail-back:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .resource-detail-hero { height: 240px; }
    .resource-detail-grid {
        grid-template-columns: 1fr;
    }
    .resource-detail-sidebar {
        order: -1;
    }
}


/* =============================================================
   COMPACT RESOURCE CARDS (no featured image)
   ============================================================= */

.resource-card-compact {
    grid-column: 1 / -1;
    background: var(--bg-white);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow);
    transition: transform var(--transition);
}

.resource-card-compact:hover {
    transform: translateY(-2px);
}

.resource-card-compact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.1rem;
    text-decoration: none;
    color: inherit;
}

.resource-card-compact-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.resource-card-compact-icon svg {
    width: 28px;
    height: 28px;
}

.resource-card-compact-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.resource-card-compact-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.resource-card-compact-link:hover .resource-card-compact-title {
    text-decoration: underline;
}

.resource-badge--inline {
    position: static;
    flex-shrink: 0;
    font-size: 0.62rem;
    padding: 0.2rem 0.5rem;
}

/* Make compact cards stack in a single-column list within the grid */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

@media (max-width: 900px) {
    .archive-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .archive-grid { grid-template-columns: 1fr; }
}

/* =============================================================
   COMPACT CARD POLISH — Sprint 5 refinement
   ============================================================= */

/* Add colored left accent bar */
.resource-card-compact {
    border-left: 4px solid var(--sage-mid);
    overflow: hidden;
}

/* Color accent by resource type */
.resource-card-compact:has(.resource-badge--weed-species) { border-left-color: var(--green); }
.resource-card-compact:has(.resource-badge--pest-animal)  { border-left-color: #c44d3f; }
.resource-card-compact:has(.resource-badge--factsheet)    { border-left-color: var(--sage-mid); }
.resource-card-compact:has(.resource-badge--video)        { border-left-color: #c44d3f; }
.resource-card-compact:has(.resource-badge--audio)        { border-left-color: var(--brown); }
.resource-card-compact:has(.resource-badge--guide)        { border-left-color: var(--slate); }
.resource-card-compact:has(.resource-badge--newsletter)   { border-left-color: var(--brown); }
.resource-card-compact:has(.resource-badge--document)     { border-left-color: var(--sage-mid); }
.resource-card-compact:has(.resource-badge--link)         { border-left-color: var(--slate); }

/* Tinted icon background circle */
.resource-card-compact-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(75,107,68,0.08);
}

/* Stronger shadow for card visibility */
.resource-card-compact {
    box-shadow: 0 1px 4px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.04);
}

/* Scientific name in compact cards */
.resource-card-compact .resource-scientific-name {
    font-size: 0.75rem;
    margin-bottom: 0;
}

/* Topic filter pills */
.archive-filters--topics {
    margin-top: 0.5rem;
    gap: 0.4rem;
}
.archive-filter-btn--small {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
}
.filter-count {
    opacity: 0.6;
    font-size: 0.75rem;
}

/* BPP page styles */
.bpp-directions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    max-width: 960px;
    margin: 0 auto;
}
.bpp-direction {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.bpp-direction:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.bpp-direction-num {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--sage, #8ab09b);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}
.bpp-direction h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    color: #2a2a2a;
}
.bpp-plan-view {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}
.bpp-plan-thumb {
    flex-shrink: 0;
    width: 200px;
}
.bpp-plan-thumb img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.bpp-plan-links {
    flex: 1;
}
.bpp-plan-links p {
    margin-bottom: 1.25rem;
}
.support-btn--outline {
    background: transparent;
    border: 2px solid var(--sage, #8ab09b);
    color: var(--sage, #8ab09b);
}
.support-btn--outline:hover {
    background: var(--sage, #8ab09b);
    color: #fff;
}
@media (max-width: 768px) {
    .bpp-directions-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
}
@media (max-width: 480px) {
    .bpp-directions-grid {
        grid-template-columns: 1fr;
    }
    .bpp-plan-view {
        flex-direction: column;
    }
    .bpp-plan-thumb {
        width: 150px;
    }
}
