/* =====================================================
   جمعية منارة السلام الإسلامية - Main Stylesheet
   ===================================================== */

/* --- Variables --- */
:root {
  --primary: #1B8A7E;
  --primary-dark: #156b62;
  --primary-light: #e8f5f4;
  --gold: #B8973D;
  --gold-light: #f5eed8;
  --green: #2d7a3a;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --danger: #dc2626;
  --success: #16a34a;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.14);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --font: 'Cairo', 'Tajawal', sans-serif;
  --transition: all .25s ease;
}

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

/* --- Container --- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- Topbar --- */
.topbar {
  background: var(--primary-dark);
  color: white;
  font-size: 13px;
  padding: 8px 0;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.topbar-right, .topbar-left { display: flex; align-items: center; gap: 16px; }
.topbar a { color: rgba(255,255,255,.9); }
.topbar a:hover { color: var(--gold); }
.topbar i { margin-left: 5px; }
.topbar-donate {
  background: var(--gold);
  color: var(--white) !important;
  padding: 4px 14px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 12px;
}
.topbar-donate:hover { background: #9a7d32 !important; }

/* --- Navbar --- */
.navbar {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}
.navbar.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.12); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; gap: 16px; }

/* Logo */
.navbar-logo { display: flex; align-items: center; gap: 10px; }
.logo-icon svg { flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-ar { font-size: 16px; font-weight: 800; color: var(--primary); }
.logo-en { font-size: 11px; color: var(--gray-400); font-weight: 500; letter-spacing: .5px; }

/* Nav Menu */
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-menu li { position: relative; }
.nav-menu > li > a {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.nav-menu > li > a:hover, .nav-menu > li.active > a { color: var(--primary); background: var(--primary-light); }
.nav-menu > li > a i { font-size: 11px; transition: var(--transition); }
.nav-menu > li.has-dropdown:hover > a i { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 230px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
  z-index: 100;
}
.nav-menu > li.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--gray-600);
  border-radius: var(--radius-sm);
}
.dropdown li a:hover { color: var(--primary); background: var(--primary-light); }
.dropdown li a i { color: var(--primary); width: 18px; text-align: center; }

/* Nav Actions */
.nav-actions { display: flex; align-items: center; gap: 10px; }
.cart-btn {
  position: relative;
  background: var(--primary-light);
  border: none;
  color: var(--primary);
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.cart-btn:hover { background: var(--primary); color: white; }
.cart-count {
  position: absolute;
  top: -4px; left: -4px;
  background: var(--gold);
  color: white;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.btn-donate-nav {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white !important;
  padding: 9px 20px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  animation: pulseHeart 2.5s infinite;
  box-shadow: 0 4px 14px rgba(27,138,126,.35);
}
.btn-donate-nav:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(27,138,126,.45); }
.btn-donate-nav i { margin-left: 5px; }
@keyframes pulseHeart {
  0%,100% { box-shadow: 0 4px 14px rgba(27,138,126,.35); }
  50% { box-shadow: 0 4px 20px rgba(27,138,126,.6); }
}
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 5px; }
.hamburger span { width: 24px; height: 2.5px; background: var(--gray-800); border-radius: 2px; transition: var(--transition); display: block; }

/* --- Mini Cart --- */
.mini-cart {
  position: absolute;
  top: 100%;
  left: 20px;
  width: 340px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  z-index: 999;
  display: none;
}
.mini-cart.open { display: block; }
.mini-cart-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-200);
}
.mini-cart-header h4 { font-size: 15px; font-weight: 700; color: var(--primary); }
.close-cart { background: none; border: none; cursor: pointer; color: var(--gray-400); font-size: 18px; }
.close-cart:hover { color: var(--danger); }
.mini-cart-items { max-height: 280px; overflow-y: auto; padding: 12px; }
.cart-empty { text-align: center; padding: 24px; color: var(--gray-400); }
.cart-empty i { font-size: 36px; display: block; margin-bottom: 8px; }
.cart-item {
  display: flex; gap: 12px; align-items: center;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: var(--gray-50);
  margin-bottom: 8px;
}
.cart-item-info { flex: 1; }
.cart-item-title { font-size: 13px; font-weight: 600; color: var(--gray-800); }
.cart-item-amount { font-size: 13px; color: var(--primary); font-weight: 700; margin-top: 3px; }
.cart-item-remove { background: none; border: none; color: var(--gray-400); cursor: pointer; padding: 4px; border-radius: 50%; }
.cart-item-remove:hover { color: var(--danger); background: #fef2f2; }
.mini-cart-footer { padding: 16px 20px; border-top: 1px solid var(--gray-200); }
.cart-total { font-size: 15px; font-weight: 700; margin-bottom: 12px; color: var(--gray-800); }
.cart-total strong { color: var(--primary); font-size: 17px; }
.btn-cart-view, .btn-cart-checkout {
  display: block;
  text-align: center;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13.5px;
  margin-bottom: 8px;
}
.btn-cart-view { background: var(--gray-100); color: var(--gray-800); }
.btn-cart-view:hover { background: var(--gray-200); }
.btn-cart-checkout { background: var(--primary); color: white; }
.btn-cart-checkout:hover { background: var(--primary-dark); }

/* --- Flash --- */
.flash {
  position: fixed;
  top: 80px; right: 20px;
  z-index: 9999;
  padding: 14px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-lg);
  animation: slideInRight .3s ease;
  max-width: 380px;
}
.flash-success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.flash-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.flash button  { background: none; border: none; cursor: pointer; color: inherit; margin-right: auto; }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* --- Hero Slider --- */
.hero-slider { position: relative; height: 600px; overflow: hidden; background: var(--primary-dark); }
.slide {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  background: linear-gradient(135deg, rgba(27,138,126,.92) 0%, rgba(21,107,98,.85) 60%, rgba(0,0,0,.5) 100%);
  opacity: 0;
  transition: opacity .6s ease;
  z-index: 0;
}
.slide.active { opacity: 1; z-index: 1; }
.slide-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -1;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.slide.active .slide-bg { transform: scale(1); }
.slide-content { position: relative; z-index: 2; color: white; max-width: 600px; padding: 0 40px; }
.slide-label {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(184,151,61,.25);
  border: 1px solid rgba(184,151,61,.5);
  color: var(--gold);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  backdrop-filter: blur(4px);
}
.slide-title {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.slide-subtitle { font-size: 16px; color: rgba(255,255,255,.9); margin-bottom: 28px; line-height: 1.8; }
.slide-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  background: var(--gold);
  color: white;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 15px;
  display: inline-flex; align-items: center; gap: 8px;
  border: none; cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(184,151,61,.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(184,151,61,.5); }
.btn-outline-white {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,.6);
  padding: 11px 24px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 15px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: var(--transition);
}
.btn-outline-white:hover { background: rgba(255,255,255,.15); border-color: white; }

/* Slider Controls */
.slider-controls { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.slider-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4); cursor: pointer; transition: var(--transition); border: none; }
.slider-dot.active { background: var(--gold); width: 24px; border-radius: 4px; }
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: white;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}
.slider-arrow:hover { background: rgba(255,255,255,.3); }
.slider-arrow.prev { right: 20px; }
.slider-arrow.next { left: 20px; }

/* --- Quick Donate Bar --- */
.quick-donate-bar {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 20px 0;
  position: relative;
  z-index: 10;
  margin-top: -1px;
}
.quick-donate-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.qd-label {
  color: rgba(255,255,255,.85);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.qd-amounts { display: flex; gap: 8px; flex-wrap: wrap; }
.qd-amount-btn {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: white;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font);
}
.qd-amount-btn:hover, .qd-amount-btn.active { background: var(--gold); border-color: var(--gold); }
.qd-divider { width: 1px; height: 30px; background: rgba(255,255,255,.2); }
.qd-input {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: white;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 14px;
  width: 120px;
  outline: none;
  font-family: var(--font);
}
.qd-input::placeholder { color: rgba(255,255,255,.5); }
.qd-btn {
  background: var(--gold);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font);
}
.qd-btn:hover { background: #9a7d32; transform: translateY(-1px); }

/* --- Section Base --- */
section { padding: 70px 0; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary-light);
  color: var(--primary);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}
.section-title { font-size: clamp(22px, 3.5vw, 34px); font-weight: 900; color: var(--gray-800); margin-bottom: 12px; }
.section-title span { color: var(--primary); }
.section-desc { color: var(--gray-600); font-size: 16px; max-width: 600px; margin: 0 auto; }
.section-divider { width: 60px; height: 4px; background: linear-gradient(90deg, var(--primary), var(--gold)); border-radius: 2px; margin: 14px auto 0; }

/* --- About Section --- */
.about-section { background: var(--gray-50); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-img-wrap { position: relative; }
.about-img-wrap img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.about-badge {
  position: absolute;
  bottom: -20px; right: -20px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius);
  padding: 20px 24px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.about-badge .num { font-size: 32px; font-weight: 900; display: block; }
.about-badge .lbl { font-size: 13px; opacity: .9; }
.about-text h2 { font-size: 28px; font-weight: 800; color: var(--gray-800); margin-bottom: 16px; }
.about-text h2 span { color: var(--primary); }
.about-text p { color: var(--gray-600); margin-bottom: 20px; font-size: 15.5px; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 28px; }
.about-feature { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.about-feature i { color: var(--primary); width: 20px; }

/* --- Services Grid --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.service-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  transform: scaleX(0);
  transition: var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 64px; height: 64px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 26px;
  color: var(--primary);
  transition: var(--transition);
}
.service-card:hover .service-icon { background: var(--primary); color: white; }
.service-card h3 { font-size: 15px; font-weight: 700; color: var(--gray-800); margin-bottom: 8px; }
.service-card p { font-size: 13px; color: var(--gray-600); line-height: 1.6; }
.service-card .btn-sm {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 14px;
  padding: 7px 16px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
}
.service-card:hover .btn-sm { background: var(--primary); color: white; }

/* --- Project Cards (EmiratesRC-inspired) --- */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
.project-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.project-card-img {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: var(--gray-100);
}
.project-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project-card:hover .project-card-img img { transform: scale(1.05); }
.project-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}
.project-badge.urgent { background: var(--danger); }
.project-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.project-service-label { font-size: 12px; color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.project-card-title { font-size: 17px; font-weight: 800; color: var(--gray-800); margin-bottom: 8px; line-height: 1.4; }
.project-card-desc { font-size: 13.5px; color: var(--gray-600); margin-bottom: 16px; line-height: 1.7; flex: 1; }

/* Progress */
.progress-wrap { margin-bottom: 14px; }
.progress-info { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 13px; }
.progress-info .collected { color: var(--primary); font-weight: 700; }
.progress-info .target { color: var(--gray-400); }
.progress-bar { background: var(--gray-200); border-radius: 10px; height: 8px; overflow: hidden; }
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  border-radius: 10px;
  width: 0;
  transition: width 1.2s ease;
}
.progress-pct { font-size: 12px; font-weight: 700; color: var(--primary); text-align: left; margin-top: 4px; }

/* Quick Amounts */
.quick-amounts { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.amount-btn {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  color: var(--gray-600);
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font);
}
.amount-btn:hover, .amount-btn.selected { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }

/* Project Actions */
.project-actions { display: flex; gap: 8px; }
.btn-donate {
  flex: 1;
  background: var(--primary);
  color: white;
  border: none;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: var(--transition);
  font-family: var(--font);
}
.btn-donate:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-add-cart {
  background: var(--gold-light);
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; gap: 5px;
  transition: var(--transition);
  font-family: var(--font);
  white-space: nowrap;
}
.btn-add-cart:hover { background: var(--gold); color: white; }
.btn-details {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  color: var(--gray-600);
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
  display: flex; align-items: center;
}
.btn-details:hover { background: var(--gray-200); }

/* --- Stats Section --- */
.stats-section { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%); color: white; padding: 60px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-card { text-align: center; padding: 24px; }
.stat-icon { font-size: 36px; color: var(--gold); margin-bottom: 12px; }
.stat-num { font-size: 36px; font-weight: 900; display: block; }
.stat-label { font-size: 14px; color: rgba(255,255,255,.8); margin-top: 4px; }

/* --- Why Us --- */
.why-us-section { background: var(--gray-50); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.why-icon { font-size: 36px; color: var(--primary); margin-bottom: 16px; }
.why-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.why-card p { font-size: 14px; color: var(--gray-600); line-height: 1.7; }

/* --- News Cards --- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-card-img { height: 200px; overflow: hidden; background: var(--gray-100); }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.news-card:hover .news-card-img img { transform: scale(1.05); }
.news-card-body { padding: 20px; }
.news-date { font-size: 12px; color: var(--gray-400); margin-bottom: 8px; display: flex; align-items: center; gap: 5px; }
.news-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; color: var(--gray-800); line-height: 1.5; }
.news-card p { font-size: 13.5px; color: var(--gray-600); margin-bottom: 14px; }
.btn-read-more { color: var(--primary); font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.btn-read-more:hover { gap: 8px; }

/* --- Contact CTA --- */
.contact-cta { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; text-align: center; padding: 60px 0; }
.contact-cta h2 { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.contact-cta p { font-size: 16px; color: rgba(255,255,255,.85); margin-bottom: 28px; }
.cta-btns { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.btn-wa {
  background: #25D366;
  color: white;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 700;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px;
  transition: var(--transition);
}
.btn-wa:hover { background: #1da851; transform: translateY(-2px); }

/* --- Forms --- */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 600; color: var(--gray-800); margin-bottom: 6px; }
.form-label .req { color: var(--danger); }
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--white);
  transition: var(--transition);
  outline: none;
  direction: rtl;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(27,138,126,.12); }
.form-control.error { border-color: var(--danger); }
.form-error { color: var(--danger); font-size: 12px; margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
textarea.form-control { resize: vertical; min-height: 120px; }

/* Payment Methods */
.payment-methods-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.payment-method-item {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}
.payment-method-item:hover { border-color: var(--primary); background: var(--primary-light); }
.payment-method-item.selected { border-color: var(--primary); background: var(--primary-light); }
.payment-method-item.coming-soon { opacity: .5; cursor: not-allowed; }
.payment-method-item i { font-size: 28px; color: var(--primary); display: block; margin-bottom: 8px; }
.payment-method-item span { font-size: 13px; font-weight: 600; display: block; }
.coming-soon-badge {
  position: absolute;
  top: -8px; left: 50%; transform: translateX(-50%);
  background: var(--gray-400);
  color: white;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}

/* Cart Page */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { background: var(--gray-100); padding: 12px 16px; text-align: right; font-size: 14px; font-weight: 700; }
.cart-table td { padding: 14px 16px; border-bottom: 1px solid var(--gray-200); font-size: 14px; vertical-align: middle; }
.cart-amount-input { width: 100px; padding: 7px 10px; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); text-align: center; font-family: var(--font); }

/* Checkout Summary */
.checkout-summary {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 100px;
}
.checkout-summary h3 { font-size: 17px; font-weight: 700; margin-bottom: 18px; color: var(--gray-800); }
.summary-item { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--gray-200); font-size: 14px; }
.summary-total { display: flex; justify-content: space-between; padding: 14px 0 0; font-size: 17px; font-weight: 800; color: var(--primary); }

/* --- Gallery --- */
.gallery-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; justify-content: center; }
.gallery-tab {
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--gray-200);
  background: white;
  color: var(--gray-600);
  transition: var(--transition);
}
.gallery-tab:hover, .gallery-tab.active { background: var(--primary); color: white; border-color: var(--primary); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.gallery-item { border-radius: var(--radius); overflow: hidden; cursor: pointer; position: relative; aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(27,138,126,.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { color: white; font-size: 28px; }

/* Lightbox */
.lightbox-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox-overlay.open { display: flex; }
.lightbox-img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius); }
.lightbox-close {
  position: absolute; top: 20px; right: 20px;
  background: rgba(255,255,255,.15);
  border: none; color: white; font-size: 22px;
  width: 44px; height: 44px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.15);
  border: none; color: white; font-size: 18px;
  width: 44px; height: 44px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.lightbox-prev { right: 20px; }
.lightbox-next { left: 20px; }

/* --- Contact Page --- */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.contact-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}
.contact-card-icon { font-size: 32px; color: var(--primary); margin-bottom: 12px; }
.contact-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.contact-card a { color: var(--primary); font-weight: 600; }

/* --- WhatsApp Float --- */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  left: 28px;
  background: #25D366;
  color: white;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  z-index: 900;
  animation: waPulse 2.5s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); color: white; }
.wa-tooltip {
  position: absolute;
  right: 66px;
  background: var(--gray-800);
  color: white;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.whatsapp-float:hover .wa-tooltip { opacity: 1; }
@keyframes waPulse {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,.4); }
  50% { box-shadow: 0 4px 30px rgba(37,211,102,.7); }
}

/* --- Toast --- */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--gray-800);
  color: white;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  max-width: 320px;
  display: flex; align-items: center; gap: 10px;
  animation: toastIn .3s ease;
  box-shadow: var(--shadow-lg);
}
.toast.success { background: var(--primary); }
.toast.error { background: var(--danger); }
@keyframes toastIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* --- Footer --- */
.footer { background: #0f2027; color: rgba(255,255,255,.8); }
.footer-top { padding: 60px 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; }
.footer-heading { font-size: 16px; font-weight: 700; color: white; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--primary); display: inline-block; }
.footer-brand .footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo-ar { display: block; font-size: 18px; font-weight: 800; color: white; }
.footer-logo-en { display: block; font-size: 11px; color: rgba(255,255,255,.5); }
.footer-about { font-size: 14px; line-height: 1.8; margin-bottom: 18px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.8);
  transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); color: white; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,.7); display: flex; align-items: center; gap: 6px; }
.footer-links a:hover { color: var(--gold); }
.footer-links i { font-size: 11px; }
.footer-contact { display: flex; flex-direction: column; gap: 12px; }
.footer-contact li { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.footer-contact i { color: var(--gold); width: 18px; font-size: 16px; }
.footer-contact a { color: rgba(255,255,255,.8); }
.footer-contact a:hover { color: var(--gold); }
.footer-donate-btn {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px;
  background: var(--gold);
  color: white;
  padding: 10px 22px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 14px;
  transition: var(--transition);
}
.footer-donate-btn:hover { background: #9a7d32; color: white; transform: translateY(-2px); }
.footer-bottom {
  background: rgba(0,0,0,.3);
  padding: 18px 0;
  font-size: 13px;
  color: rgba(255,255,255,.5);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; width: 100%; }
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--gold); }

/* --- Admin --- */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 260px;
  background: #0f2027;
  color: rgba(255,255,255,.85);
  padding: 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}
.admin-sidebar-logo {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  text-align: center;
}
.admin-sidebar-logo span { display: block; font-size: 14px; font-weight: 700; color: white; }
.admin-sidebar-logo small { font-size: 12px; color: rgba(255,255,255,.5); }
.admin-nav { flex: 1; padding: 12px 0; }
.admin-nav-section { padding: 8px 20px 4px; font-size: 11px; color: rgba(255,255,255,.35); font-weight: 700; text-transform: uppercase; letter-spacing: .8px; }
.admin-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 20px;
  font-size: 14px;
  color: rgba(255,255,255,.7);
  transition: var(--transition);
  border-right: 3px solid transparent;
}
.admin-nav a:hover, .admin-nav a.active { color: white; background: rgba(255,255,255,.08); border-right-color: var(--primary); }
.admin-nav a i { width: 18px; text-align: center; }
.admin-main { flex: 1; display: flex; flex-direction: column; background: var(--gray-50); }
.admin-topbar {
  background: white;
  padding: 0 28px;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--gray-200);
}
.admin-topbar h1 { font-size: 18px; font-weight: 700; color: var(--gray-800); }
.admin-content { padding: 28px; flex: 1; }
.admin-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  margin-bottom: 24px;
}
.admin-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.admin-card-title { font-size: 16px; font-weight: 700; color: var(--gray-800); }
.stat-boxes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 28px; }
.stat-box {
  background: white;
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  display: flex; align-items: center; gap: 16px;
}
.stat-box-icon { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.stat-box-icon.teal { background: var(--primary-light); color: var(--primary); }
.stat-box-icon.gold { background: var(--gold-light); color: var(--gold); }
.stat-box-icon.green { background: #dcfce7; color: var(--green); }
.stat-box-icon.red { background: #fee2e2; color: var(--danger); }
.stat-box-info .num { font-size: 26px; font-weight: 900; color: var(--gray-800); display: block; }
.stat-box-info .label { font-size: 13px; color: var(--gray-400); }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { background: var(--gray-50); padding: 12px 16px; text-align: right; font-size: 13px; font-weight: 700; color: var(--gray-600); border-bottom: 1px solid var(--gray-200); }
.admin-table td { padding: 14px 16px; border-bottom: 1px solid var(--gray-200); font-size: 14px; }
.admin-table tr:hover td { background: var(--gray-50); }
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 600;
}
.badge-new { background: #dbeafe; color: #1e40af; }
.badge-progress { background: #fef9c3; color: #854d0e; }
.badge-done { background: #dcfce7; color: #166534; }
.badge-cancelled { background: #fee2e2; color: #991b1b; }
.badge-paid { background: #dcfce7; color: #166534; }
.badge-pending { background: #fef9c3; color: #854d0e; }
.badge-unread { background: #dbeafe; color: #1e40af; }
.badge-read { background: var(--gray-100); color: var(--gray-600); }
.btn-admin {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-family: var(--font);
}
.btn-admin-primary { background: var(--primary); color: white; }
.btn-admin-primary:hover { background: var(--primary-dark); }
.btn-admin-gold { background: var(--gold); color: white; }
.btn-admin-gold:hover { background: #9a7d32; }
.btn-admin-danger { background: var(--danger); color: white; }
.btn-admin-danger:hover { background: #b91c1c; }
.btn-admin-outline { background: transparent; border: 1.5px solid var(--gray-200); color: var(--gray-600); }
.btn-admin-outline:hover { border-color: var(--primary); color: var(--primary); }

/* --- Page Hero --- */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  padding: 50px 0;
  text-align: center;
}
.page-hero h1 { font-size: 32px; font-weight: 900; margin-bottom: 8px; }
.page-hero p { font-size: 16px; color: rgba(255,255,255,.85); }
.breadcrumb { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; font-size: 13px; }
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb i { font-size: 10px; color: rgba(255,255,255,.4); }
.breadcrumb span { color: var(--gold); }

/* --- Scroll Animation --- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* --- Utilities --- */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.d-flex { display: flex; }
.gap-8 { gap: 8px; }
.view-all-wrap { text-align: center; margin-top: 36px; }
.btn-view-all {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 32px;
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: 30px;
  font-weight: 700;
  font-size: 15px;
  transition: var(--transition);
}
.btn-view-all:hover { background: var(--primary); color: white; }
.separator { height: 1px; background: var(--gray-200); margin: 0; }
.honeypot-field { display: none !important; visibility: hidden !important; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-boxes { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .topbar { display: none; }
  .nav-menu { display: none; position: fixed; top: 0; right: 0; bottom: 0; width: 280px; background: white; flex-direction: column; align-items: flex-start; padding: 80px 20px 24px; box-shadow: var(--shadow-lg); z-index: 998; overflow-y: auto; transition: transform .3s ease; transform: translateX(100%); }
  .nav-menu.open { display: flex; transform: translateX(0); }
  .nav-menu > li { width: 100%; }
  .nav-menu > li > a { padding: 12px 16px; border-radius: var(--radius-sm); border-bottom: 1px solid var(--gray-200); }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: var(--gray-50); padding: 0; display: none; }
  .has-dropdown.open .dropdown { display: block; }
  .hamburger { display: flex; z-index: 999; }
  .hero-slider { height: 440px; }
  .slide-content { padding: 0 20px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-badge { display: none; }
  .projects-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-boxes { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .quick-donate-inner { flex-direction: column; align-items: center; }
  .mini-cart { left: 10px; right: 10px; width: auto; }
}

@media (max-width: 480px) {
  .hero-slider { height: 380px; }
  .slide-title { font-size: 20px; }
  .slide-btns { flex-direction: column; }
  .btn-primary, .btn-outline-white { width: 100%; justify-content: center; }
  section { padding: 50px 0; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-boxes { grid-template-columns: 1fr 1fr; }
  .payment-methods-grid { grid-template-columns: repeat(3, 1fr); }
}
