/* =============================================
   CDARUW Website - Main Stylesheet
   RTL Arabic - Mobile First
   ============================================= */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

/* ---- CSS Variables ---- */
:root {
  --primary: #1E3A8A;
  --primary-dark: #162d6e;
  --primary-light: #2b50c0;
  --gold: #D4AF37;
  --gold-dark: #b8961f;
  --green: #10B981;
  --green-dark: #0d9668;
  --red: #ef4444;
  --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;
  --white: #ffffff;
  --font: 'Cairo', sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.14);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.18);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --transition: all 0.3s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  direction: rtl;
  text-align: right;
  color: var(--gray-700);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.7;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font); border: none; outline: none; }
input, textarea, select { font-family: var(--font); direction: rtl; }

/* ---- Utility Classes ---- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-gold { color: var(--gold); }
.text-green { color: var(--green); }
.text-white { color: var(--white); }
.bg-primary { background: var(--primary); }
.bg-light { background: var(--gray-50); }
.bg-dark { background: var(--gray-900); }
.fw-bold { font-weight: 700; }
.fw-semibold { font-weight: 600; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

/* ---- Section Header ---- */
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header .section-badge {
  display: inline-block;
  background: rgba(30,58,138,0.08);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  letter-spacing: 0.05em;
  margin-bottom: 0.8rem;
}
.section-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 0.8rem;
  line-height: 1.3;
}
.section-header h2 span { color: var(--primary); }
.section-header p {
  font-size: 1rem;
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto;
}
.section-divider {
  width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  border-radius: 2px;
  margin: 1rem auto 0;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}
.btn-outline-white {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--primary);
}
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }

/* ============================================
   HEADER / NAVBAR
   ============================================ */
#header {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
#header.scrolled {
  box-shadow: var(--shadow);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.navbar-brand img {
  height: 50px;
  width: auto;
  object-fit: contain;
}
.navbar-brand .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.navbar-brand .brand-name {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary);
}
.navbar-brand .brand-sub {
  font-size: 0.7rem;
  color: var(--gray-500);
}
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-link {
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-700);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: rgba(30,58,138,0.06);
}
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 0.5rem;
  cursor: pointer;
}
.navbar-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: var(--transition);
}
.navbar-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.navbar-toggle.active span:nth-child(2) { opacity: 0; }
.navbar-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Sidebar Menu */
.nav-sidebar {
  position: fixed;
  top: 0; left: -100%;
  width: 280px;
  height: 100vh;
  background: var(--primary);
  z-index: 1100;
  direction: ltr;
  text-align: left;
  transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
}
.nav-sidebar.open { left: 0; }
.nav-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.nav-sidebar-header img { height: 40px; }
.nav-sidebar-close {
  background: none;
  color: var(--white);
  font-size: 1.5rem;
  padding: 0.25rem;
}
.nav-sidebar-links {
  padding: 1rem 0;
}
.nav-sidebar-links a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.5rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  font-weight: 600;
  border-right: 3px solid transparent;
  transition: var(--transition);
}
.nav-sidebar-links a:hover,
.nav-sidebar-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
  border-right-color: var(--gold);
}
.nav-sidebar-links a i { width: 20px; }
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1099;
}
.nav-overlay.show { display: block; }

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  position: relative;
  margin-top: 70px;
  height: calc(100vh - 70px);
  min-height: 500px;
  max-height: 800px;
  overflow: hidden;
}
.hero-swiper { width: 100%; height: 100%; }
.hero-slide {
  position: relative;
  width: 100%;
  height: 100%;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30,58,138,0.85) 0%, rgba(30,58,138,0.4) 100%);
}
.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
}
.hero-content .container { width: 100%; }
.hero-text { max-width: 650px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold);
  color: var(--white);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.hero-text h1 {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.hero-text p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 2rem;
  line-height: 1.8;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hero-pagination {
  position: absolute !important;
  bottom: 1.5rem !important;
  right: 50% !important;
  transform: translateX(50%) !important;
  z-index: 10;
}
.hero-pagination .swiper-pagination-bullet {
  width: 10px; height: 10px;
  background: rgba(255,255,255,0.5);
  opacity: 1;
}
.hero-pagination .swiper-pagination-bullet-active {
  background: var(--gold);
  width: 28px;
  border-radius: 5px;
}
.hero-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  color: var(--white);
  border: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}
.hero-nav-btn:hover { background: var(--gold); }
.hero-prev { right: 1rem; }
.hero-next { left: 1rem; }

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
  background: var(--primary);
  padding: 3.5rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.stat-card {
  text-align: center;
  color: var(--white);
  padding: 1.5rem 1rem;
}
.stat-card .stat-icon {
  width: 56px; height: 56px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 0.75rem;
  color: var(--gold);
}
.stat-card .stat-number {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.35rem;
}
.stat-card .stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
}

/* ============================================
   ABOUT SNIPPET
   ============================================ */
.about-snippet { padding: 5rem 0; }
.about-snippet-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
.about-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-img-wrap img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}
.about-img-badge {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--primary);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}
.about-img-badge strong { display: block; font-size: 1.5rem; color: var(--gold); }
.about-snippet-content h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 1rem;
  line-height: 1.35;
}
.about-snippet-content h2 span { color: var(--primary); }
.about-snippet-content p {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  line-height: 1.9;
}
.about-features { margin: 1.5rem 0; }
.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.about-feature-icon {
  width: 40px; height: 40px;
  background: rgba(30,58,138,0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.about-feature-text h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 0.2rem;
}
.about-feature-text p {
  font-size: 0.82rem;
  color: var(--gray-500);
  margin: 0;
}

/* ============================================
   NEWS CAROUSEL
   ============================================ */
.news-carousel-section { padding: 5rem 0; background: var(--gray-50); }
.news-swiper { padding-bottom: 3rem !important; }
.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.news-card-img {
  position: relative;
  overflow: hidden;
  height: 200px;
}
.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.news-card:hover .news-card-img img { transform: scale(1.05); }
.news-card-cat {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--primary);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
}
.news-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.news-card-date {
  font-size: 0.78rem;
  color: var(--gray-400);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.news-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}
.news-card p {
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.7;
  flex: 1;
}
.news-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 1rem;
}
.news-card-link:hover { color: var(--gold); }
.news-swiper .swiper-pagination-bullet-active { background: var(--primary); }

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #2b50c0 100%);
  padding: 6rem 0 3.5rem;
  margin-top: 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero h1 {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.page-hero p {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
}
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}
.breadcrumb a { color: rgba(255,255,255,0.85); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep { color: rgba(255,255,255,0.4); }

/* ============================================
   ABOUT PAGE
   ============================================ */
.vision-mission-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.vm-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border-top: 4px solid;
  text-align: center;
}
.vm-card.vision { border-color: var(--primary); }
.vm-card.mission { border-color: var(--gold); }
.vm-card .vm-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}
.vm-card.vision .vm-icon { background: rgba(30,58,138,0.1); color: var(--primary); }
.vm-card.mission .vm-icon { background: rgba(212,175,55,0.1); color: var(--gold); }
.vm-card h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 0.75rem; }
.vm-card p { color: var(--gray-600); line-height: 1.85; }

.work-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.work-field-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.work-field-item:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  color: var(--primary);
}
.work-field-item i {
  width: 36px; height: 36px;
  background: rgba(30,58,138,0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 0.9rem;
  flex-shrink: 0;
}
.work-field-item span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.board-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.board-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.board-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem;
  background: var(--gray-100);
  border: 3px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.board-avatar img { width: 100%; height: 100%; object-fit: cover; }
.board-avatar i { font-size: 2rem; color: var(--gray-400); }
.board-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 0.3rem;
}
.board-card p {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
}

/* ============================================
   PROJECTS PAGE
   ============================================ */
.project-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.project-tab-btn {
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  background: var(--gray-100);
  color: var(--gray-600);
  transition: var(--transition);
}
.project-tab-btn:hover { background: var(--gray-200); }
.project-tab-btn.active {
  background: var(--primary);
  color: var(--white);
}
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.project-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.project-card-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}
.project-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.project-card:hover .project-card-img img { transform: scale(1.05); }
.project-donor-badge {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: var(--primary);
  color: var(--white);
  padding: 0.2rem 0.65rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
}
.project-card-body { padding: 1.25rem; flex: 1; }
.project-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.78rem;
  color: var(--gray-400);
}
.project-meta span { display: flex; align-items: center; gap: 0.3rem; }
.project-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}
.project-card p {
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.7;
}
.microfinance-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(16,185,129,0.1);
  color: var(--green);
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 0.75rem;
}

/* ============================================
   ACHIEVEMENTS PAGE
   ============================================ */
.achievements-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}
.ach-stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  border-bottom: 3px solid var(--primary);
}
.ach-stat-card .icon {
  width: 56px; height: 56px;
  background: rgba(30,58,138,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--primary);
  margin: 0 auto 0.75rem;
}
.ach-stat-card .number {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.ach-stat-card .label {
  font-size: 0.8rem;
  color: var(--gray-500);
  font-weight: 500;
}

.charts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
.chart-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.chart-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 1.25rem;
  text-align: center;
}
.chart-wrap { position: relative; height: 250px; }

.community-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}
.cs-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.cs-item:hover { box-shadow: var(--shadow); }
.cs-item i { font-size: 1.5rem; color: var(--primary); margin-bottom: 0.5rem; }
.cs-item .cs-number {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--gray-800);
  display: block;
}
.cs-item .cs-label {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 0.2rem;
  display: block;
}

.contributions-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.contributions-table th {
  background: var(--primary);
  color: var(--white);
  padding: 0.85rem 1rem;
  font-weight: 700;
  text-align: right;
}
.contributions-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
}
.contributions-table tr:hover td { background: var(--gray-50); }

.future-plans-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.plan-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: var(--transition);
}
.plan-card:hover { box-shadow: var(--shadow-lg); }
.plan-card .plan-icon {
  width: 56px; height: 56px;
  background: rgba(30,58,138,0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.4rem;
  flex-shrink: 0;
}
.plan-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 0.5rem;
}
.plan-card p { font-size: 0.85rem; color: var(--gray-500); line-height: 1.7; }

/* ============================================
   PARTNERS PAGE
   ============================================ */
.partners-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.partner-tab-btn {
  padding: 0.55rem 1.1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--gray-100);
  color: var(--gray-600);
  transition: var(--transition);
}
.partner-tab-btn.active { background: var(--primary); color: var(--white); }
.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.partner-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 2px solid transparent;
}
.partner-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}
.partner-logo {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}
.partner-logo img { max-height: 55px; max-width: 100%; object-fit: contain; }
.partner-logo i { font-size: 2.5rem; color: var(--primary); }
.partner-card p {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-700);
  line-height: 1.4;
}
.partners-list-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
.partner-list-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.partner-list-item:hover { box-shadow: var(--shadow); }
.partner-list-item i {
  color: var(--gold);
  font-size: 0.85rem;
  flex-shrink: 0;
}
.partner-list-item span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-700);
}

/* ============================================
   NEWS PAGE
   ============================================ */
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}
.news-detail-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.news-detail-img {
  height: 250px;
  overflow: hidden;
  position: relative;
}
.news-detail-img img { width: 100%; height: 100%; object-fit: cover; }
.news-detail-body { padding: 1.5rem; }
.news-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.news-detail-meta span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--gray-400);
}
.news-detail-body h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gray-800);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}
.news-detail-body p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.news-gallery-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 1rem;
}
.news-gallery-mini a {
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: block;
  height: 80px;
}
.news-gallery-mini a img { width: 100%; height: 100%; object-fit: cover; }
.share-buttons {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  transition: var(--transition);
}
.share-btn.fb { background: #1877f2; color: #fff; }
.share-btn.wa { background: #25d366; color: #fff; }
.share-btn:hover { opacity: 0.88; transform: translateY(-2px); }

/* Gallery */
.gallery-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.gallery-filter-btn {
  padding: 0.5rem 1.1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--gray-100);
  color: var(--gray-600);
  transition: var(--transition);
}
.gallery-filter-btn.active { background: var(--primary); color: var(--white); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30,58,138,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-overlay i { color: var(--white); font-size: 1.5rem; }
.gallery-item-title {
  position: absolute;
  bottom: 0; right: 0; left: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: var(--white);
  padding: 1.5rem 0.75rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0;
  transition: var(--transition);
}
.gallery-item:hover .gallery-item-title { opacity: 1; }

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
.contact-info h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gray-800);
  margin-bottom: 1.5rem;
}
.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}
.contact-item-icon {
  width: 48px; height: 48px;
  background: rgba(30,58,138,0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-item-text h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 0.25rem;
}
.contact-item-text p, .contact-item-text a {
  font-size: 0.88rem;
  color: var(--gray-500);
}
.contact-item-text a:hover { color: var(--primary); }
.social-links { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.social-link {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
  color: var(--white);
}
.social-link.fb { background: #1877f2; }
.social-link.wa { background: #25d366; }
.social-link:hover { transform: translateY(-3px); opacity: 0.85; }
.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.contact-form h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gray-800);
  margin-bottom: 1.5rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.45rem;
}
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--gray-700);
  transition: var(--transition);
  background: var(--white);
  direction: rtl;
}
.form-control:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(30,58,138,0.1);
}
textarea.form-control { resize: vertical; min-height: 120px; }
.form-success {
  display: none;
  background: rgba(16,185,129,0.1);
  color: var(--green);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  align-items: center;
  gap: 0.5rem;
}
.form-success.show { display: flex; }
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 320px;
  margin-top: 2rem;
}
.map-wrap iframe { width: 100%; height: 100%; border: none; }

/* ============================================
   FOOTER
   ============================================ */
#footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.7);
  padding: 3.5rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand img { height: 55px; margin-bottom: 1rem; filter: brightness(2); }
.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1.25rem;
}
.footer-social { display: flex; gap: 0.65rem; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); color: var(--white); }
.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}
.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}
.footer-links a::before { content: '›'; color: var(--gold); font-size: 1rem; }
.footer-links a:hover { color: var(--white); padding-right: 4px; }
.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.85rem;
}
.footer-contact-item i {
  color: var(--gold);
  font-size: 0.9rem;
  margin-top: 3px;
  flex-shrink: 0;
}
.footer-contact-item span {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

/* ============================================
   WHATSAPP FLOAT BUTTON
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 1.75rem;
  left: 1.75rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}
.whatsapp-btn {
  width: 56px; height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: var(--transition);
  animation: pulse-wa 2.5s infinite;
}
.whatsapp-btn:hover { transform: scale(1.1); animation: none; }
.whatsapp-tooltip {
  background: var(--gray-900);
  color: var(--white);
  padding: 0.4rem 0.85rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-10px);
  pointer-events: none;
  transition: var(--transition);
}
.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}
@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 4px 16px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 32px rgba(37,211,102,0.65); }
}

/* ============================================
   LOADING SPINNER
   ============================================ */
.spinner {
  display: inline-block;
  width: 40px; height: 40px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================
   ALERT MESSAGES
   ============================================ */
.alert {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.alert-success { background: rgba(16,185,129,0.1); color: var(--green); border: 1px solid rgba(16,185,129,0.3); }
.alert-error { background: rgba(239,68,68,0.1); color: var(--red); border: 1px solid rgba(239,68,68,0.3); }

/* ============================================
   RESPONSIVE - Tablet (768px+)
   ============================================ */
@media (min-width: 768px) {
  .container { padding: 0 1.5rem; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .about-snippet-grid { grid-template-columns: 1fr 1fr; }
  .about-img-wrap img { height: 420px; }
  .vision-mission-grid { grid-template-columns: 1fr 1fr; }
  .work-fields-grid { grid-template-columns: repeat(3, 1fr); }
  .board-grid { grid-template-columns: repeat(3, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .achievements-stats { grid-template-columns: repeat(4, 1fr); }
  .charts-grid { grid-template-columns: repeat(2, 1fr); }
  .community-services-grid { grid-template-columns: repeat(4, 1fr); }
  .future-plans-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
  .partners-list-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-text h1 { font-size: 2.8rem; }
  .section-header h2 { font-size: 2.2rem; }
  .page-hero h1 { font-size: 2.6rem; }
}

/* ============================================
   RESPONSIVE - Desktop (1024px+)
   ============================================ */
@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
  .navbar-toggle { display: none !important; }
  .navbar-nav { display: flex !important; }
  .nav-sidebar { display: none !important; }
  .work-fields-grid { grid-template-columns: repeat(4, 1fr); }
  .projects-grid { grid-template-columns: repeat(3, 1fr); }
  .partners-grid { grid-template-columns: repeat(4, 1fr); }
  .partners-list-grid { grid-template-columns: repeat(3, 1fr); }
  .news-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; }
  .hero-text h1 { font-size: 3.2rem; }
}

@media (max-width: 1023px) {
  .navbar-toggle { display: flex; }
  .navbar-nav { display: none; }
}
