/* KrediGrain Limited - Custom Styles */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: #1f2937;
  background: #ffffff;
  overflow-x: hidden;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

/* ===== NAVBAR LOGO IMAGE (full-color brand mark) ===== */
.nav-logo-img {
  height: 96px;
  width: auto;
  max-width: min(340px, 58vw);
  object-fit: contain;
  object-position: left center;
  transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
  border-radius: 14px;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.35))
    drop-shadow(0 0 1px rgba(255, 255, 255, 0.15));
}

.navbar.scrolled .nav-logo-img {
  filter: drop-shadow(0 2px 8px rgba(22, 101, 52, 0.2));
}

.footer-logo-img {
  height: 92px;
  width: auto;
  max-width: 300px;
  object-fit: contain;
  object-position: left center;
  border-radius: 14px;
  filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.45));
  opacity: 1;
}

@media (max-width: 768px) {
  .nav-logo-img {
    height: 72px;
    max-width: min(260px, 54vw);
  }
  .footer-logo-img {
    height: 76px;
    max-width: 240px;
  }
}

/* ===== GROWTH: DUAL CYCLE (Repayment in Kind flyer style) ===== */
.kg-cycle-section {
  background: #f3f4f6;
}

.growth-chart-section {
  --kg-cycle-red: #a52a2a;
  --kg-cycle-red-dark: #7f1d1d;
  --kg-cycle-tan: #ede4d9;
  --kg-cycle-tan-2: #e5d9cc;
  --kg-cycle-forest: #1e5631;
  --kg-cycle-pale: #ecfdf5;
  --kg-cycle-pale-2: #d1fae5;
  --kg-green-1: #166534;
  --kg-green-2: #22c55e;
  --kg-gold: #eab308;
}

.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

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

.kg-outcomes-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2.25rem;
}

.kg-outcomes-title {
  margin-bottom: 1rem;
}

.kg-outcomes-lead {
  margin: 0 auto 1.25rem;
  line-height: 1.65;
  color: #4b5563;
}

.kg-outcomes-lead strong {
  color: #111827;
  font-weight: 700;
}

.kg-cycle-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.8rem;
  color: #6b7280;
  margin: 0 auto;
  max-width: 520px;
  line-height: 1.5;
}

.kg-cycle-hint-icon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--kg-green-2), var(--kg-green-1));
  flex-shrink: 0;
}

/* —— Two columns —— */
.kg-cycle-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

@media (max-width: 900px) {
  .kg-cycle-dual {
    grid-template-columns: 1fr;
  }
}

.kg-cycle-column {
  border-radius: 20px;
  padding: 1.5rem 1.35rem 1.75rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.07);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.kg-cycle-column--stress {
  background: linear-gradient(165deg, var(--kg-cycle-tan) 0%, var(--kg-cycle-tan-2) 100%);
  border-color: rgba(165, 42, 42, 0.2);
}

.kg-cycle-column--growth {
  background: linear-gradient(165deg, var(--kg-cycle-pale) 0%, var(--kg-cycle-pale-2) 100%);
  border-color: rgba(30, 86, 49, 0.22);
}

.kg-cycle-column-head {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(0, 0, 0, 0.08);
}

.kg-cycle-column--growth .kg-cycle-column-head {
  border-bottom-color: rgba(30, 86, 49, 0.15);
}

.kg-cycle-column-title {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.25;
  margin-bottom: 0.35rem;
}

.kg-cycle-column--stress .kg-cycle-column-title {
  color: var(--kg-cycle-red-dark);
}

.kg-cycle-column--growth .kg-cycle-column-title {
  color: var(--kg-cycle-forest);
}

.kg-cycle-column-tagline {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(55, 65, 81, 0.9);
  margin: 0;
  font-style: italic;
}

/* —— Step row (circle + copy) —— */
.kg-cycle-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.65rem 0.5rem;
  border-radius: 16px;
  outline: none;
  opacity: 0;
  transform: translateY(16px);
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.55s ease;
}

.kg-cycle-step:focus-visible {
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.45);
}

.kg-cycle-step.is-paired {
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.kg-cycle-column--growth .kg-cycle-step.is-paired {
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 20px rgba(22, 101, 52, 0.12);
}

.kg-cycle-orbit {
  position: relative;
  width: 86px;
  height: 86px;
  flex-shrink: 0;
}

.kg-cycle-num {
  position: absolute;
  top: -6px;
  left: -6px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.kg-cycle-column--stress .kg-cycle-num {
  background: linear-gradient(145deg, #dc2626, var(--kg-cycle-red));
}

.kg-cycle-column--growth .kg-cycle-num {
  background: linear-gradient(145deg, var(--kg-green-2), var(--kg-cycle-forest));
}

.kg-cycle-icon-wrap {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid;
  background: rgba(255, 255, 255, 0.85);
}

.kg-cycle-icon-wrap--stress {
  border-color: rgba(165, 42, 42, 0.45);
  color: var(--kg-cycle-red);
}

.kg-cycle-icon-wrap--growth {
  border-color: rgba(30, 86, 49, 0.45);
  color: var(--kg-cycle-forest);
}

.kg-cycle-lucide {
  width: 32px;
  height: 32px;
  stroke-width: 2;
}

.kg-cycle-body {
  flex: 1;
  min-width: 0;
  padding-top: 0.15rem;
}

.kg-cycle-step-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.kg-cycle-step-text {
  font-size: 0.8rem;
  color: #4b5563;
  line-height: 1.55;
  margin: 0;
}

.kg-cycle-em {
  color: #111827;
  font-weight: 700;
}

.kg-cycle-badge {
  display: inline-block;
  margin-left: 0.25rem;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--kg-cycle-forest);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(30, 86, 49, 0.25);
  padding: 0.15rem 0.45rem;
  border-radius: 100px;
  vertical-align: middle;
}

/* —— Connectors (curved flow) —— */
.kg-cycle-connector {
  display: flex;
  justify-content: center;
  height: 36px;
  margin: 0.15rem 0;
  color: rgba(127, 29, 29, 0.55);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}

.kg-cycle-connector--growth {
  color: rgba(30, 86, 49, 0.5);
}

.kg-cycle-connector svg {
  width: 40px;
  height: auto;
}

.kg-cycle-connector-path {
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  transition: stroke-dashoffset 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.kg-cycle-section.kg-cycle--started .kg-cycle-reveal--in {
  opacity: 1;
  transform: translateY(0);
}

.kg-cycle-section.kg-cycle--started .kg-cycle-reveal--in .kg-cycle-connector-path {
  stroke-dashoffset: 0;
}

@media (prefers-reduced-motion: reduce) {
  .kg-cycle-step,
  .kg-cycle-connector {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .kg-cycle-connector-path {
    stroke-dashoffset: 0 !important;
    transition: none !important;
  }
}

/* —— Why choose —— */
.kg-cycle-why {
  margin-top: 2.5rem;
  padding: 1.75rem 1.5rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

.kg-cycle-why-title {
  text-align: center;
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--kg-green-1);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}

.kg-cycle-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

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

.kg-cycle-why-card {
  text-align: center;
  padding: 1rem 0.75rem;
  border-radius: 14px;
  background: linear-gradient(180deg, #f0fdf4 0%, #fff 100%);
  border: 1px solid #d1fae5;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.kg-cycle-why-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(22, 101, 52, 0.12);
}

.kg-cycle-why-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.75rem;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--kg-green-2), var(--kg-green-1));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kg-cycle-why-card-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #14532d;
  margin-bottom: 0.35rem;
}

.kg-cycle-why-card-text {
  font-size: 0.78rem;
  color: #4b5563;
  line-height: 1.5;
  margin: 0;
}

.kg-outcomes-footnote {
  text-align: center;
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 1.75rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}

/* ===== HOME GALLERY PREVIEW ===== */
.home-gallery-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.home-gallery-preview a {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.home-gallery-preview a:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(22, 163, 74, 0.15);
}

.home-gallery-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}

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

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 0.85rem 0;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0,0,0,0.08);
  padding: 0.6rem 0;
}

.navbar.scrolled .nav-logo-text {
  color: #15803d;
}

.navbar.scrolled .nav-link {
  color: #374151;
}

.navbar.scrolled .nav-link:hover {
  color: #15803d;
}

.navbar.scrolled .nav-cta {
  background: #15803d;
  color: white;
}

/* Staff Mail nav button gets its own scrolled treatment */
.navbar.scrolled .nav-cta[href="webmail.html"] {
  background: #f0fdf4;
  color: #15803d;
  border-color: #bbf7d0;
}

@media (max-width: 900px) {
  /* On tablets hide the staff mail nav cta to save space */
  .nav-cta[href="webmail.html"] { display: none; }
}

.nav-logo-text {
  color: white;
  transition: color 0.3s;
}

.nav-link {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #4ade80;
  transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-cta {
  background: rgba(255,255,255,0.15);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  backdrop-filter: blur(10px);
}

.nav-cta:hover {
  background: white;
  color: #15803d;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(22, 101, 52, 0.97);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu .nav-link {
  font-size: 1.5rem;
  color: white;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  transition: all 0.3s;
  border-radius: 2px;
}

.navbar.scrolled .hamburger span {
  background: #15803d;
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .desktop-nav { display: none !important; }
}

/* ===== HERO SLIDER ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Slide container */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out, transform 8s ease-in-out;
  transform: scale(1.06);
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide:nth-child(1) {
  background-image: url('https://images.unsplash.com/photo-1625246333195-78d9c38ad449?w=1600&q=75');
}
.hero-slide:nth-child(2) {
  background-image: url('https://images.unsplash.com/photo-1560493676-04071c5f467b?w=1600&q=75');
}
.hero-slide:nth-child(3) {
  background-image: url('https://images.unsplash.com/photo-1574943320219-553eb213f72d?w=1600&q=75');
}

/* Overlay on top of slides */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(22,101,52,0.90) 0%, rgba(15,23,42,0.82) 100%);
  z-index: 1;
}

/* Slide dot indicators */
.hero-dots {
  position: absolute;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.625rem;
  z-index: 10;
}

.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  padding: 0;
}

.hero-dot.active {
  width: 28px;
  border-radius: 4px;
  background: #4ade80;
}

/* Slide navigation arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.3s;
}

.hero-arrow:hover {
  background: rgba(255,255,255,0.22);
  transform: translateY(-50%) scale(1.1);
}

.hero-arrow.prev { left: 1.5rem; }
.hero-arrow.next { right: 1.5rem; }

/* Legacy .hero-bg kept for other pages */
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  color: #86efac;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  color: white;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-title .accent {
  background: linear-gradient(135deg, #4ade80, #86efac);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 2.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: white;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(22,163,74,0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(22,163,74,0.5);
  background: linear-gradient(135deg, #15803d, #166534);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.1);
  color: white;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s;
  border: 1px solid rgba(255,255,255,0.3);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.btn-green {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: white;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(22,163,74,0.3);
}

.btn-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(22,163,74,0.4);
}

.btn-outline-green {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: #15803d;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s;
  border: 2px solid #15803d;
  cursor: pointer;
}

.btn-outline-green:hover {
  background: #15803d;
  color: white;
  transform: translateY(-2px);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: white;
  box-shadow: 0 4px 30px rgba(0,0,0,0.08);
  position: relative;
  z-index: 10;
}

/* ===== SECTIONS ===== */
.section {
  padding: 5rem 0;
}

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

.section-lg {
  padding: 7rem 0;
}

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

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #f0fdf4;
  color: #15803d;
  padding: 0.35rem 0.875rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  border: 1px solid #bbf7d0;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: #111827;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.05rem;
  color: #6b7280;
  line-height: 1.7;
  max-width: 580px;
}

/* ===== FEATURE CARDS ===== */
.feature-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #16a34a, #4ade80);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  border-color: #86efac;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: #15803d;
  transition: all 0.3s;
}

.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: white;
  transform: scale(1.1);
}

/* ===== METRICS ===== */
.metrics-section {
  background: linear-gradient(135deg, #166534 0%, #14532d 50%, #052e16 100%);
  position: relative;
  overflow: hidden;
}

.metrics-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1574943320219-553eb213f72d?w=1920&q=40');
  background-size: cover;
  background-position: center;
  opacity: 0.08;
}

.metric-card {
  text-align: center;
  padding: 2rem;
  position: relative;
  z-index: 2;
}

.metric-value {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: #4ade80;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.metric-label {
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  font-weight: 500;
}

/* ===== SERVICE CARDS ===== */
.service-card {
  background: white;
  border-radius: 16px;
  padding: 1.75rem;
  border: 1px solid #f3f4f6;
  transition: all 0.3s ease;
  height: 100%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.service-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 24px 48px rgba(22,163,74,0.12);
  border-color: #bbf7d0;
}

.service-icon-wrap {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #16a34a, #15803d);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 1.25rem;
  transition: all 0.3s;
}

.service-card:hover .service-icon-wrap {
  transform: scale(1.15) rotate(5deg);
}

/* ===== PARTNER CARDS ===== */
.partner-type-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid #e5e7eb;
  transition: all 0.3s;
  text-align: center;
}

.partner-type-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.1);
  border-color: #86efac;
}

/* ===== IMPACT SECTION ===== */
.impact-section {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
}

.impact-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(22,163,74,0.08);
  border: 1px solid #bbf7d0;
  transition: all 0.3s;
}

.impact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(22,163,74,0.15);
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, #16a34a 0%, #166534 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}

/* ===== ABOUT ===== */
.about-hero {
  background: linear-gradient(135deg, #166534, #14532d);
  padding: 8rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.about-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1589923188900-85dae523342b?w=1920&q=50');
  background-size: cover;
  background-position: center;
  opacity: 0.1;
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #16a34a, #86efac, transparent);
}

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.35rem;
  top: 0.4rem;
  width: 12px;
  height: 12px;
  background: #16a34a;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 0 3px #bbf7d0;
}

/* ===== CONTACT ===== */
.contact-hero {
  background: linear-gradient(135deg, #166534, #14532d);
  padding: 8rem 0 5rem;
  position: relative;
}

.contact-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1486312338219-ce68d2c6f44d?w=1920&q=50');
  background-size: cover;
  background-position: center;
  opacity: 0.08;
}

.contact-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  border: 1px solid #f3f4f6;
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  color: #1f2937;
  background: #fafafa;
  transition: all 0.3s;
  outline: none;
}

.form-input:focus {
  border-color: #16a34a;
  background: white;
  box-shadow: 0 0 0 3px rgba(22,163,74,0.1);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

/* ===== FOOTER ===== */
.footer {
  background: #0a0f1a;
  color: rgba(255,255,255,0.7);
}

.footer-logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
}

.footer-link {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-link:hover {
  color: #4ade80;
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin: 2rem 0;
}

/* ===== PAGE HERO (reusable) ===== */
.page-hero {
  background: linear-gradient(135deg, #166534 0%, #14532d 60%, #052e16 100%);
  padding: 9rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}

/* ===== GRID LAYOUTS ===== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

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

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

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

@media (max-width: 640px) {
  .grid-4 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
  .section-lg { padding: 4rem 0; }
}

/* ===== GLASS CARD ===== */
.glass-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 2rem;
}

/* ===== BADGE ===== */
.badge-green {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ===== NUMBER COUNTER ===== */
.counter-number {
  display: inline-block;
}

/* ===== IMAGE CARD ===== */
.img-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

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

.img-card:hover img {
  transform: scale(1.05);
}

/* ===== ALERTS ===== */
.alert-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
}

.alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ===== LOADING SPINNER ===== */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== PARTNERS ===== */
.partners-hero {
  background: linear-gradient(135deg, #166534, #052e16);
  padding: 8rem 0 5rem;
  position: relative;
  overflow: hidden;
}

/* ===== MISC ===== */
.text-green { color: #15803d; }
.text-green-light { color: #4ade80; }
.text-gray { color: #6b7280; }
.bg-green-light { background: #f0fdf4; }
.divider { height: 1px; background: #e5e7eb; margin: 2rem 0; }

.highlight-bar {
  display: inline-block;
  position: relative;
}
.highlight-bar::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 8px;
  background: rgba(74, 222, 128, 0.25);
  z-index: -1;
  border-radius: 4px;
}

/* ===== ADDITIONAL RESPONSIVE ===== */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 600px) {
  .grid-3 { grid-template-columns: 1fr !important; }
  .hero-stats { gap: 1rem; }
}

/* Services page 3-col grid mobile fix */
@media (max-width: 900px) {
  div[style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 580px) {
  div[style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
  }
  div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  div[style*="grid-template-columns:2fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  div[style*="grid-template-columns:1fr 2fr"] {
    grid-template-columns: 1fr !important;
  }
  div[style*="grid-template-columns:2fr 1fr 1fr 1fr"] {
    grid-template-columns: 1fr 1fr !important;
  }
  div[style*="grid-template-columns:repeat(5,1fr)"] {
    grid-template-columns: 1fr 1fr !important;
  }
  div[style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* AOS override for better performance */
[data-aos] {
  pointer-events: none;
}
[data-aos].aos-animate {
  pointer-events: auto;
}

/* Smooth transitions */
a, button {
  transition: all 0.3s ease;
}

/* Selection color */
::selection {
  background: #bbf7d0;
  color: #14532d;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #16a34a; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #15803d; }
