/* ==========================================================================
   Reach Community Foundation (RCF) - Master Stylesheet
   Modern, Responsive, Bilingual (AR/EN), Human-Centric Design System
   ========================================================================== */

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

:root {
  /* Brand Color Palette */
  --primary-rgb: 15, 76, 129;
  --primary: rgb(var(--primary-rgb));
  --primary-hover: #0c3d68;
  --primary-light: #e6f0fa;
  
  --secondary-rgb: 5, 150, 105;
  --secondary: rgb(var(--secondary-rgb));
  --secondary-hover: #047857;
  --secondary-light: #ecfdf5;

  --accent: #d97706;
  --accent-light: #fffbeb;

  /* Neutral Tones */
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-translucent: rgba(255, 255, 255, 0.85);
  --bg-alt: #f1f5f9;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --text-white: #ffffff;

  --border-color: #e2e8f0;
  --border-focus: #3b82f6;

  /* Typography */
  --font-ar: 'Alexandria', 'Tajawal', sans-serif;
  --font-en: 'Plus Jakarta Sans', sans-serif;

  /* Shadows & Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(15, 76, 129, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 20px 35px -10px rgba(15, 76, 129, 0.15), 0 10px 15px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 25px rgba(5, 150, 105, 0.3);

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
}

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

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

body {
  font-family: var(--font-ar);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body[lang="en"] {
  font-family: var(--font-en);
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  transition: var(--transition);
}

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

.section-padding {
  padding: 6rem 0;
}

/* Header & Navbar */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition);
  padding: 1.25rem 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.header.scrolled {
  padding: 0.75rem 0;
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.98);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.logo-img {
  height: 52px;
  width: auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  object-fit: contain;
  background: white;
  padding: 2px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.logo-brand:hover .logo-img {
  transform: scale(1.05);
  border-color: var(--primary);
}

.hero-logo-box {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: white;
  padding: 0.5rem 1.25rem 0.5rem 0.6rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

body[dir="rtl"] .hero-logo-box {
  padding: 0.5rem 0.6rem 0.5rem 1.25rem;
}

.hero-logo-img {
  height: 48px;
  width: auto;
  border-radius: 50%;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text .title {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--primary);
  line-height: 1.2;
}

.logo-text .subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  background: var(--bg-alt);
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link:hover {
  color: var(--primary);
  background: rgba(15, 76, 129, 0.06);
}

.nav-link.active {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  box-shadow: 0 4px 12px rgba(15, 76, 129, 0.22);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
}

.lang-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--primary);
  padding: 0.5rem;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 9rem;
  padding-bottom: 5rem;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(230, 240, 250, 0.7) 0%, rgba(248, 250, 252, 0.9) 100%);
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  filter: contrast(1.1);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: var(--secondary-light);
  color: var(--secondary);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.hero-subname {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
}

.hero-title span {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.25rem;
  max-width: 640px;
}

.hero-btns {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #1b5b94);
  color: white;
  box-shadow: 0 10px 20px -5px rgba(15, 76, 129, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px -5px rgba(15, 76, 129, 0.4);
}

.btn-secondary {
  background: white;
  color: var(--primary);
  border: 2px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-alt);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.hero-card-preview {
  position: relative;
}

.hero-img-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid white;
}

.hero-img-wrapper img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.hero-floating-stat {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: white;
  padding: 1.25rem 1.75rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--border-color);
}

body[dir="rtl"] .hero-floating-stat {
  right: auto;
  left: -20px;
}

.floating-stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--secondary-light);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.floating-stat-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

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

/* Stats Counter Bar */
.stats-bar {
  background: var(--bg-surface);
  border-y: 1px solid var(--border-color);
  padding: 3rem 0;
  box-shadow: var(--shadow-sm);
}

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

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

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

/* Section Header Component */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* About Us Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.about-p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 2rem;
  background: white;
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-inline-start: 4px solid var(--primary);
}

.about-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  width: 100%;
}

.about-feature-card {
  background: white;
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.about-feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.feature-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.feature-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Vision, Mission, Values Section */
.vmv-section {
  background: var(--bg-alt);
}

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

.vmv-card {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.vmv-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.vmv-card.vision-card {
  border-top: 5px solid var(--primary);
}

.vmv-card.mission-card {
  border-top: 5px solid var(--secondary);
}

.vmv-badge-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

.vision-card .vmv-badge-icon {
  background: var(--primary-light);
  color: var(--primary);
}

.mission-card .vmv-badge-icon {
  background: var(--secondary-light);
  color: var(--secondary);
}

.vmv-card-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.vmv-card-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.values-wrapper {
  background: white;
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.values-header-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 2rem;
  text-align: center;
}

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

.value-item {
  background: var(--bg-main);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.value-item:hover {
  background: white;
  border-color: var(--secondary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.value-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.value-name i {
  color: var(--secondary);
  font-size: 1rem;
}

.value-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Sectors Section */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

.sector-card {
  background: white;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.sector-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.sector-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary-light), #dbeafe);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  transition: var(--transition);
}

.sector-card:hover .sector-icon {
  background: var(--primary);
  color: white;
}

.sector-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.6rem;
}

.sector-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Partners Section */
.partners-section {
  background: var(--bg-alt);
}

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

.partner-card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition);
}

.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary);
}

.partner-logo-box {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-weight: 900;
  font-size: 1.8rem;
  letter-spacing: 1px;
}

.partner-logo-box.unicef { color: #1C9AD6; }
.partner-logo-box.anera { color: #007635; }
.partner-logo-box.heal { color: #E53935; }

.partner-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.partner-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Gallery Section */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  background: white;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

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

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  background: #cbd5e1;
}

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

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0) 70%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  color: white;
  opacity: 0;
  transition: var(--transition);
}

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

.gallery-caption {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
}

.gallery-zoom-icon {
  align-self: flex-end;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: auto;
  font-size: 0.9rem;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 900px;
  width: 100%;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.lightbox-content img {
  width: 100%;
  max-height: 70vh;
  object-fit: cover;
}

.lightbox-caption {
  padding: 1.5rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  background: white;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

/* Latest Activities Section */
.activities-section {
  background: var(--bg-alt);
}

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

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

.activity-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.activity-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
}

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

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

.activity-date {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(15, 76, 129, 0.9);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

body[dir="rtl"] .activity-date {
  left: auto;
  right: 1rem;
}

.activity-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.activity-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.activity-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  flex-grow: 1;
}

.activity-btn {
  align-self: flex-start;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.activity-btn:hover {
  color: var(--secondary);
  gap: 0.7rem;
}

/* Activity Modal */
.activity-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.activity-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.activity-modal-box {
  background: white;
  border-radius: var(--radius-lg);
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 1.5rem;
  color: var(--text-muted);
}

body[dir="rtl"] .modal-close-btn {
  right: auto;
  left: 1.25rem;
}

.modal-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1rem;
}

.modal-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
}

/* Contact Us Section */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-card {
  background: white;
  padding: 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.info-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.info-details h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.3rem;
}

.info-details p, .info-details a {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.info-details a:hover {
  color: var(--primary);
}

.social-bar-card {
  background: white;
  padding: 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.social-bar-card h4 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-btn:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

.contact-form-box {
  background: white;
  padding: 3rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-main);
  background: var(--bg-main);
  transition: var(--transition);
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(15, 76, 129, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

.form-alert {
  display: none;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: var(--secondary-light);
  color: var(--secondary);
  font-weight: 700;
  margin-top: 1rem;
  text-align: center;
}

/* Footer */
.footer {
  background: #091e36;
  color: var(--text-white);
  padding-top: 5rem;
  padding-bottom: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-col .footer-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: white;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col .footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--secondary);
  border-radius: 2px;
}

body[dir="rtl"] .footer-col .footer-title::after {
  left: auto;
  right: 0;
}

.footer-desc {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-top: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  color: var(--text-light);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: white;
  padding-inline-start: 6px;
}

.newsletter-box {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.newsletter-input {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-full);
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 0.9rem;
  flex-grow: 1;
}

.newsletter-btn {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  background: var(--secondary);
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Animations & Scroll Effects */
.animate-on-scroll {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll:not(.animated) {
  opacity: 0.1;
  transform: translateY(20px);
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Explicit Desktop Rules (769px and up) */
@media (min-width: 769px) {
  .nav-links {
    position: static !important;
    height: auto !important;
    background: var(--bg-alt) !important;
    flex-direction: row !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
    backdrop-filter: none !important;
  }

  .mobile-toggle {
    display: none !important;
  }
}

/* Admin Control Panel Styles */
.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.admin-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.admin-box {
  background: white;
  border-radius: var(--radius-lg);
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--bg-alt);
}

.admin-header h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.admin-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
  overflow-x: auto;
}

.admin-tab-btn {
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
}

.admin-tab-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.admin-tab-content {
  display: none;
}

.admin-tab-content.active {
  display: block;
}

.admin-form-group {
  margin-bottom: 1.25rem;
}

.admin-form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.admin-form-group input,
.admin-form-group textarea,
.admin-form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--bg-main);
}

.admin-form-group input:focus,
.admin-form-group textarea:focus,
.admin-form-group select:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
}

/* ==========================================================================
   Comprehensive Mobile & Responsive Breakpoints
   ========================================================================== */

/* Tablet (1024px and below) */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .sectors-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .activities-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
}

/* Mobile Devices (768px and below) */
@media (max-width: 768px) {
  /* Prevent Any Horizontal Overflow */
  body, html {
    overflow-x: hidden;
  }

  .container {
    padding: 0 1.25rem;
  }

  .section-padding {
    padding: 3.5rem 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  /* Header & Navigation */
  .header {
    padding: 0.75rem 0;
  }

  .logo-img {
    height: 44px;
  }

  .logo-text .title {
    font-size: 0.92rem;
  }

  .logo-text .subtitle {
    font-size: 0.7rem;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
    z-index: 1005;
    background: var(--bg-alt);
    border-radius: var(--radius-md);
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
    transition: all 0.35s ease-in-out;
  }

  .nav-links.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-link {
    font-size: 1.25rem;
    font-weight: 700;
  }

  /* Hero Section Mobile */
  .hero {
    padding-top: 7rem;
    padding-bottom: 3rem;
    min-height: auto;
  }

  .hero-subname {
    font-size: 0.95rem;
  }

  .hero-title {
    font-size: 1.85rem;
    line-height: 1.3;
    margin-bottom: 1rem;
  }

  .hero-desc {
    font-size: 0.98rem;
    margin-bottom: 1.5rem;
  }

  .hero-btns {
    width: 100%;
    flex-direction: column;
    gap: 0.75rem;
  }

  .btn {
    width: 100%;
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
  }

  .hero-img-wrapper img {
    height: 260px;
  }

  .hero-floating-stat {
    position: relative;
    inset: auto !important;
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
  }

  /* Stats Bar Mobile */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  /* About Section Mobile */
  .about-p {
    padding: 1.25rem;
    font-size: 1rem;
  }

  .about-features {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Vision, Mission, Values Mobile */
  .vmv-top-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .vmv-card {
    padding: 1.5rem;
  }

  .values-wrapper {
    padding: 1.5rem 1rem;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .value-item {
    grid-column: span 1 !important;
  }

  /* Sectors & Partners Mobile */
  .sectors-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .partners-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .partner-card {
    padding: 1.75rem 1rem;
  }

  /* Gallery Mobile */
  .gallery-filters {
    gap: 0.4rem;
  }

  .filter-btn {
    padding: 0.5rem 0.9rem;
    font-size: 0.82rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* Activities Mobile */
  .activities-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .activity-img-wrapper {
    height: 210px;
  }

  .activity-body {
    padding: 1.25rem;
  }

  .activity-title {
    font-size: 1.1rem;
  }

  /* Contact & Form Mobile */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-form-box {
    padding: 1.5rem 1.25rem;
  }

  .info-card {
    padding: 1.25rem;
  }

  /* Footer Mobile */
  .footer {
    padding-top: 3.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .newsletter-box {
    flex-direction: column;
    gap: 0.75rem;
  }

  .newsletter-btn {
    width: 100%;
  }

  /* Modals Mobile */
  .activity-modal-box, .admin-box {
    padding: 1.5rem 1.25rem;
    max-width: 95%;
  }

  .modal-title {
    font-size: 1.3rem;
  }

  .modal-text {
    font-size: 0.98rem;
  }
}

/* Small Smartphone Devices (480px and below) */
@media (max-width: 480px) {
  .logo-text .title {
    font-size: 0.85rem;
  }
  .hero-title {
    font-size: 1.65rem;
  }
  .section-title {
    font-size: 1.5rem;
  }
}


