/*
Theme Name: SUGRiA
Theme URI: https://www.sugria.com
Author: SUGRiA Team
Author URI: https://www.sugria.com
Description: Official theme for the Sustainable Green Revolution in Africa platform. Features programme registration, platform login, member dashboards, fund wallets, and full pan-African agricultural programme management.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: Proprietary
License URI: https://www.sugria.com/license
Text Domain: sugria
Tags: agriculture, africa, nonprofit, platform, dashboard
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
    --g1: #0D3B1F;
    --g2: #1B6B3A;
    --g3: #2E8B57;
    --g4: #4CAF7D;
    --gp: #E8F5EE;
    --gold: #C8960C;
    --gold2: #E8B820;
    --cream: #FAF7F2;
    --white: #ffffff;
    --dark: #1A2B1F;
    --gray: #556B5A;
    --lgray: #E2EDE5;
    --red: #C0392B;
    --font-d: 'Playfair Display', Georgia, serif;
    --font-b: 'DM Sans', sans-serif;
    --radius: 12px;
    --shadow: 0 4px 24px rgba(13, 59, 31, 0.10);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-b);
    background: var(--cream);
    color: var(--dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--gp); }
::-webkit-scrollbar-thumb { background: var(--g3); border-radius: 3px; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
.hidden { display: none !important; }

/* ============================================================
   NAVIGATION
   ============================================================ */
#site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: 68px;
    background: rgba(13, 59, 31, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4%;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-decoration: none;
}

.nav-logo-circle {
    width: 38px; height: 38px;
    background: var(--gold);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-d);
    font-size: 13px; font-weight: 900;
    color: var(--g1);
    flex-shrink: 0;
}

.site-name {
    font-family: var(--font-d);
    font-size: 17px; font-weight: 700;
    color: var(--white);
}

/* WordPress nav menu */
#primary-navigation { display: flex; align-items: center; }

#primary-navigation .nav-menu {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0; padding: 0;
}

#primary-navigation .nav-menu a {
    color: rgba(255, 255, 255, 0.80);
    font-size: 13px; font-weight: 500;
    transition: color 0.2s;
    text-decoration: none;
}

#primary-navigation .nav-menu a:hover,
#primary-navigation .nav-menu .current-menu-item > a {
    color: var(--gold);
}

/* Submenu */
#primary-navigation .nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--g1);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    min-width: 200px;
    padding: 8px 0;
    z-index: 100;
}

#primary-navigation .nav-menu li {
    position: relative;
}

#primary-navigation .nav-menu li:hover > .sub-menu {
    display: block;
}

#primary-navigation .nav-menu .sub-menu a {
    display: block;
    padding: 9px 16px;
    font-size: 13px;
    color: rgba(255,255,255,0.80);
}

#primary-navigation .nav-menu .sub-menu a:hover {
    background: rgba(255,255,255,0.06);
    color: var(--gold);
}

.nav-login-btn {
    background: var(--gold);
    color: var(--g1);
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: 700; font-size: 13px;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    margin-left: 20px;
    white-space: nowrap;
}

.nav-login-btn:hover { background: var(--gold2); }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.menu-toggle span {
    width: 22px; height: 2px;
    background: var(--white);
    transition: all 0.3s;
    display: block;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.site-main { padding-top: 68px; }

section { padding: 88px 0; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4%;
}

.sec-tag {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--g3);
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.sec-title {
    font-family: var(--font-d);
    font-size: clamp(24px, 4vw, 42px);
    font-weight: 900;
    line-height: 1.1;
    color: var(--g1);
    margin-bottom: 14px;
}

.sec-sub {
    font-size: 15px;
    line-height: 1.8;
    color: var(--gray);
    max-width: 640px;
}

.sec-header { margin-bottom: 50px; }

/* ============================================================
   HERO SECTION
   ============================================================ */
#home-hero {
    min-height: 100vh;
    background: var(--g1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hero-orb-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(46,139,87,.3) 0%, transparent 70%);
    top: -100px; right: -100px;
}

.hero-orb-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(200,150,12,.12) 0%, transparent 70%);
    bottom: 0; left: 5%;
}

.hgrid {
    position: absolute; inset: 0; opacity: 0.03;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(255,255,255,.5) 60px, rgba(255,255,255,.5) 61px),
        repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(255,255,255,.5) 60px, rgba(255,255,255,.5) 61px);
}

.hero-inner {
    position: relative; z-index: 2;
    max-width: 1200px; margin: 0 auto;
    padding: 80px 4%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-tag {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(200,150,12,.15);
    border: 1px solid rgba(200,150,12,.4);
    padding: 5px 14px; border-radius: 20px;
    font-size: 11px; font-weight: 600;
    color: var(--gold); letter-spacing: 1.5px;
    text-transform: uppercase; margin-bottom: 20px;
}

.hero-tag span {
    width: 6px; height: 6px;
    background: var(--gold); border-radius: 50%;
}

.hero-h1 {
    font-family: var(--font-d);
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 900; line-height: 1.08;
    color: var(--white); margin-bottom: 20px;
}

.hero-h1 em { font-style: normal; color: var(--gold); }

.hero-p {
    font-size: 15px; line-height: 1.8;
    color: rgba(255,255,255,.72);
    margin-bottom: 30px; max-width: 480px;
}

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

.btn-gold {
    background: var(--gold); color: var(--g1);
    padding: 13px 26px; border-radius: 5px;
    font-weight: 700; font-size: 14px;
    cursor: pointer; border: none; transition: all 0.2s;
    display: inline-flex; align-items: center; gap: 8px;
    text-decoration: none;
}

.btn-gold:hover { background: var(--gold2); transform: translateY(-2px); }

.btn-outline-w {
    border: 1.5px solid rgba(255,255,255,.4);
    color: var(--white);
    padding: 13px 24px; border-radius: 5px;
    font-weight: 600; font-size: 14px;
    cursor: pointer; background: none; transition: all 0.2s;
    display: inline-flex; align-items: center; gap: 8px;
}

.btn-outline-w:hover { border-color: var(--gold); color: var(--gold); }

.hero-stats {
    display: flex; gap: 26px;
    margin-top: 40px; padding-top: 26px;
    border-top: 1px solid rgba(255,255,255,.1);
}

.hstat-num {
    font-family: var(--font-d);
    font-size: 24px; font-weight: 900; color: var(--gold);
}

.hstat-label {
    font-size: 11px; color: rgba(255,255,255,.5); margin-top: 2px;
}

.hero-cards { display: flex; flex-direction: column; gap: 14px; }

.hero-card {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px; padding: 18px 22px;
    backdrop-filter: blur(6px);
    animation: fadeUp 0.7s ease both;
}

.hero-card:nth-child(2) { animation-delay: 0.15s; }
.hero-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hcard-label {
    font-size: 9.5px; letter-spacing: 1.5px;
    text-transform: uppercase; color: var(--gold);
    font-weight: 700; margin-bottom: 5px;
}

.hcard-val {
    font-family: var(--font-d);
    font-size: 18px; font-weight: 700; color: var(--white);
}

.hcard-sub { font-size: 11px; color: rgba(255,255,255,.5); margin-top: 3px; }

/* ============================================================
   ABOUT SECTION
   ============================================================ */
#about-sec { background: var(--white); }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px; align-items: start;
}

.about-mission {
    background: var(--g1); color: var(--white);
    border-radius: var(--radius);
    padding: 22px 26px; margin-top: 22px;
    font-size: 14px; line-height: 1.85;
    font-style: italic;
    border-left: 4px solid var(--gold);
}

.about-pillars { display: flex; flex-direction: column; gap: 12px; }

.pillar {
    display: flex; gap: 14px;
    padding: 15px 17px;
    background: var(--cream);
    border-radius: 10px;
    border: 1px solid var(--lgray);
    transition: all 0.25s;
}

.pillar:hover {
    border-color: var(--g4);
    box-shadow: 0 4px 20px rgba(27,107,58,.08);
}

.pillar-icon {
    width: 40px; height: 40px;
    background: var(--g2); border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; flex-shrink: 0;
}

.pillar-title {
    font-size: 13.5px; font-weight: 700;
    color: var(--g1); margin-bottom: 3px;
}

.pillar-desc { font-size: 12px; color: var(--gray); line-height: 1.6; }

.ngo-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(200,150,12,.1);
    border: 1.5px solid var(--gold);
    padding: 7px 14px; border-radius: 6px;
    font-size: 12px; font-weight: 700;
    color: var(--gold); margin-top: 16px;
}

/* ============================================================
   PROGRAMMES SECTION
   ============================================================ */
.prog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.prog-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--lgray);
    transition: all 0.25s;
    display: flex; flex-direction: column;
}

.prog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(27,107,58,.12);
}

.prog-card-top {
    padding: 26px 22px;
    background: var(--g2);
    position: relative; overflow: hidden;
}

.prog-card-top::after {
    content: '';
    position: absolute; right: -20px; top: -20px;
    width: 90px; height: 90px;
    background: rgba(255,255,255,.06);
    border-radius: 50%;
}

.prog-card-icon { font-size: 34px; margin-bottom: 10px; }

.prog-card-title {
    font-family: var(--font-d);
    font-size: 19px; font-weight: 700; color: var(--white);
}

.prog-card-tag {
    font-size: 10px; color: var(--gold);
    font-weight: 700; letter-spacing: 1px;
    text-transform: uppercase; margin-top: 4px;
}

.prog-card-body {
    padding: 20px 22px; flex: 1;
    display: flex; flex-direction: column;
}

.prog-card-desc {
    font-size: 13px; color: var(--gray);
    line-height: 1.75; flex: 1; margin-bottom: 14px;
}

.prog-features { margin-bottom: 16px; }

.prog-features li {
    font-size: 12px; color: var(--dark);
    padding: 3px 0;
    display: flex; align-items: center; gap: 8px;
}

.prog-features li::before {
    content: '✓'; color: var(--g3);
    font-weight: 700; flex-shrink: 0;
}

.prog-price-badge {
    background: var(--gp);
    border: 1px solid var(--g3);
    border-radius: 8px;
    padding: 10px 14px; margin-bottom: 14px;
    display: flex; justify-content: space-between; align-items: center;
}

.prog-price-label {
    font-size: 11px; color: var(--g2);
    font-weight: 600; text-transform: uppercase; letter-spacing: .5px;
}

.prog-price-val {
    font-family: var(--font-d);
    font-size: 18px; font-weight: 900; color: var(--g1);
}

.btn-pay {
    width: 100%; background: var(--gold); color: var(--g1);
    border: none; border-radius: 7px; padding: 12px;
    font-family: var(--font-b); font-size: 14px; font-weight: 700;
    cursor: pointer; transition: all 0.2s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}

.btn-pay:hover { background: var(--gold2); transform: translateY(-1px); }

.btn-login-link {
    width: 100%; background: transparent; color: var(--g2);
    border: 1.5px solid var(--g3);
    border-radius: 7px; padding: 10px;
    font-family: var(--font-b); font-size: 13px; font-weight: 600;
    cursor: pointer; transition: all 0.2s; margin-top: 8px;
}

.btn-login-link:hover { background: var(--gp); }

/* ============================================================
   TRAINING FEES SECTION
   ============================================================ */
#fees-sec { background: var(--g1); }
#fees-sec .sec-title { color: var(--white); }
#fees-sec .sec-tag  { color: var(--gold); }
#fees-sec .sec-sub  { color: rgba(255,255,255,.65); }

.fees-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px; align-items: center;
}

.fees-info { display: flex; flex-direction: column; gap: 15px; }

.fee-item {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px; padding: 17px 21px;
}

.fee-item-title {
    font-size: 14px; font-weight: 700;
    color: var(--gold); margin-bottom: 7px;
}

.fee-item-text {
    font-size: 13px;
    color: rgba(255,255,255,.72); line-height: 1.75;
}

.fee-visual {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius); padding: 26px;
}

.fee-cycle { display: flex; flex-direction: column; }

.fee-step {
    display: flex; gap: 14px; align-items: flex-start;
    position: relative; padding-bottom: 18px;
}

.fee-step:last-child { padding-bottom: 0; }

.fee-step:not(:last-child)::after {
    content: '';
    position: absolute; left: 17px; top: 36px; bottom: 0;
    width: 2px; background: rgba(200,150,12,.3);
}

.fee-dot {
    width: 34px; height: 34px;
    background: var(--gold); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; color: var(--g1);
    flex-shrink: 0; z-index: 1;
}

.fee-step-title {
    font-size: 14px; font-weight: 700;
    color: var(--white); margin-bottom: 3px;
}

.fee-step-desc { font-size: 12px; color: rgba(255,255,255,.6); }

/* ============================================================
   CONTACT SECTION
   ============================================================ */
#contact-sec { padding: 60px 0; background: var(--white); }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-item {
    display: flex; gap: 13px; align-items: flex-start;
    margin-bottom: 16px;
}

.contact-icon {
    width: 38px; height: 38px;
    background: var(--g2); border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; flex-shrink: 0;
}

.contact-label {
    font-size: 10.5px; color: var(--g3);
    font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
}

.contact-value {
    font-size: 13px; color: var(--dark);
    margin-top: 2px;
}

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer { background: var(--dark); padding: 52px 0 0; }

.footer-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 4%;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 38px;
    padding-bottom: 38px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-logo-row {
    display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}

.footer-site-name {
    font-family: var(--font-d);
    font-size: 18px; font-weight: 700; color: var(--white);
}

.footer-tagline {
    font-size: 13px;
    color: rgba(255,255,255,.5);
    line-height: 1.8; max-width: 260px; margin-bottom: 13px;
}

.footer-badge {
    display: inline-block;
    background: rgba(200,150,12,.15);
    border: 1px solid rgba(200,150,12,.4);
    padding: 4px 12px; border-radius: 4px;
    font-size: 11px; font-weight: 700; color: var(--gold);
}

.footer-col-title {
    font-size: 10.5px; text-transform: uppercase;
    letter-spacing: 1.5px; color: var(--gold);
    font-weight: 700; margin-bottom: 13px;
}

/* WordPress footer nav menu */
.footer-nav-menu {
    display: flex; flex-direction: column; gap: 8px;
    list-style: none; margin: 0; padding: 0;
}

.footer-nav-menu a {
    font-size: 13px;
    color: rgba(255,255,255,.55);
    transition: color 0.2s; text-decoration: none;
}

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

.footer-contact-label {
    font-size: 10px; text-transform: uppercase;
    letter-spacing: 1px; color: var(--gold); font-weight: 600;
}

.footer-contact-value {
    font-size: 13px; color: rgba(255,255,255,.75);
    margin-top: 2px; margin-bottom: 11px;
}

.footer-bottom {
    max-width: 1200px; margin: 0 auto; padding: 14px 4%;
    display: flex; justify-content: space-between;
    align-items: center; flex-wrap: wrap; gap: 10px;
}

.footer-copy { font-size: 11px; color: rgba(255,255,255,.35); }

.footer-bottom-links { display: flex; gap: 16px; }

.footer-bottom-links a {
    font-size: 11px; color: rgba(255,255,255,.35);
    text-decoration: none;
}

.footer-bottom-links a:hover { color: rgba(255,255,255,.7); }

/* ============================================================
   MODALS
   ============================================================ */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.72);
    z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.modal-overlay.hidden { display: none !important; }

.modal {
    background: var(--white);
    border-radius: 16px;
    max-width: 520px; width: 100%;
    max-height: 90vh; overflow-y: auto;
    position: relative;
}

.modal-wide { max-width: 680px; }

.modal-header {
    background: var(--g1);
    padding: 24px 28px;
    border-radius: 16px 16px 0 0;
    position: relative;
}

.modal-header h2 {
    font-family: var(--font-d);
    font-size: 20px; font-weight: 700; color: var(--white);
}

.modal-header p {
    font-size: 12.5px;
    color: rgba(255,255,255,.6); margin-top: 5px;
}

.modal-close {
    position: absolute; top: 13px; right: 13px;
    background: rgba(255,255,255,.15); border: none;
    color: var(--white); width: 28px; height: 28px;
    border-radius: 50%; cursor: pointer; font-size: 15px;
    display: flex; align-items: center; justify-content: center;
}

.modal-body { padding: 24px 28px; }

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
.form-group { margin-bottom: 15px; }

.form-group label {
    display: block;
    font-size: 11px; font-weight: 700; color: var(--g1);
    text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    border: 1.5px solid var(--lgray);
    border-radius: 8px; padding: 10px 13px;
    font-family: var(--font-b); font-size: 14px;
    color: var(--dark); background: var(--cream);
    outline: none; transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--g3); background: var(--white);
}

.form-group textarea { resize: vertical; min-height: 75px; }

.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 38px; }

.pw-toggle {
    position: absolute; right: 11px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none; cursor: pointer;
    font-size: 15px; color: var(--gray);
}

.phone-row { display: flex; gap: 8px; }
.phone-row select { flex: 0 0 110px; }
.phone-row input { flex: 1; }

.btn-primary {
    width: 100%; background: var(--g2); color: var(--white);
    border: none; border-radius: 8px; padding: 13px;
    font-family: var(--font-b); font-size: 15px; font-weight: 700;
    cursor: pointer; transition: all 0.2s;
}

.btn-primary:hover { background: var(--g3); }

.btn-secondary {
    width: 100%; background: var(--lgray); color: var(--g1);
    border: none; border-radius: 8px; padding: 11px;
    font-family: var(--font-b); font-size: 14px; font-weight: 600;
    cursor: pointer; transition: all 0.2s; margin-top: 9px;
}

.btn-secondary:hover { background: #cdd8d0; }

.alert {
    padding: 11px 14px; border-radius: 8px;
    font-size: 13px; margin-bottom: 13px; line-height: 1.6;
}

.alert-error  { background: #fdf0ef; border: 1px solid var(--red); color: var(--red); }
.alert-success { background: var(--gp); border: 1px solid var(--g3); color: var(--g1); }
.alert-info   { background: rgba(200,150,12,.07); border: 1px solid var(--gold); color: #7a5900; }

.field-hint { font-size: 11.5px; color: var(--gray); margin-top: 4px; }

.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }

/* ============================================================
   SETUP / ONBOARDING STEPS
   ============================================================ */
.prog-bar-wrap { margin-bottom: 20px; }

.prog-bar-label {
    display: flex; justify-content: space-between;
    font-size: 12px; color: var(--gray); margin-bottom: 5px;
}

.prog-bar-track {
    height: 6px; background: var(--lgray);
    border-radius: 3px; overflow: hidden;
}

.prog-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--g2), var(--g4));
    border-radius: 3px; transition: width 0.4s;
}

.step-pills { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }

.pill { padding: 4px 11px; border-radius: 20px; font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.pill.active  { background: var(--g2); color: var(--white); }
.pill.done    { background: var(--gp); color: var(--g2); }
.pill.pending { background: var(--lgray); color: var(--gray); }

.ob-step { display: none; }
.ob-step.active { display: block; }

.ob-head { text-align: center; margin-bottom: 20px; }
.ob-icon { font-size: 42px; margin-bottom: 8px; }

.ob-title {
    font-family: var(--font-d);
    font-size: 19px; font-weight: 700; color: var(--g1);
}

.ob-sub { font-size: 13px; color: var(--gray); margin-top: 5px; line-height: 1.6; }

.cat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 11px;
}

.cat-opt {
    border: 2px solid var(--lgray); border-radius: 10px;
    padding: 15px; text-align: center; cursor: pointer; transition: all 0.2s;
}

.cat-opt:hover { border-color: var(--g3); background: var(--gp); }
.cat-opt.sel   { border-color: var(--g2); background: var(--gp); }

.cat-opt-icon  { font-size: 26px; margin-bottom: 5px; }

.cat-opt-label {
    font-size: 13px; font-weight: 700; color: var(--g1);
}

.cat-opt-sub { font-size: 11px; color: var(--gray); margin-top: 2px; }

.str-bar {
    height: 5px; border-radius: 3px;
    background: var(--lgray); margin-top: 5px; overflow: hidden;
}

.str-fill { height: 100%; border-radius: 3px; transition: all 0.3s; }
.str-label { font-size: 11px; margin-top: 2px; }

.form-nav { display: flex; gap: 10px; margin-top: 18px; }

.btn-next {
    flex: 1; background: var(--g2); color: var(--white);
    border: none; border-radius: 8px; padding: 12px;
    font-family: var(--font-b); font-size: 14px; font-weight: 700; cursor: pointer; transition: all 0.2s;
}

.btn-next:hover { background: var(--g3); }

.btn-back {
    flex: 0 0 88px; background: var(--lgray); color: var(--g1);
    border: none; border-radius: 8px; padding: 12px;
    font-family: var(--font-b); font-size: 14px; font-weight: 600; cursor: pointer;
}

.btn-back:hover { background: #cdd8d0; }

.consent-row {
    display: flex; gap: 10px; align-items: flex-start;
    font-size: 12.5px; color: var(--dark);
}

.consent-row input { margin-top: 3px; cursor: pointer; }

/* ============================================================
   PAYMENT
   ============================================================ */
.pay-summary {
    background: var(--gp); border: 1px solid var(--g3);
    border-radius: 10px; padding: 16px; margin-bottom: 16px;
}

.pay-row {
    display: flex; justify-content: space-between;
    font-size: 13.5px; margin-bottom: 5px;
}

.pay-row.total {
    font-weight: 700; font-size: 15px; color: var(--g1);
    padding-top: 7px; border-top: 1px solid var(--g3); margin-top: 7px;
}

.pay-methods {
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    gap: 8px; margin-bottom: 14px;
}

.pay-method {
    border: 2px solid var(--lgray); border-radius: 8px;
    padding: 11px; text-align: center; cursor: pointer;
    transition: all 0.2s; font-size: 12px; font-weight: 600;
}

.pay-method:hover,
.pay-method.sel { border-color: var(--g2); background: var(--gp); }

.pay-method-icon { font-size: 20px; margin-bottom: 3px; }

.wa-box {
    background: #25D366; border-radius: 10px;
    padding: 16px; text-align: center;
    color: var(--white); margin-top: 14px;
}

.wa-box h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.wa-box p  { font-size: 12.5px; opacity: .9; margin-bottom: 12px; }

.btn-wa {
    background: var(--white); color: #25D366;
    border: none; border-radius: 7px; padding: 11px 22px;
    font-family: var(--font-b); font-size: 14px; font-weight: 700;
    cursor: pointer;
    display: inline-flex; align-items: center; gap: 8px;
}

.btn-wa:hover { background: #f0fdf4; }

/* ============================================================
   DASHBOARD
   ============================================================ */
#dashboard-page {
    display: none;
    min-height: 100vh;
    background: var(--cream);
}

#dashboard-page.active { display: block; }

.dash-layout {
    display: grid;
    grid-template-columns: 255px 1fr;
    min-height: calc(100vh - 68px);
}

.dash-sidebar {
    background: var(--g1);
    padding: 22px 16px;
    position: sticky; top: 68px;
    height: calc(100vh - 68px); overflow-y: auto;
}

.dash-user {
    text-align: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,.1);
    margin-bottom: 16px;
}

.dash-avatar {
    width: 64px; height: 64px;
    background: var(--gold); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-d); font-size: 21px; font-weight: 900;
    color: var(--g1); margin: 0 auto 10px;
}

.dash-name  { font-size: 14px; font-weight: 700; color: var(--white); }
.dash-cat   { font-size: 10px; color: var(--gold); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-top: 3px; }
.dash-loc   { font-size: 11px; color: rgba(255,255,255,.5); margin-top: 2px; }

.dash-nav { list-style: none; margin: 0; padding: 0; }

.dash-nav li a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    color: rgba(255,255,255,.75); font-size: 13px; font-weight: 500;
    border-radius: 8px; transition: all 0.2s; cursor: pointer;
    text-decoration: none;
}

.dash-nav li a:hover,
.dash-nav li a.active {
    background: rgba(255,255,255,.1); color: var(--white);
}

.dash-nav .icon { font-size: 15px; width: 18px; text-align: center; }

.dash-content { padding: 26px; overflow-y: auto; }

.dash-greeting {
    font-family: var(--font-d);
    font-size: 22px; font-weight: 700; color: var(--g1); margin-bottom: 4px;
}

.dash-sub { font-size: 13px; color: var(--gray); margin-bottom: 22px; }

.dash-cards {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 16px; margin-bottom: 26px;
}

.dash-card {
    background: var(--white); border-radius: var(--radius);
    padding: 18px 20px; border: 1px solid var(--lgray);
    border-top: 4px solid var(--g2);
}

.dash-card:nth-child(2) { border-top-color: var(--gold); }
.dash-card:nth-child(3) { border-top-color: var(--g4); }

.dc-label {
    font-size: 11px; color: var(--gray);
    font-weight: 600; text-transform: uppercase; letter-spacing: .5px;
}

.dc-val {
    font-family: var(--font-d);
    font-size: 24px; font-weight: 900; color: var(--g1);
    margin: 5px 0;
}

.dc-sub { font-size: 11.5px; color: var(--gray); }

.wallet-card {
    background: linear-gradient(135deg, var(--g1) 0%, var(--g2) 100%);
    border-radius: var(--radius); padding: 24px; color: var(--white);
    position: relative; overflow: hidden; margin-bottom: 20px;
}

.wallet-card::before {
    content: '';
    position: absolute; right: -28px; top: -28px;
    width: 130px; height: 130px;
    background: rgba(255,255,255,.05); border-radius: 50%;
}

.wl-label  { font-size: 10px; text-transform: uppercase; letter-spacing: 2px; color: rgba(255,255,255,.6); font-weight: 700; }
.wl-amount { font-family: var(--font-d); font-size: 38px; font-weight: 900; color: var(--gold); margin: 8px 0 5px; }
.wl-sub    { font-size: 12px; color: rgba(255,255,255,.5); }

.wl-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

.wl-btn {
    padding: 9px 20px; border-radius: 6px;
    font-family: var(--font-b); font-size: 13px; font-weight: 700;
    cursor: pointer; transition: all 0.2s; border: none;
}

.wl-btn.wd   { background: var(--gold); color: var(--g1); }
.wl-btn.wd:hover { background: var(--gold2); }
.wl-btn.hist { background: rgba(255,255,255,.12); color: var(--white); border: 1px solid rgba(255,255,255,.3); }

.tx-table {
    background: var(--white); border-radius: var(--radius);
    border: 1px solid var(--lgray); overflow: hidden;
}

.tx-header {
    padding: 13px 17px; font-size: 14px; font-weight: 700; color: var(--g1);
    border-bottom: 1px solid var(--lgray);
    display: flex; justify-content: space-between; align-items: center;
}

.tx-row {
    display: grid; grid-template-columns: auto 1fr auto auto;
    gap: 12px; padding: 11px 17px;
    border-bottom: 1px solid var(--lgray);
    align-items: center; font-size: 12.5px;
}

.tx-row:last-child { border-bottom: none; }

.tx-icon { width: 31px; height: 31px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.tx-icon.credit { background: var(--gp); }
.tx-icon.debit  { background: #fdf0ef; }

.tx-desc  { font-weight: 500; color: var(--dark); }
.tx-date  { font-size: 11px; color: var(--gray); }

.tx-amount.credit { color: var(--g2); font-weight: 700; }
.tx-amount.debit  { color: var(--red); font-weight: 700; }

.pf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.pf-card {
    background: var(--white); border-radius: var(--radius);
    padding: 17px 19px; border: 1px solid var(--lgray);
}

.pf-card h3 {
    font-size: 12.5px; font-weight: 700; color: var(--g2);
    margin-bottom: 11px; padding-bottom: 8px;
    border-bottom: 1px solid var(--lgray);
}

.pf-field  { margin-bottom: 8px; }
.pf-label  { font-size: 10px; color: var(--gray); text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }
.pf-val    { font-size: 13px; color: var(--dark); margin-top: 2px; font-weight: 500; }

.comp-bar {
    background: var(--white); border-radius: var(--radius);
    padding: 15px 18px; border: 1px solid var(--lgray); margin-bottom: 16px;
}

.comp-label {
    font-size: 13px; font-weight: 600; color: var(--g1);
    margin-bottom: 6px;
    display: flex; justify-content: space-between;
}

.comp-track { height: 9px; background: var(--lgray); border-radius: 5px; overflow: hidden; }
.comp-fill  { height: 100%; background: linear-gradient(90deg, var(--g2), var(--g4)); border-radius: 5px; }

.cur-toggle { display: flex; gap: 10px; margin-bottom: 4px; }

.cur-opt {
    flex: 1; padding: 8px; border: 2px solid var(--lgray);
    border-radius: 8px; text-align: center; cursor: pointer;
    font-size: 13px; font-weight: 600; transition: all 0.2s;
}

.cur-opt.sel { border-color: var(--g3); background: var(--gp); color: var(--g2); }

.dash-tab { display: none; }
.dash-tab.active-tab { display: block; }

/* ============================================================
   WORDPRESS SPECIFIC
   ============================================================ */
/* Alignment classes */
.alignleft  { float: left; margin-right: 1.5em; }
.alignright { float: right; margin-left: 1.5em; }
.aligncenter { text-align: center; }
.alignwide  { max-width: 1400px; margin-left: auto; margin-right: auto; }
.alignfull  { max-width: 100%; }

/* WordPress captions */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--gray); margin-top: 6px; }

/* Accessibility */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px; width: 1px; overflow: hidden;
}

/* Skip link */
.skip-link {
    position: absolute; top: -9999px; left: -9999px;
    background: var(--gold); color: var(--g1);
    padding: 8px 16px; font-weight: 700;
    z-index: 9999;
}

.skip-link:focus { top: 0; left: 0; }

/* Standard page/post content */
.entry-content {
    max-width: 800px; margin: 0 auto;
    padding: 60px 4%;
    font-size: 16px; line-height: 1.8; color: var(--dark);
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
    font-family: var(--font-d);
    color: var(--g1); margin: 1.5em 0 0.5em;
}

.entry-content p  { margin-bottom: 1.2em; }
.entry-content ul { list-style: disc; padding-left: 1.5em; margin-bottom: 1.2em; }
.entry-content ol { list-style: decimal; padding-left: 1.5em; margin-bottom: 1.2em; }
.entry-content a  { color: var(--g2); text-decoration: underline; }

/* Pagination */
.posts-navigation,
.post-navigation {
    padding: 20px 0; border-top: 1px solid var(--lgray); margin-top: 40px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
    .hero-inner,
    .about-grid,
    .fees-grid,
    .footer-inner,
    .contact-grid { grid-template-columns: 1fr; }

    .hero-cards { display: none; }
    .prog-grid  { grid-template-columns: 1fr; }

    .dash-layout { grid-template-columns: 1fr; }
    .dash-sidebar { position: relative; height: auto; top: 0; }
    .dash-cards { grid-template-columns: 1fr 1fr; }
    .pf-grid { grid-template-columns: 1fr; }

    .form-row-2,
    .form-row-3 { grid-template-columns: 1fr; }

    .pay-methods { grid-template-columns: 1fr 1fr; }

    #primary-navigation .nav-menu { display: none; }
    .menu-toggle { display: flex; }

    #primary-navigation .nav-menu.toggled {
        display: flex; flex-direction: column;
        position: fixed; top: 68px; left: 0; right: 0;
        background: rgba(13,59,31,.98);
        padding: 20px 4%; gap: 4px; z-index: 999;
    }
}

@media (max-width: 560px) {
    .dash-cards { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .modal-overlay { align-items: flex-end; padding: 0; }
    .modal { border-radius: 16px 16px 0 0; max-height: 95vh; }
    .cat-grid { grid-template-columns: 1fr 1fr; }
    .hero-inner { padding: 60px 4%; }
}

/* ============================================================
   COORDINATOR DASHBOARD
   ============================================================ */
.coord-layout {
    display: grid;
    grid-template-columns: 270px 1fr;
    min-height: calc(100vh - 68px);
}

.coord-sidebar {
    background: var(--g1);
    padding: 22px 16px;
    position: sticky; top: 68px;
    height: calc(100vh - 68px); overflow-y: auto;
}

.coord-badge {
    background: var(--gold); color: var(--g1);
    font-size: 10px; font-weight: 700;
    padding: 2px 8px; border-radius: 10px;
    text-transform: uppercase; letter-spacing: .5px;
    margin-top: 4px; display: inline-block;
}

.coord-content { padding: 28px; overflow-y: auto; }
.coord-tab { display: block; }
.coord-tab.hidden { display: none; }

.coord-profile-header {
    background: var(--g1); border-radius: var(--radius);
    padding: 24px; display: flex; align-items: center; gap: 20px;
    margin-bottom: 20px;
}

.coord-avatar-lg {
    width: 72px; height: 72px;
    background: var(--gold); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-d); font-size: 24px; font-weight: 900;
    color: var(--g1); flex-shrink: 0;
}

.coord-profile-name { font-family: var(--font-d); font-size: 20px; font-weight: 700; color: var(--white); }
.coord-profile-role { font-size: 11px; color: var(--gold); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-top: 3px; }
.coord-profile-loc  { font-size: 13px; color: rgba(255,255,255,.6); margin-top: 2px; }

.coord-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px; margin-bottom: 22px;
}

.coord-stat-card {
    background: var(--white); border-radius: var(--radius);
    padding: 16px 18px; border: 1px solid var(--lgray);
    border-top: 3px solid var(--g2);
}
.coord-stat-card:nth-child(2) { border-top-color: var(--gold); }
.coord-stat-card:nth-child(3) { border-top-color: var(--g4); }

.coord-stat-label { font-size: 10.5px; color: var(--gray); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.coord-stat-val   { font-family: var(--font-d); font-size: 22px; font-weight: 900; color: var(--g1); margin: 4px 0; }
.coord-stat-sub   { font-size: 11px; color: var(--gray); }

.coord-wallet {
    background: linear-gradient(135deg, var(--g1) 0%, #0a5c2e 100%);
    border-radius: var(--radius); padding: 26px;
    margin-bottom: 22px; position: relative; overflow: hidden;
}
.coord-wallet::before {
    content: ''; position: absolute; right: -30px; top: -30px;
    width: 140px; height: 140px;
    background: rgba(255,255,255,.05); border-radius: 50%;
}
.coord-wallet-label  { font-size: 10px; text-transform: uppercase; letter-spacing: 2px; color: rgba(255,255,255,.6); font-weight: 700; }
.coord-wallet-amount { font-family: var(--font-d); font-size: 38px; font-weight: 900; color: var(--gold); margin: 8px 0 4px; }
.coord-wallet-sub    { font-size: 12px; color: rgba(255,255,255,.5); }

.btn-disburse {
    background: var(--gold); color: var(--g1);
    border: none; border-radius: 7px; padding: 11px 24px;
    font-family: var(--font-b); font-size: 14px; font-weight: 700;
    cursor: pointer; transition: all 0.2s; margin-top: 14px;
}
.btn-disburse:hover { background: var(--gold2); }

.cur-selector { display: flex; gap: 10px; margin-bottom: 16px; }
.cur-sel-btn {
    flex: 1; padding: 12px;
    border: 2px solid var(--lgray); border-radius: 8px;
    font-family: var(--font-b); font-size: 13px; font-weight: 600;
    cursor: pointer; background: var(--cream); color: var(--dark);
    transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 6px;
}
.cur-sel-btn.active { border-color: var(--g2); background: var(--gp); color: var(--g2); }
.cur-sel-btn:hover  { border-color: var(--g3); }

.bulk-row {
    display: grid; grid-template-columns: 1fr 1fr 1fr auto;
    gap: 8px; align-items: end;
    margin-bottom: 10px; padding: 12px;
    background: var(--cream); border-radius: 8px; border: 1px solid var(--lgray);
}
.bulk-row-num { font-size: 11px; font-weight: 700; color: var(--g2); margin-bottom: 4px; }

.btn-remove-row {
    background: none; border: none; color: var(--red);
    cursor: pointer; font-size: 18px; padding: 4px 8px; border-radius: 4px;
}
.btn-remove-row:hover { background: #fdf0ef; }

.add-farmer-btn {
    background: var(--gp); border: 1.5px dashed var(--g3);
    color: var(--g2); border-radius: 8px; padding: 10px; width: 100%;
    font-family: var(--font-b); font-size: 13px; font-weight: 600;
    cursor: pointer; transition: all 0.2s; margin-top: 6px;
}
.add-farmer-btn:hover { background: var(--g3); color: var(--white); }

.farmer-confirm-box {
    background: var(--gp); border: 1px solid var(--g3);
    border-radius: 10px; padding: 14px 16px;
    margin-top: 6px; display: none;
}
.farmer-confirm-box.visible { display: block; }
.farmer-confirm-name   { font-family: var(--font-d); font-size: 15px; font-weight: 700; color: var(--g1); }
.farmer-confirm-detail { font-size: 12px; color: var(--gray); margin-top: 3px; }

.disburse-summary {
    background: var(--g1); border-radius: 10px; padding: 16px;
    margin-top: 14px; color: var(--white);
}
.disburse-summary-row  { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.disburse-summary-total{
    display: flex; justify-content: space-between;
    font-size: 15px; font-weight: 700; color: var(--gold);
    padding-top: 8px; border-top: 1px solid rgba(255,255,255,.15); margin-top: 8px;
}

.notif-item {
    background: var(--white); border-radius: 10px;
    border: 1px solid var(--lgray); padding: 14px 16px;
    margin-bottom: 10px; display: flex; gap: 12px; align-items: flex-start;
}
.notif-icon   { font-size: 20px; flex-shrink: 0; }
.notif-title  { font-size: 13.5px; font-weight: 600; color: var(--g1); }
.notif-detail { font-size: 12px; color: var(--gray); margin-top: 3px; }
.notif-time   { font-size: 11px; color: rgba(0,0,0,.35); margin-top: 4px; }

@media (max-width: 960px) {
    .coord-layout        { grid-template-columns: 1fr; }
    .coord-sidebar       { position: relative; height: auto; top: 0; }
    .coord-stats-grid    { grid-template-columns: 1fr 1fr; }
    .bulk-row            { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .coord-stats-grid { grid-template-columns: 1fr; }
    .bulk-row         { grid-template-columns: 1fr; }
    .cur-selector     { flex-direction: column; }
}

/* ============================================================
   LANGUAGE SELECTOR SCREEN
   ============================================================ */
#lang-screen {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--g1);
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; padding: 30px;
}
#lang-screen.dismissed { display: none !important; }
.lang-logo { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 38px; }
.lang-logo-circle { width: 72px; height: 72px; background: var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-d); font-size: 22px; font-weight: 900; color: var(--g1); }
.lang-site-name { font-family: var(--font-d); font-size: 28px; font-weight: 900; color: var(--white); }
.lang-tagline { font-size: 13px; color: rgba(255,255,255,.55); margin-top: 4px; letter-spacing: .5px; text-align: center; }
.lang-prompt { font-size: 14px; color: rgba(255,255,255,.7); margin-bottom: 24px; text-align: center; line-height: 1.7; }
.lang-prompt strong { color: var(--gold); }
.lang-cards { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; max-width: 480px; }
.lang-card { flex: 1; min-width: 180px; background: rgba(255,255,255,.07); border: 2px solid rgba(255,255,255,.15); border-radius: 14px; padding: 28px 20px; text-align: center; cursor: pointer; transition: all .25s; position: relative; overflow: hidden; }
.lang-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(200,150,12,.08), transparent); opacity: 0; transition: opacity .3s; }
.lang-card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,.3); }
.lang-card:hover::before { opacity: 1; }
.lang-card-flag  { font-size: 40px; margin-bottom: 12px; }
.lang-card-name  { font-family: var(--font-d); font-size: 20px; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.lang-card-native { font-size: 13px; color: rgba(255,255,255,.5); }
.lang-card-desc  { font-size: 11.5px; color: rgba(255,255,255,.4); margin-top: 8px; line-height: 1.5; }
.lang-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.lang-orb-1 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(46,139,87,.2) 0%, transparent 70%); top: -150px; right: -150px; }
.lang-orb-2 { width: 350px; height: 350px; background: radial-gradient(circle, rgba(200,150,12,.1) 0%, transparent 70%); bottom: -100px; left: -100px; }
.lang-toggle { display: flex; align-items: center; gap: 5px; margin-right: 6px; }
.lang-toggle-btn { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.7); padding: 5px 11px; border-radius: 5px; font-family: var(--font-b); font-size: 12px; font-weight: 600; cursor: pointer; transition: all .2s; }
.lang-toggle-btn.active, .lang-toggle-btn:hover { background: var(--gold); color: var(--g1); border-color: var(--gold); }
@media (max-width: 560px) {
    .lang-cards { flex-direction: column; align-items: center; }
    .lang-card  { min-width: 260px; }
}
