@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  /* Ultra-Premium & Organic Human-curated Palette */
  --green: hsl(162, 70%, 14%);       /* Deep Imperial Emerald */
  --green-light: hsl(160, 50%, 28%); /* Rich Sage Forest */
  --green-soft: hsl(152, 54%, 96.5%); /* Beautiful Soft Sage Background */
  --green-tint: hsla(162, 70%, 14%, 0.05); /* Soft transparent green layer */
  
  --red: hsl(352, 65%, 44%);         /* Rich Crimson / Terracotta Red */
  --red-dark: hsl(352, 70%, 35%);
  --red-soft: hsl(352, 65%, 97%);    /* Beautiful Soft Rose Alert Background */
  --red-tint: hsla(352, 65%, 44%, 0.05);

  --gold: hsl(40, 85%, 48%);         /* Elegant Warm Gold Leaf */
  --gold-soft: hsl(40, 90%, 96%);

  --dark: hsl(210, 24%, 10%);        /* Highly Elegant Deep Slate Charcoal */
  --gray-body: hsl(210, 12%, 24%);   /* Rich Charcoal for Premium Readability */
  --gray-muted: hsl(210, 8%, 52%);
  --gray-light: hsla(210, 12%, 85%, 0.45); /* Elegant thin line separator */
  --gray-bg: hsl(210, 20%, 97.5%);   /* Premium Warm Off-White / Cream */
  --white: #ffffff;

  /* Typography Scale - Increased for gorgeous legibility */
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  --font-serif: 'Lora', Georgia, serif;

  /* Radius & Soft Natural Shadows (Not artificial or glowing) */
  --radius-sm: 6px;                  /* Classic handcrafted crisp borders */
  --radius-md: 12px;                 /* Sophisticated balance */
  --radius-lg: 24px;                 /* Gentle organic bounding boxes */

  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.015);
  --shadow-md: 0 16px 40px rgba(9, 17, 14, 0.035);
  --shadow-lg: 0 28px 60px rgba(9, 17, 14, 0.06);

  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── BASE STYLES ── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--gray-body);
  background-color: var(--white);
  font-size: 17px; /* Increased font-size for high-end legibility */
  line-height: 1.68;
  overflow-x: hidden;
}

/* ── CONTAINER ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: 85px 0; /* Compact spacing, avoids giant disjointed gaps */
  position: relative;
}

/* ── HUMAN TOUCH ACCENTS ── */
.section-header {
  max-width: 700px;
  margin-bottom: 44px; /* Reduced from 72px for tighter, cohesive grouping */
}
.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px; /* Slightly taller and roomier */
  background-color: var(--green-tint);
  color: var(--green);
  font-weight: 700;
  font-size: 0.78rem; /* Increased size */
  letter-spacing: 2px; /* Elegant letterspacing */
  text-transform: uppercase;
  border-radius: 4px;
  margin-bottom: 18px;
  border-left: 3px solid var(--green);
}
.badge.red {
  background-color: var(--red-tint);
  color: var(--red);
  border-left-color: var(--red);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.5vw, 3.2rem); /* Significantly enlarged for editorial punch */
  font-weight: 700; /* Bolder and more structured */
  color: var(--dark);
  line-height: 1.2;
  letter-spacing: -0.8px;
}
.section-title span {
  color: var(--green);
  font-style: italic;
  font-weight: 400;
}
.section-desc {
  font-size: 1.02rem; /* Increased size */
  color: var(--gray-body);
  margin-top: 14px;
  line-height: 1.75;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px; /* Slightly more compact for a refined premium look */
  font-size: 0.94rem; /* Increased from 0.88rem for readability */
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-sm); /* Crisp modern border-radius */
  transition: var(--transition);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background-color: var(--red);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(192, 57, 43, 0.15);
}
.btn-primary:hover {
  background-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(192, 57, 43, 0.25);
}
.btn-secondary {
  background-color: var(--green);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(16, 70, 44, 0.1);
}
.btn-secondary:hover {
  background-color: var(--green-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(16, 70, 44, 0.18);
}
.btn-outline {
  background-color: transparent;
  border: 1px solid var(--gray-light);
  color: var(--dark);
}
.btn-outline:hover {
  border-color: var(--dark);
  background-color: var(--gray-bg);
}

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--gray-light);
  transition: var(--transition);
}
.navbar.scrolled {
  padding: 2px 0;
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0; /* Slightly tighter vertical height */
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo img {
  height: 40px;
  width: 40px;
  object-fit: cover;
  border-radius: 6px;
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
}
.nav-logo-text span:first-child {
  font-size: 1.25rem; /* Enlarged from 1.15rem */
  font-weight: 800;
  color: var(--green);
  letter-spacing: -0.8px;
}
.nav-logo-text span:last-child {
  font-size: 0.65rem; /* Enlarged from 0.6rem */
  color: var(--gray-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: -2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px; /* Tighter spacing as requested */
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--gray-body);
  font-size: 0.94rem; /* Enlarged from 0.88rem */
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover {
  color: var(--green);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--green);
  transition: var(--transition);
}
.nav-links a:hover::after {
  width: 100%;
}
.nav-links li:last-child a::after {
  display: none;
}

.btn-nav-donate {
  padding: 8px 20px !important;
  font-size: 0.84rem !important;
  border-radius: 6px !important;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--dark);
  transition: var(--transition);
}

/* ── HERO ── */
.hero {
  min-height: 80vh; /* Reduced height for tighter layout */
  margin-top: 72px;
  display: flex;
  align-items: center;
  position: relative;
  background-color: var(--green);
  color: var(--white);
  overflow: hidden;
  padding: 40px 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.08;
  mix-blend-mode: luminosity;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--green) 45%, transparent 100%);
  z-index: 2;
}
.hero .container {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px; /* Tighter gap */
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 14px;
  font-size: 0.76rem; /* Enlarged */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 4px;
  color: var(--gold);
  margin-bottom: 20px; /* Tighter gap */
}
.hero-badge .lucide {
  width: 14px;
  height: 14px;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5.5vw, 4.2rem); /* Enlarged hero title */
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 18px; /* Tighter gap */
  letter-spacing: -1.2px;
}
.hero-title span {
  color: var(--gold);
  font-style: italic;
  font-weight: 400;
}
.hero-sub {
  font-size: 1.1rem; /* Enlarged hero sub-description */
  opacity: 0.88;
  margin-bottom: 30px; /* Tighter gap */
  max-width: 540px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-actions .btn-outline {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
}
.hero-actions .btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--white);
}

/* Pilar Kebaikan Hero Visual Card - Editorial Design */
.hero-visual {
  display: flex;
  justify-content: flex-end;
}
.hero-visual-card {
  background-color: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-md);
  padding: 28px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
  color: var(--dark);
}
.hero-visual-card h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem; /* Enlarged */
  margin-bottom: 10px;
  color: var(--dark);
  text-align: left;
  font-weight: 700;
  border-bottom: 2px solid var(--green-soft);
  padding-bottom: 8px;
}
.hero-visual-card p {
  font-size: 0.88rem; /* Enlarged */
  color: var(--gray-body);
  margin-bottom: 16px;
  line-height: 1.5;
}

/* Pilar list clean CSS class representation */
.pilar-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.pilar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-sm);
  background-color: var(--gray-bg);
  transition: var(--transition);
  text-decoration: none;
}
.pilar-item:hover {
  border-color: var(--green-light);
  background-color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.pilar-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--green-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  flex-shrink: 0;
}
.pilar-item h4 {
  font-size: 0.88rem;
  font-weight: 700;
  margin: 0;
  color: var(--dark);
}
.pilar-item span {
  font-size: 0.76rem;
  color: var(--gray-body);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Tabs inside calculator */
.calc-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: var(--gray-bg);
  padding: 4px;
  border-radius: 6px;
  margin-bottom: 24px;
  border: 1px solid var(--gray-light);
}
.calc-tab-btn {
  background: none;
  border: none;
  padding: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gray-body);
  cursor: pointer;
  transition: var(--transition);
  border-radius: 4px;
  text-align: center;
}
.calc-tab-btn.active {
  background-color: var(--white);
  color: var(--green);
  box-shadow: var(--shadow-sm);
}

.hero-input-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}
.input-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-body);
  margin-bottom: -10px;
}
.hero-input-group input {
  background-color: var(--gray-bg);
  border: 1px solid var(--gray-light);
  border-radius: 6px;
  padding: 14px 18px;
  color: var(--dark);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}
.hero-input-group input:focus {
  border-color: var(--green-light);
  background-color: var(--white);
  box-shadow: 0 0 0 4px rgba(46, 204, 113, 0.1);
}
.calc-result-box {
  background-color: var(--green-soft);
  border: 1px solid rgba(26, 107, 60, 0.15);
  border-radius: 6px;
  padding: 16px;
  text-align: center;
  margin-bottom: 24px;
}
.calc-result-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--green-light);
  letter-spacing: 0.5px;
}
.calc-result-val {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--green);
  margin-top: 4px;
}
.hero-visual-card .btn {
  width: 100%;
  border-radius: 6px;
}

/* ── FLOATING STATS ── */
.stats-section {
  position: relative;
  z-index: 10;
  margin-top: -48px; /* Slightly tighter floating margin */
}
.stats-bar {
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-light);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}
.stat-item {
  padding: 24px 18px; /* Tighter padding for an elegant compact bar */
  text-align: center;
  position: relative;
}
.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 30%;
  right: 0;
  height: 40%;
  width: 1px;
  background-color: var(--gray-light);
}
.stat-num {
  display: block;
  font-family: var(--font-serif); /* Editorial Serif Numbers - Highly elegant, NOT generic AI SaaS style */
  font-size: 2.7rem; /* Enlarged from 2.3rem */
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: 0.78rem; /* Enlarged from 0.72rem */
  font-weight: 800;
  text-transform: uppercase;
  color: var(--gray-muted);
  letter-spacing: 1.5px;
  margin-top: 8px; /* Tighter gap */
}

/* ── CAMPAIGNS GRID LAYOUT ── */
.campaigns-layout-grid {
  display: flex;
  flex-direction: column;
  gap: 30px; /* Reduced gap for tighter layout */
  width: 100%;
}
.campaigns-grid-two {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px; /* Reduced from 32px */
}
@media (max-width: 992px) {
  .campaigns-grid-two {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
.featured-campaign {
  background-color: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: row; /* Horizontal split on desktop */
  transition: var(--transition);
  height: 440px; /* Refined to hold larger texts perfectly */
}
.featured-campaign:hover {
  border-color: var(--green-light);
  box-shadow: var(--shadow-md);
}
.featured-campaign .card-img {
  width: 45%;
  height: 100%;
}
.featured-campaign-content {
  width: 55%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Campaign Card Base style overrides */
.campaign-card {
  background-color: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.campaign-card:hover {
  border-color: var(--green-light);
  box-shadow: var(--shadow-md);
}
.card-img {
  position: relative;
  overflow: hidden;
  height: 220px;
  background-color: var(--gray-bg);
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--transition);
}
.card-tag {
  position: absolute;
  top: 18px;
  left: 18px;
  font-size: 0.7rem; /* Enlarged */
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 12px;
  background-color: var(--white);
  color: var(--dark);
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
}
.card-tag.urgent {
  background-color: var(--red);
  color: var(--white);
}
.card-body {
  padding: 28px; /* Slightly more compact */
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.card-meta {
  font-size: 0.72rem; /* Enlarged */
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--green-light);
  margin-bottom: 8px;
}
.card-title {
  font-family: var(--font-serif); /* Editorial font */
  font-size: 1.32rem; /* Enlarged from 1.25rem */
  font-weight: 700;
  color: var(--dark);
  line-height: 1.35;
  margin-bottom: 16px; /* Tighter spacing */
}
.card-progress {
  margin-top: auto;
  margin-bottom: 16px; /* Tighter spacing */
}
.progress-bar-bg {
  height: 6px;
  background-color: var(--gray-bg);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
  border: 1px solid var(--gray-light);
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green-light), var(--green));
  border-radius: 10px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.progress-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem; /* Enlarged */
}
.progress-stats span:first-child {
  color: var(--gray-body);
}
.progress-stats strong {
  color: var(--dark);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--gray-light);
  padding: 16px 28px;
  background-color: var(--gray-bg);
}
.card-donors {
  font-size: 0.82rem; /* Enlarged */
  color: var(--gray-body);
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-donors .lucide {
  width: 14px;
  height: 14px;
  color: var(--gray-muted);
}
.btn-card {
  padding: 8px 18px; /* Tighter */
  font-size: 0.84rem; /* Enlarged */
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  background-color: var(--green-soft);
  color: var(--green);
  transition: var(--transition);
  border: 1px solid rgba(26,107,60,0.1);
}
.btn-card:hover {
  background-color: var(--green);
  color: var(--white);
  border-color: var(--green);
}

/* ── PROGRAMS GRID ── */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px; /* Reduced from 24px */
}
.program-card {
  background-color: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-md);
  padding: 28px 24px; /* More compact for elegant rhythm */
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}
.program-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: transparent;
  transition: var(--transition);
}
.program-card:hover {
  border-color: var(--green-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.program-card:hover::before {
  background-color: var(--green-light);
}
.program-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background-color: var(--green-soft);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px; /* Tighter gap */
}
.program-icon-box .lucide {
  width: 22px;
  height: 22px;
}
.program-card-ambulan .program-icon-box {
  background-color: var(--red-soft);
  color: var(--red);
}
.program-card-ambulan:hover::before {
  background-color: var(--red);
}
.program-title {
  font-family: var(--font-serif);
  font-size: 1.2rem; /* Enlarged from 1.1rem */
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}
.program-desc {
  font-size: 0.88rem; /* Enlarged from 0.82rem */
  color: var(--gray-body);
  line-height: 1.6;
  margin-bottom: 14px; /* Tighter */
  flex-grow: 1;
}
.btn-program-detail {
  font-size: 0.82rem; /* Enlarged from 0.78rem */
  font-weight: 700;
  color: var(--green);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  transition: var(--transition);
}
.btn-program-detail .lucide {
  width: 14px;
  height: 14px;
  transition: var(--transition);
}
.btn-program-detail:hover .lucide {
  transform: translateX(4px);
}
.btn-program-detail:hover {
  color: var(--red);
}

/* ── TENTANG KAMI (ABOUT) ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px; /* Reduced from 80px */
  align-items: center;
}
.about-visual {
  position: relative;
}
.about-img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.about-img-badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background-color: var(--green);
  color: var(--white);
  padding: 16px 28px; /* Compact */
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  border-bottom: 4px solid var(--gold);
}
.about-img-badge strong {
  font-size: 2.1rem;
  display: block;
  line-height: 1;
  font-family: var(--font-serif);
}
.about-img-badge span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
}
.about-features {
  list-style: none;
  margin: 24px 0; /* Reduced from 32px */
  display: flex;
  flex-direction: column;
  gap: 14px; /* Reduced from 18px */
}
.about-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.94rem; /* Enlarged from 0.88rem */
  color: var(--gray-body);
}
.about-features .lucide {
  width: 18px;
  height: 18px;
  color: var(--green);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── TESTIMONIALS (STUDIO CARD DECK) ── */
.testimonials-section {
  background-color: var(--green);
  color: var(--white);
  overflow: hidden;
  padding: 85px 0;
}
.testimonials-section .section-header .section-title {
  color: var(--white);
}
.testimonials-section .section-header .section-title span {
  color: var(--gold);
}
.testimonials-section .section-header .section-desc {
  color: rgba(255, 255, 255, 0.75);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px; /* Slightly tighter gap */
}
.testi-card {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 32px; /* Tighter padding */
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}
.testi-card:hover {
  background-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
}
.testi-stars {
  color: var(--gold);
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
}
.testi-stars .lucide {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.testi-text {
  font-family: var(--font-serif);
  font-size: 0.98rem; /* Enlarged and changed to elegant serif */
  font-style: italic; /* Human authentic touch */
  line-height: 1.7;
  opacity: 0.9;
  margin-bottom: 24px;
  flex-grow: 1;
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
}
.testi-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.94rem; /* Enlarged */
}
.testi-name {
  font-weight: 700;
  font-size: 0.94rem; /* Enlarged */
  color: var(--white);
}
.testi-role {
  font-size: 0.76rem; /* Enlarged */
  opacity: 0.7;
  margin-top: 2px;
}

/* ── CTA SECTION ── */
.cta-section {
  background-color: var(--red-soft);
  border-top: 1px solid rgba(192, 57, 43, 0.06);
  text-align: center;
  padding: 85px 0; /* Compacted spacing */
  position: relative;
  overflow: hidden;
}
.cta-content {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  z-index: 5;
}
.cta-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background-color: var(--red);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.cta-icon-box .lucide {
  width: 24px;
  height: 24px;
}
.cta-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.5vw, 2.9rem); /* Enlarged CTA title */
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 14px;
  letter-spacing: -0.6px;
}
.cta-desc {
  font-size: 1.02rem; /* Enlarged from 0.95rem */
  color: var(--gray-body);
  margin-bottom: 32px;
  line-height: 1.7;
}
.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-actions .btn {
  border-radius: 6px;
}

/* Premium Bank Details Card */
.bank-card-container {
  background-color: var(--white);
  border: 1px solid var(--gray-light);
  padding: 28px;
  border-radius: var(--radius-md);
  text-align: left;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}
.bank-card-container h4 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
  text-align: center;
}
.bank-card-item {
  padding: 18px;
  border: 1px dashed var(--gray-light);
  border-radius: var(--radius-sm);
  background-color: var(--gray-bg);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.bank-card-item:hover {
  border-style: solid;
  border-color: var(--green-light);
  background-color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.bank-card-tag {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.bank-card-tag.red {
  color: var(--red);
}
.bank-card-number {
  font-family: monospace;
  font-size: 1.35rem; /* Large and extremely readable number */
  font-weight: 800;
  color: var(--dark);
  margin: 6px 0;
  letter-spacing: 0.5px;
}
.bank-card-holder {
  font-size: 0.82rem;
  color: var(--gray-body);
  font-weight: 600;
}

/* ── FOOTER ── */
footer {
  background-color: var(--dark);
  color: var(--white);
  padding: 100px 0 0;
  border-top: 4px solid var(--green);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr 1.1fr;
  gap: 64px;
  padding-bottom: 80px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: 28px;
}
.footer-brand p {
  font-size: 0.82rem;
  opacity: 0.7;
  line-height: 1.75;
  margin-top: 20px;
  max-width: 280px;
}
/* Footer Brand Logo style rules (dynamic color restoration) */
.footer-brand .nav-logo {
  filter: none !important;
}
.footer-brand .nav-logo-text span:first-child {
  color: var(--white) !important;
}
.footer-brand .nav-logo-text span:last-child {
  color: rgba(255, 255, 255, 0.6) !important;
}

.footer-social {
  display: flex;
  gap: 16px; /* Slightly more relaxed gap */
  margin-top: 20px; /* Condensed vertical gap */
}
.social-btn {
  color: rgba(255, 255, 255, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  text-decoration: none;
}
.social-btn .lucide {
  width: 20px; /* Enlarged since there are no background boxes */
  height: 20px;
}
.social-btn:hover {
  color: var(--gold);
  transform: translateY(-2px);
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-col ul a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.82rem;
  transition: var(--transition);
}
.footer-col ul a:hover {
  color: var(--gold);
  padding-left: 4px;
}
.footer-contact li {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.5;
}
.footer-contact .lucide {
  width: 16px;
  height: 16px;
  color: var(--green-light);
  flex-shrink: 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 0;
  font-size: 0.78rem;
  opacity: 0.5;
}

/* ── INTERACTIVE MODAL ── */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(9, 17, 14, 0.7);
  backdrop-filter: blur(16px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 20px;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.modal-box {
  background-color: var(--white);
  width: 100%;
  max-width: 600px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: translateY(40px) scale(0.97);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--gray-light);
}
.modal-overlay.active .modal-box {
  transform: translateY(0) scale(1);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.04);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  transition: var(--transition);
  z-index: 10;
}
.modal-close .lucide {
  width: 14px;
  height: 14px;
}
.modal-close:hover {
  background-color: var(--red);
  color: var(--white);
  transform: rotate(90deg);
}
.modal-hero {
  background-color: var(--green-soft);
  border-bottom: 1px solid var(--gray-light);
  padding: 24px 28px 20px;
  text-align: left;
}
.modal-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: var(--red-soft);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.modal-icon-box .lucide {
  width: 24px;
  height: 24px;
}
.modal-hero h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--dark);
  font-weight: 600;
}
.modal-hero p {
  font-size: 0.85rem; /* Enlarged */
  color: var(--gray-body);
  font-weight: 700;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.modal-body {
  padding: 28px; /* Tighter padding */
  max-height: 64vh;
  overflow-y: auto;
}
.modal-intro {
  font-size: 0.94rem; /* Enlarged */
  color: var(--gray-body);
  line-height: 1.65;
  margin-bottom: 24px;
}
.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px; /* Slightly tighter gap */
  margin-bottom: 24px;
}
.modal-grid-col h4 {
  font-size: 0.88rem; /* Enlarged */
  color: var(--dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--gray-light);
}
.modal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px; /* Tighter gap */
}
.modal-list li {
  font-size: 0.88rem; /* Enlarged */
  color: var(--gray-body);
  display: flex;
  align-items: center;
  gap: 8px;
}
.modal-list .lucide {
  width: 14px;
  height: 14px;
  color: var(--green-light);
  flex-shrink: 0;
}
.modal-hotline-box {
  background-color: var(--gray-bg);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-sm);
  padding: 24px; /* Tighter padding */
  text-align: center;
}
.hotline-badge {
  display: inline-block;
  background-color: var(--red-soft);
  color: var(--red);
  font-size: 0.7rem; /* Enlarged */
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 4px;
  margin-bottom: 8px;
  letter-spacing: 0.8px;
  border: 1px solid rgba(192, 57, 43, 0.1);
  text-transform: uppercase;
}
.modal-hotline-box h5 {
  font-size: 0.94rem; /* Enlarged */
  color: var(--dark);
  font-weight: 700;
  margin-bottom: 4px;
}
.hotline-phone {
  font-size: 1.9rem; /* Enlarged */
  font-weight: 800;
  color: var(--green);
  margin-bottom: 16px;
}
.btn-hotline {
  width: 100%;
  border-radius: 6px;
}

/* Premium form element styling for the checkout/donations modals */
.form-group-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.form-label {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--dark);
  letter-spacing: 0.5px;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-sm);
  background-color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.94rem;
  color: var(--dark);
  transition: var(--transition);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--green-light);
  background-color: var(--white);
  box-shadow: 0 0 0 3px var(--green-tint);
}
.form-textarea {
  resize: none;
  height: 64px;
}

/* ── NEW LAYOUT GRID CLASSES ── */
.ambulan-about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px; /* Reduced from 60px */
  align-items: center;
}

.bank-accounts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ══════════════════════════════════════
   RESPONSIVE DESIGN — Mobile First
   Breakpoints: 1024px → 768px → 576px → 400px
   ══════════════════════════════════════ */

/* ── TABLET & SMALL DESKTOP (≤ 1024px) ── */
@media (max-width: 1024px) {
  /* Hero: stack vertically */
  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
    padding-top: 60px;
    padding-bottom: 60px;
  }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }

  /* Hero pillar card: show, centered */
  .hero-visual {
    display: flex;
    justify-content: center;
    width: 100%;
  }
  .hero-visual-card {
    max-width: 480px;
    margin: 0 auto;
    text-align: left;
  }

  /* Campaigns */
  .featured-campaign { flex-direction: column; height: auto; }
  .featured-campaign .card-img { width: 100%; height: 260px; min-height: auto; }
  .featured-campaign-content { width: 100%; height: auto; }
  .campaigns-grid-two { grid-template-columns: 1fr; gap: 24px; }

  /* Programs: 2 columns */
  .programs-grid { grid-template-columns: repeat(2, 1fr); }

  /* About / Ambulance: stack */
  .about-grid,
  .ambulan-about-grid { grid-template-columns: 1fr; gap: 40px; }

  /* Testimonials, footer */
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}

/* ── MOBILE (≤ 768px) ── */
@media (max-width: 768px) {
  /* Base spacing */
  .section { padding: 60px 0; }
  .container { padding: 0 16px; }

  /* ── NAVBAR ── */
  .nav-inner { padding: 14px 0; }

  /* Hamburger: visible + animations */
  .hamburger {
    display: flex;
    z-index: 1001;
    padding: 4px;
  }
  .hamburger span { transition: transform 0.3s ease, opacity 0.3s ease; }
  .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
  .hamburger.active span:nth-child(2) { opacity: 0; transform: translateX(-8px); }
  .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

  /* Mobile nav dropdown */
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    padding: 12px 16px 20px;
    border-top: 1px solid var(--gray-light);
    border-bottom: 2px solid var(--green);
    gap: 2px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    z-index: 999;
  }
  .nav-links.active { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 11px 14px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px;
    color: var(--dark);
    text-decoration: none;
    transition: background 0.2s, padding-left 0.2s;
  }
  .nav-links a:hover,
  .nav-links a:active {
    background-color: var(--green-tint);
    color: var(--green);
    padding-left: 20px;
  }
  /* Remove desktop underline animation */
  .nav-links a::after { display: none !important; }
  /* Donate button: full width */
  .nav-links li:last-child { margin-top: 8px; }
  .btn-nav-donate {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    padding: 13px 20px !important;
    font-size: 0.88rem !important;
    justify-content: center;
  }

  /* ── HERO ── */
  .hero { min-height: auto; padding: 100px 0 50px; }
  .hero-title { font-size: clamp(1.9rem, 7vw, 2.6rem); }
  .hero-sub { font-size: 0.92rem; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* Hero visual card: smaller on mobile */
  .hero-visual-card {
    max-width: 100%;
    padding: 24px;
  }
  .hero-visual-card h3 { font-size: 1.1rem; }

  /* ── STATS BAR ── */
  .stats-section { margin-top: 0; }
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    margin-top: -30px;
    border-radius: var(--radius-md);
  }
  .stat-item {
    padding: 20px 12px;
    /* Border grid: right on odd, bottom on non-last-row */
    border-right: 1px solid hsla(210, 12%, 85%, 0.5);
    border-bottom: 1px solid hsla(210, 12%, 85%, 0.5);
  }
  .stat-item:nth-child(even) { border-right: none; }
  .stat-item:nth-last-child(-n+2) { border-bottom: none; }
  /* Hide pseudo-element separators */
  .stat-item::after,
  .stat-item:not(:last-child)::after { display: none !important; }
  .stat-num { font-size: 1.6rem; }
  .stat-label { font-size: 0.62rem; letter-spacing: 0.8px; margin-top: 6px; }

  /* ── ABOUT BADGE ── */
  .about-img-badge {
    bottom: 12px;
    right: 12px;
    padding: 14px 18px;
  }
  .about-img-badge strong { font-size: 1.6rem; }
  .about-img-badge span { font-size: 0.62rem; }

  /* ── BANK GRID & MODAL GRID ── */
  .bank-accounts-grid { grid-template-columns: 1fr; gap: 14px; }
  .modal-grid { grid-template-columns: 1fr !important; gap: 14px; }

  /* ── FOOTER ── */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

/* ── SMALL MOBILE (≤ 576px) ── */
@media (max-width: 576px) {
  /* Programs: single column */
  .programs-grid { grid-template-columns: 1fr; gap: 14px; }
  .program-card { padding: 24px 18px; }

  /* Section header */
  .section-header { margin-bottom: 40px; }

  /* Card body tighter */
  .card-body { padding: 20px; }
  .card-footer { padding: 16px 20px; }

  /* Modals */
  .modal-overlay { padding: 8px; align-items: flex-end; }
  .modal-box {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    max-height: 90vh;
    overflow-y: auto;
  }
  .modal-hero { padding: 28px 18px 18px; }
  .modal-hero h3 { font-size: 1.15rem; }
  .modal-body { padding: 18px; }
  .hotline-phone { font-size: 1.3rem; }
}

/* ── VERY SMALL MOBILE (≤ 400px) ── */
@media (max-width: 400px) {
  .container { padding: 0 12px; }
  .hero-title { font-size: 1.7rem; }
  .stat-num { font-size: 1.4rem; }
  .hero-visual-card { padding: 18px; }
  .hero-visual-card h3 { font-size: 1rem; }
  .btn { padding: 13px 20px; font-size: 0.82rem; }
}


/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up {
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }


