@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Figtree:wght@600;700;800&display=swap');

:root {
    --green-900: #06331b;
    --green-800: #084d26;
    --green-700: #0a5a2c;
    --green-600: #00612b;
    --green-500: #12833c;
    --green-100: #e3f3e7;
    --green-50: #eef7f0;
    --red-600: #b8232f;
    --red-500: #d62d3a;
    --red-100: #fbe8e9;
    --ink: #14201a;
    --muted: #5c6b62;
    --border: #e3e8e3;
    --bg: #fafafa;
    --white: #ffffff;
    --radius: 18px;
    --radius-sm: 10px;
    --shadow: 0 10px 30px rgba(6, 51, 27, 0.08);
    --shadow-lg: 0 20px 50px rgba(6, 51, 27, 0.14);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    padding-bottom: 60px; /* room for sticky bottom bar */
}
h1, h2, h3, .font-heading { font-family: 'Figtree', 'Inter', system-ui, sans-serif; }
a { color: var(--green-700); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* Header / nav */
.site-header { background: rgba(255,255,255,0.92); backdrop-filter: saturate(180%) blur(8px); border-top: 3px solid var(--green-600); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 16px rgba(6,51,27,0.05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; gap: 20px; max-width: 1360px; }
.brand-cluster { display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); font-family: 'Figtree', sans-serif; }
.brand:hover { text-decoration: none; }
.brand-seal { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.brand-name { font-size: 17px; white-space: nowrap; }
.partner-logo { height: 34px; width: auto; padding-left: 14px; border-left: 1px solid var(--border); }
.main-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.main-nav > a { color: var(--ink); font-weight: 600; font-size: 15px; padding: 9px 14px; border-radius: 999px; }
.main-nav > a:hover { color: var(--green-700); background: var(--green-50); text-decoration: none; }
.btn-nav { background: var(--green-600); color: #fff !important; padding: 10px 20px; border-radius: 999px; font-weight: 600; margin-left: 8px; }
.btn-nav:hover { background: var(--green-700); }
.nav-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; }

/* Nav dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { display: inline-flex; align-items: center; gap: 5px; background: none; border: none; color: var(--ink); font-weight: 600; font-size: 15px; padding: 9px 14px; border-radius: 999px; cursor: pointer; font-family: inherit; }
.nav-dropdown-toggle:hover { color: var(--green-700); background: var(--green-50); }
.nav-dropdown-toggle svg { width: 14px; height: 14px; transition: transform 0.15s; }
.nav-dropdown.open .nav-dropdown-toggle svg, .nav-dropdown:hover .nav-dropdown-toggle svg { transform: rotate(180deg); }
.nav-dropdown-menu { position: absolute; top: calc(100% + 8px); left: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); padding: 8px; min-width: 210px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.15s, transform 0.15s, visibility 0.15s; z-index: 10; }
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown.open .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown-menu a { display: flex !important; align-items: center; gap: 10px; padding: 10px 12px !important; border-radius: 8px; font-size: 14px !important; font-weight: 500 !important; color: var(--ink) !important; white-space: nowrap; }
.nav-dropdown-menu a:hover { background: var(--green-50); color: var(--green-700) !important; text-decoration: none; }
.nav-dropdown-menu a svg { color: var(--green-600); width: 16px; height: 16px; }

/* Flash messages */
.flash-stack { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.flash { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; }
.flash-success { background: var(--green-100); color: var(--green-900); border: 1px solid var(--green-500); }
.flash-error { background: var(--red-100); color: var(--red-600); border: 1px solid var(--red-500); }
.flash-info { background: #eef4ff; color: #1f3a68; border: 1px solid #9db8e8; }

/* Eyebrow label: -  -  - LABEL -  -  - */
.eyebrow { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--green-700); font-weight: 700; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 14px; }
.eyebrow::before, .eyebrow::after { content: ""; height: 1px; width: 48px; background: var(--green-500); opacity: 0.5; }
.eyebrow.accent { color: var(--red-600); }
.eyebrow.accent::before, .eyebrow.accent::after { background: var(--red-500); }
.eyebrow.left { justify-content: flex-start; }
.eyebrow.left::before { display: none; }

.section-heading { text-align: center; max-width: 780px; margin: 0 auto 44px; }
.section-heading.left { text-align: left; margin-left: 0; margin-right: 0; }
h2.section-title { font-size: 34px; font-weight: 800; color: var(--ink); margin: 0 0 14px; line-height: 1.2; }
h2.section-title .accent { color: var(--green-600); }
h2.section-title .accent-red { color: var(--red-600); }
.section-lead { color: var(--muted); font-size: 17px; margin: 0 auto; max-width: 680px; }
.section-heading.left .section-lead { margin-left: 0; }

/* Hero */
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--green-100); color: var(--green-800); font-weight: 700; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; padding: 8px 16px; border-radius: 999px; margin-bottom: 22px; }
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-600); }
.hero-slide h1 { font-size: 48px; font-weight: 800; line-height: 1.08; margin: 0 0 22px; color: var(--ink); }
.hero-slide h1 .accent { color: var(--red-600); display: block; }
.hero-slide .hero-lead { font-size: 17px; color: var(--muted); max-width: 520px; margin-bottom: 30px; }
.hero-trust { display: inline-flex; align-items: center; gap: 8px; background: var(--green-50); border: 1px solid var(--green-100); color: var(--green-800); font-size: 13px; font-weight: 600; padding: 10px 16px; border-radius: 999px; margin-top: 22px; }

.member-badge { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.hero-member-badge-top { display: none; }
.member-badge-avatars { display: flex; }
.avatar-circle { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #fff; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 13px; margin-left: -12px; box-shadow: var(--shadow); }
.avatar-circle:first-child { margin-left: 0; }
.member-badge-text { display: flex; flex-direction: column; line-height: 1.3; }
.member-badge-text strong { font-size: 18px; color: var(--ink); font-family: 'Figtree', sans-serif; }
.member-badge-text span { font-size: 12px; color: var(--muted); font-weight: 600; }
.hero-media { position: relative; }
.hero-media img { border-radius: 22px; box-shadow: var(--shadow-lg); width: 100%; }
.hero-media-caption { position: absolute; left: 20px; right: 20px; bottom: -22px; background: var(--white); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 16px 18px; display: flex; align-items: center; gap: 12px; }
.hero-media-caption .icon-badge { flex-shrink: 0; }
.hero-media-caption strong { display: block; font-size: 14px; }
.hero-media-caption span { font-size: 12px; color: var(--muted); }

.hero-actions { display: flex; gap: 14px; margin-top: 8px; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 999px; font-weight: 700; border: 2px solid transparent; cursor: pointer; font-size: 15px; font-family: inherit; }
.btn-primary { background: var(--green-600); color: #fff; }
.btn-primary:hover { background: var(--green-700); text-decoration: none; }
.btn-accent { background: var(--red-600); color: #fff; }
.btn-accent:hover { background: #96202a; text-decoration: none; }
.btn-outline { background: transparent; border-color: var(--border); color: var(--ink); }
.btn-outline:hover { background: var(--green-50); text-decoration: none; }
.btn-secondary { background: var(--white); color: var(--green-700); border-color: var(--green-600); }
.btn-secondary:hover { background: var(--green-100); text-decoration: none; }
.btn-danger { background: var(--red-600); color: #fff; }
.btn-block { display: flex; width: 100%; justify-content: center; text-align: center; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* Sections / cards */
section { padding: 64px 0; }
.section-alt { background: var(--white); }
.section-tint { background: var(--green-50); }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.grid-6 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card h3 { color: var(--ink); margin-top: 0; font-size: 19px; }
.card ul { margin: 10px 0 0; padding-left: 20px; color: var(--muted); font-size: 14px; }
.card ul li { margin-bottom: 6px; }
.card.accent-top { border-top: 4px solid var(--red-500); }
.card.tint-green { background: var(--green-50); border-color: var(--green-100); }
.card.tint-red { background: var(--red-100); border-color: #f3c9cc; }
.pillar-card { border-top: 4px solid var(--green-600); }
.pillar-card:nth-child(4n+2) { border-top-color: var(--red-500); }

/* Icon badges */
.icon-badge { width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--green-100); color: var(--green-700); flex-shrink: 0; margin-bottom: 16px; }
.icon-badge.red { background: var(--red-100); color: var(--red-600); }
.icon-badge.sm { width: 36px; height: 36px; }
.icon-badge svg { width: 22px; height: 22px; }
.value-card { text-align: center; padding: 22px 16px; }
.value-card .icon-badge { margin: 0 auto 14px; }
.value-card h3 { font-size: 16px; margin-bottom: 6px; }
.value-card p { font-size: 13px; color: var(--muted); margin: 0; }

.pill-tag { display: inline-flex; align-items: center; gap: 6px; background: var(--green-100); color: var(--green-800); font-size: 11px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.pill-tag.red { background: var(--red-100); color: var(--red-600); }
.achievement-card .top-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.achievement-card .top-row .icon-badge { margin-bottom: 0; }
.achievement-card h3 { font-size: 18px; margin: 0 0 10px; }
.achievement-card p { color: var(--muted); font-size: 14px; }
.achievement-card .stat { font-size: 28px; font-weight: 800; color: var(--green-700); margin-bottom: 6px; display: block; }

/* Stat band */
.stat-band { background: var(--green-600); background: linear-gradient(120deg, var(--green-700), var(--green-600)); border-radius: var(--radius); padding: 34px 20px; }
.stat-band .grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); text-align: center; }
.stat-band .stat-item { color: #fff; border-right: 1px solid rgba(255,255,255,0.18); padding: 0 10px; }
.stat-band .stat-item:last-child { border-right: none; }
.stat-band .stat-value { font-size: 32px; font-weight: 800; font-family: 'Figtree', sans-serif; }
.stat-band .stat-label { font-size: 13px; color: #cfe9d8; margin-top: 4px; }

/* Timeline (numbered vertical steps) */
.timeline { position: relative; max-width: 640px; margin: 0 auto; }
.timeline-item { position: relative; display: flex; gap: 22px; padding-bottom: 36px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; left: 24px; top: 52px; bottom: -4px; width: 2px; background: var(--green-100); }
.timeline-item:last-child::before { display: none; }
.timeline-num { flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px; background: var(--green-600); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; position: relative; z-index: 1; }
.timeline-num svg { width: 22px; height: 22px; }
.timeline-badge { position: absolute; top: -8px; right: -8px; width: 20px; height: 20px; border-radius: 50%; background: var(--red-600); color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--white); }
.timeline-item:nth-child(even) .timeline-num { background: var(--red-600); }
.timeline-item:nth-child(even) .timeline-badge { background: var(--green-600); }
.timeline-content h3 { margin: 4px 0 6px; font-size: 18px; }
.timeline-content p { margin: 0; color: var(--muted); font-size: 14px; }

.step-flow { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.step-flow .step { background: var(--green-100); color: var(--green-900); padding: 14px 18px; border-radius: 999px; font-weight: 600; }
.step-flow .arrow { color: var(--muted); font-size: 20px; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--green-800), var(--green-600)); border-radius: var(--radius); padding: 56px 40px; text-align: center; color: #fff; }
.cta-band h2 { font-size: 30px; font-weight: 800; margin: 0 0 14px; font-family: 'Figtree', sans-serif; }
.cta-band p { color: #d8ecdf; max-width: 560px; margin: 0 auto 28px; }
.cta-band .hero-actions { justify-content: center; }
.cta-band .btn-primary { background: #fff; color: var(--green-800); }
.cta-band .btn-primary:hover { background: var(--green-50); }
.cta-band .btn-accent { background: var(--red-600); }
.cta-band .btn-outline { border-color: rgba(255,255,255,0.55); color: #fff; }
.cta-band .btn-outline:hover { background: rgba(255,255,255,0.12); }

/* Forms */
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; max-width: 640px; margin: 0 auto; }

.page-banner { background: linear-gradient(120deg, var(--green-800), var(--green-600)); border-radius: var(--radius); padding: 36px 40px; color: #fff; max-width: 640px; margin: 0 auto 24px; }
.page-banner-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; background: rgba(255,255,255,0.16); margin-bottom: 16px; }
.page-banner-icon svg { width: 24px; height: 24px; stroke: #fff; }
.page-banner h1 { font-size: 26px; font-weight: 800; margin: 0 0 10px; font-family: 'Figtree', sans-serif; }
.page-banner p { color: #d8ecdf; margin: 0; font-size: 14.5px; line-height: 1.6; }
.form-group { margin-bottom: 18px; }
.password-field { position: relative; }
.password-field input { padding-right: 42px !important; }
.password-toggle-btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); background: none; border: none; padding: 8px; margin: 0; width: auto; cursor: pointer; color: var(--muted); display: flex; align-items: center; justify-content: center; border-radius: 6px; }
.password-toggle-btn:hover { color: var(--green-700); background: var(--green-50); }
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.hint { color: var(--muted); font-size: 13px; margin-top: 4px; }
input[type="text"], input[type="search"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], input[type="date"], select, textarea {
    width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 15px; background: #fff; color: var(--ink); font-family: inherit;
}
input[type="date"] { cursor: pointer; }
input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: 0.65; border-radius: 4px; padding: 3px; }
input[type="date"]::-webkit-calendar-picker-indicator:hover { opacity: 1; background: var(--green-50); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(0,97,43,0.15); }
.field-error { color: var(--red-600); font-size: 13px; margin-top: 4px; }
.error-summary { background: var(--red-100); border: 1px solid var(--red-500); color: var(--red-600); padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; }
.error-summary ul { margin: 6px 0 0; padding-left: 20px; }
.checkbox-row { display: flex; gap: 12px; align-items: flex-start; background: var(--green-50); border: 1px solid var(--green-100); border-radius: var(--radius-sm); padding: 14px 16px; }
.checkbox-row input { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; accent-color: var(--green-700); cursor: pointer; }
.checkbox-row label { cursor: pointer; }
.honeypot-field { position: absolute; left: -9999px; top: -9999px; }

/* Wizard */
.wizard-steps { display: flex; justify-content: center; gap: 8px; margin-bottom: 28px; }
.wizard-steps span { width: 34px; height: 34px; border-radius: 50%; background: var(--border); color: var(--muted); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.wizard-steps span.active { background: var(--green-600); color: #fff; }
.wizard-steps span.done { background: var(--green-100); color: var(--green-700); border: 2px solid var(--green-600); }
.captcha-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.captcha-row img { border: 1px solid var(--border); border-radius: var(--radius-sm); }
.captcha-refresh { font-size: 13px; }

/* Dashboard */
.dash-header { background: var(--white); border-bottom: 1px solid var(--border); padding: 28px 0; }
.dash-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-top: 20px; }
.stat-box { background: var(--green-50); border-radius: var(--radius-sm); padding: 18px; }
.stat-box .value { font-size: 26px; font-weight: 800; color: var(--green-900); font-family: 'Figtree', sans-serif; }
.stat-box .value.value-text { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-box .label { color: var(--muted); font-size: 13px; }
.referral-code-box { background: var(--green-800); color: #fff; border-radius: var(--radius-sm); padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.referral-code-box code { font-size: 22px; letter-spacing: 2px; background: rgba(255,255,255,0.12); padding: 6px 14px; border-radius: 8px; }

/* Tables */
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 14px; }
th { background: var(--green-50); color: var(--green-900); font-weight: 700; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge-pending { background: #fff3cd; color: #8a6100; }
.badge-verified { background: var(--green-100); color: var(--green-900); }
.badge-rejected { background: var(--red-100); color: var(--red-600); }

/* Admin layout */
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar { width: 230px; background: var(--green-900); color: #fff; padding: 20px 0; flex-shrink: 0; }
.admin-sidebar .brand { color: #fff; padding: 0 20px 20px; display: flex; align-items: center; gap: 10px; font-weight: 800; }
.admin-sidebar a { display: block; color: #d8ecdf; padding: 11px 20px; font-size: 14px; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,0.08); color: #fff; text-decoration: none; }
/* Log Out is a POST form (CSRF-protected), styled to match the links above. */
.admin-sidebar .admin-logout-btn { display: block; width: 100%; text-align: left; background: none; border: 0; font: inherit; color: #d8ecdf; padding: 16px 20px 11px; font-size: 14px; cursor: pointer; }
.admin-sidebar .admin-logout-btn:hover { background: rgba(255,255,255,0.08); color: #fff; }
.admin-main { flex: 1; padding: 28px; min-width: 0; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.admin-topbar-left { display: flex; align-items: center; gap: 12px; }
.admin-topbar-toggle { display: none; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--border); background: #fff; color: var(--ink); cursor: pointer; flex-shrink: 0; }
.admin-topbar-toggle:hover { background: var(--green-50); }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; align-items: end; }
.filter-bar .form-group { margin-bottom: 0; min-width: 160px; }
.filter-bar .filter-search { flex: 1 1 260px; }
.filter-bar .filter-actions { display: flex; gap: 8px; min-width: 0; }
.filter-bar select:disabled { opacity: 0.6; cursor: not-allowed; }
.member-detail-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 16px; }
.member-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.members-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 14px; }
@media (max-width: 600px) {
    .filter-bar .form-group { flex: 1 1 100%; min-width: 0; }
}
/* Built by paginationLinks() in includes/functions.php */
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 16px; }
.pagination-summary { margin: 0; font-size: 14px; color: var(--muted); }
.pagination-summary strong { color: var(--ink); font-weight: 600; }
.pagination-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pagination-links a, .pagination-links span { min-width: 36px; padding: 6px 10px; text-align: center; border: 1px solid var(--border); border-radius: 6px; font-size: 14px; line-height: 1.4; background: var(--white); }
.pagination-links a:hover { background: var(--green-50); text-decoration: none; }
.pagination-links .current { background: var(--green-600); color: #fff; border-color: var(--green-600); font-weight: 600; }
.pagination-links .gap { min-width: 0; padding: 6px 2px; border-color: transparent; background: none; color: var(--muted); }
.pagination-links .disabled { color: var(--muted); opacity: 0.5; cursor: default; }
.pagination-jump { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; }
.pagination-jump label { margin: 0; font-weight: 500; white-space: nowrap; }
.pagination-jump input[type=number] { width: 80px; padding: 6px 8px; }
.pagination-jump .hint { margin: 0; white-space: nowrap; }
@media (max-width: 600px) {
    .pagination { flex-direction: column; align-items: flex-start; }
    .pagination-links .far { display: none; }
}

.post-card { border-left: 4px solid var(--green-600); background: #fff; border-radius: var(--radius-sm); padding: 18px 20px; box-shadow: var(--shadow); margin-bottom: 16px; }
.post-card .meta { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.post-card .attachments { margin-top: 10px; font-size: 14px; }

/* Footer */
footer.site-footer { background: var(--green-900); color: #d8ecdf; margin-top: 0; }
.footer-cta-wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.footer-columns { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding: 30px 20px 30px; }
.footer-columns .col-brand .brand-name { color: #fff; font-size: 19px; }
.footer-columns .col-brand .tagline { color: #9dbfa8; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; margin-top: 8px; font-weight: 700; }
.footer-columns .col-brand p { color: #b9d6c2; font-size: 14px; margin-top: 14px; }
.footer-partner-box { display: inline-flex; align-items: center; gap: 12px; background: #fff; border-radius: var(--radius-sm); padding: 10px 16px; margin-top: 18px; }
.footer-partner-box img { height: 38px; width: auto; border-radius: 4px; }
.footer-partner-box span { color: var(--ink); font-size: 12px; font-weight: 700; line-height: 1.3; }
.footer-columns h4 { color: #9dbfa8; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; margin: 0 0 14px; }
.footer-columns .footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-columns .footer-links a { color: #d8ecdf; font-size: 14px; }
.footer-columns .footer-links a:hover { color: #fff; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; color: #d8ecdf; font-size: 14px; margin-bottom: 12px; }
.footer-contact-item .icon-badge { background: rgba(255,255,255,0.1); color: #fff; margin-bottom: 0; width: 30px; height: 30px; }
.footer-bottom { text-align: center; padding: 16px 0; font-size: 13px; border-top: 1px solid rgba(255,255,255,0.12); color: #9dbfa8; }

/* Sticky bottom bar */
.sticky-cta-bar { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--border); z-index: 60; box-shadow: 0 -6px 20px rgba(6,51,27,0.08); }
.sticky-cta-bar .container { display: flex; align-items: center; justify-content: space-between; padding: 10px 20px; gap: 14px; flex-wrap: wrap; }
.sticky-cta-bar .msg { font-size: 14px; font-weight: 600; color: var(--ink); }
.sticky-cta-bar .actions { display: flex; align-items: center; gap: 16px; }
.sticky-cta-bar .btn { padding: 10px 20px; font-size: 14px; }
.sticky-cta-bar .actions a.link { font-size: 13px; color: var(--muted); font-weight: 600; }

/* Hero carousel */
.hero-carousel { position: relative; overflow: hidden; }
.hero-slide { display: none; }
.hero-slide.active { display: block; }
.hero-slide .container { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.carousel-nav-btn { position: absolute; top: 45%; transform: translateY(-50%); z-index: 5; width: 42px; height: 42px; border-radius: 50%; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.carousel-nav-btn.prev { left: 8px; }
.carousel-nav-btn.next { right: 8px; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
.carousel-dots button { width: 9px; height: 9px; border-radius: 50%; border: none; background: var(--border); cursor: pointer; padding: 0; }
.carousel-dots button.active { background: var(--green-600); width: 22px; border-radius: 6px; }

/* Leadership statement/quote block */
.leader-statement { background: var(--green-50); border-left: 4px solid var(--green-600); border-radius: var(--radius-sm); padding: 22px 24px; position: relative; }
.leader-statement.accent { background: var(--red-100); border-left-color: var(--red-600); }
.leader-statement svg { color: var(--green-500); width: 26px; height: 26px; margin-bottom: 10px; opacity: 0.6; }
.leader-statement.accent svg { color: var(--red-500); }
.leader-statement p { font-size: 18px; font-weight: 600; line-height: 1.5; color: var(--ink); margin: 0 0 12px; font-family: 'Figtree', sans-serif; }
.leader-statement cite { font-style: normal; font-size: 13px; color: var(--muted); font-weight: 600; }

/* Leadership spotlight */
.leader-card { text-align: center; padding: 32px 26px; }
.leader-photo { width: 110px; height: 110px; border-radius: 50%; overflow: hidden; margin: 0 auto 16px; border: 3px solid var(--green-500); }
.leader-photo img { width: 100%; height: 100%; object-fit: cover; }
.leader-card.patron .leader-photo { border-color: var(--red-500); }

/* Gallery */
.gallery-item { position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow); cursor: zoom-in; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-caption { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(0deg, rgba(6,51,27,0.85), transparent); color: #fff; font-size: 13px; font-weight: 600; padding: 24px 12px 10px; }

/* Media Gallery (materials section) - a fixed 4-per-row grid rather than
   .grid-4's auto-fit, so the last row doesn't end up with an odd 5+3 split
   at wider viewports; still collapses down on smaller screens. */
.gallery-grid-fixed { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
    .gallery-grid-fixed { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .gallery-grid-fixed { grid-template-columns: 1fr; }
}

/* Video gallery - all of the current clips are vertical phone recordings
   (9:16), not landscape, so the tile matches that instead of boxing them
   into a 16:9 frame (which would letterbox them with large black bars). */
.video-item { border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); background: #000; }
.video-item video { display: block; width: 100%; aspect-ratio: 9/16; background: #000; object-fit: contain; }

/* Lightbox */
.lightbox-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(6,20,12,0.92); display: none; align-items: center; justify-content: center; padding: 40px 20px; }
.lightbox-overlay.open { display: flex; }
.lightbox-overlay figure { margin: 0; max-width: min(900px, 92vw); max-height: 88vh; display: flex; flex-direction: column; align-items: center; }
.lightbox-overlay img { max-width: 100%; max-height: 78vh; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.lightbox-overlay figcaption { color: #fff; font-size: 14px; font-weight: 600; margin-top: 14px; text-align: center; }
.lightbox-close { position: absolute; top: 20px; right: 24px; width: 44px; height: 44px; border-radius: 50%; border: none; background: rgba(255,255,255,0.12); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox-close:hover { background: rgba(255,255,255,0.22); }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: none; background: rgba(255,255,255,0.12); color: #fff; font-size: 24px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox-nav:hover { background: rgba(255,255,255,0.22); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
@media (max-width: 640px) { .lightbox-nav { width: 40px; height: 40px; font-size: 20px; } .lightbox-prev { left: 6px; } .lightbox-next { right: 6px; } }

/* Interactive state map */
.map-metric-toggle { display: inline-flex; background: var(--green-50); border-radius: 999px; padding: 4px; gap: 2px; }
.map-metric { border: none; background: transparent; padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; cursor: pointer; color: var(--muted); font-family: inherit; }
.map-metric.active { background: var(--green-600); color: #fff; }
.map-wrap { position: relative; margin-top: 24px; }
.map-badge { position: absolute; top: 12px; left: 12px; background: var(--white); border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 700; box-shadow: var(--shadow); z-index: 2; display: flex; align-items: center; gap: 6px; }
.map-svg-holder { width: 100%; }
.map-svg-holder svg { width: 100%; height: auto; display: block; }
.ng-state { stroke: var(--white); stroke-width: 1.2; cursor: pointer; transition: filter 0.15s; }
.ng-state.tier-0 { fill: #d8e3da; }
.ng-state.tier-1 { fill: var(--green-500); }
.ng-state.tier-2 { fill: var(--green-700); }
.ng-state.tier-3 { fill: var(--red-600); }
.ng-state:hover, .ng-state.hovered { filter: brightness(1.15); stroke: var(--ink); stroke-width: 2; }
.map-tooltip { position: absolute; pointer-events: none; background: var(--ink); color: #fff; border-radius: var(--radius-sm); padding: 12px 14px; font-size: 13px; opacity: 0; transition: opacity 0.1s; z-index: 3; min-width: 160px; box-shadow: var(--shadow-lg); }
.map-tooltip.visible { opacity: 1; }
.map-tooltip-title { font-weight: 800; margin-bottom: 6px; font-family: 'Figtree', sans-serif; }
.map-tooltip-row { display: flex; justify-content: space-between; gap: 16px; color: #cfe9d8; }
.map-tooltip-row strong { color: #fff; }

@media (max-width: 900px) {
    .hero-slide .container { grid-template-columns: 1fr; }
    .hero-media { order: -1; }
    /* The base `section { padding: 64px 0; }` rule leaves a large empty
       gap above the top badge on mobile, since it applies to every
       <section> including .hero-carousel - zeroed here (mobile only) so
       the badge sits flush under the navbar instead. */
    .hero-carousel { padding-top: 0; }
    .hero-member-badge-top { display: flex; margin-top: 0; padding: 16px 20px; }
    .hero-slide .container .member-badge { display: none; }
    .footer-columns { grid-template-columns: 1fr 1fr; }
    .stat-band .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.18); padding-bottom: 14px; margin-bottom: 6px; }
}

/* The public-site nav (brand + logo + all nav links + CTA button) needs
   noticeably more room than the general mobile/tablet breakpoint below - 
   at 900-1180px wide it doesn't fit the .container's 1180px cap on one
   line, so instead of letting it wrap into an ugly two-row header it
   switches to the same hamburger/dropdown nav used on phones. This is a
   separate, wider breakpoint from the one below on purpose. */
@media (max-width: 1220px) {
    .nav-toggle { display: block; }
    .main-nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 12px; }
    .main-nav.open { display: flex; }
    .header-inner { flex-wrap: wrap; }

    .nav-dropdown { width: 100%; }
    .nav-dropdown-toggle { width: 100%; justify-content: space-between; }
    /* On touch, only the .open class (from the click handler) should reveal
       this - not :hover - so it stays a plain display:none/block toggle. */
    .nav-dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 0 0 0 14px; min-width: 0; width: 100%; display: none; }
    .nav-dropdown.open .nav-dropdown-menu { display: block; }
}

@media (max-width: 820px) {
    .admin-shell { flex-direction: column; }
    .admin-topbar-toggle { display: flex; }
    .admin-sidebar {
        position: fixed; top: 0; left: 0; bottom: 0; width: 260px; z-index: 110;
        transform: translateX(-100%); transition: transform 0.25s ease;
        overflow-y: auto; box-shadow: 0 0 40px rgba(0,0,0,0.25);
    }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-sidebar-backdrop {
        display: none; position: fixed; inset: 0; background: rgba(6,20,12,0.5); z-index: 100;
    }
    .admin-sidebar-backdrop.open { display: block; }
    .admin-main { padding: 20px 16px; }
    .hero-slide h1 { font-size: 34px; }
    .footer-columns { grid-template-columns: 1fr; }
    .sticky-cta-bar .msg { display: none; }
    body { padding-bottom: 66px; }
}

/* Events + map legend */
.map-metric-toggle { flex-wrap: wrap; }
.map-legend { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 20px; margin-top: 18px; font-size: 13px; color: var(--muted); }
.map-legend-item { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.map-legend-dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
/* Presence map: five rank bands, weakest (red) to strongest (green). See repaint() in includes/map-section.php. */
.ng-state.band-1 { fill: #c62828; } .map-legend-dot.band-1 { background: #c62828; }
.ng-state.band-2 { fill: #ef6c00; } .map-legend-dot.band-2 { background: #ef6c00; }
.ng-state.band-3 { fill: #f2b707; } .map-legend-dot.band-3 { background: #f2b707; }
.ng-state.band-4 { fill: #7cb342; } .map-legend-dot.band-4 { background: #7cb342; }
.ng-state.band-5 { fill: #1b7a3d; } .map-legend-dot.band-5 { background: #1b7a3d; }
.ng-state.band-none { fill: #d8e3da; } .map-legend-dot.band-none { background: #d8e3da; border: 1px solid var(--border); }
.map-legend-scale-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.map-legend-item[hidden] { display: none; }
.map-tooltip-rank { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,0.15); }
.map-legend-avg { font-size: 12px; color: var(--muted); font-style: italic; }

@media (max-width: 480px) {
    .map-legend { justify-content: flex-start; gap: 10px 16px; }
    .map-tooltip { min-width: 140px; font-size: 12px; }
}

/* Membership ID card */
.id-card { max-width: 460px; margin: 0 auto; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; border-bottom: 5px solid var(--red-600); }
.id-card-band { background: linear-gradient(120deg, var(--green-700), var(--green-600)); color: #fff; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.id-card-brand-name { display: block; font-family: 'Figtree', sans-serif; font-weight: 800; font-size: 15px; letter-spacing: 0.5px; }
.id-card-brand-sub { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; opacity: 0.85; margin-top: 2px; }
.id-card-body { display: flex; align-items: center; gap: 16px; padding: 20px; border-bottom: 1px dashed var(--border); flex-wrap: wrap; }
.id-card-avatar { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 22px; font-family: 'Figtree', sans-serif; flex-shrink: 0; box-shadow: var(--shadow); border: 3px solid var(--white); outline: 2px solid var(--green-100); }
.id-card-identity { min-width: 0; }
.id-card-name { font-family: 'Figtree', sans-serif; font-weight: 800; font-size: 19px; color: var(--green-900); line-height: 1.25; overflow-wrap: anywhere; }
.id-card-idnum { font-size: 13px; color: var(--muted); margin-top: 4px; }
.id-card-idnum code { background: var(--green-50); color: var(--green-800); padding: 2px 8px; border-radius: 6px; font-weight: 700; letter-spacing: 1px; }
.id-card-details { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 20px; padding: 18px 20px; }
.id-card-field { min-width: 0; }
.id-card-label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--muted); font-weight: 700; }
.id-card-value { display: block; font-size: 14px; color: var(--ink); font-weight: 600; margin-top: 2px; overflow-wrap: anywhere; }

@media (max-width: 480px) {
    .id-card-details { grid-template-columns: 1fr; }
}

/* Detail modal (news / event click-to-preview) */
[data-detail-card] { cursor: pointer; }
[data-detail-card]:hover { box-shadow: var(--shadow-lg); }
.detail-modal-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(6,20,12,0.6); display: none; align-items: center; justify-content: center; padding: 24px; }
.detail-modal-overlay.open { display: flex; }
.detail-modal-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); max-width: 640px; width: 100%; max-height: 86vh; overflow-y: auto; position: relative; padding: 32px; }
.detail-modal-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: none; background: var(--green-50); color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.detail-modal-close:hover { background: var(--green-100); }
.detail-modal-body h3 { margin: 0 24px 6px 0; font-size: 22px; }
.detail-modal-body .meta { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.detail-modal-body img { width: 100%; border-radius: var(--radius-sm); margin: 12px 0; }
.detail-modal-body p { white-space: pre-line; }

.news-card-excerpt { color: var(--muted); font-size: 14.5px; margin: 6px 0 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.news-card-thumb { width: 100%; max-height: 220px; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 12px; }
.read-more-link { display: inline-block; margin-top: 10px; font-weight: 600; font-size: 13.5px; }

.event-card { display: flex; gap: 16px; align-items: flex-start; }
.event-card-date { flex-shrink: 0; width: 64px; text-align: center; background: var(--green-50); border-radius: var(--radius-sm); padding: 10px 4px; }
.event-card-date .day { display: block; font-size: 22px; font-weight: 800; color: var(--green-700); font-family: 'Figtree', sans-serif; line-height: 1; }
.event-card-date .mon { display: block; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.event-card-body h4 { margin: 0 0 4px; font-size: 16px; }
.event-card-body .meta { color: var(--muted); font-size: 13px; }

/* Hero slide quote */
.hero-quote { background: var(--green-50); border-left: 4px solid var(--green-600); border-radius: var(--radius-sm); padding: 16px 20px; margin: 0 0 24px; max-width: 520px; }
.hero-quote p { font-size: 15px; font-weight: 600; font-style: italic; line-height: 1.55; color: var(--ink); margin: 0 0 8px; font-family: 'Figtree', sans-serif; }
.hero-quote cite { font-style: normal; font-size: 12.5px; color: var(--muted); font-weight: 600; }

/* ID card: photo, download, and upload row */
.id-card-avatar-photo { object-fit: cover; }
.id-card-actions { display: flex; gap: 10px; flex-wrap: wrap; padding: 0 20px 18px; }
.id-card-photo-upload { display: none; padding: 0 20px 20px; }
.id-card-photo-upload.open { display: block; }
.id-card-photo-upload form { background: var(--green-50); border-radius: var(--radius-sm); padding: 14px 16px; }
.id-card-photo-upload input[type=file] { display: block; margin-bottom: 10px; font-size: 13px; }

/* Homepage leadership grid (replaces the old standalone leadership.php) */
.leader-card-full { text-align: left; padding: 28px 26px; }
.leader-card-full .leader-photo { margin: 0 0 14px; width: 84px; height: 84px; }
.leader-card-full .leader-statement-sm { background: var(--green-50); border-left: 3px solid var(--green-600); border-radius: var(--radius-sm); padding: 14px 16px; margin-top: 14px; }
.leader-card-full.accent .leader-statement-sm { background: var(--red-100); border-left-color: var(--red-600); }
.leader-card-full .leader-statement-sm p { font-size: 14px; font-weight: 600; line-height: 1.5; color: var(--ink); margin: 0 0 8px; font-style: italic; }
.leader-card-full .leader-statement-sm cite { font-style: normal; font-size: 12px; color: var(--muted); font-weight: 600; }

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

/* Member area sub-navigation (Home / Tasks / Events / News / Profile) */
.member-tabs { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 78px; z-index: 40; }
.member-tabs-inner { display: flex; gap: 4px; padding: 10px 20px; overflow-x: auto; }
.member-tab { display: flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 14px; white-space: nowrap; flex-shrink: 0; }
.member-tab:hover { background: var(--green-50); color: var(--green-700); text-decoration: none; }
.member-tab.active { background: var(--green-700); color: #fff; }
.member-tab svg { width: 17px; height: 17px; flex-shrink: 0; }

@media (max-width: 640px) {
    .member-tabs { position: fixed; top: auto; bottom: 0; left: 0; right: 0; border-bottom: none; border-top: 1px solid var(--border); box-shadow: 0 -6px 20px rgba(6,51,27,0.08); }
    .member-tabs-inner { padding: 6px 6px; justify-content: space-around; overflow-x: visible; }
    .member-tab { flex-direction: column; gap: 2px; padding: 6px 4px; border-radius: 10px; font-size: 10.5px; flex: 1; text-align: center; }
    .member-tab.active { background: var(--green-50); color: var(--green-700); }
    body:has(.member-tabs) { padding-bottom: 76px; }
}

/* Dashboard entrance animations + a bit of hover interactivity. Skipped
   entirely for visitors who've asked the OS for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
    .ym-animate { opacity: 0; transform: translateY(20px); }
    .ym-animate.in-view { animation: ymFadeInUp 0.65s cubic-bezier(.22,1,.36,1) forwards; }
    @keyframes ymFadeInUp { to { opacity: 1; transform: translateY(0); } }

    .dash-stats.in-view .stat-box:nth-child(1) { animation-delay: 0.05s; }
    .dash-stats.in-view .stat-box:nth-child(2) { animation-delay: 0.15s; }
    .dash-stats.in-view .stat-box:nth-child(3) { animation-delay: 0.25s; }

    .stat-box { transition: transform 0.2s ease, box-shadow 0.2s ease; }
    .stat-box:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
    .id-card { transition: transform 0.25s ease, box-shadow 0.25s ease; }
    .id-card:hover { transform: translateY(-5px); box-shadow: 0 26px 60px rgba(6,51,27,0.18); }
    .dash-header .referral-code-box { transition: transform 0.2s ease; }
    .dash-header .referral-code-box:hover { transform: translateY(-2px); }
}
