/* 
   Trustable Foundation - Primary Stylesheet
   Modern, Premium, Emotional & Authentic NGO Design System
*/

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

:root {
  /* Khadija Foundation Brand Color Palette (Based on Official Logo) */
  --navy-dark: #07162c;
  --navy-primary: #005696;       /* Logo Primary Blue */
  --navy-medium: #00487a;
  --navy-light: #006eb3;
  --navy-subtle: #f0f7ff;
  
  --emerald-primary: #058245;    /* Logo Secondary Green */
  --emerald-hover: #046c39;
  --emerald-light: #ecfdf5;
  --emerald-text: #047857;
  
  --gold-primary: #d4af37;       /* Logo Gold & Warm Accent */
  --gold-hover: #b89728;
  --gold-accent: #ffd166;
  --gold-light: #fef8e8;
  --gold-text: #92400e;

  --orange-primary: #058245;     /* Direct mapping to Logo Green for primary CTA */
  --orange-hover: #046c39;
  --orange-light: #ecfdf5;
  
  --bg-white: #ffffff;
  --bg-soft: #f8fafc;
  --bg-subtle: #f1f5f9;
  
  --text-main: #1e293b;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --border-color: #e2e8f0;

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Border Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 86, 150, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 86, 150, 0.07);
  --shadow-lg: 0 16px 36px rgba(0, 86, 150, 0.12);
  --shadow-hover: 0 22px 45px rgba(0, 86, 150, 0.16);

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  overflow-x: clip;
  max-width: 100%;
}

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

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 960px;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.section-padding {
  padding: 96px 0;
}

.section-padding-sm {
  padding: 64px 0;
}

.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--emerald-text);
  background-color: var(--emerald-light);
  border: 1px solid rgba(5, 130, 69, 0.2);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.section-label-gold {
  color: var(--gold-text);
  background-color: var(--gold-light);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.section-label-navy {
  color: var(--navy-primary);
  background-color: var(--navy-subtle);
  border: 1px solid rgba(0, 86, 150, 0.2);
}

.section-heading {
  font-size: 2.5rem;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  color: var(--navy-primary);
}

.section-subtext {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 48px;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--emerald-primary);
  color: var(--bg-white);
  box-shadow: 0 4px 14px rgba(5, 130, 69, 0.35);
}

.btn-primary:hover {
  background-color: var(--emerald-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(5, 130, 69, 0.45);
}

.btn-navy {
  background-color: var(--navy-primary);
  color: var(--bg-white);
  box-shadow: 0 4px 14px rgba(0, 86, 150, 0.3);
}

.btn-navy:hover {
  background-color: var(--navy-medium);
  transform: translateY(-2px);
}

.btn-gold {
  background-color: var(--gold-primary);
  color: #07162c;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
}

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

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--bg-white);
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--bg-white);
  transform: translateY(-2px);
}

.btn-outline-navy {
  background-color: transparent;
  color: var(--navy-primary);
  border-color: var(--navy-primary);
}

.btn-outline-navy:hover {
  background-color: var(--navy-primary);
  color: var(--bg-white);
  transform: translateY(-2px);
}

.btn-emerald {
  background-color: var(--emerald-primary);
  color: var(--bg-white);
  box-shadow: 0 4px 14px rgba(5, 130, 69, 0.3);
}

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

.btn-sm {
  padding: 10px 20px;
  font-size: 0.875rem;
}

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */
.top-bar {
  background: linear-gradient(90deg, #005696 0%, #006eb3 45%, #058245 100%) !important;
  color: #ffffff !important;
  font-size: 0.86rem !important;
  padding: 9px 0 !important;
  border-bottom: 2px solid #d4af37 !important;
  box-shadow: 0 2px 10px rgba(0, 86, 150, 0.25) !important;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.top-bar-info {
  display: flex;
  gap: 24px;
  align-items: center;
}

.top-bar-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff !important;
  font-weight: 500;
}

.top-bar-info-item svg {
  width: 15px;
  height: 15px;
  stroke: #ffd166 !important;
}

.header {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  left: 0;
  width: 100%;
  z-index: 9999 !important;
  background: #ffffff !important;
  box-shadow: 0 4px 20px rgba(0, 50, 90, 0.08) !important;
  border-bottom: 1px solid #e2e8f0 !important;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(18px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(180%) !important;
  box-shadow: 0 10px 30px rgba(0, 30, 60, 0.12), 0 1px 0 rgba(0, 86, 150, 0.1) !important;
  border-bottom: 1px solid #e2e8f0 !important;
  border-top: none !important;
  animation: headerSlideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes headerSlideDown {
  from {
    transform: translateY(-8px);
    opacity: 0.92;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  height: auto;
  transition: min-height 0.35s ease, padding 0.35s ease;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 8px 20px;
}

.header.scrolled .navbar {
  min-height: 62px !important;
  padding: 4px 20px !important;
}

.brand-logo,
.brand-logo:hover,
.brand-logo:focus,
.brand-logo:active {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-right: 14px;
  text-decoration: none !important;
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  transition: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.brand-logo img {
  height: 60px;
  max-height: 60px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15));
  transition: height 0.35s ease, max-height 0.35s ease;
}

.brand-logo:hover img,
.brand-logo:focus img,
.brand-logo:active img {
  opacity: 1 !important;
  transform: none !important;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15)) !important;
  transition: none !important;
}

.header.scrolled .brand-logo img {
  height: 46px !important;
  max-height: 46px !important;
}

.brand-name-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  line-height: 1.05;
}

.brand-main-title,
.brand-logo:hover .brand-main-title,
.brand-logo:focus .brand-main-title,
.brand-logo:active .brand-main-title {
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
  font-weight: 800;
  font-size: 1.18rem;
  color: #0f2a4a !important;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  opacity: 1 !important;
  transform: none !important;
  text-decoration: none !important;
  transition: none !important;
}

.brand-main-title .brand-word-1,
.brand-main-title span:first-child,
.brand-logo:hover .brand-main-title .brand-word-1,
.brand-logo:hover .brand-main-title span:first-child,
.brand-logo:focus .brand-main-title .brand-word-1,
.brand-logo:focus .brand-main-title span:first-child {
  color: #0f2a4a !important;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  line-height: 1.05;
  display: block;
  opacity: 1 !important;
  text-decoration: none !important;
  transform: none !important;
  transition: none !important;
}

.brand-main-title .brand-word-2,
.brand-main-title span:last-child,
.brand-logo:hover .brand-main-title .brand-word-2,
.brand-logo:hover .brand-main-title span:last-child,
.brand-logo:focus .brand-main-title .brand-word-2,
.brand-logo:focus .brand-main-title span:last-child {
  color: #058245 !important;
  font-size: 1.14rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  line-height: 1.05;
  display: block;
  opacity: 1 !important;
  text-decoration: none !important;
  transform: none !important;
  transition: none !important;
}

.header.scrolled .brand-main-title .brand-word-1,
.header.scrolled .brand-main-title span:first-child {
  font-size: 1.02rem;
}

.header.scrolled .brand-main-title .brand-word-2,
.header.scrolled .brand-main-title span:last-child {
  font-size: 1.00rem;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--navy-primary), var(--navy-medium));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange-primary);
  box-shadow: 0 4px 12px rgba(15, 42, 74, 0.15);
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f2a4a;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-name span {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: #058245;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: nowrap;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  color: #1e293b !important;
  position: relative;
  padding: 6px 2px;
  white-space: nowrap;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: #005696 !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2.5px;
  background-color: #005696 !important;
  transition: var(--transition);
  border-radius: 2px;
}

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

.nav-item-dropdown {
  position: relative;
  display: inline-block;
}

.nav-item-dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: linear-gradient(165deg, #091f3a 0%, #051527 100%) !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.12) inset !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  padding: 8px !important;
  z-index: 1000;
  backdrop-filter: blur(16px);
  animation: navDropdownFade 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.nav-item-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 9px 12px !important;
  border-radius: 10px !important;
  color: #e2e8f0 !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  margin-bottom: 2px !important;
  background: transparent !important;
}

.dropdown-menu a:last-child {
  margin-bottom: 0 !important;
}

.dropdown-menu a .dropdown-icon {
  width: 30px !important;
  height: 30px !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.95rem !important;
  flex-shrink: 0 !important;
  transition: all 0.2s ease !important;
}

.dropdown-menu a:hover {
  background: linear-gradient(90deg, rgba(0, 110, 179, 0.4) 0%, rgba(5, 130, 69, 0.35) 100%) !important;
  color: #ffd166 !important;
  transform: translateX(4px) !important;
  padding-left: 15px !important;
}

.dropdown-menu a:hover .dropdown-icon {
  background: #ffd166 !important;
  color: #07162c !important;
  transform: scale(1.12) !important;
  box-shadow: 0 2px 10px rgba(255, 209, 102, 0.4) !important;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-left: 14px;
}

.mobile-toggle {
  display: none;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  position: relative;
  outline: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  z-index: 10005;
}

.mobile-toggle:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
}

.mobile-toggle.active {
  background: #fef2f2;
  border-color: #ef4444;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.hamburger-box {
  width: 17px;
  height: 13px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.hamburger-bar {
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: #0f2a4a;
  border-radius: 1px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, background-color 0.25s ease;
  transform-origin: center;
  pointer-events: none;
}

/* Production-Level Smooth Morphing into High-Contrast Cross (X) */
.mobile-toggle.active .hamburger-bar {
  background-color: #dc2626;
}

.mobile-toggle.active .hamburger-bar.bar-1 {
  transform: translateY(5.75px) rotate(45deg);
}

.mobile-toggle.active .hamburger-bar.bar-2 {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-toggle.active .hamburger-bar.bar-3 {
  transform: translateY(-5.75px) rotate(-45deg);
}

/* Mobile Nav Drawer: Anchored Below Header */
.mobile-nav {
  position: fixed;
  top: 56px;
  right: -100%;
  width: 275px;
  max-width: 86vw;
  height: calc(100vh - 56px);
  height: calc(100dvh - 56px);
  background: linear-gradient(175deg, #07192f 0%, #030d1a 100%);
  color: var(--bg-white);
  z-index: 1100;
  padding: 16px 12px 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -8px 12px 30px rgba(0, 0, 0, 0.45);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom-left-radius: 16px;
  overflow: hidden;
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav-header {
  display: none !important;
}

.mobile-nav-close {
  display: none;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  flex: 1;
  padding-top: 12px;
  padding-right: 4px;
  margin-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.mobile-nav-links::-webkit-scrollbar {
  width: 4px;
}

.mobile-nav-links::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.86);
  padding: 7px 10px;
  border-radius: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  line-height: 1.3;
  border-left: 2.5px solid transparent;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
  background: rgba(255, 255, 255, 0.08);
  color: #ffd166;
  border-left-color: #ffd166;
  padding-left: 13px;
}

.mobile-nav .header-donate-btn {
  width: 100% !important;
  justify-content: center !important;
  padding: 8px 16px !important;
  min-height: 34px !important;
  font-size: 0.80rem !important;
  margin-top: 4px !important;
}

.overlay-backdrop {
  position: fixed;
  top: 56px;
  left: 0;
  width: 100vw;
  height: calc(100vh - 56px);
  height: calc(100dvh - 56px);
  background-color: rgba(7, 22, 44, 0.55);
  backdrop-filter: blur(3px);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.overlay-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-start;
  background-color: var(--navy-dark);
  background-image: linear-gradient(180deg, rgba(7, 22, 44, 0.82) 0%, rgba(15, 42, 74, 0.88) 100%), url('../images/hero_community.jpg');
  background-size: cover;
  background-position: center;
  color: var(--bg-white);
  padding: 50px 0 140px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(224, 109, 39, 0.2);
  border: 1px solid rgba(224, 109, 39, 0.4);
  color: #ffaa75;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}

.hero-badge-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--orange-primary);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(224, 109, 39, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(224, 109, 39, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(224, 109, 39, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(224, 109, 39, 0); }
}

.hero-title {
  font-size: 3.5rem;
  color: var(--bg-white);
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

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

.hero-description {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 620px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-trust-text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-trust-text svg {
  width: 16px;
  height: 16px;
  stroke: var(--emerald-primary);
}

/* Floating Impact Card */
.hero-card-wrapper {
  display: flex;
  justify-content: flex-end;
}

.floating-impact-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-xl);
  padding: 32px;
  color: var(--navy-primary);
  width: 100%;
  max-width: 380px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  position: relative;
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.impact-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.impact-card-icon {
  width: 52px;
  height: 52px;
  background-color: var(--orange-light);
  color: var(--orange-primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.impact-card-num {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--navy-primary);
  line-height: 1;
}

.impact-card-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
}

.impact-progress-bar {
  height: 8px;
  background-color: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  margin: 16px 0 12px;
}

.impact-progress-fill {
  height: 100%;
  width: 85%;
  background: linear-gradient(90deg, var(--orange-primary), var(--gold-accent));
  border-radius: 4px;
}

.impact-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.825rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   STATISTICS SECTION
   ========================================================================== */
.stats-section {
  background-color: var(--bg-white);
  margin-top: -50px;
  position: relative;
  z-index: 10;
}

.stats-grid {
  background-color: var(--bg-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 40px 20px;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.stat-item {
  text-align: center;
  padding: 12px 20px;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background-color: var(--border-color);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--navy-primary);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

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

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
}

.about-image-main {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image-main img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.about-experience-badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--navy-primary);
  color: white;
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 260px;
}

.exp-years {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--orange-primary);
  line-height: 1;
}

.exp-text {
  font-size: 0.85rem;
  line-height: 1.3;
  font-weight: 600;
}

.checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0 36px;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--navy-primary);
  font-size: 0.95rem;
}

.checklist-icon {
  width: 24px;
  height: 24px;
  background-color: var(--emerald-light);
  color: var(--emerald-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ==========================================================================
   MISSION SECTION
   ========================================================================== */
.mission-section {
  background-color: var(--bg-soft);
}

.mission-statement {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy-primary);
  max-width: 900px;
  margin: 0 auto 56px;
  line-height: 1.4;
  text-align: center;
  position: relative;
  padding: 0 20px;
}

.mission-statement::before {
  content: '“';
  font-size: 6rem;
  color: var(--orange-primary);
  opacity: 0.2;
  position: absolute;
  top: -40px;
  left: -20px;
  font-family: Georgia, serif;
}

.mission-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.mission-card {
  background: var(--bg-white);
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.mission-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(224, 109, 39, 0.3);
}

.mission-icon-box {
  width: 64px;
  height: 64px;
  background-color: var(--orange-light);
  color: var(--orange-primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.mission-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.mission-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   PROGRAMS / OUR WORK
   ========================================================================== */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.program-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.program-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.program-img-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
}

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

.program-card:hover .program-img-wrapper img {
  transform: scale(1.06);
}

.program-icon-floating {
  position: absolute;
  bottom: 12px;
  right: 16px;
  width: 44px;
  height: 44px;
  background-color: var(--bg-white);
  color: var(--orange-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.program-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.program-content h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.program-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.program-link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--orange-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.program-link:hover {
  gap: 10px;
}

/* ==========================================================================
   IMPACT STORY SECTION
   ========================================================================== */
.impact-story-section {
  background-color: var(--bg-soft);
}

.story-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border-color);
}

.story-image {
  height: 100%;
  min-height: 400px;
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-details {
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.before-after-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 28px 0;
  padding: 20px;
  background-color: var(--bg-soft);
  border-radius: var(--radius-md);
}

.ba-col h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.ba-before h4 { color: #dc2626; }
.ba-after h4 { color: var(--emerald-primary); }

.ba-col p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ==========================================================================
   WHY TRUST US
   ========================================================================== */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.trust-card {
  background-color: var(--bg-white);
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
}

.trust-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(15, 42, 74, 0.2);
}

.trust-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background-color: var(--navy-primary);
  color: var(--bg-white);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.trust-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.trust-breakdown-bar {
  margin-top: 56px;
  background: var(--navy-dark);
  color: white;
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.breakdown-text h4 {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.breakdown-text p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

.breakdown-pills {
  display: flex;
  gap: 20px;
}

.pill-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pill-item span {
  color: var(--gold-accent);
  font-weight: 800;
}

/* ==========================================================================
   DONATION CTA SECTION
   ========================================================================== */
.donation-banner {
  background-image: linear-gradient(180deg, rgba(7, 22, 44, 0.88) 0%, rgba(15, 42, 74, 0.92) 100%), url('../images/hero_community.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 96px 0;
  position: relative;
}

.donation-banner h2 {
  color: white;
  font-size: 3rem;
  margin-bottom: 20px;
}

.donation-banner p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.2rem;
  max-width: 680px;
  margin: 0 auto 36px;
}

.donation-banner .btn-group {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* ==========================================================================
   GALLERY MASONRY
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 280px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(7, 22, 44, 0) 40%, rgba(7, 22, 44, 0.85) 100%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-caption {
  color: white;
  font-weight: 600;
  font-size: 1rem;
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testimonials-section {
  background-color: var(--bg-soft);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.testimonial-card {
  background: var(--bg-white);
  padding: 36px 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quote-icon {
  font-size: 3rem;
  color: var(--orange-primary);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 12px;
  font-family: Georgia, serif;
}

.testimonial-text {
  color: var(--text-main);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 14px;
}

.user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--orange-primary);
}

.user-info h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.user-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   NEWSLETTER
   ========================================================================== */
.newsletter-card {
  background: linear-gradient(135deg, var(--navy-primary), var(--navy-dark));
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  color: white;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.newsletter-text h3 {
  color: white;
  font-size: 2rem;
  margin-bottom: 12px;
}

.newsletter-text p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
}

.newsletter-form {
  display: flex;
  gap: 12px;
}

.newsletter-form input {
  flex-grow: 1;
  padding: 16px 20px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 0.95rem;
  outline: none;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-form input:focus {
  border-color: var(--orange-primary);
  background: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background-color: var(--navy-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 80px 0 30px;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-col h4 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--orange-primary);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-brand .brand-name {
  color: white;
}

.footer-desc {
  margin-bottom: 24px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a:hover {
  color: var(--orange-primary);
  padding-left: 4px;
}

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

.contact-item svg {
  width: 18px;
  height: 18px;
  stroke: var(--orange-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a:hover {
  color: white;
}

/* ==========================================================================
   PREMIUM DONATION MODAL
   ========================================================================== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 100000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px 16px;
  box-sizing: border-box;
}

.modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 25, 47, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100000;
}

.modal-content.premium-donation-modal {
  position: relative;
  background: #ffffff;
  border-radius: 24px;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 34px 28px 24px;
  box-shadow: 0 25px 70px rgba(0, 20, 50, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.8);
  z-index: 100001;
  margin: auto !important;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
  transform: scale(0.96) translateY(12px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.modal.open .modal-content.premium-donation-modal {
  transform: scale(1) translateY(0);
}

.modal-top-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #058245 0%, #005696 50%, #e06d27 100%);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 1.3rem;
  font-weight: 700;
  transition: all 0.2s ease;
  z-index: 20;
  line-height: 1;
}

.modal-close:hover {
  background: #fee2e2;
  color: #ef4444;
  border-color: #fca5a5;
  transform: rotate(90deg) scale(1.08);
}

.modal-icon-badge {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #e8f5e9 0%, #d1fae5 100%);
  color: #058245;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  box-shadow: 0 8px 18px rgba(5, 130, 69, 0.15);
  border: 1px solid #a7f3d0;
}

.modal-tax-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #6ee7b7;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  margin-bottom: 8px;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f2a4a;
  margin: 0 0 6px;
  letter-spacing: -0.5px;
}

.modal-subtitle {
  color: #64748b;
  font-size: 0.86rem;
  line-height: 1.45;
  margin: 0 0 18px;
}

/* Frequency Toggle */
.donation-freq-toggle {
  display: flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 14px;
  margin-bottom: 18px;
  border: 1px solid #e2e8f0;
}

.freq-btn {
  flex: 1;
  padding: 9px 12px;
  border: none;
  background: transparent;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.86rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.freq-btn.active {
  background: #ffffff;
  color: #005696;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.freq-pill-tag {
  font-size: 0.68rem;
  background: #fef3c7;
  color: #b45309;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 800;
}

/* Amount Selector Grid */
.amount-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.tax-hint {
  font-size: 0.78rem;
  color: #058245;
  font-weight: 600;
}

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

.amount-btn {
  position: relative;
  padding: 10px 6px;
  border: 2px solid #e2e8f0;
  background: #ffffff;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.amount-btn .amount-val {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: #0f2a4a;
  line-height: 1.2;
}

.amount-btn .amount-sub {
  font-size: 0.68rem;
  color: #64748b;
  font-weight: 600;
  margin-top: 2px;
  white-space: nowrap;
}

.amount-btn:hover {
  border-color: #93c5fd;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 86, 150, 0.08);
}

.amount-btn.active {
  border-color: #058245;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
  box-shadow: 0 6px 18px rgba(5, 130, 69, 0.15);
  transform: translateY(-2px);
}

.amount-btn.active .amount-val {
  color: #058245;
}

.popular-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  background: #e06d27;
  color: #ffffff;
  font-size: 0.55rem;
  font-weight: 800;
  padding: 2px 6px;
  border-bottom-left-radius: 6px;
  letter-spacing: 0.4px;
}

/* Custom Amount Input */
.custom-amount-group {
  margin-bottom: 14px;
}

.input-with-prefix {
  position: relative;
}

.input-currency-symbol {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 800;
  font-size: 1.15rem;
  color: #005696;
}

.custom-amount-field {
  padding-left: 34px !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  color: #0f2a4a !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 12px !important;
}

.custom-amount-field:focus {
  border-color: #005696 !important;
  box-shadow: 0 0 0 4px rgba(0, 86, 150, 0.12) !important;
}

/* Impact Preview Box */
.donation-impact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  border: 1px dashed #bfdbfe;
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 16px;
}

.impact-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.impact-text {
  font-size: 0.82rem;
  color: #334155;
  line-height: 1.35;
}

.impact-text strong {
  display: block;
  color: #005696;
  font-size: 0.86rem;
  margin-bottom: 1px;
}

/* Form Inputs With Icons */
.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.input-icon-wrap {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.form-input.has-icon {
  padding-left: 38px !important;
}

.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.84rem;
  color: #0f2a4a;
  margin-bottom: 6px;
}

.form-input, .form-select {
  width: 100%;
  padding: 10px 13px;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s ease;
  background: #ffffff;
  color: #1e293b;
  box-sizing: border-box;
}

.form-input:focus, .form-select:focus {
  border-color: #005696;
  box-shadow: 0 0 0 3px rgba(0, 86, 150, 0.1);
}

.form-input.is-invalid, .form-select.is-invalid {
  border-color: #e2e8f0 !important;
  background-color: #ffffff !important;
  box-shadow: none !important;
}

.field-error-msg {
  display: none;
  font-size: 0.74rem;
  color: #dc2626;
  font-weight: 600;
  margin-top: 4px;
  align-items: center;
  gap: 4px;
  line-height: 1.3;
}

.field-error-msg.visible {
  display: flex;
  animation: errorSlideDown 0.2s ease forwards;
}

@keyframes errorSlideDown {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.btn-donate-submit {
  width: 100%;
  padding: 13px 20px;
  background: linear-gradient(135deg, #058245 0%, #036836 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 22px rgba(5, 130, 69, 0.28);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.3px;
  margin-top: 6px;
}

.btn-donate-submit:hover {
  background: linear-gradient(135deg, #047857 0%, #02592f 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(5, 130, 69, 0.38);
}

.btn-donate-submit:active {
  transform: translateY(0);
}

.btn-donate-submit .arrow-icon {
  font-size: 1.15rem;
  transition: transform 0.2s ease;
}

.btn-donate-submit:hover .arrow-icon {
  transform: translateX(4px);
}

/* Trust Badges Row */
.modal-trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #64748b;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.92);
  z-index: 100005 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0; visibility: hidden;
  transition: var(--transition);
}

.lightbox-modal.open {
  opacity: 1; visibility: visible;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-title { font-size: 2.75rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stat-item:nth-child(2)::after { display: none; }
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .container,
  .container-fluid,
  .container-narrow {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .section-padding {
    padding: 40px 0 !important;
  }
  .nav-links, .nav-actions .btn { display: none; }
  .mobile-toggle { display: inline-flex !important; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card-wrapper { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; }
  .about-experience-badge { right: 10px; bottom: -20px; }
  .mission-cards { grid-template-columns: 1fr; }
  .programs-grid { grid-template-columns: 1fr; }
  .story-card { grid-template-columns: 1fr; }
  .story-details { padding: 32px 24px; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-breakdown-bar { flex-direction: column; text-align: center; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .newsletter-card { grid-template-columns: 1fr; padding: 36px 24px; }
  .newsletter-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; padding: 16px 0 !important; text-align: left !important; }
  .stat-item { padding: 12px 10px !important; text-align: left !important; }
  .stat-item:not(:last-child)::after { display: none !important; }
  .stat-number { font-size: 1.25rem !important; text-align: left !important; }
  .stat-label { font-size: 0.72rem !important; line-height: 1.25 !important; text-align: left !important; }
}

@media (max-width: 480px) {
  .container,
  .container-fluid,
  .container-narrow {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .section-padding {
    padding: 34px 0 !important;
  }
  .hero-title { font-size: 1.20rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; padding: 12px 0 !important; }
  .stat-item { padding: 10px 8px !important; }
  .stat-number { font-size: 1.10rem !important; }
  .stat-label { font-size: 0.67rem !important; }
  .checklist { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------
   Navigation Dropdowns & Enhanced Portal Components
------------------------------------------------------------- */
.nav-item-dropdown {
  position: relative;
  display: inline-block;
}

.nav-item-dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: linear-gradient(165deg, #091f3a 0%, #051527 100%) !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.12) inset !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  padding: 8px !important;
  z-index: 1000;
  backdrop-filter: blur(16px);
}

.nav-item-dropdown:hover .dropdown-menu {
  display: block !important;
  animation: navDropdownFade 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.dropdown-menu a {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 9px 12px !important;
  border-radius: 10px !important;
  color: #f1f5f9 !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  margin-bottom: 2px !important;
  background: transparent !important;
}

.dropdown-menu a:last-child {
  margin-bottom: 0 !important;
}

.dropdown-menu a .dropdown-icon {
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1rem !important;
  flex-shrink: 0 !important;
  transition: all 0.2s ease !important;
}

.dropdown-menu a:hover {
  background: linear-gradient(90deg, rgba(0, 110, 179, 0.45) 0%, rgba(5, 130, 69, 0.4) 100%) !important;
  color: #ffd166 !important;
  transform: translateX(4px) !important;
  padding-left: 14px !important;
}

.dropdown-menu a:hover .dropdown-icon {
  background: #ffd166 !important;
  color: #07162c !important;
  transform: scale(1.1) !important;
  box-shadow: 0 2px 10px rgba(255, 209, 102, 0.4) !important;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
}
.badge-success { background: #dcfce7; color: #15803d; }
.badge-warning { background: #fef9c3; color: #a16207; }
.badge-danger { background: #fee2e2; color: #b91c1c; }
.badge-info { background: #e0f2fe; color: #0369a1; }

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.data-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 18px;
  text-align: left;
  border-bottom: 2px solid #e2e8f0;
}
.data-table td {
  padding: 14px 18px;
  color: #1e293b;
  font-size: 0.92rem;
  border-bottom: 1px solid #f1f5f9;
}
.data-table tr:hover td {
  background: #fafcff;
}

/* Progress bar */
.progress-container {
  width: 100%;
  height: 10px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  margin: 10px 0;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--orange-primary), #f59e0b);
  border-radius: 10px;
  transition: width 0.4s ease;
}

/* Print Styles */
@media print {
  .top-bar, .header, .footer, .floating-actions, .no-print, button, .btn {
    display: none !important;
  }
  body {
    background: #fff !important;
    color: #000 !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .printable-area {
    box-shadow: none !important;
    border: none !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }
}

/* ==========================================================================
   ATTRACTIVE MODERN CARD DESIGN SYSTEM (ALL SECTIONS)
   ========================================================================== */

/* Specific Feature Cards Styling */
.programs-grid > div,
.trust-grid > div,
.mission-cards > div,
.gallery-grid > div {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  border-radius: 18px !important;
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
}

.programs-grid > div:hover,
.trust-grid > div:hover,
.mission-cards > div:hover,
.gallery-grid > div:hover {
  transform: translateY(-8px) scale(1.01) !important;
  box-shadow: 0 22px 45px -8px rgba(15, 42, 74, 0.12), 0 0 0 1.5px rgba(224, 109, 39, 0.25) !important;
  border-color: rgba(224, 109, 39, 0.3) !important;
}

.mission-card:hover::before {
  opacity: 1;
}

/* Specific Feature Image Zoom */
.programs-grid > div img,
.gallery-grid > div img {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease !important;
}

.programs-grid > div:hover img,
.gallery-grid > div:hover img {
  transform: scale(1.05) !important;
}

/* Mission / Causes Cards Enhanced */
.mission-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  gap: 28px !important;
}

.mission-card {
  background: #ffffff !important;
  padding: 36px 28px !important;
  border-radius: 20px !important;
  border: 1px solid rgba(226, 232, 240, 0.85) !important;
  box-shadow: 0 10px 30px rgba(15, 42, 74, 0.05) !important;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.mission-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 24px 50px -10px rgba(15, 42, 74, 0.14) !important;
  border-color: rgba(224, 109, 39, 0.35) !important;
}

.mission-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(224, 109, 39, 0.12), rgba(245, 158, 11, 0.18));
  border: 1px solid rgba(224, 109, 39, 0.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.mission-card:hover .mission-icon {
  transform: scale(1.12) rotate(3deg);
  background: linear-gradient(135deg, rgba(224, 109, 39, 0.2), rgba(245, 158, 11, 0.3));
}

.mission-card h3 {
  font-size: 1.25rem !important;
  color: var(--navy-primary) !important;
  margin-bottom: 10px !important;
  font-weight: 700 !important;
}

.mission-card p {
  color: var(--text-muted) !important;
  font-size: 0.92rem !important;
  line-height: 1.65 !important;
  margin-bottom: 18px !important;
}

.mission-link {
  color: var(--orange-primary) !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: gap 0.2s ease !important;
}

.mission-card:hover .mission-link {
  gap: 10px !important;
  color: var(--orange-hover) !important;
}



/* Enhanced Progress Bar Glow */
.progress-container {
  height: 9px !important;
  background: #f1f5f9 !important;
  border-radius: 20px !important;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.06);
}

.progress-bar-fill {
  border-radius: 20px !important;
  background: linear-gradient(90deg, #e06d27 0%, #f59e0b 100%) !important;
  box-shadow: 0 0 10px rgba(224, 109, 39, 0.4);
}

/* Header Donate CTA Button */
.header-donate-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background: linear-gradient(135deg, #ffd166 0%, #f77f00 100%) !important;
  color: #07162c !important;
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif) !important;
  font-weight: 800 !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.2px !important;
  padding: 12px 24px !important;
  min-height: 44px !important;
  border-radius: 50px !important;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
  box-shadow: 0 4px 15px rgba(247, 127, 0, 0.4), 0 2px 6px rgba(0,0,0,0.15) !important;
  text-decoration: none !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer !important;
  position: relative !important;
  white-space: nowrap !important;
}

.header-donate-btn svg {
  width: 17px !important;
  height: 17px !important;
  fill: #e63946 !important;
  stroke: #c1121f !important;
  stroke-width: 1.5 !important;
  flex-shrink: 0 !important;
  transition: transform 0.25s ease !important;
  animation: donateHeartBeat 2.2s infinite ease-in-out !important;
}

.header-donate-btn:hover {
  background: linear-gradient(135deg, #ffe082 0%, #ff8800 100%) !important;
  color: #000000 !important;
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 6px 20px rgba(247, 127, 0, 0.55), 0 0 10px rgba(255, 209, 102, 0.4) !important;
}

.header-donate-btn:hover svg {
  transform: scale(1.2) !important;
  animation: none !important;
}

.header-donate-btn:active {
  transform: translateY(0) scale(0.99) !important;
}

@keyframes donateHeartBeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.22); }
  28% { transform: scale(1); }
  42% { transform: scale(1.15); }
  70% { transform: scale(1); }
}
