/* ============================================
   ORA Demo Website — Main Stylesheet
   Organization for Rural Advancement
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Brand colors */
  --green: #1F6B3A;
  --green-dark: #155228;
  --green-light: #2A8A4A;
  --teal: #0E7C86;
  --teal-dark: #0A5F67;
  --teal-light: #12A0AC;
  --gold: #E6A817;
  --gold-dark: #C88F0E;
  --gold-light: #F0C04A;
  --cream: #FBF7EE;
  --ink: #1B2430;
  --ink-light: #374151;
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  
  /* Semantic */
  --bg: var(--cream);
  --bg-alt: var(--white);
  --text: var(--ink);
  --text-muted: var(--gray-600);
  --text-light: var(--gray-500);
  --border: var(--gray-200);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  /* Typography */
  --font-en: 'Inter', system-ui, -apple-system, sans-serif;
  --font-bn: 'Noto Sans Bengali', 'Kalpurush', sans-serif;
  --font-body: var(--font-en);
  
  /* Spacing */
  --container: 1200px;
  --container-sm: 800px;
  --header-height: 72px;
  --banner-height: 36px;
  
  /* Transitions */
  --transition: 200ms ease;
  --transition-slow: 400ms ease;
  
  /* Border radius */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

/* Dark mode */
[data-theme="dark"] {
  --bg: #0F1419;
  --bg-alt: #1A2332;
  --text: #E8ECF1;
  --text-muted: #9CA3AF;
  --text-light: #6B7280;
  --border: #2D3748;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.2);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.3), 0 1px 2px -1px rgb(0 0 0 / 0.3);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.3);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.3), 0 4px 6px -4px rgb(0 0 0 / 0.3);
}

/* Bangla font override */
[lang="bn"], .bn-text {
  font-family: var(--font-bn) !important;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-height) + var(--banner-height) + 20px);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal-dark); }
a:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 2px; }
button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  font-weight: 700;
  color: var(--ink);
}
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3,
[data-theme="dark"] h4, [data-theme="dark"] h5, [data-theme="dark"] h6 { color: var(--text); }

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1rem; }
ul, ol { padding-left: 1.5em; }

/* ---------- Utilities ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.container-sm { max-width: var(--container-sm); margin: 0 auto; padding: 0 1.25rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.section-padding { padding: 4rem 0; }
.section-padding-sm { padding: 2.5rem 0; }

/* ---------- Site Announcement & Emergency Bar ---------- */
.site-announcement-bar {
  background: #0B2B26;
  color: #FBF7EE;
  padding: 7px 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  position: sticky;
  top: 0;
  z-index: 1001;
  border-bottom: 1px solid rgba(230,168,23,0.3);
}
.announcement-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.announcement-text {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #22C55E;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse-ring 2s infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.announcement-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
}
.announcement-link {
  color: var(--gold);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.announcement-link:hover {
  color: #FEF08A;
}
.announcement-badge {
  background: rgba(255,255,255,0.12);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  color: rgba(255,255,255,0.85);
  font-size: 0.7rem;
}
@media (max-width: 768px) {
  .site-announcement-bar { padding: 6px 0.75rem; font-size: 0.74rem; }
  .announcement-badge { display: none; }
}

/* Demo banner suppressed for live production deployment */
.demo-banner {
  display: none !important;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: var(--banner-height);
  z-index: 1000;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.logo-link { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-link img { height: 44px; width: 44px; }
.logo-text { display: flex; flex-direction: column; }
.logo-name { font-size: 1.15rem; font-weight: 800; color: var(--green); line-height: 1.2; }
.logo-tagline { font-size: 0.65rem; color: var(--text-muted); font-weight: 500; }

.nav-desktop { display: none; }
@media (min-width: 1024px) {
  .nav-desktop { display: flex; align-items: center; gap: 0; }
}

.nav-desktop a, .nav-dropdown-trigger {
  padding: 0.5rem 0.75rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  transition: color var(--transition);
  white-space: nowrap;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}
.nav-desktop a:hover, .nav-dropdown-trigger:hover { color: var(--green); }
.nav-desktop a.active { color: var(--green); font-weight: 600; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  color: var(--text);
}
.nav-dropdown-menu a:hover { background: var(--gray-100); color: var(--green); }
[data-theme="dark"] .nav-dropdown-menu a:hover { background: var(--gray-800); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 8px; }
.btn-lang {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
}
.btn-lang:hover { border-color: var(--green); color: var(--green); }

.btn-theme {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 1.1rem;
  transition: all var(--transition);
}
.btn-theme:hover { border-color: var(--gold); color: var(--gold); }

.btn-donate-header {
  display: none;
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-donate-header:hover { background: var(--green-dark); color: var(--white); }
@media (min-width: 1024px) { .btn-donate-header { display: inline-block; } }

/* Mobile menu toggle */
.btn-mobile-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text);
  font-size: 1.5rem;
}
@media (min-width: 1024px) { .btn-mobile-menu { display: none; } }

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: calc(var(--header-height) + var(--banner-height));
  left: 0; right: 0; bottom: 0;
  background: var(--bg-alt);
  z-index: 999;
  overflow-y: auto;
  padding: 1rem;
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.nav-mobile a:hover { color: var(--green); background: var(--gray-50); }
[data-theme="dark"] .nav-mobile a:hover { background: var(--gray-800); }
.nav-mobile .mobile-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 1rem 1rem 0.25rem;
  letter-spacing: 0.05em;
}
.nav-mobile .btn-donate-mobile {
  display: block;
  margin: 1rem;
  padding: 12px;
  text-align: center;
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  text-decoration: none;
  line-height: 1.4;
}
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: transparent; color: var(--green); border-color: var(--green); }
.btn-secondary:hover { background: var(--green); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-white { background: var(--white); color: var(--green); }
.btn-white:hover { background: var(--gray-100); transform: translateY(-1px); }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 1.5rem; }
.card-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; }
.card-text { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }
.card-meta { font-size: 0.8rem; color: var(--text-light); margin-top: 0.75rem; }
.card-tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: rgba(31,107,58,0.1);
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Grid layouts */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(31,107,58,0.82) 0%, rgba(14,124,134,0.75) 50%, rgba(27,36,48,0.6) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 2rem 1.25rem;
  max-width: 800px;
}
.hero-content h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  opacity: 0.95;
  margin-bottom: 2rem;
  font-weight: 400;
  line-height: 1.6;
}
.hero-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

/* ---------- Section Headers ---------- */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  margin-bottom: 0.5rem;
}
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { color: var(--text-muted); font-size: 1rem; }
.section-divider {
  width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--green), var(--teal));
  border-radius: 2px;
  margin: 1rem auto 0;
}

/* ---------- Impact Counters ---------- */
.counter-strip {
  background: linear-gradient(135deg, var(--green) 0%, var(--teal) 100%);
  color: var(--white);
  padding: 3rem 0;
}
.counter-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: center;
}
@media (min-width: 768px) { .counter-grid { grid-template-columns: repeat(4, 1fr); } }
.counter-item h3 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; color: var(--white); }
.counter-item p { font-size: 0.85rem; opacity: 0.9; margin-top: 0.25rem; }
.counter-item .verified-badge {
  display: inline-block;
  font-size: 0.65rem;
  background: rgba(255,255,255,0.2);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-top: 0.35rem;
}

/* ---------- Forms ---------- */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text);
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.92rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
  color: var(--text);
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14,124,134,0.15);
}
.form-input.error, .form-textarea.error { border-color: #DC2626; }
.form-error { font-size: 0.8rem; color: #DC2626; margin-top: 0.25rem; display: none; }
.form-input.error + .form-error, .form-textarea.error + .form-error { display: block; }
.form-textarea { min-height: 120px; resize: vertical; }

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
  background: rgba(31,107,58,0.05);
  border: 2px solid var(--green);
  border-radius: var(--radius-lg);
}
.form-success.show { display: block; }
.form-success .icon { font-size: 3rem; margin-bottom: 1rem; }
.form-success h3 { color: var(--green); margin-bottom: 0.5rem; }

/* ---------- Accordion ---------- */
.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--bg-alt);
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font-family: inherit;
  transition: background var(--transition);
}
.accordion-header:hover { background: var(--gray-100); }
[data-theme="dark"] .accordion-header:hover { background: var(--gray-800); }
.accordion-icon { font-size: 1.2rem; transition: transform var(--transition); }
.accordion-item.open .accordion-icon { transform: rotate(180deg); }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.accordion-item.open .accordion-body { max-height: 1000px; }
.accordion-body-inner { padding: 0 1.25rem 1.25rem; color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }

/* ---------- Tabs ---------- */
.tabs-nav {
  display: flex;
  border-bottom: 2px solid var(--border);
  overflow-x: auto;
  gap: 0;
}
.tab-btn {
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
  font-family: inherit;
}
.tab-btn:hover { color: var(--green); }
.tab-btn.active { color: var(--green); border-bottom-color: var(--green); }
.tab-panel { display: none; padding: 1.5rem 0; }
.tab-panel.active { display: block; }

/* ---------- Tags / Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
}
.badge-green { background: rgba(31,107,58,0.1); color: var(--green); }
.badge-teal { background: rgba(14,124,134,0.1); color: var(--teal); }
.badge-gold { background: rgba(230,168,23,0.1); color: var(--gold-dark); }
.badge-red { background: rgba(220,38,38,0.1); color: #DC2626; }

/* ---------- Lightbox ---------- */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: var(--radius); }
.lightbox-close {
  position: absolute;
  top: 1rem; right: 1.5rem;
  background: none; border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
}
.lightbox-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  font-size: 0.9rem;
  text-align: center;
  max-width: 80%;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: var(--radius);
}
.lightbox-nav.prev { left: 1rem; }
.lightbox-nav.next { right: 1rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.8);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; margin-top: 1rem; opacity: 0.8; }
.footer-heading {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.88rem; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  opacity: 0.7;
}
.footer-demo-notice {
  background: rgba(230,168,23,0.15);
  border: 1px solid rgba(230,168,23,0.3);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-bottom: 2rem;
  font-size: 0.8rem;
  color: var(--gold-light);
  text-align: center;
}

/* ---------- Cookie Notice ---------- */
.cookie-notice {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  background: var(--ink);
  color: var(--white);
  padding: 1rem 1.25rem;
  z-index: 1500;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
}
.cookie-notice.show { display: flex; }
.cookie-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.cookie-inner p { font-size: 0.85rem; margin: 0; flex: 1; }
.cookie-inner button {
  padding: 8px 20px;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
}

/* ---------- Page Header (inner pages) ---------- */
.page-header {
  background: linear-gradient(135deg, var(--green) 0%, var(--teal) 100%);
  color: var(--white);
  padding: 3.5rem 0 3rem;
  text-align: center;
}
.page-header h1 { color: var(--white); margin-bottom: 0.5rem; }
.page-header p { opacity: 0.9; max-width: 600px; margin: 0 auto; }
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  margin-bottom: 1rem;
  opacity: 0.8;
}
.breadcrumb a { color: rgba(255,255,255,0.8); }
.breadcrumb a:hover { color: var(--white); }

/* ---------- Gallery Grid ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.gallery-item:hover img { transform: scale(1.05); }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding: 2rem 0; }
.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--green), var(--teal));
  border-radius: 2px;
}
@media (min-width: 768px) { .timeline::before { left: 50%; transform: translateX(-50%); } }
.timeline-item {
  position: relative;
  padding-left: 50px;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .timeline-item { padding-left: 0; width: 50%; }
  .timeline-item:nth-child(odd) { padding-right: 40px; text-align: right; }
  .timeline-item:nth-child(even) { margin-left: 50%; padding-left: 40px; }
}
.timeline-dot {
  position: absolute;
  left: 12px;
  top: 5px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid var(--cream);
  box-shadow: var(--shadow);
}
@media (min-width: 768px) {
  .timeline-item:nth-child(odd) .timeline-dot { right: -9px; left: auto; }
  .timeline-item:nth-child(even) .timeline-dot { left: -9px; }
}
.timeline-year { font-weight: 800; color: var(--teal); font-size: 1.1rem; }
.timeline-text { font-size: 0.9rem; color: var(--text-muted); margin-top: 0.25rem; }
.timeline .verified-badge { font-size: 0.7rem; color: var(--text-light); font-style: italic; }

/* ---------- Donate ---------- */
.donate-amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.donate-amount-btn {
  padding: 12px;
  text-align: center;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  transition: all var(--transition);
  font-family: inherit;
}
.donate-amount-btn:hover, .donate-amount-btn.active {
  border-color: var(--green);
  background: rgba(31,107,58,0.05);
  color: var(--green);
}
.donate-demo-notice {
  background: rgba(220,38,38,0.08);
  border: 2px solid rgba(220,38,38,0.3);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: #DC2626;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* ---------- Team Cards ---------- */
.team-card {
  text-align: center;
  padding: 1.5rem;
}
.team-card .avatar {
  width: 120px; height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 4px solid var(--cream);
  box-shadow: var(--shadow-md);
}
.team-card h4 { margin-bottom: 0.15rem; }
.team-card .role { font-size: 0.85rem; color: var(--teal); font-weight: 500; }
.team-card .sample-label { font-size: 0.7rem; color: var(--text-light); font-style: italic; }

/* ---------- Partner Strip ---------- */
.partner-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}
.partner-logo {
  width: 140px; height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  padding: 0.5rem;
}
[data-theme="dark"] .partner-logo { background: var(--gray-800); }

/* ---------- Map ---------- */
.map-container {
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.map-container .leaflet-container { height: 100%; width: 100%; }

/* ---------- Search ---------- */
.search-box {
  position: relative;
  margin-bottom: 1.5rem;
}
.search-input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  font-size: 0.95rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--bg-alt);
  color: var(--text);
  font-family: inherit;
  transition: border-color var(--transition);
}
.search-input:focus { outline: none; border-color: var(--teal); }
.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

/* Filters */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.filter-select {
  padding: 8px 14px;
  font-size: 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
}

/* ---------- Tooltip ---------- */
.tooltip {
  position: relative;
  cursor: help;
  border-bottom: 1px dotted var(--text-muted);
}
.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 10px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.72rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  pointer-events: none;
  z-index: 10;
}
.tooltip:hover::after { opacity: 1; visibility: visible; }

/* ---------- Scroll Animations ---------- */
/* ---------- Scroll Animations (Always Visible by Default) ---------- */
.fade-in,
.fade-in-left,
.fade-in-right {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible,
.fade-in-left.visible,
.fade-in-right.visible {
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .fade-in, .fade-in-left, .fade-in-right {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Print Styles ---------- */
@media print {
  .demo-banner, .site-header, .site-footer, .cookie-notice,
  .lightbox-overlay, .btn, .nav-mobile { display: none !important; }
  body { background: white; color: black; font-size: 12pt; }
  .page-header { background: none; color: black; padding: 1rem 0; }
  .page-header h1 { color: black; }
  .card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  a { color: black; text-decoration: underline; }
  a::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}

/* ---------- SDG Icons ---------- */
.sdg-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.sdg-badge {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--white);
  border-radius: var(--radius-sm);
}
.sdg-1 { background: #E5243B; }
.sdg-2 { background: #DDA63A; }
.sdg-3 { background: #4C9F38; }
.sdg-4 { background: #C5192D; }
.sdg-5 { background: #FF3A21; }
.sdg-6 { background: #26BDE2; }
.sdg-8 { background: #A21942; }
.sdg-13 { background: #3F7E44; }

/* ---------- Misc ---------- */
.bg-cream { background: var(--cream); }
.bg-alt { background: var(--bg-alt); }
.bg-green-gradient { background: linear-gradient(135deg, var(--green), var(--teal)); }
.text-white { color: var(--white); }
.text-green { color: var(--green); }
.text-teal { color: var(--teal); }
.text-gold { color: var(--gold); }

/* Sample data label */
.sample-data {
  font-size: 0.7rem;
  color: var(--text-light);
  font-style: italic;
}

/* Placeholder image */
.placeholder-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 1rem;
}
.placeholder-img.haor { background: linear-gradient(135deg, #0E7C86, #1F6B3A); }
.placeholder-img.farm { background: linear-gradient(135deg, #2A8A4A, #E6A817); }
.placeholder-img.people { background: linear-gradient(135deg, #1F6B3A, #0A5F67); }
.placeholder-img.education { background: linear-gradient(135deg, #0E7C86, #1B2430); }
.placeholder-img.health { background: linear-gradient(135deg, #1F6B3A, #0E7C86); }
.placeholder-img.water { background: linear-gradient(135deg, #0A5F67, #0E7C86); }
.placeholder-img.market { background: linear-gradient(135deg, #E6A817, #1F6B3A); }
.placeholder-img.meeting { background: linear-gradient(135deg, #1B2430, #0E7C86); }

.event-date-box {
  background: var(--green);
  color: var(--white);
  text-align: center;
  padding: 0.75rem;
  border-radius: var(--radius);
  min-width: 70px;
}
.event-date-box .month { font-size: 0.75rem; text-transform: uppercase; font-weight: 600; }
.event-date-box .day { font-size: 1.5rem; font-weight: 800; line-height: 1; }

.job-card { border-left: 4px solid var(--green); }

/* Responsive adjustments */
@media (max-width: 639px) {
  .hero { min-height: 70vh; }
  .section-padding { padding: 2.5rem 0; }
  .counter-item h3 { font-size: 1.5rem; }
}



/* ========================================================
   Device-Adaptive Styles & Enhanced Polish (320px - 4K)
   ======================================================== */

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(31, 107, 58, 0.12);
  color: var(--paddy-green);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  border: 1px solid rgba(31, 107, 58, 0.25);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
[data-theme="dark"] .verified-badge {
  background: rgba(42, 138, 74, 0.22);
  color: #86EFAC;
  border-color: rgba(134, 239, 172, 0.3);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.table-responsive table {
  width: 100%;
  min-width: 600px;
  margin-bottom: 0;
}

/* Fluid responsive images & media */
img, svg, canvas {
  max-width: 100%;
  height: auto;
}

/* Cross-device responsive coverage (320px to 480px ultra-small & mobile phones) */
@media (max-width: 480px) {
  :root {
    --header-height: 58px;
  }
  .container, .container-sm, .container-lg {
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
  }
  .hero {
    min-height: calc(100vh - 90px);
    padding: 3rem 0;
  }
  .hero h1 {
    font-size: 1.65rem !important;
    line-height: 1.25 !important;
    letter-spacing: -0.02em;
  }
  .hero p {
    font-size: 0.92rem !important;
    line-height: 1.55;
  }
  .hero-ctas {
    flex-direction: column;
    width: 100%;
    gap: 0.6rem;
  }
  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 0.75rem 1rem;
  }
  .page-header {
    padding: 2.25rem 0 1.75rem;
  }
  .page-header h1 {
    font-size: 1.5rem !important;
    line-height: 1.25;
  }
  .page-header p {
    font-size: 0.88rem;
  }
  .counter-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.65rem !important;
  }
  .counter-item {
    padding: 0.85rem 0.5rem;
  }
  .counter-item h3 {
    font-size: 1.35rem !important;
  }
  .counter-item p {
    font-size: 0.75rem;
  }
  .donate-amount-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem;
  }
  .donate-amount-btn {
    padding: 0.65rem 0.5rem;
    font-size: 0.95rem;
  }
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 1.75rem;
  }
  .search-filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .search-input {
    width: 100% !important;
  }
  .filter-group {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
  }
  .filter-btn {
    flex: 1 1 auto;
    text-align: center;
    font-size: 0.78rem;
    padding: 0.4rem 0.6rem;
  }
  .card-body {
    padding: 1.15rem;
  }
  .section-padding {
    padding: 2.25rem 0;
  }
  .btn {
    min-height: 42px;
  }
  .nav-toggle {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .site-announcement-bar {
    font-size: 0.72rem;
    padding: 5px 0.6rem;
    line-height: 1.35;
  }
}

/* Tablet portrait and landscape (481px to 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .hero h1 { font-size: 2.1rem; }
  .counter-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .donate-amount-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Laptops & Wide displays (1440px+) */
@media (min-width: 1440px) {
  .container, .container-lg {
    max-width: 1280px;
  }
}



/* ==========================================================================
   ORA WORLD — UNIVERSAL CROSS-DEVICE COMPATIBILITY ENGINE
   Supports: 
   - 320px–360px: Ultra-compact mobile phones (iPhone SE 1st gen, Android Go)
   - 361px–480px: Modern standard smartphones (iPhone 12-16 Pro, Galaxy S, Pixel)
   - 481px–640px: Phablets, Foldable cover screens, large handsets
   - 641px–768px: Tablets portrait (iPad Mini, iPad 10.2")
   - 769px–1024px: Tablets landscape / iPad Pro / Surface Pro
   - 1025px–1280px: Small laptops & ultraportables (MacBook Air 13", Chromebooks)
   - 1281px–1920px: Standard desktop & Full HD monitors
   - 1921px+: 2K, 4K & Ultra-wide displays
   ========================================================================== */

/* Universal Root Box Sizing & Fluid Overflow Protection */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
  margin: 0;
  padding: 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Fluid Media Constraints */
img, svg, video, canvas, picture {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Announcement Bar: Flows naturally, zero risk of vertical collision */
.site-announcement-bar {
  position: relative;
  width: 100%;
  z-index: 998;
  padding: 7px max(1rem, env(safe-area-inset-left)) 7px max(1rem, env(safe-area-inset-right));
  font-size: 0.82rem;
  line-height: 1.4;
  text-align: center;
  word-break: break-word;
}

/* Sticky Header: Sticks precisely to top: 0 with safe z-index */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 max(1rem, env(safe-area-inset-right)) 0 max(1rem, env(safe-area-inset-left));
  width: 100%;
}

/* Touch Targets: minimum 44x44px ergonomic touch area */
.btn-mobile-menu,
.btn-lang,
.btn-theme,
.nav-toggle,
.donate-amount-btn,
.tab-btn,
.filter-btn,
.btn {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.btn-mobile-menu {
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border-radius: var(--radius);
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text);
}

.btn-lang {
  min-height: 38px;
  min-width: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-full);
}

.btn-theme {
  min-width: 38px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  border-radius: var(--radius-full);
}

/* Mobile Drawer Navigation */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  height: calc(100dvh - var(--header-height));
  background: var(--bg-alt);
  z-index: 999;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1rem max(1.25rem, env(safe-area-inset-right)) max(3rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
  box-shadow: var(--shadow-lg);
  border-top: 1px solid var(--border);
}

.nav-mobile.open {
  display: block;
  animation: mobileNavFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes mobileNavFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-mobile a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0.75rem 1rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}

.nav-mobile a:hover,
.nav-mobile a:active {
  background: var(--gray-100);
  color: var(--green);
}

.nav-mobile .mobile-section-title {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  padding: 1.25rem 0.5rem 0.35rem;
}

.nav-mobile .btn-donate-mobile {
  min-height: 48px;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  background: var(--green);
  color: var(--white);
  justify-content: center;
  font-weight: 700;
  border-radius: var(--radius-full);
}

/* iOS Input Zoom Prevention */
@media (max-width: 768px) {
  input, select, textarea, .form-input, .form-select, .form-textarea {
    font-size: 16px !important;
  }
}

/* Touch Friendly Scrollable Horizontal Lists */
.tabs-nav, .filter-group, .table-responsive {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

/* ==========================================================================
   BREAKPOINT 1: ULTRA-COMPACT SMARTPHONES (<= 360px)
   ========================================================================== */
@media (max-width: 360px) {
  :root {
    --header-height: 56px;
  }
  .header-inner {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .logo-link img {
    width: 34px;
    height: 34px;
  }
  .logo-name {
    font-size: 1rem;
  }
  .logo-tagline {
    display: none !important;
  }
  .header-actions {
    gap: 4px;
  }
  .btn-lang {
    min-width: 44px;
    padding: 0.25rem 0.45rem;
    font-size: 0.75rem;
  }
  .btn-theme {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
  }
  .btn-mobile-menu {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
  }
  .hero h1 {
    font-size: 1.45rem !important;
  }
  .hero p {
    font-size: 0.85rem !important;
  }
  .counter-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }
  .counter-item {
    padding: 1rem 0.75rem;
  }
  .counter-item h3 {
    font-size: 1.35rem !important;
  }
  .donate-amount-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.4rem;
  }
  .donate-amount-btn {
    padding: 0.6rem 0.35rem;
    font-size: 0.88rem;
  }
  .container, .container-sm, .container-lg {
    padding-left: 0.65rem !important;
    padding-right: 0.65rem !important;
  }
  .card-body {
    padding: 0.95rem;
  }
}

/* ==========================================================================
   BREAKPOINT 2: STANDARD MOBILE PHONES (361px to 480px)
   ========================================================================== */
@media (min-width: 361px) and (max-width: 480px) {
  :root {
    --header-height: 60px;
  }
  .logo-link img {
    width: 38px;
    height: 38px;
  }
  .logo-name {
    font-size: 1.1rem;
  }
  .logo-tagline {
    display: none !important;
  }
  .header-actions {
    gap: 6px;
  }
  .counter-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.75rem !important;
  }
  .donate-amount-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem;
  }
  .hero h1 {
    font-size: 1.7rem !important;
  }
}

/* Common Mobile Rules (< 640px) */
@media (max-width: 639px) {
  .hero-ctas {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }
  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 1.75rem;
  }
  .page-header {
    padding: 2.25rem 0 1.75rem;
  }
  .page-header h1 {
    font-size: 1.55rem !important;
  }
  .search-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .search-input {
    width: 100% !important;
  }
  .filter-group {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
  }
  .filter-btn {
    flex: 1 1 auto;
    text-align: center;
    padding: 0.5rem 0.75rem;
    min-height: 40px;
  }
}

/* ==========================================================================
   BREAKPOINT 3: PHABLETS & FOLDABLES (481px to 640px)
   ========================================================================== */
@media (min-width: 481px) and (max-width: 640px) {
  .logo-tagline {
    font-size: 0.6rem;
  }
  .counter-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .donate-amount-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   BREAKPOINT 4: TABLETS PORTRAIT (641px to 768px)
   ========================================================================== */
@media (min-width: 641px) and (max-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .counter-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .donate-amount-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
}

/* ==========================================================================
   BREAKPOINT 5: TABLETS LANDSCAPE / SMALL LAPTOPS (769px to 1100px)
   ========================================================================== */
@media (min-width: 769px) and (max-width: 1100px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  /* Desktop nav spacing optimization to prevent awkward wrapping */
  .nav-desktop a, .nav-dropdown-trigger {
    padding: 0.4rem 0.5rem;
    font-size: 0.82rem;
  }
  .logo-text .logo-tagline {
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Nav Switch Threshold: Ensure hamburger appears below 1100px so menu never overflows */
@media (max-width: 1100px) {
  .nav-desktop {
    display: none !important;
  }
  .btn-mobile-menu {
    display: flex !important;
  }
  .btn-donate-header {
    display: none !important;
  }
}
@media (min-width: 1101px) {
  .nav-desktop {
    display: flex !important;
  }
  .btn-mobile-menu {
    display: none !important;
  }
  .btn-donate-header {
    display: inline-flex !important;
  }
}

/* ==========================================================================
   BREAKPOINT 6: ULTRA-WIDE & 4K MONITORS (1921px+)
   ========================================================================== */
@media (min-width: 1921px) {
  .container {
    max-width: 1380px;
  }
  body {
    font-size: 17px;
  }
}

/* ==========================================================================
   DEVICE ORIENTATION: MOBILE LANDSCAPE
   ========================================================================== */
@media (max-height: 520px) and (orientation: landscape) {
  .hero {
    min-height: auto !important;
    padding: 3rem 0 !important;
  }
  .nav-mobile {
    padding-bottom: 4rem;
  }
}
