/* ==========================================================================
   SustainEarth Alliance & E-LEAF Platform
   Modern, Professional, Realistic NGO Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens (Realistic, Refined NGO Palette)
   -------------------------------------------------------------------------- */
:root {
  /* Brand Palette */
  --primary: #153e28;            /* Deep Forest Green */
  --primary-dark: #0d281a;       /* Dark Pine */
  --primary-light: #235d3d;      /* Mid Forest */
  --primary-subtle: #edf6f0;     /* Soft Sage background */
  --primary-border: #cbe3d3;

  --accent-blue: #1d5f8a;        /* Refined Slate Blue */
  --accent-blue-light: #f0f7fb;
  --accent-blue-border: #d0e4f2;

  --accent-earth: #b86b35;       /* Warm Earth / Ochre */
  --accent-earth-light: #fdf6f0;

  --danger: #c53030;
  --danger-light: #fff5f5;

  /* Neutral Surface & Text */
  --text-heading: #121826;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;

  --bg-body: #ffffff;
  --bg-surface: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-alt: #f1f5f9;
  --bg-footer: #0c1f14;

  --border-color: #e2e8f0;
  --border-light: #f1f5f9;

  /* Typography */
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', 'Plus Jakarta Sans', system-ui, sans-serif;

  /* Spacing & Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  /* Subtle Clean Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.09);

  --transition: 0.25s ease;
}

/* --------------------------------------------------------------------------
   2. Reset & Global Setup
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-main);
  color: var(--text-body);
  background-color: var(--bg-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.25;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

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

.section {
  padding: 5rem 0;
}

.section-sm {
  padding: 3.5rem 0;
}

.bg-subtle { background-color: var(--bg-subtle); }
.bg-alt { background-color: var(--bg-alt); }
.bg-sage { background-color: var(--primary-subtle); }

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }

/* --------------------------------------------------------------------------
   3. Buttons & Component Badges
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-main);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: #ffffff;
}

.btn-secondary {
  background-color: var(--accent-blue);
  color: #ffffff;
}

.btn-secondary:hover {
  background-color: #15486a;
  color: #ffffff;
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border-color);
  color: var(--text-heading);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background-color: var(--primary-subtle);
}

.btn-outline-white {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.btn-outline-white:hover {
  background-color: #ffffff;
  color: var(--primary-dark);
}

.btn-sm {
  font-size: 0.82rem;
  padding: 0.45rem 0.9rem;
}

.btn-pill {
  border-radius: var(--radius-pill);
}

/* Distinct Dedicated E-LEAF Button */
.btn-eleaf {
  background-color: #1e5e3a;
  color: #ffffff !important;
  font-weight: 700;
  border-radius: var(--radius-pill);
  padding: 0.5rem 1.15rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-eleaf:hover {
  background-color: #144329;
  color: #ffffff;
}

.btn-eleaf i {
  color: #86efac;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-primary {
  background-color: var(--primary-subtle);
  color: var(--primary);
  border: 1px solid var(--primary-border);
}

.badge-blue {
  background-color: var(--accent-blue-light);
  color: var(--accent-blue);
  border: 1px solid var(--accent-blue-border);
}

.badge-earth {
  background-color: var(--accent-earth-light);
  color: var(--accent-earth);
  border: 1px solid #f2decb;
}

/* --------------------------------------------------------------------------
   4. Header & Navigation (Clean, Uncrowded, Professional)
   -------------------------------------------------------------------------- */
.top-bar {
  background-color: #0d281a;
  color: #f1f5f9;
  font-size: 0.82rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.top-bar-contact {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.top-bar-contact span, .top-bar-contact a {
  color: #f8fafc;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition);
}

.top-bar-contact a:hover {
  color: #4ade80;
}

.top-bar-contact i {
  color: #4ade80;
  font-size: 0.9rem;
}

.top-bar-portal-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff !important;
  padding: 0.35rem 0.95rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition);
}

.top-bar-portal-btn:hover {
  background: #22c55e;
  border-color: #22c55e;
  color: #092014 !important;
  transform: translateY(-1px);
}

.top-bar-portal-btn i {
  color: #4ade80;
  transition: color var(--transition);
}

.top-bar-portal-btn:hover i {
  color: #092014;
}

/* Main Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-logo-img {
  height: 56px;
  width: 56px;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.brand-wrap:hover .brand-logo-img {
  transform: scale(1.05);
}

.brand-info {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.3px;
}

.brand-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-blue);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-item {
  font-size: 0.92rem;
  font-weight: 600;
  color: #334155;
  position: relative;
  padding: 0.5rem 0.25rem;
  transition: color var(--transition);
  text-decoration: none;
}

.nav-item:hover {
  color: var(--primary);
}

.nav-item.active {
  color: var(--primary);
  font-weight: 700;
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
}

.nav-item-highlight {
  background: #f0fdf4;
  color: #15803d !important;
  border: 1px solid #bbf7d0;
  padding: 0.35rem 0.85rem !important;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700 !important;
  transition: all var(--transition);
}

.nav-item-highlight:hover {
  background: #15803d;
  color: #ffffff !important;
  border-color: #15803d;
}

.nav-item-highlight:hover i {
  color: #ffffff !important;
}

.nav-item-highlight.active {
  background: #15803d;
  color: #ffffff !important;
  border-color: #15803d;
}

.nav-item-highlight.active::after {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-toggle-btn {
  display: none;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font-size: 1.25rem;
  color: var(--text-heading);
  cursor: pointer;
  transition: all var(--transition);
}

.mobile-toggle-btn:hover {
  background: var(--primary-subtle);
  color: var(--primary);
  border-color: var(--primary);
}

/* --------------------------------------------------------------------------
   4. Mobile Side Navigation Drawer
   -------------------------------------------------------------------------- */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(3px);
  z-index: 1500;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.mobile-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -360px;
  width: min(340px, 86vw);
  height: 100vh;
  background: #ffffff;
  z-index: 2000;
  box-shadow: -8px 0 25px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  padding: 0;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-drawer.active {
  right: 0;
}

.drawer-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.drawer-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-heading);
  cursor: pointer;
  font-size: 1.1rem;
  transition: all var(--transition);
}

.drawer-close-btn:hover {
  background: #fee2e2;
  color: #ef4444;
  border-color: #fca5a5;
}

.drawer-body {
  padding: 1.25rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex: 1;
}

.drawer-portal-card {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem;
}

.drawer-portal-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.drawer-portal-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.drawer-portal-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid transparent;
  transition: all var(--transition);
  background: #ffffff;
}

.drawer-portal-btn img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 6px;
}

.drawer-portal-btn strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text-heading);
  line-height: 1.2;
}

.drawer-portal-btn span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.drawer-portal-btn.active {
  border-color: var(--primary);
  background: var(--primary-subtle);
}

.drawer-portal-btn.active strong {
  color: var(--primary-dark);
}

.drawer-portal-btn.active.eleaf-active {
  border-color: #15803d;
  background: #f0fdf4;
}

.drawer-portal-btn.active.eleaf-active strong {
  color: #15803d;
}

.drawer-nav-section {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.drawer-nav-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
  padding-left: 0.5rem;
}

.drawer-nav-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-heading);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: all var(--transition);
}

.drawer-nav-link i {
  width: 24px;
  color: var(--text-muted);
  font-size: 1rem;
  text-align: center;
}

.drawer-nav-link:hover {
  background: #f1f5f9;
  color: var(--primary);
}

.drawer-nav-link:hover i {
  color: var(--primary);
}

.drawer-nav-link.active {
  background: var(--primary-subtle);
  color: var(--primary);
  font-weight: 700;
}

.drawer-nav-link.active i {
  color: var(--primary);
}

.drawer-cta-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

/* --------------------------------------------------------------------------
   5. Page Headers & Section Titles
   -------------------------------------------------------------------------- */
.page-hero {
  background-color: #0f2b1c;
  color: #ffffff;
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-hero-content {
  max-width: 800px;
}

.page-hero-tag {
  color: #86efac;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.page-hero-title {
  font-size: 2.5rem;
  color: #ffffff;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.page-hero-desc {
  font-size: 1.1rem;
  color: #cbd5e1;
  line-height: 1.6;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-tag {
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 2.15rem;
  color: var(--text-heading);
  margin-bottom: 0.75rem;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   6. Home Hero Section
   -------------------------------------------------------------------------- */
.home-hero {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  padding: 4.5rem 0 4rem;
  border-bottom: 1px solid var(--border-color);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 1rem 0 1.25rem;
  color: var(--text-heading);
}

.hero-title span {
  color: var(--primary);
}

.hero-lead {
  font-size: 1.12rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-highlights {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-body);
  font-weight: 600;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.hero-highlights span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-highlights i {
  color: var(--primary);
}

.hero-image-wrap {
  position: relative;
}

.hero-main-img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 420px;
  object-fit: cover;
  border: 1px solid var(--border-color);
}

.hero-floating-card {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: #ffffff;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  max-width: 320px;
}

.hero-card-icon {
  width: 44px;
  height: 44px;
  background-color: var(--primary-subtle);
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.hero-card-text strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-heading);
}

.hero-card-text p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Stats Counter Ribbon */
.stats-ribbon {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 2.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-title {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   7. Cards & Grid Layouts (Clean, Realistic, Spaced)
   -------------------------------------------------------------------------- */
.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

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

.card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background-color: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.card-icon.blue {
  background-color: var(--accent-blue-light);
  color: var(--accent-blue);
}

.card-icon.earth {
  background-color: var(--accent-earth-light);
  color: var(--accent-earth);
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
  color: var(--text-heading);
}

.card-body-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}

.card-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.card-link:hover {
  gap: 0.55rem;
}

/* --------------------------------------------------------------------------
   8. E-LEAF Project Showcase Banner (On Homepage)
   -------------------------------------------------------------------------- */
.eleaf-home-banner {
  background-color: #0f2b1c;
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  margin: 3rem 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.eleaf-banner-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.eleaf-banner-tag {
  color: #86efac;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.eleaf-banner-title {
  font-size: 2.25rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.eleaf-acronym-text {
  color: #a7f3d0;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.eleaf-banner-desc {
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.eleaf-banner-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.eleaf-visual-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
}

.eleaf-banner-logo-img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin: 0 auto 1rem;
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 0.35rem;
}

.eleaf-metrics-row {
  display: flex;
  justify-content: space-around;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.eleaf-metric-num {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #86efac;
}

.eleaf-metric-lbl {
  font-size: 0.75rem;
  color: #cbd5e1;
}

/* --------------------------------------------------------------------------
   9. Dedicated E-LEAF Project Page Specifics
   -------------------------------------------------------------------------- */
.eleaf-intro-box {
  background-color: var(--primary-subtle);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-bottom: 3rem;
}

.eleaf-intro-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}

.eleaf-quote {
  font-style: italic;
  font-size: 1.05rem;
  color: var(--primary-dark);
  border-left: 3px solid var(--primary);
  padding-left: 1rem;
  margin: 1rem 0;
}

/* E-LEAF Tabbed Interface */
.tab-navigation {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 2.5rem;
  overflow-x: auto;
  padding-bottom: 2px;
}

.tab-btn {
  background: none;
  border: none;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  transition: all var(--transition);
}

.tab-btn:hover {
  color: var(--primary);
}

.tab-btn.active {
  color: var(--primary);
  font-weight: 700;
  border-bottom-color: var(--primary);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: tabFadeIn 0.3s ease;
}

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

/* Lesson Cards (Volume 1) */
.lesson-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.lesson-badge {
  font-size: 0.72rem;
  font-weight: 800;
  background-color: var(--bg-alt);
  color: var(--text-muted);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 0.65rem;
  width: fit-content;
}

.lesson-title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.lesson-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1rem;
  flex: 1;
}

.lesson-activity-box {
  background-color: var(--accent-earth-light);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  font-size: 0.82rem;
  color: #8c4a1b;
}

/* Upcycling Card */
.upcycling-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
}

.upcycle-img-holder {
  height: 220px;
  background: #f1f5f9;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.upcycle-img-holder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.upcycling-card:hover .upcycle-img-holder img {
  transform: scale(1.03);
}

.upcycle-zoom-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
}

.upcycle-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.upcycle-material {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.upcycle-title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.upcycle-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex: 1;
}

.upcycle-actions {
  display: flex;
  gap: 0.5rem;
}

/* --------------------------------------------------------------------------
   10. Resource Library & Filterable Media Gallery
   -------------------------------------------------------------------------- */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  background: var(--bg-subtle);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.filter-btn {
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-body);
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-btn.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

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

.gallery-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.gallery-img-box {
  height: 230px;
  background: #f8fafc;
  position: relative;
  overflow: hidden;
}

.gallery-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.gallery-card:hover .gallery-img-box img {
  transform: scale(1.04);
}

.gallery-overlay-btn {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  cursor: pointer;
  border: none;
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 700;
  gap: 0.4rem;
}

.gallery-card:hover .gallery-overlay-btn {
  opacity: 1;
}

.gallery-info {
  padding: 1.25rem;
}

.gallery-category {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
}

.gallery-title {
  font-size: 1.05rem;
  margin: 0.25rem 0 0.5rem;
}

.gallery-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.gallery-download-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-blue);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
}

.lightbox-dialog {
  position: relative;
  z-index: 2;
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 850px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
}

.lightbox-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--bg-alt);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  color: var(--text-heading);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: center;
}

.lightbox-img-box {
  background: #f8fafc;
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  text-align: center;
}

.lightbox-img-box img {
  max-height: 480px;
  margin: 0 auto;
  object-fit: contain;
}

.lightbox-text h3 {
  font-size: 1.35rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.lightbox-text p {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   11. About Us & SDG Alignment
   -------------------------------------------------------------------------- */
.sdg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.sdg-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border-left: 5px solid var(--sdg-color);
}

.sdg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.sdg-tag {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--sdg-color);
}

.sdg-title {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.sdg-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   12. Contact & Partnership Page
   -------------------------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3rem;
}

.contact-info-panel {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.contact-detail-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 1.75rem 0;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background-color: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-detail-item strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text-heading);
}

.contact-detail-item p, .contact-detail-item a {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.contact-form-panel {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

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

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 0.35rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-control {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-family: var(--font-main);
  font-size: 0.92rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(21, 62, 40, 0.1);
}

.form-notice {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: #166534;
  margin-bottom: 1.25rem;
}

.form-alert {
  background-color: #f0fdf4;
  border: 1px solid #86efac;
  color: var(--text-dark);
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-top: 1.25rem;
  display: none;
}

/* --------------------------------------------------------------------------
   Floating WhatsApp Button
   -------------------------------------------------------------------------- */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #25D366;
  color: #ffffff !important;
  border-radius: 50px;
  padding: 0.7rem 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.floating-whatsapp:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55);
}

.floating-whatsapp i {
  font-size: 1.35rem;
}

@media (max-width: 576px) {
  .floating-whatsapp span {
    display: none;
  }
  .floating-whatsapp {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    bottom: 18px;
    right: 18px;
  }
}

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--bg-footer);
  color: #94a3b8;
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo-img {
  height: 52px;
  width: 52px;
  object-fit: contain;
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

.footer-bio {
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer-motto {
  font-size: 0.82rem;
  color: #86efac;
  margin-top: 0.5rem;
}

.footer-title {
  font-size: 0.95rem;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-nav a {
  color: #cbd5e1;
  font-size: 0.88rem;
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: #ffffff;
}

.footer-doc-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-doc-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-doc-item:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
}

/* --------------------------------------------------------------------------
   14. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-image-wrap {
    max-width: 550px;
    margin: 0 auto;
    width: 100%;
  }
  .cards-grid-3, .cards-grid-4, .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .eleaf-banner-grid, .eleaf-intro-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-menu, .nav-actions .btn-primary, .nav-actions .btn-eleaf {
    display: none;
  }
  .mobile-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .nav-wrap {
    height: 70px;
  }
  .brand-logo-img {
    height: 48px;
    width: 48px;
  }
  .brand-name {
    font-size: 1.18rem;
  }
  .brand-tag {
    font-size: 0.62rem;
  }
  .top-bar-contact {
    display: none;
  }
  .top-bar-flex {
    justify-content: center;
  }
  .top-bar-portal-btn {
    font-size: 0.76rem;
    padding: 0.3rem 0.85rem;
  }
  .hero-section {
    padding: 3rem 0;
  }
  .hero-title {
    font-size: 2rem;
    line-height: 1.25;
  }
  .hero-desc {
    font-size: 1rem;
  }
  .hero-main-img {
    height: auto;
    max-height: 320px;
    object-fit: cover;
  }
  .page-hero {
    padding: 3.5rem 0 2.5rem;
  }
  .page-hero-title {
    font-size: 1.85rem;
    line-height: 1.25;
  }
  .page-hero-desc {
    font-size: 0.95rem;
  }
  .cards-grid-3, .cards-grid-2, .cards-grid-4, .gallery-grid, .contact-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1.5rem 1rem;
  }
  .stat-item .stat-num {
    font-size: 1.75rem;
  }
  .stat-item .stat-label {
    font-size: 0.78rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .contact-form-panel {
    padding: 1.5rem;
  }
  .lightbox-content {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .lightbox-img-box img {
    max-height: 300px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-floating-card {
    position: static;
    margin-top: 1rem;
    max-width: 100%;
  }
  .eleaf-home-banner {
    padding: 2rem 1.25rem;
  }
  .eleaf-tabs-nav {
    flex-direction: column;
  }
  .tab-btn {
    width: 100%;
    justify-content: center;
  }
  .upcycle-img-holder {
    height: 200px;
  }
  .gallery-img-box {
    height: 210px;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
  }
  .stat-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  .section {
    padding: 3.5rem 0;
  }
}
