/* ==========================================================================
   SANAD CHARITY FOUNDATION — جمعية سند الخيرية
   MOBILE-FIRST DESIGN SYSTEM & STYLESHEET
   Brand: Forest Dark Green (#0A5A3C), Vibrant Relief Green (#2E7D32),
          Golden Ochre (#D4A017), Light Cream (#F8F5E9), Pure White (#FFFFFF)
   ========================================================================== */

@font-face {
  font-family: 'Hacen Beirut';
  src: url('Hacen-Beirut-Light.ttf') format('truetype');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

/* ==========================================================================
   1. CSS Custom Properties / Design Tokens
   ========================================================================== */
:root {
  /* Official Brand Colors */
  --primary-dark: #0d2d21;
  /* RGB 10, 90, 60 / CMYK 89, 29, 79, 21 */
  --primary-green: #2E7D32;
  /* RGB 46, 125, 50 / CMYK 84, 22, 100, 10 */
  --primary-light: #3B9741;
  --primary-mint: #ECFDF5;
  --gold: #D4A017;
  /* RGB 212, 160, 23 / CMYK 17, 36, 100, 2 */
  --gold-light: #FBBF24;
  --gold-cream: #FCF5DE;
  --cream-bg: #F8F5E9;
  /* RGB 248, 245, 233 / CMYK 3, 4, 10, 0 */
  --slate-gray: #757375;
  /* RGB 117, 117, 117 / CMYK 56, 47, 46, 12 */

  /* Background Surfaces */
  --bg-page: #FAF8F2;
  --bg-surface: #FFFFFF;
  --text-main: #1C2E24;
  --text-muted: #52635A;
  --border-color: rgba(10, 90, 60, 0.12);

  /* Glassmorphism Tokens */
  --glass-card: rgba(255, 255, 255, 0.88);
  --glass-card-hover: rgba(255, 255, 255, 0.98);
  --glass-border: rgba(255, 255, 255, 0.9);
  --glass-border-gold: rgba(212, 160, 23, 0.45);

  /* Gradients */
  --emerald-gradient: linear-gradient(135deg, #0A5A3C 0%, #17734F 50%, #2E7D32 100%);
  --gold-gradient: linear-gradient(135deg, #FBBF24 0%, #D4A017 50%, #B4820E 100%);
  --light-crystal-gradient: linear-gradient(145deg, #FFFFFF 0%, #F8F5E9 100%);

  /* Shadows */
  --shadow-glass: 0 10px 30px -5px rgba(10, 90, 60, 0.08);
  --shadow-glass-hover: 0 20px 40px -10px rgba(10, 90, 60, 0.16);
  --shadow-gold-glow: 0 8px 24px rgba(212, 160, 23, 0.35);
  --shadow-float: 0 12px 35px rgba(0, 0, 0, 0.06);

  /* Typography */
  --font-arabic: 'Hacen Beirut', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-latin: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   DARK THEME COLOR TOKENS & OVERRIDES
   ========================================================================== */
[data-theme="dark"] {
  --primary-dark: #FFFFFF;
  --bg-page: #061A12;
  --bg-surface: #0B251A;
  --text-main: #ECFDF5;
  --text-muted: #94A3B8;
  --border-color: rgba(255, 255, 255, 0.14);

  --glass-card: rgba(11, 37, 26, 0.88);
  --glass-card-hover: rgba(16, 52, 37, 0.98);
  --glass-border: rgba(255, 255, 255, 0.16);
  --glass-border-gold: rgba(251, 191, 36, 0.5);

  --light-crystal-gradient: linear-gradient(145deg, #0B251A 0%, #061A12 100%);
  --shadow-glass: 0 10px 30px -5px rgba(0, 0, 0, 0.4);
  --shadow-glass-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
  --shadow-float: 0 12px 35px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] html {
  background-color: #061A12;
}

[data-theme="dark"] .stat-glass-card,
[data-theme="dark"] .project-card,
[data-theme="dark"] .news-card,
[data-theme="dark"] .glass-panel,
[data-theme="dark"] .why-card,
[data-theme="dark"] .modal-box,
[data-theme="dark"] .contact-card {
  background: rgba(12, 38, 28, 0.94) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #ECFDF5 !important;
}

[data-theme="dark"] .project-card .project-body,
[data-theme="dark"] .news-card-body {
  background: rgba(12, 38, 28, 0.96) !important;
}

[data-theme="dark"] .project-title a,
[data-theme="dark"] .news-title a {
  color: #FFFFFF !important;
}

[data-theme="dark"] .stat-number {
  color: #FFD54F !important;
}

[data-theme="dark"] .main-header.scrolled {
  background: rgba(6, 26, 18, 0.94) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
}

[data-theme="dark"] .main-header.scrolled .nav-link {
  color: #ECFDF5 !important;
}

[data-theme="dark"] .site-footer {
  background: #04120C !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #CBD5E1 !important;
}

[data-theme="dark"] .footer-title {
  color: #FFFFFF !important;
}

[data-theme="dark"] .form-control {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
  color: #FFFFFF !important;
  color-scheme: dark;
}

[data-theme="dark"] .filter-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #CBD5E1 !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

/* ── Dark Mode Button Contrasts ── */
[data-theme="dark"] .btn-glass,
.dark .btn-glass,
html.dark .btn-glass {
  background: rgba(14, 46, 33, 0.92) !important;
  color: #FFFFFF !important;
  border: 1.5px solid rgba(212, 160, 23, 0.6) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .btn-glass:hover,
.dark .btn-glass:hover,
html.dark .btn-glass:hover {
  background: rgba(22, 68, 49, 0.98) !important;
  color: #FFD54F !important;
  border-color: var(--gold) !important;
}

[data-theme="dark"] .btn-primary-green,
.dark .btn-primary-green,
html.dark .btn-primary-green {
  background: #0E6B47 !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

[data-theme="dark"] .btn-primary-green:hover,
.dark .btn-primary-green:hover,
html.dark .btn-primary-green:hover {
  background: #148055 !important;
  color: #FFFFFF !important;
}

[data-theme="dark"] .btn-primary-gold,
.dark .btn-primary-gold,
html.dark .btn-primary-gold {
  background: var(--gold-gradient) !important;
  color: #062619 !important;
  border: 1px solid rgba(255, 255, 255, 0.7) !important;
}

[data-theme="dark"] .cta-contact-btn,
.dark .cta-contact-btn,
html.dark .cta-contact-btn {
  background: #0B291C !important;
  color: #FFD54F !important;
  border: 1.5px solid rgba(251, 191, 36, 0.6) !important;
}

[data-theme="dark"] .cta-contact-btn:hover,
.dark .cta-contact-btn:hover,
html.dark .cta-contact-btn:hover {
  background: #113A28 !important;
  color: #FFE082 !important;
}

[data-theme="dark"] .main-header.scrolled .btn-glass,
.dark .main-header.scrolled .btn-glass,
html.dark .main-header.scrolled .btn-glass {
  background: rgba(14, 46, 33, 0.92) !important;
  border: 1.5px solid rgba(212, 160, 23, 0.6) !important;
  color: #FFFFFF !important;
}

[data-theme="dark"] .main-header.scrolled .btn-glass:hover,
.dark .main-header.scrolled .btn-glass:hover,
html.dark .main-header.scrolled .btn-glass:hover {
  background: rgba(22, 68, 49, 0.98) !important;
  color: #FFD54F !important;
}

[data-theme="dark"] .mobile-drawer {
  background: #0A2318 !important;
  color: #FFFFFF !important;
}

[data-theme="dark"] .mobile-drawer-link {
  color: #ECFDF5 !important;
}

[data-theme="dark"] .mobile-bottom-nav {
  background: rgba(6, 26, 18, 0.95) !important;
  border-top-color: rgba(255, 255, 255, 0.15) !important;
}

[data-theme="dark"] .mobile-nav-item {
  color: #94A3B8 !important;
}

[data-theme="dark"] .mobile-nav-item.active {
  color: #FFD54F !important;
}

/* Theme Toggle Button Styling */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: #FFFFFF;
  font-size: 1.15rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.32);
  border-color: rgba(255, 255, 255, 0.85);
  transform: translateY(-2px);
  color: #FFD54F;
}

.main-header.scrolled .theme-toggle-btn {
  background: rgba(10, 90, 60, 0.08);
  border-color: rgba(10, 90, 60, 0.2);
  color: var(--primary-dark);
}

[data-theme="dark"] .main-header.scrolled .theme-toggle-btn {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #FFD54F;
}

/* ==========================================================================
   2. Reset & Mobile Base Typography
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: var(--bg-page);
}

body {
  font-family: var(--font-arabic);
  background-color: transparent;
  color: var(--text-main);
  line-height: 1.65;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  position: relative;
  /* Mobile padding to prevent bottom floating bar overlap */
  padding-bottom: 78px;
}

.en-font {
  font-family: var(--font-latin);
  direction: ltr;
  display: inline-block;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Mobile-First Container */
.container {
  width: 100%;
  padding-left: 16px;
  padding-right: 16px;
  margin-left: auto;
  margin-right: auto;
}

/* Ambient Floating Glow Blobs */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

.ambient-gold {
  top: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.4) 0%, transparent 70%);
}

.ambient-emerald {
  bottom: 80px;
  left: -80px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(46, 125, 50, 0.3) 0%, transparent 70%);
}

/* ==========================================================================
   3. Mobile Glassmorphism Card System
   ========================================================================== */
.glass-panel {
  background: var(--glass-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  background: var(--glass-card-hover);
  border-color: var(--glass-border-gold);
  box-shadow: var(--shadow-glass-hover);
  transform: translateY(-3px);
}

/* Shimmer Light Reflection */
.glass-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: skewX(-25deg);
  pointer-events: none;
}

.glass-panel:hover::before {
  left: 180%;
  transition: left 0.85s ease-in-out;
}

/* Badges */
.badge-gold {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-cream);
  color: #9A6B0A;
  border: 1px solid var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 6px rgba(212, 160, 23, 0.15);
}

.badge-green {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-mint);
  color: var(--primary-dark);
  border: 1px solid rgba(10, 90, 60, 0.2);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   4. Mobile Header & Navigation (App-Bar Style)
   ========================================================================== */
.top-bar {
  display: none;
  /* Clean edge-to-edge header experience */
}

/* Main App Header - Floating Glassmorphic Navbar */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  /* background: rgba(255, 255, 255, 0.08); */
  /* backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px); */
  /* border-bottom: 1px solid rgba(255, 255, 255, 0.45); */
  /* box-shadow: 0 10px 32px rgba(0, 0, 0, 0.12); */
  padding: 12px 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.main-header.scrolled {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(10, 90, 60, 0.12);
  box-shadow: 0 12px 35px rgba(10, 90, 60, 0.15);
  padding: 8px 0;
}

.navbar-spacer {
  height: 86px;
  width: 100%;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .navbar-spacer {
    height: 78px;
  }
}

.page-breadcrumbs-bar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .page-breadcrumbs-bar {
  background: rgba(12, 38, 28, 0.85) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo img {
  height: 62px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.18));
  transition: var(--transition-fast);
}

.nav-links {
  display: none;
  /* Hidden on mobile base, handled by drawer */
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-actions .btn-primary-gold,
.nav-actions .btn-glass {
  display: none;
  /* Clean app header, CTA is in the bottom bar & drawer */
}

.mobile-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: var(--gold-cream);
  border: 1px solid var(--gold);
  cursor: pointer;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--primary-dark);
}

.mobile-toggle span {
  width: 20px;
  height: 2px;
  background-color: var(--primary-dark);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* ==========================================================================
   5. Mobile Buttons (Touch-Optimized >= 46px)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 22px;
  min-height: 46px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-smooth);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  border: none;
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary-gold {
  background: var(--gold-gradient);
  color: #0A5A3C;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-gold-glow);
  font-weight: 800;
}

.btn-primary-green {
  background: var(--primary-dark);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 20px rgba(10, 90, 60, 0.2);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  color: var(--primary-dark);
  border: 1.5px solid rgba(212, 160, 23, 0.4);
  box-shadow: var(--shadow-float);
}

.btn-sm {
  padding: 8px 16px;
  min-height: 38px;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 14px 28px;
  min-height: 50px;
  font-size: 1rem;
}

/* ==========================================================================
   6. Mobile Hero Section & Animated Ken-Burns Carousel
   ========================================================================== */
.hero-slider-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  height: 100vh;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.hero-slider-section>.container {
  max-width: 100%;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.hero-slider-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100svh;
  border-radius: 0;
  border: none;
  box-shadow: none;
  overflow: hidden;
  display: flex;
  align-items: center;
  flex: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 110px 20px 60px;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* ==========================================================================
   GLOBAL FIXED CINEMATIC BACKGROUND (ALWAYS IN BACKGROUND BEHIND EVERYTHING)
   ========================================================================== */
.site-fixed-background {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  z-index: -9999 !important;
  pointer-events: none !important;
  overflow: hidden;
}

.fixed-bg-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 6s cubic-bezier(0.1, 1, 0.1, 1);
  transform: scale(1);
  will-change: transform, opacity;
}

.fixed-bg-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1.08);
}

.fixed-bg-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 90, 60, 0.58) 0%, rgba(6, 40, 27, 0.52) 45%, rgba(0, 0, 0, 0.72) 100%);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}

.hero-slide-bg,
.hero-slide-overlay {
  display: none;
}

/* Full-Screen Frosted Glass Capsule */
.hero-slide-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 680px;
  padding: 36px 28px;
  text-align: center;
}

.hero-slide-content h1 {
  font-size: clamp(1.6rem, 5.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.3;
  color: #FFFFFF;
  margin-bottom: 14px;
  -webkit-text-stroke: 0.5px rgba(255, 255, 255, 0.6);
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

.hero-slide-content h1 span.gold-highlight {
  color: #FFD54F;
  -webkit-text-stroke: 0.5px rgba(255, 213, 79, 0.4);
  text-shadow: 0 0 20px rgba(255, 213, 79, 0.55), 0 4px 16px rgba(0, 0, 0, 0.45);
}

.hero-slide-content p {
  font-size: clamp(0.92rem, 2vw, 1.05rem);
  color: #F8F5E9;
  line-height: 1.7;
  margin-bottom: 24px;
  font-weight: 500;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.hero-slide-content .btn {
  width: 100%;
  margin-bottom: 8px;
}

/* Slider Controls */
.slider-dots {
  position: absolute;
  bottom: 24px;
  right: 50%;
  transform: translateX(50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slider-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 1.5px solid #FFFFFF;
  cursor: pointer;
  transition: var(--transition-fast);
}

.slider-dot.active {
  width: 28px;
  border-radius: var(--radius-pill);
  background: var(--gold-gradient);
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.6);
}

.slider-progress-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 990;
  pointer-events: none;
}

.slider-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--gold-gradient);
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.8), 0 0 4px rgba(212, 160, 23, 0.9);
}

/* Page Hero for Inner Pages */
.page-hero {
  position: relative;
  padding: 150px 0 65px;
  background: linear-gradient(135deg, rgba(10, 90, 60, 0.96) 0%, rgba(23, 115, 79, 0.94) 50%, rgba(46, 125, 50, 0.92) 100%);
  color: #FFFFFF;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(10, 90, 60, 0.15);
}

.page-hero .breadcrumbs {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--gold-cream);
  margin-bottom: 12px;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.7rem);
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 12px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-hero p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================================================
   7. Mobile Stats Bar (2x2 Compact Grid)
   ========================================================================== */
.stats-bar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.stat-glass-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  box-shadow: var(--shadow-glass);
}

.stat-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--gold-cream);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.stat-number {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1;
}

.stat-label {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 700;
  line-height: 1.3;
}

/* ==========================================================================
   8. Section Headers & Filters
   ========================================================================== */
.section-header {
  text-align: center;
  margin-bottom: 28px;
}

.section-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0A5A3C;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 6px;
  text-shadow: -1px -1px 0 #FFFFFF, 1px -1px 0 #FFFFFF, -1px 1px 0 #FFFFFF, 1px 1px 0 #FFFFFF, 0 0 10px #FFFFFF, 0 0 20px #FFFFFF;
}

.section-title {
  font-size: clamp(1.35rem, 5.5vw, 1.85rem);
  font-weight: 800;
  color: #0A5A3C;
  line-height: 1.35;
  margin-bottom: 8px;
  /* text-shadow: -1.5px -1.5px 0 #FFFFFF, 1.5px -1.5px 0 #FFFFFF, -1.5px 1.5px 0 #FFFFFF, 1.5px 1.5px 0 #FFFFFF, 0 0 12px #FFFFFF, 0 0 25px #FFFFFF, 0 0 35px #FFFFFF; */
}

.section-desc {
  font-size: 1.3rem;
  color: #06281B;
  font-weight: 700;
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto;
  /* text-shadow: -1px -1px 0 #FFFFFF, 1px -1px 0 #FFFFFF, -1px 1px 0 #FFFFFF, 1px 1px 0 #FFFFFF, 0 0 10px #FFFFFF, 0 0 18px #FFFFFF; */
}

.gold-divider {
  width: 50px;
  height: 3px;
  background: var(--gold-gradient);
  border-radius: var(--radius-pill);
  margin: 12px auto 0;
}

/* Horizontal Touch Scroll for Filter Tabs */
.filter-nav {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  justify-content: flex-start;
  gap: 8px;
  padding-bottom: 10px;
  margin-bottom: 24px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.filter-nav::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  white-space: nowrap;
  padding: 8px 16px;
  min-height: 38px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  flex-shrink: 0;
}

.filter-btn.active {
  background: var(--primary-dark);
  color: #FFFFFF;
  border-color: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(10, 90, 60, 0.2);
}

/* ==========================================================================
   9. Cards & Grids (Projects, News, Media)
   ========================================================================== */
.projects-grid,
.news-grid,
.pillars-grid,
.team-grid,
.split-grid,
.contact-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* Center single news item */
.news-grid.news-grid-single,
.news-grid:has(> .news-card:only-child) {
  display: flex !important;
  justify-content: center !important;
  width: 100%;
}

.news-grid.news-grid-single .news-card,
.news-grid:has(> .news-card:only-child) .news-card {
  max-width: 580px;
  width: 100%;
  margin: 0 auto;
}

.news-grid.news-grid-single .news-thumb,
.news-grid:has(> .news-card:only-child) .news-thumb {
  height: 260px;
}

@media (max-width: 640px) {
  .news-grid.news-grid-single .news-thumb,
  .news-grid:has(> .news-card:only-child) .news-thumb {
    height: 200px;
  }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 640px) {

  .team-grid,
  .contact-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .pillars-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

@media (min-width: 1024px) {
  .split-grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    align-items: center;
  }

  .team-grid,
  .contact-cards-grid,
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.project-card,
.news-card {
  background: var(--glass-card);
  backdrop-filter: blur(15px);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-glass);
}

.project-thumb,
.news-thumb {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.project-thumb img,
.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-body,
.news-body {
  padding: 20px 16px;
}

.project-title,
.news-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.35;
  margin-bottom: 8px;
}

.project-excerpt,
.news-excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.progress-wrap {
  margin-bottom: 14px;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 6px;
}

.progress-bar-bg {
  height: 8px;
  background: rgba(10, 90, 60, 0.08);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--gold-gradient);
  border-radius: var(--radius-pill);
}

/* Live Rotating Gallery Carousel */
.live-gallery-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  /* padding: 12px; */
}

.live-gallery-track {
  display: flex;
  gap: 12px;
  transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

.live-gallery-item {
  flex: 0 0 88%;
  height: 240px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-float);
  cursor: pointer;
}

.live-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.live-gallery-caption {
  position: absolute;
  inset: auto 10px 10px 10px;
  background: rgba(10, 90, 60, 0.9);
  backdrop-filter: blur(10px);
  border: 1.5px solid #FFFFFF;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: #FFFFFF;
}

.live-gallery-caption strong {
  font-size: 0.88rem;
  -webkit-text-stroke: 0.3px #FFFFFF;
}

/* ==========================================================================
   10. Mobile Interactive Donation Calculator
   ========================================================================== */
.calculator-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

@media (min-width: 1024px) {
  .calculator-grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
  }
}

.donation-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}

.donation-tab {
  padding: 10px 6px;
  min-height: 44px;
  border: 1px solid var(--border-color);
  background: #FFFFFF;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--primary-dark);
  cursor: pointer;
}

.donation-tab.active {
  background: var(--primary-dark);
  color: #FFFFFF;
  border-color: var(--primary-dark);
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.amount-btn {
  min-height: 46px;
  background: #FFFFFF;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 1rem;
  color: var(--primary-dark);
  cursor: pointer;
}

.amount-btn.active {
  background: var(--gold-cream);
  border-color: var(--gold);
  color: #9A6B0A;
}

.custom-amount-wrap {
  position: relative;
  margin-bottom: 14px;
}

.custom-amount-wrap input {
  width: 100%;
  padding: 12px 14px;
  min-height: 48px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-weight: 700;
}

.currency-tag {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 800;
  color: var(--gold);
}

/* ==========================================================================
   11. Mobile App Floating Bottom Nav & Drawer
   ========================================================================== */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1.5px solid rgba(212, 160, 23, 0.35);
  box-shadow: 0 -8px 25px rgba(10, 90, 60, 0.08);
  z-index: 1500;
  padding: 6px 12px calc(6px + env(safe-area-inset-bottom));
}

.mobile-bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 6px;
}

.mobile-nav-item i {
  font-size: 1.35rem;
  line-height: 1;
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
  color: var(--primary-dark);
}

.mobile-nav-item.active i {
  color: #D4A017;
}

.mobile-nav-donate-center {
  margin-top: -22px;
  background: var(--gold-gradient);
  color: #0A5A3C !important;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(212, 160, 23, 0.45);
  border: 3px solid #FFFFFF;
}

.mobile-nav-donate-center i {
  font-size: 1.45rem !important;
  color: #0A5A3C !important;
}

/* Mobile Slide Drawer */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 90, 60, 0.5);
  backdrop-filter: blur(8px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.mobile-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: 82%;
  max-width: 320px;
  background: #FFFFFF;
  z-index: 2001;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 24px 20px;
  overflow-y: auto;
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 16px;
}

.mobile-drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--primary-dark);
}

.mobile-drawer-link:hover,
.mobile-drawer-link.active {
  background: var(--gold-cream);
  color: #9A6B0A;
}

.mobile-drawer-link i {
  color: var(--gold);
  font-size: 1.2rem;
  width: 22px;
}

/* Live Donation Toast on Mobile */
.live-donation-toast {
  position: fixed;
  bottom: 78px;
  left: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  z-index: 1400;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition-smooth);
  pointer-events: none;
}

.live-donation-toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ==========================================================================
   12. Forms & Footer
   ========================================================================== */
.form-group {
  margin-bottom: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

@media (min-width: 640px) {
  .form-row-2 {
    grid-template-columns: 1fr 1fr;
  }

  .form-row-3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.form-label {
  display: block;
  font-weight: 800;
  font-size: 0.92rem;
  color: #0B3B2A;
  margin-bottom: 7px;
}

/* حقول الإدخال العامة: حدود سميكة داكنة وخلفية بيضاء ليسهل تمييزها في الوضع الفاتح،
   مع تظليل واضح عند التمرير والتركيز (نفس تصميم استمارة بوابة الطلبات) */
.form-control {
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 11px 14px;
  background: #FFFFFF;
  border: 2px solid #6F8F80;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  line-height: 1.5;
  color: #10241A;
  box-shadow: inset 0 1px 2px rgba(16, 36, 26, 0.06);
  transition: border-color .15s, box-shadow .15s;
  color-scheme: light;
}

.form-control::placeholder { color: #8A9A92; opacity: 1; }
.form-control:hover { border-color: #2F6B52; }
.form-control:focus { outline: none; border-color: #0F7A4D; box-shadow: 0 0 0 4px rgba(15, 122, 77, 0.22); }
select.form-control { cursor: pointer; }
textarea.form-control { min-height: 96px; resize: vertical; }

.site-footer {
  background: rgba(255, 255, 255, 0.95);
  border-top: 1px solid var(--border-color);
  padding: 40px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-social {
  display: flex;
  gap: 8px;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold-cream);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 18px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 90, 60, 0.6);
  backdrop-filter: blur(12px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  max-width: 550px;
  width: 100%;
  overflow: hidden;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  border: 1.5px solid rgba(212, 160, 23, 0.3);
}

.modal-close {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  border: none;
}

/* Scroll Reveal Tokens */
[data-reveal] {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

[data-reveal="up"] {
  transform: translateY(30px);
}

[data-reveal="left"] {
  transform: translateX(-30px);
}

[data-reveal="right"] {
  transform: translateX(30px);
}

[data-reveal="zoom"] {
  transform: scale(0.94);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

/* ==========================================================================
   13. TABLET PROGRESSIVE ENHANCEMENT (min-width: 768px)
   ========================================================================== */
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }

  .container {
    max-width: 720px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .projects-grid,
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-bar-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .stat-glass-card {
    flex-direction: row;
    text-align: right;
    padding: 18px 16px;
  }

  .live-gallery-item {
    flex: 0 0 calc(50% - 8px);
  }

  .amount-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .donation-tabs {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ==========================================================================
   14. DESKTOP PROGRESSIVE ENHANCEMENT (min-width: 1024px)
   ========================================================================== */
@media (min-width: 1024px) {
  body {
    padding-bottom: 0;
    /* Remove mobile bottom bar spacing */
  }

  .container {
    max-width: 1140px;
  }

  /* Show Desktop Navigation */
  .nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
  }

  .nav-link {
    font-weight: 700;
    font-size: 1.1rem;
    color: #FFFFFF;
    text-shadow: none;
    padding: 6px 0;
    position: relative;
    transition: color 0.3s ease;
  }

  .nav-link:hover,
  .nav-link.active {
    color: #FDE047;
  }

  .main-header.scrolled .nav-link {
    color: var(--primary-dark);
    text-shadow: none;
  }

  .main-header.scrolled .nav-link:hover,
  .main-header.scrolled .nav-link.active {
    color: var(--primary-green);
  }

  .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0%;
    height: 2px;
    background: var(--gold-gradient);
    transition: width 0.3s ease;
  }

  .nav-link:hover::after,
  .nav-link.active::after {
    width: 100%;
  }

  .nav-actions .btn-primary-gold,
  .nav-actions .btn-glass {
    display: inline-flex;
  }

  .mobile-toggle,
  .mobile-bottom-nav {
    display: none !important;
  }

  .top-bar-links {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .top-bar-inner {
    justify-content: space-between;
  }

  /* Desktop Hero Enhancement - 100% Full Screen Viewport */
  .hero-slider-section {
    min-height: 100vh;
    height: 100vh;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hero-slider-wrap {
    min-height: 100vh;
    height: 100vh;
    width: 100%;
  }

  .hero-slide {
    justify-content: flex-start;
    padding: 130px 8% 60px;
  }

  .hero-slide-content {
    max-width: 720px;
    text-align: right;
    padding: 48px 54px;
    margin: 0;
  }

  .hero-slide-content h1 {
    font-size: 3rem;
  }

  .hero-slide-content .btn {
    width: auto;
  }

  /* 3-Column Projects & News on Desktop */
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .live-gallery-item {
    flex: 0 0 calc(33.333% - 10px);
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }

  .footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

/* ==========================================================================
   15. WIDE DESKTOP (min-width: 1280px)
   ========================================================================== */
@media (min-width: 1280px) {
  .container {
    max-width: 1240px;
  }

  .hero-slide-content h1 {
    font-size: 3.2rem;
  }
}

/* ==========================================================================
   16. BILINGUAL / LTR (ENGLISH) ADAPTATIONS
   ========================================================================== */
html[dir="ltr"] body,
body.lang-en {
  font-family: var(--font-latin);
  direction: ltr;
  text-align: left;
}

html[dir="ltr"] .hero-slide-content {
  text-align: left;
}

@media (min-width: 1024px) {
  html[dir="ltr"] .hero-slide {
    justify-content: flex-start;
  }
}

html[dir="ltr"] .footer-col,
html[dir="ltr"] .project-card-body,
html[dir="ltr"] .news-card-body,
html[dir="ltr"] .split-text {
  text-align: left;
}

html[dir="ltr"] .top-bar-slogan,
html[dir="ltr"] .section-subtitle,
html[dir="ltr"] .breadcrumbs {
  direction: ltr;
}

/* ==========================================================================
   17. GLASSMORPHISM BUTTONS WITH SEMI-SHARP CORNERS (HEADER & NAV)
   ========================================================================== */
.main-header .nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Universal Header Button Sizing & Typography */
.main-header .nav-actions .btn,
.main-header .lang-switch-btn {
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  padding: 0 16px !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

.main-header .nav-actions .btn i,
.main-header .lang-switch-btn i {
  font-size: 1rem;
}

.lang-switch-btn {
  background: rgba(255, 255, 255, 0.22) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.55) !important;
  color: #FFFFFF !important;
  font-family: var(--font-latin), var(--font-arabic);
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12), inset 0 1px 1px rgba(255, 255, 255, 0.5);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-switch-btn:hover {
  background: rgba(255, 255, 255, 0.42) !important;
  border-color: rgba(255, 255, 255, 0.9) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18), inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

.main-header.scrolled .lang-switch-btn {
  background: rgba(255, 255, 255, 0.85) !important;
  border: 1.5px solid rgba(10, 90, 60, 0.2) !important;
  color: var(--primary-dark) !important;
}

.main-header.scrolled .lang-switch-btn:hover {
  background: #FFFFFF !important;
  border-color: var(--gold) !important;
  box-shadow: var(--shadow-gold-glow);
}

[data-theme="dark"] .main-header.scrolled .lang-switch-btn {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  color: #ECFDF5 !important;
}

[data-theme="dark"] .main-header.scrolled .lang-switch-btn:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: var(--gold) !important;
  box-shadow: var(--shadow-gold-glow);
}

/* Header Glassmorphic Donate Now Button with Semi-Sharp Edges */
.main-header .btn-primary-gold {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.45) 0%, rgba(212, 160, 23, 0.35) 100%) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 235, 170, 0.7) !important;
  color: #FFFFFF !important;
  box-shadow: 0 6px 22px rgba(212, 160, 23, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.65) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.main-header .btn-primary-gold:hover {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.75) 0%, rgba(212, 160, 23, 0.65) 100%) !important;
  border-color: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 10px 28px rgba(212, 160, 23, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.85) !important;
  transform: translateY(-2px);
}

.main-header.scrolled .btn-primary-gold {
  background: var(--gold-gradient) !important;
  color: #0A5A3C !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  box-shadow: var(--shadow-gold-glow) !important;
}

/* Header Glassmorphic Request Relief Button */
.main-header .btn-glass {
  background: rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.5) !important;
  color: #FFFFFF !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1), inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.main-header .btn-glass:hover {
  background: rgba(255, 255, 255, 0.38) !important;
  border-color: rgba(255, 255, 255, 0.85) !important;
  transform: translateY(-2px);
}

.main-header.scrolled .btn-glass {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1.5px solid rgba(212, 160, 23, 0.4) !important;
  color: var(--primary-dark) !important;
}

/* ==========================================================================
   20. HOMEPAGE SECTIONS: 100% NATURAL, SMOOTH CONTINUOUS SCROLL
   ========================================================================== */

html,
body {
  scroll-snap-type: none !important;
}

.hero-slider-section {
  min-height: 85vh;
  min-height: 85svh;
  height: auto;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slider-wrap {
  min-height: 85vh;
  min-height: 85svh;
}

.hero-slide {
  padding: 120px 20px 80px;
}

@media (min-width: 1024px) {
  .hero-slider-section {
    min-height: 90vh;
    min-height: 90svh;
  }

  .hero-slider-wrap {
    min-height: 90vh;
    min-height: 90svh;
  }

  .hero-slide {
    padding-top: 140px;
    padding-bottom: 90px;
  }
}

/* ==========================================================================
   21. FLOATING STAFF PORTAL BUTTON (بوابة الموظفين)
   ========================================================================== */
.floating-staff-portal {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 18px;
  height: 40px;
  background: rgba(10, 90, 60, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1.5px solid rgba(212, 160, 23, 0.7);
  border-radius: 10px;
  color: #FFFFFF !important;
  font-family: var(--font-arabic);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25), 0 0 15px rgba(212, 160, 23, 0.2);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-staff-portal i {
  font-size: 1.15rem;
  color: #FFD54F;
  transition: transform 0.3s ease;
}

.floating-staff-portal:hover {
  transform: translateY(-3px) scale(1.03);
  background: rgba(13, 115, 77, 0.96);
  border-color: #FBBF24;
  box-shadow: 0 12px 30px rgba(10, 90, 60, 0.4), 0 0 20px rgba(251, 191, 36, 0.35);
  color: #FFFFFF !important;
}

.floating-staff-portal:hover i {
  transform: rotate(15deg);
}

/* LTR Positioning */
html[dir="ltr"] .floating-staff-portal,
[dir="ltr"] .floating-staff-portal {
  left: auto;
  right: 24px;
}

@media (max-width: 768px) {
  .floating-staff-portal {
    bottom: 84px !important;
    left: 16px !important;
    z-index: 10001 !important;
    padding: 7px 14px;
    height: 38px;
    font-size: 0.8rem;
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 12px rgba(212, 160, 23, 0.4) !important;
  }

  html[dir="ltr"] .floating-staff-portal,
  [dir="ltr"] .floating-staff-portal {
    left: auto !important;
    right: 16px !important;
  }
}

/* ==========================================================================
   22. FLOATING EXTERNAL PORTAL BUTTON (زر عائم لبوابة الروابط الخارجية)
   ========================================================================== */
.floating-portal-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  height: 40px;
  background: linear-gradient(135deg, rgba(14, 46, 33, 0.94) 0%, rgba(20, 83, 45, 0.96) 100%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1.5px solid rgba(212, 160, 23, 0.8);
  border-radius: 10px;
  color: #FFFFFF !important;
  font-family: var(--font-arabic, 'Cairo', 'Tajawal', sans-serif);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.28), 0 0 16px rgba(212, 160, 23, 0.25);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-portal-btn i {
  font-size: 1.18rem;
  color: #FFD54F;
  transition: transform 0.3s ease;
}

.floating-portal-btn .pulse-dot {
  width: 7px;
  height: 7px;
  background: #34D399;
  border-radius: 50%;
  box-shadow: 0 0 8px #34D399;
  animation: portalDotPulse 2s infinite ease-in-out;
}

@keyframes portalDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(1.35); }
}

.floating-portal-btn:hover {
  transform: translateY(-3px) scale(1.03);
  background: linear-gradient(135deg, rgba(22, 68, 49, 0.98) 0%, rgba(27, 94, 32, 0.98) 100%);
  border-color: #FBBF24;
  box-shadow: 0 12px 30px rgba(10, 90, 60, 0.45), 0 0 22px rgba(251, 191, 36, 0.4);
  color: #FFFFFF !important;
}

.floating-portal-btn:hover i {
  transform: rotate(-15deg) scale(1.15);
}

/* LTR Positioning */
html[dir="ltr"] .floating-portal-btn,
[dir="ltr"] .floating-portal-btn {
  right: auto;
  left: 24px;
}

@media (max-width: 768px) {
  .floating-portal-btn {
    bottom: 84px !important;
    right: 16px !important;
    z-index: 10001 !important;
    padding: 7px 13px;
    height: 38px;
    font-size: 0.78rem;
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 12px rgba(212, 160, 23, 0.4) !important;
  }

  html[dir="ltr"] .floating-portal-btn,
  [dir="ltr"] .floating-portal-btn {
    right: auto !important;
    left: 16px !important;
  }
}

/* Ensure Request Relief button is completely hidden across all public pages */
.btn-request-relief {
  display: none !important;
}