/* ===== CSS Variables ===== */
:root {
  --navy-darkest: #0B1929;
  --navy-dark: #122240;
  --navy: #152A4A;
  --navy-light: #1E3A5F;
  --gold: #E8B824;
  --gold-light: #F0CC50;
  --gold-dark: #C49A1C;
  --gold-muted: #D4A91780;
  --white: #FFFFFF;
  --gray-100: #F7F8FA;
  --gray-200: #E8ECF0;
  --gray-300: #CDD4DC;
  --gray-400: #9AA5B4;
  --gray-600: #5A6577;
  --gray-800: #2D3748;
  /* موجة الهيرو = لون الإحصائيات (انتقال سلس بدون شريط أبيض) */
  --bg-primary: #152A4A;
  --bg-section-alt: rgba(17, 30, 50, 0.85);
  /* توهج ذهبي خفيف للطبقات الزجاجية */
  --glow-gold-soft: 0 0 42px -8px rgba(232, 184, 36, 0.18);
  --glow-gold-ambient: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 221, 68, 0.12) 0%, transparent 55%);
  --shadow-sm: 0 2px 8px rgba(11,25,41,0.08);
  --shadow-md: 0 4px 20px rgba(11,25,41,0.12);
  --shadow-lg: 0 8px 40px rgba(11,25,41,0.16);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: 0.3s ease;
}

/* ===== Page Loader (شاشة التحميل) - مستوحى من لوغو g1379 ===== */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s;
}
.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-scene {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 0 40px;
}
/* الخط الأفقي الذهبي - يرسم نفسه من اليسار لليمين */
.loader-line-track {
  width: 280px;
  height: 3px;
  background: rgba(255, 204, 0, 0.15);
  border-radius: 2px;
  overflow: hidden;
}
.loader-line-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #ffcc00, #ffdd44);
  border-radius: 2px;
  animation: loaderLineDraw 1.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes loaderLineDraw {
  0% { width: 0%; }
  40% { width: 100%; }
  60% { width: 100%; }
  100% { width: 0%; }
}
/* منطقة اللوغو والإشارة */
.loader-brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-direction: row;
}
[dir="rtl"] .loader-brand { flex-direction: row-reverse; }
/* موجات الإشارة - ترسم نفسها بالتتابع */
.loader-signal {
  width: 72px;
  height: auto;
  opacity: 0.95;
}
.loader-signal-svg {
  width: 100%;
  height: auto;
}
.loader-wave {
  fill: none;
  stroke: #ffcc00;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: loaderWaveDraw 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.loader-wave.w1 { animation-delay: 0s; }
.loader-wave.w2 { animation-delay: 0.1s; }
.loader-wave.w3 { animation-delay: 0.2s; }
.loader-wave.w4 { animation-delay: 0.3s; }
.loader-wave.w5 { animation-delay: 0.4s; }
.loader-wave.w6 { animation-delay: 0.5s; }
@keyframes loaderWaveDraw {
  0% { stroke-dashoffset: 100; }
  40% { stroke-dashoffset: 0; }
  60% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 100; }
}
/* اللوغو - ظهور تدريجي مع نبض خفيف */
.loader-logo {
  height: 52px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  opacity: 0;
  animation: loaderLogoReveal 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards,
             loaderLogoGlow 2s ease-in-out 1.1s infinite;
}
@keyframes loaderLogoReveal {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes loaderLogoGlow {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(255, 204, 0, 0)); }
  50% { filter: drop-shadow(0 0 20px rgba(255, 204, 0, 0.15)); }
}
/* نبضة خلفية ذهبية */
.loader-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 240px;
  height: 240px;
  margin: -120px 0 0 -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 204, 0, 0.08) 0%, transparent 65%);
  pointer-events: none;
  animation: loaderPulse 2.5s ease-in-out infinite;
}
@keyframes loaderPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.4); opacity: 0.8; }
}
@media (max-width: 480px) {
  .loader-scene { gap: 24px; padding: 0 24px; }
  .loader-line-track { width: 200px; }
  .loader-logo { height: 44px; max-width: 180px; }
  .loader-signal { width: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .loader-line-fill,
  .loader-wave,
  .loader-logo,
  .loader-signal-svg,
  .loader-pulse { animation: none; }
  .loader-line-fill { width: 60%; }
  .loader-wave { stroke-dashoffset: 0; }
  .loader-logo { opacity: 1; }
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, sans-serif;
  background-color: var(--bg-primary);
  color: var(--gray-800);
  line-height: 1.7;
  direction: rtl;
  overflow-x: hidden;
}

[dir="rtl"] body {
  font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
}

main.spa-transition-out {
  opacity: 0.35;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

main.spa-transition-in {
  animation: spaFadeIn 0.22s ease;
}

@keyframes spaFadeIn {
  from { opacity: 0.6; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Icon & Motion Animations ===== */
@media (prefers-reduced-motion: no-preference) {
  @keyframes iconPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.9; }
  }
  @keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
  }
  @keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    40% { transform: translateY(-6px); }
    60% { transform: translateY(-2px); }
  }
  @keyframes iconWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
  }
  @keyframes iconGlow {
    0%, 100% { filter: drop-shadow(0 0 4px currentColor); }
    50% { filter: drop-shadow(0 0 12px currentColor); }
  }
  @keyframes cardFadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* أيقونات Lottie (Flaticon / JSON) */
.lottie-icon {
  display: inline-block;
  vertical-align: middle;
  width: 1em;
  height: 1em;
  line-height: 0;
  flex-shrink: 0;
}
.lottie-icon svg {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* ─── Stat Icons: نبض خفيف مستمر ─── */
.stat-icon,
.stat-icon :is(i, .lottie-icon) {
  transition: transform var(--transition);
}
@media (prefers-reduced-motion: no-preference) {
  .stat-icon :is(i, .lottie-icon) { animation: iconFloat 2.5s ease-in-out infinite; }
  .stat-card:nth-child(1) .stat-icon :is(i, .lottie-icon) { animation-delay: 0s; }
  .stat-card:nth-child(2) .stat-icon :is(i, .lottie-icon) { animation-delay: 0.3s; }
  .stat-card:nth-child(3) .stat-icon :is(i, .lottie-icon) { animation-delay: 0.6s; }
  .stat-card:nth-child(4) .stat-icon :is(i, .lottie-icon) { animation-delay: 0.9s; }
}
.stat-card:hover .stat-icon :is(i, .lottie-icon) { animation: iconBounce 0.6s ease; }

/* ─── Service Icons: دوران وتكبير عند الـ hover ─── */
.service-icon,
.service-icon :is(i, .lottie-icon) {
  transition: all var(--transition);
}
.service-card:hover .service-icon {
  animation: none;
}
.service-card:hover .service-icon :is(i, .lottie-icon) {
  transform: rotate(10deg) scale(1.1);
}

/* ─── Service Detail Icons ─── */
.service-detail-card:hover .service-detail-icon :is(i, .lottie-icon) {
  transform: scale(1.1) rotate(-5deg);
}
.service-detail-icon :is(i, .lottie-icon) {
  transition: transform var(--transition);
}
@media (prefers-reduced-motion: no-preference) {
  .service-detail-icon :is(i, .lottie-icon) { animation: iconFloat 3s ease-in-out infinite; }
}
.service-detail-card:hover .service-detail-icon :is(i, .lottie-icon) { animation: none; }

/* ─── Card Links: حركة السهم ─── */
.card-link :is(i, .lottie-icon) {
  transition: transform var(--transition);
}
[dir="ltr"] .card-link:hover :is(i, .lottie-icon)[data-fa-icon="arrow-right"],
[dir="ltr"] .card-link:hover :is(i, .lottie-icon)[data-fa-icon="arrow-left"] { transform: translateX(4px); }
[dir="rtl"] .card-link:hover :is(i, .lottie-icon)[data-fa-icon="arrow-left"] { transform: translateX(-4px); }

/* ─── Buttons: أيقونة الأزرار ─── */
.btn :is(i, .lottie-icon) {
  transition: transform var(--transition);
}
[dir="ltr"] .btn:hover :is(i, .lottie-icon) { transform: translateX(3px); }
[dir="rtl"] .btn:hover :is(i, .lottie-icon) { transform: translateX(-3px); }

/* ─── Top Bar & Footer Social Icons ─── */
.top-social a :is(i, .lottie-icon),
.footer-social a :is(i, .lottie-icon) {
  transition: transform var(--transition);
}
.top-social a:hover :is(i, .lottie-icon) { transform: scale(1.2) rotate(5deg); }
.footer-social a:hover :is(i, .lottie-icon) { transform: scale(1.2); }

/* ─── Scroll Top Button ─── */
.scroll-top :is(i, .lottie-icon) {
  transition: transform var(--transition);
}
.scroll-top:hover :is(i, .lottie-icon) { transform: translateY(-2px); }

/* ─── Project Placeholder Icons ─── */
.project-placeholder :is(i, .lottie-icon) {
  transition: transform var(--transition);
}
.project-card:hover .project-placeholder :is(i, .lottie-icon) { transform: scale(1.15); }

/* ─── Post Thumb Icons ─── */
.post-video-thumb :is(i, .lottie-icon),
.post-text-thumb :is(i, .lottie-icon),
.post-circular-thumb :is(i, .lottie-icon) {
  transition: transform var(--transition);
}
.post-card:hover .post-video-thumb :is(i, .lottie-icon),
.post-card:hover .post-text-thumb :is(i, .lottie-icon),
.post-card:hover .post-circular-thumb :is(i, .lottie-icon) { transform: scale(1.1); }

/* ─── Filter Buttons ─── */
.filter-btn :is(i, .lottie-icon) {
  transition: transform var(--transition);
}
.filter-btn:hover :is(i, .lottie-icon),
.filter-btn.active :is(i, .lottie-icon) { transform: scale(1.15); }

/* ─── Section Badge Icons ─── */
.section-badge {
  transition: all var(--transition);
}

/* ─── تأخير تدريجي للعناصر داخل الأقسام المعروضة ─── */
@media (prefers-reduced-motion: no-preference) {
  .reveal-section.animate-in .section-header { animation: cardFadeUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) backwards; animation-delay: 0.05s; }
  .reveal-section.animate-in .stat-card:nth-child(1) { animation: cardFadeUp 0.45s cubic-bezier(0.4, 0, 0.2, 1) both; animation-delay: 0.1s; }
  .reveal-section.animate-in .stat-card:nth-child(2) { animation: cardFadeUp 0.45s cubic-bezier(0.4, 0, 0.2, 1) both; animation-delay: 0.15s; }
  .reveal-section.animate-in .stat-card:nth-child(3) { animation: cardFadeUp 0.45s cubic-bezier(0.4, 0, 0.2, 1) both; animation-delay: 0.2s; }
  .reveal-section.animate-in .stat-card:nth-child(4) { animation: cardFadeUp 0.45s cubic-bezier(0.4, 0, 0.2, 1) both; animation-delay: 0.25s; }
  .reveal-section.animate-in .service-card { animation: cardFadeUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) both; }
  .reveal-section.animate-in .service-card:nth-child(2) { animation-delay: 0.06s; }
  .reveal-section.animate-in .service-card:nth-child(3) { animation-delay: 0.12s; }
  .reveal-section.animate-in .service-card:nth-child(4) { animation-delay: 0.18s; }
  .reveal-section.animate-in .service-card:nth-child(5) { animation-delay: 0.24s; }
  .reveal-section.animate-in .service-card:nth-child(6) { animation-delay: 0.3s; }
  .reveal-section.animate-in .project-card { animation: cardFadeUp 0.45s cubic-bezier(0.4, 0, 0.2, 1) both; }
  .reveal-section.animate-in .project-card:nth-child(2) { animation-delay: 0.08s; }
  .reveal-section.animate-in .project-card:nth-child(3) { animation-delay: 0.16s; }
  .reveal-section.animate-in .post-card { animation: cardFadeUp 0.45s cubic-bezier(0.4, 0, 0.2, 1) both; }
  .reveal-section.animate-in .post-card:nth-child(2) { animation-delay: 0.06s; }
  .reveal-section.animate-in .post-card:nth-child(3) { animation-delay: 0.12s; }
  .reveal-section.animate-in .vision-card { animation: cardFadeUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) backwards; }
  .reveal-section.animate-in .vision-card:nth-child(2) { animation-delay: 0.08s; }
  .reveal-section.animate-in .vision-card:nth-child(3) { animation-delay: 0.16s; }
  .reveal-section.animate-in .timeline-item { animation: cardFadeUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) backwards; }
  .reveal-section.animate-in .timeline-item:nth-child(2) { animation-delay: 0.06s; }
  .reveal-section.animate-in .timeline-item:nth-child(3) { animation-delay: 0.12s; }
  .reveal-section.animate-in .timeline-item:nth-child(4) { animation-delay: 0.18s; }
  .reveal-section.animate-in .service-detail-card { animation: cardFadeUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) backwards; }
  .reveal-section.animate-in .service-detail-card:nth-child(2) { animation-delay: 0.08s; }
  .reveal-section.animate-in .contact-card { animation: cardFadeUp 0.45s cubic-bezier(0.4, 0, 0.2, 1) backwards; }
  .reveal-section.animate-in .contact-card:nth-child(2) { animation-delay: 0.05s; }
  .reveal-section.animate-in .contact-card:nth-child(3) { animation-delay: 0.1s; }
  .reveal-section.animate-in .contact-card:nth-child(4) { animation-delay: 0.15s; }
  .reveal-section.animate-in .contact-card:nth-child(5) { animation-delay: 0.2s; }
}

/* ─── Vision Cards Icons ─── */
.vision-icon :is(i, .lottie-icon) {
  transition: transform var(--transition);
}
.vision-card:hover .vision-icon :is(i, .lottie-icon) { transform: scale(1.2) rotate(-8deg); }
@media (prefers-reduced-motion: no-preference) {
  .vision-icon :is(i, .lottie-icon) { animation: iconFloat 2.8s ease-in-out infinite; }
}
.vision-card:hover .vision-icon :is(i, .lottie-icon) { animation: none; }

/* ─── Footer Contact Icons ─── */
.footer-contact-info :is(i, .lottie-icon) {
  transition: transform var(--transition);
}
.footer-contact-info p:hover :is(i, .lottie-icon) { transform: scale(1.15); }

/* ─── Nav Icons (لغة) ─── */
.lang-switcher .lang-btn :is(i, .lottie-icon) {
  transition: transform var(--transition);
}
.lang-switcher .lang-btn:hover :is(i, .lottie-icon) { transform: rotate(180deg); }

/* ─── Share Buttons ─── */
.share-btn :is(i, .lottie-icon) {
  transition: transform var(--transition);
}
.share-btn:hover :is(i, .lottie-icon) { transform: scale(1.15); }

/* ─── Contact Page Icons ─── */
.contact-card-icon :is(i, .lottie-icon) {
  transition: transform var(--transition);
}
.contact-card:hover .contact-card-icon :is(i, .lottie-icon) {
  transform: scale(1.15) rotate(5deg);
}
@media (prefers-reduced-motion: no-preference) {
  .contact-card-icon :is(i, .lottie-icon) { animation: iconFloat 2.8s ease-in-out infinite; }
  .contact-card:hover .contact-card-icon :is(i, .lottie-icon) { animation: none; }
}

.social-link-lg :is(i, .lottie-icon) {
  transition: transform var(--transition);
}
.social-link-lg:hover :is(i, .lottie-icon) { transform: scale(1.15); }

/* ─── Service Features Check Icons ─── */
.service-features li :is(i, .lottie-icon) {
  transition: transform var(--transition);
}
.service-features li:hover :is(i, .lottie-icon) { transform: scale(1.2); }

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

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

ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-darkest);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(232,184,36,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-lg {
  padding: 14px 36px;
  font-size: 1.1rem;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* ===== Top Bar ===== */
.top-bar {
  background: var(--navy-darkest);
  padding: 8px 0;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-contact {
  display: flex;
  gap: 20px;
  color: var(--gray-300);
}

.top-contact :is(i, .lottie-icon) {
  color: var(--gold);
  margin-left: 6px;
}

.top-social {
  display: flex;
  gap: 12px;
}

.top-social a {
  color: var(--gray-300);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all var(--transition);
}

.top-social a:hover {
  color: var(--gold);
  background: rgba(232,184,36,0.15);
}

/* ===== Main Nav ===== */
.main-nav {
  background: var(--navy);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 200px;
  height: 40px;
  object-fit: contain;
  object-position: center;
}

.logo-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-text-ar {
  color: var(--gold);
  font-size: 1.2rem;
  font-weight: 800;
}

.logo-text-en {
  color: var(--white);
  font-size: 0.75rem;
  letter-spacing: 3px;
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: 4px;
}

.lang-switcher .lang-btn {
  border: 1px solid rgba(232,184,36,0.35);
  color: var(--gold);
  padding: 7px 12px;
  font-size: 0.85rem;
  font-weight: 700;
}

.nav-links a {
  color: var(--gray-200);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  background: rgba(232,184,36,0.1);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 50%;
  transform: translateX(50%);
  width: 30px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

[dir="ltr"] .nav-links a.active::after {
  right: auto;
  left: 50%;
  transform: translateX(-50%);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  width: 26px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background:
    var(--glow-gold-ambient),
    linear-gradient(145deg, var(--navy-darkest) 0%, var(--navy-dark) 38%, var(--navy) 62%, var(--navy-light) 100%);
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -30%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(240, 204, 80, 0.14) 0%, rgba(232, 184, 36, 0.05) 40%, transparent 72%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(232, 184, 36, 0.1) 0%, rgba(30, 58, 95, 0.12) 45%, transparent 72%);
  pointer-events: none;
}

/* أنيميشن الأنابيب التفاعلي في الهيرو - CC BY-NC-SA 4.0 threejs-components */
.hero-tubes-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

/* شبكة + ثابتة؛ موجة ضوئية كبيرة تمر من اليمين → اليسار كل 5s (بدون تحريك الشبكة) */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  isolation: isolate;
  /* قاعدة: شبكة خافتة — لا تتحرك */
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23e8b824' fill-opacity='0.045' d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/svg%3E");
  background-size: 60px 60px;
  background-position: 0 0;
  background-attachment: scroll;
}

.hero-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  /* نفس الشبكة بنفس المقاس — ثابتة تماماً */
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23f0cc50' fill-opacity='0.38' d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 60px 60px;
  background-position: 0 0;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.9;
  /* قناع = شريط ضوئي عريض؛ يتحرك أفقياً فقط (اليمين → اليسار) */
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.12) 22%,
    rgba(0, 0, 0, 0.55) 38%,
    rgba(0, 0, 0, 1) 50%,
    rgba(0, 0, 0, 0.55) 62%,
    rgba(0, 0, 0, 0.12) 78%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.12) 22%,
    rgba(0, 0, 0, 0.55) 38%,
    rgba(0, 0, 0, 1) 50%,
    rgba(0, 0, 0, 0.55) 62%,
    rgba(0, 0, 0, 0.12) 78%,
    transparent 100%
  );
  -webkit-mask-size: var(--hero-wave-mask-w, 220%) 100%;
  mask-size: var(--hero-wave-mask-w, 220%) 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  animation: heroMeshLightWaveRTL var(--hero-wave-duration, 5s) linear infinite;
}

/* موجة أعرض على الشاشات الأكبر من الجوال — نفس المسار 100% → -100% لكن الشريط الضوئي أوسع */
@media (min-width: 480px) {
  .hero-overlay::before {
    --hero-wave-mask-w: 280%;
  }
}

@media (min-width: 768px) {
  .hero-overlay::before {
    --hero-wave-mask-w: 340%;
  }
}

@media (min-width: 1024px) {
  .hero-overlay::before {
    --hero-wave-mask-w: 400%;
  }
}

@media (min-width: 1440px) {
  .hero-overlay::before {
    --hero-wave-mask-w: 480%;
  }
}

@keyframes heroMeshLightWaveRTL {
  /* يبدأ من خارج اليمين → يخرج من اليسار (إحداثيات الشاشة) */
  0% {
    -webkit-mask-position: 100% 0;
    mask-position: 100% 0;
  }
  100% {
    -webkit-mask-position: -100% 0;
    mask-position: -100% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-overlay::before {
    animation: none;
    opacity: 0.35;
    -webkit-mask-position: 50% 0;
    mask-position: 50% 0;
  }
}

.hero .container {
  /* هوامش أفقية متناسقة مع عرض الشاشة */
  padding-inline: clamp(16px, 4vw, 32px);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(48px, 8vw, 88px) 0;
  pointer-events: auto;
}

/* نصفان متساويان ديناميكياً (1fr لكل عمود — يتكيّف مع عرض الحاوية والـ gap) */
.hero-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  justify-items: stretch;
  direction: ltr;
  width: 100%;
  box-sizing: border-box;
}

.hero-text {
  direction: rtl;
  text-align: right;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding-inline: clamp(0px, 1vw, 8px);
}

[dir="ltr"] .hero-text {
  direction: ltr;
  text-align: left;
}

.hero-badge {
  display: inline-block;
  background: rgba(232,184,36,0.15);
  color: var(--gold);
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(232,184,36,0.3);
}

.hero h1 {
  color: var(--white);
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 8px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-subtitle {
  color: var(--gold);
  font-size: 1.4rem;
  letter-spacing: 8px;
  font-weight: 300;
  margin-bottom: 24px;
}

.hero-desc {
  color: var(--gray-300);
  font-size: 1.15rem;
  max-width: min(100%, 38rem);
  margin: 0 0 36px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* ─── Hero Map Card ─── */
.hero-map {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  width: 100%;
  padding-inline: clamp(0px, 1vw, 8px);
}

.hero-map-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  backdrop-filter: none;
  width: 100%;
  max-width: min(560px, 100%);
  margin-inline: auto;
  box-shadow: none;
}

.hero-map-svg {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 8;
}

.hero-map-svg svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-gov-path {
  stroke: rgba(255,255,255,0.2);
  stroke-width: 0.9;
  stroke-linejoin: round;
  transition: all 0.2s ease;
}

.hero-gov-active {
  fill: rgba(232,184,36,0.92);
  fill-opacity: 0.92;
  stroke: var(--gold-light);
  stroke-width: 1.2;
  filter: url(#heroGlow);
  animation: heroGovPulse 2.8s ease-in-out infinite;
}

.hero-gov-hover {
  transform: translateY(-1px);
  stroke: rgba(255,255,255,0.75);
  stroke-width: 1.4;
}

.hero-gov-selected {
  stroke: #ffffff;
  stroke-width: 2;
}

.hero-gov-inactive {
  fill: rgba(19,43,72,0.78);
  fill-opacity: 0.78;
  stroke: rgba(255,255,255,0.12);
}

.hero-map-tip {
  position: absolute;
  pointer-events: none;
  background: rgba(3, 11, 26, 0.88);
  color: #fff;
  border: 1px solid rgba(232,184,36,0.4);
  border-radius: 12px;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  z-index: 4;
}

.hero-map-tip .tip-active {
  color: var(--gold);
  margin-right: 6px;
  font-size: 0.72rem;
}

@keyframes heroGovPulse {
  0%, 100% { fill-opacity: 0.9; }
  50% { fill-opacity: 1; }
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 3;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: 80px;
}

/* ===== Sections ===== */
.section {
  padding: 80px 0;
}

.section-alt {
  background:
    radial-gradient(ellipse 90% 40% at 50% 0%, rgba(232, 184, 36, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, rgba(15, 24, 40, 0.72) 0%, rgba(12, 20, 35, 0.58) 50%, rgba(10, 16, 28, 0.62) 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-badge {
  display: inline-block;
  background: rgba(232,184,36,0.12);
  color: var(--gold-dark);
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 12px;
  font-weight: 800;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: 0 auto 16px;
  border-radius: 2px;
}

.section-divider-start {
  margin-right: 0;
}

.section-header p {
  color: var(--gray-600);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-cta {
  text-align: center;
  margin-top: 40px;
}

/* ===== Stats ===== */
.stats-section {
  background:
    radial-gradient(ellipse 100% 80% at 50% 0%, rgba(255, 221, 68, 0.1) 0%, transparent 45%),
    linear-gradient(180deg, rgba(21, 42, 74, 0.98) 0%, rgba(18, 34, 64, 0.98) 50%, rgba(21, 42, 74, 0.98) 100%);
  padding: 50px 0;
  margin-top: -1px;
  overflow-x: hidden;
  border-top: 1px solid rgba(232, 184, 36, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.stat-card {
  text-align: center;
  padding: 24px 12px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(232,184,36,0.15);
  transition: all var(--transition);
  min-width: 0;
}

.stats-section .stat-card:hover {
  background: rgba(232,184,36,0.1);
  transform: translateY(-4px);
}

.about-stats .stat-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

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

.stat-icon {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 12px;
}

.stat-value {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 4px;
  line-height: 1.2;
}

.stats-section .stat-value { color: var(--gold); }
.about-stats .stat-value { color: var(--navy); }

.stat-label {
  font-size: 0.95rem;
  color: var(--gray-300);
  font-weight: 500;
}

.about-stats .stat-label { color: var(--gray-600); }

/* ===== Services ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  opacity: 0;
  transition: opacity var(--transition);
}

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

.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--gold);
  transition: all var(--transition);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy-darkest);
  transform: scale(1.1);
}

.service-card h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 10px;
  font-weight: 700;
}

.service-card p {
  color: var(--gray-600);
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.6;
}

.card-link {
  color: var(--gold-dark);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition);
}

.card-link:hover {
  color: var(--navy);
  gap: 10px;
}

/* ===== Services Detail (Services Page) ===== */
.services-detail-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.service-detail-card {
  display: flex;
  gap: 40px;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.service-detail-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.service-detail-card.reverse {
  flex-direction: row-reverse;
}

.service-detail-icon {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  color: var(--gold);
}

.service-detail-content h3 {
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 12px;
  font-weight: 700;
}

.service-detail-content p {
  color: var(--gray-600);
  margin-bottom: 16px;
  line-height: 1.8;
}

.service-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-800);
  font-size: 0.95rem;
}

.service-features li :is(i, .lottie-icon) {
  color: var(--gold);
  font-size: 0.85rem;
}

.service-detail-media {
  flex-shrink: 0;
  width: min(260px, 32vw);
  max-width: 100%;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(160deg, rgba(232, 184, 36, 0.08), rgba(21, 42, 74, 0.06));
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.service-detail-media img {
  width: 100%;
  height: 100%;
  min-height: 140px;
  max-height: 220px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ===== Projects ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

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

.project-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--gold);
}

.project-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-current {
  background: var(--gold);
  color: var(--navy-darkest);
}

.badge-upcoming {
  background: var(--navy);
  color: var(--gold);
  border: 1px solid var(--gold-muted);
}

.project-body {
  padding: 24px;
}

.project-body h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 10px;
  font-weight: 700;
}

.project-body p {
  color: var(--gray-600);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ===== Posts / Newspaper ===== */
.newspaper-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 36px;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 25px;
  background: var(--white);
  color: var(--gray-600);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid var(--gray-200);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition);
}

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

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.post-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.post-media {
  height: 180px;
  overflow: hidden;
  position: relative;
}

.post-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.post-card:hover .post-media img {
  transform: scale(1.05);
}

/* Image in grid - Facebook-style: 16:9 aspect ratio, contained */
.post-media.post-image-embed {
  height: auto;
  aspect-ratio: 16/9;
  background: #18191a;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  overflow: hidden;
}

.post-media.post-image-embed img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Video in grid - Facebook-style: 16:9 aspect ratio, contained */
.post-media.post-video-embed {
  height: auto;
  aspect-ratio: 16/9;
  background: #18191a;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  overflow: hidden;
}

.post-media.post-video-embed video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  max-height: 100%;
}

.post-video-thumb,
.post-text-thumb,
.post-circular-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 100%;
  font-size: 0.85rem;
  color: var(--gold);
}

.post-video-thumb {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
}

.post-video-thumb :is(i, .lottie-icon) { font-size: 3rem; width: 1em; height: 1em; }

.post-text-thumb {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
}

.post-text-thumb :is(i, .lottie-icon) { font-size: 2.5rem; width: 1em; height: 1em; }

.post-circular-thumb {
  background: linear-gradient(135deg, #1b2838, #234);
}

.post-circular-thumb :is(i, .lottie-icon) { font-size: 2.5rem; width: 1em; height: 1em; }

.post-body {
  padding: 20px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.post-type-badge {
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.post-type-text {
  background: rgba(21,42,74,0.1);
  color: var(--navy);
}

.post-type-image {
  background: rgba(232,184,36,0.15);
  color: var(--gold-dark);
}

.post-type-video {
  background: rgba(220,38,38,0.1);
  color: #dc2626;
}

.post-type-circular {
  background: rgba(34,197,94,0.1);
  color: #16a34a;
}

.post-date {
  font-size: 0.8rem;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  gap: 4px;
}

.post-body h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 8px;
  font-weight: 700;
  line-height: 1.5;
}

.post-body h3 a:hover {
  color: var(--gold-dark);
}

.post-excerpt {
  color: var(--gray-600);
  font-size: 0.88rem;
  margin-bottom: 12px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--gray-200);
}

.post-views {
  font-size: 0.8rem;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===== Post Detail ===== */
.post-detail-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

.post-detail {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.post-detail-header {
  margin-bottom: 30px;
}

.post-detail-header h1 {
  font-size: 1.8rem;
  color: var(--navy);
  margin: 12px 0;
  line-height: 1.5;
}

.post-detail-meta {
  display: flex;
  gap: 20px;
  color: var(--gray-400);
  font-size: 0.9rem;
}

.post-detail-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-detail-media {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 30px;
}

.post-detail-media img {
  width: 100%;
  border-radius: var(--radius-md);
}

/* Video in post detail - Facebook-style: 16:9, bounded, max 700px */
.post-detail-media.post-detail-video {
  aspect-ratio: 16/9;
  max-width: 700px;
  background: #18191a;
  border-radius: 8px;
}

.post-detail-video video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

.post-detail-content {
  font-size: 1.05rem;
  line-height: 2;
  color: var(--gray-800);
  margin-bottom: 30px;
}

.post-detail-share {
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}

.post-detail-share h4 {
  margin-bottom: 12px;
  color: var(--navy);
  font-size: 0.95rem;
}

.share-buttons {
  display: flex;
  gap: 10px;
}

.share-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition);
  color: var(--white);
}

.share-facebook { background: #1877F2; }
.share-whatsapp { background: #25D366; }
.share-x { background: #000; }
.share-linkedin { background: #0A66C2; }
.share-instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.share-copy { background: var(--navy); }

.share-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ===== Sidebar ===== */
.post-sidebar {
  position: sticky;
  top: 90px;
}

.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.sidebar-widget h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
}

.sidebar-post {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.sidebar-post:last-child { border-bottom: none; }

.sidebar-post:hover {
  padding-right: 8px;
}

.sidebar-post-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--navy);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.sidebar-post-info h4 {
  font-size: 0.88rem;
  color: var(--navy);
  margin-bottom: 4px;
  line-height: 1.4;
}

.sidebar-post-info span {
  font-size: 0.75rem;
  color: var(--gray-400);
}

/* ===== Page Banner ===== */
.page-banner {
  position: relative;
  background: linear-gradient(135deg, var(--navy-darkest), var(--navy));
  padding: 80px 0 60px;
  text-align: center;
  overflow: hidden;
}

.page-banner-sm { padding: 60px 0 40px; }

.page-banner-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23e8b824' fill-opacity='0.04' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
}

.page-banner h1 {
  color: var(--white);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
  position: relative;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--gray-400);
  position: relative;
}

.breadcrumb a {
  color: var(--gold);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text h2 {
  font-size: 1.8rem;
  color: var(--navy);
  margin-bottom: 12px;
}

.about-text p {
  color: var(--gray-600);
  margin-bottom: 16px;
  line-height: 1.9;
}

.about-image-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 3px solid var(--gold);
}

.about-main-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.about-placeholder {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  padding: 80px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: var(--gold);
}

.about-placeholder :is(i, .lottie-icon) { font-size: 4rem; width: 1em; height: 1em; }
.about-placeholder span { font-size: 0.9rem; color: var(--gray-300); }

/* ===== Vision ===== */
.about-vision {
  background: linear-gradient(135deg, var(--navy-darkest), var(--navy));
}

.vision-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.vision-card {
  text-align: center;
  padding: 40px 30px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-md);
  border: 1px solid rgba(232,184,36,0.15);
  transition: all var(--transition);
}

.vision-card:hover {
  background: rgba(232,184,36,0.08);
  transform: translateY(-4px);
}

.vision-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: rgba(232,184,36,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--gold);
}

.vision-card h3 {
  color: var(--gold);
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.vision-card p {
  color: var(--gray-300);
  font-size: 0.92rem;
  line-height: 1.8;
}

/* ===== Timeline ===== */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-right: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--gold), var(--gold-light));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding: 0 40px 40px 0;
}

.timeline-marker {
  position: absolute;
  right: -8px;
  top: 4px;
  width: 18px;
  height: 18px;
  background: var(--gold);
  border-radius: 50%;
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 0 3px var(--gold);
}

.timeline-content {
  background: var(--white);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

.timeline-content h4 {
  color: var(--navy);
  margin-bottom: 8px;
  font-weight: 700;
}

.timeline-content p {
  color: var(--gray-600);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info-section h2,
.contact-form-section h2 {
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.contact-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.contact-card:hover {
  border-color: var(--gold);
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: var(--navy);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.1rem;
}

.contact-card h4 {
  color: var(--navy);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.contact-card p {
  color: var(--gray-600);
  font-size: 0.88rem;
  line-height: 1.6;
}

.contact-social {
  margin-top: 30px;
}

.contact-social h4 {
  color: var(--navy);
  margin-bottom: 12px;
}

.social-links-large {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social-link-lg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--navy);
  color: var(--gold);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
}

.social-link-lg:hover {
  background: var(--gold);
  color: var(--navy-darkest);
}

/* ===== Form ===== */
.contact-form {
  margin-top: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(232,184,36,0.1);
}

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

/* ===== CTA Section ===== */
.cta-section {
  background: linear-gradient(135deg, var(--navy-darkest), var(--navy));
  padding: 60px 0;
  text-align: center;
}

.cta-content h2 {
  color: var(--white);
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.cta-content p {
  color: var(--gray-300);
  font-size: 1.05rem;
  margin-bottom: 24px;
}

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-400);
  grid-column: 1 / -1;
}

.empty-state :is(i, .lottie-icon) {
  font-size: 3rem;
  width: 1em;
  height: 1em;
  margin-bottom: 16px;
  color: var(--gray-300);
}

.empty-filter-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-400);
}

.empty-filter-state :is(i, .lottie-icon) {
  font-size: 3rem;
  width: 1em;
  height: 1em;
  margin-bottom: 16px;
  color: var(--gray-300);
}

/* ===== Error Page ===== */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.error-code {
  font-size: 8rem;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
  opacity: 0.15;
}

.error-content h1 {
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 12px;
}

.error-content p {
  color: var(--gray-600);
  margin-bottom: 24px;
}

/* ===== Footer ===== */
.main-footer {
  background: var(--navy-darkest);
  color: var(--gray-300);
}

.footer-top {
  padding: 60px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.footer-logo h3 {
  color: var(--gold);
  font-size: 1.1rem;
}

.footer-logo p {
  color: var(--gray-400);
  font-size: 0.75rem;
  letter-spacing: 3px;
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--gray-400);
}

.footer-col h4 {
  color: var(--gold);
  font-size: 1.05rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(232,184,36,0.2);
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a {
  color: var(--gray-400);
  font-size: 0.88rem;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-col ul a::before {
  content: '‹';
  color: var(--gold);
  font-weight: bold;
}

.footer-col ul a:hover {
  color: var(--gold);
  padding-right: 4px;
}

.footer-contact-info p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.88rem;
  color: var(--gray-400);
}

.footer-contact-info :is(i, .lottie-icon) {
  color: var(--gold);
  width: 16px;
  height: 16px;
  text-align: center;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(232,184,36,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  transition: all var(--transition);
  border: 1px solid rgba(232,184,36,0.2);
}

.footer-social a:hover {
  background: var(--gold);
  color: var(--navy-darkest);
}

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray-400);
}

/* ===== Scroll Top Button ===== */
.scroll-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-darkest);
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  opacity: 0;
  visibility: hidden;
  z-index: 999;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--gold-dark);
  transform: translateY(-3px);
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: clamp(24px, 5vw, 36px);
  }
  .hero-text {
    text-align: center;
    padding-inline: 0;
  }
  .hero-actions { justify-content: center; }
  .hero-map {
    justify-content: center;
    padding-inline: 0;
  }
  .hero-map-card { max-width: min(460px, 100%); margin-inline: auto; }
  .hero-text { order: 1; }
  .hero-map { order: 2; }
  .hero h1 { font-size: 2.5rem; }
  .hero-subtitle { font-size: 1.1rem; letter-spacing: 5px; }
  .about-grid { grid-template-columns: 1fr; }
  .vision-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .post-detail-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .service-detail-card,
  .service-detail-card.reverse { flex-direction: column; text-align: center; }
  .service-detail-media {
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
    min-height: 160px;
  }
  .service-detail-media img {
    max-height: 240px;
  }
  .service-detail-icon { width: 90px; height: 90px; font-size: 2rem; }
}

@media (max-width: 768px) {
  .top-bar { display: none; }
  .hero { min-height: auto; }
  .container { padding-left: 16px; padding-right: 16px; }
  .stats-grid { gap: 20px; }
  .stat-card { padding: 20px 16px; }
  .stat-value { font-size: 1.8rem; }
  .hero h1 { font-size: 2rem; }
  .hero-desc { font-size: 1rem; }
  .hero-map-card { max-width: 360px; }
  .section { padding: 50px 0; }
  .section-header h2 { font-size: 1.6rem; }
  .page-banner { padding: 60px 0 40px; }
  .page-banner h1 { font-size: 1.6rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .mobile-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    right: 0;
    left: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    border-top: 2px solid var(--gold);
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .nav-links a.active::after { display: none; }

  .post-detail { padding: 24px; }
  .post-detail-header h1 { font-size: 1.4rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  .hero-subtitle { font-size: 0.9rem; letter-spacing: 3px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-card { padding: 16px 8px; }
  .stat-value { font-size: 1.4rem; white-space: normal; overflow: visible; text-overflow: unset; }
  .stat-icon { font-size: 1.5rem; margin-bottom: 8px; }
  .stat-label { font-size: 0.8rem; }
  .services-grid { grid-template-columns: 1fr; }
  .newspaper-filters { gap: 6px; }
  .filter-btn { padding: 6px 14px; font-size: 0.8rem; }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── انتقالات سلسة بين الأقسام (عند التمرير) ─── */
.reveal-section {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-section.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.animate-in {
  animation: fadeInUp 0.55s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.reveal-section.animate-in {
  animation: none; /* استخدام transition بدلاً من animation للأقسام */
}

@media (prefers-reduced-motion: reduce) {
  .reveal-section { opacity: 1; transform: none; transition: none; }
}

/* ===== Syria Map ===== */
.map-legend {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-600);
}

.legend-color {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 2px solid rgba(0,0,0,0.1);
}

.legend-active { background: var(--gold); }
.legend-inactive { background: var(--navy-light); }

.map-container {
  max-width: 800px;
  margin: 0 auto;
}

.map-wrapper {
  position: relative;
  background: linear-gradient(135deg, var(--navy-darkest), var(--navy));
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--gold-muted);
  overflow: hidden;
}

.map-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23e8b824' fill-opacity='0.02' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

#syriaMapD3 {
  width: 100%;
  position: relative;
  z-index: 2;
}

#syriaMap {
  width: 100%;
  height: auto;
  display: block;
}

.gov-path {
  stroke: rgba(255,255,255,0.3);
  stroke-width: 1.5;
  stroke-linejoin: round;
  transition: all 0.35s ease;
}

.gov-active {
  fill: var(--gold);
  fill-opacity: 0.85;
  stroke: var(--gold-light);
  stroke-width: 2;
}

.gov-active:hover {
  fill-opacity: 1;
  stroke-width: 2.5;
  filter: drop-shadow(0 0 8px rgba(232,184,36,0.5));
  transform-origin: center;
}

.gov-inactive {
  fill: var(--navy-light);
  fill-opacity: 0.5;
  stroke: rgba(255,255,255,0.15);
}

.gov-inactive:hover {
  fill-opacity: 0.7;
  stroke: rgba(255,255,255,0.3);
}

.gov-focused {
  animation: mapPulse 0.6s ease 3;
}

@keyframes mapPulse {
  0%, 100% { fill-opacity: 0.85; }
  50% { fill-opacity: 1; filter: drop-shadow(0 0 12px rgba(232,184,36,0.7)); }
}

.gov-label {
  font-size: 11px;
  fill: var(--white);
  pointer-events: none;
  opacity: 0.9;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.gov-label-sm {
  font-size: 8px;
}

.gov-label-xs {
  font-size: 6px;
}

.map-tooltip {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  box-shadow: var(--shadow-md);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 10;
  min-width: 140px;
  text-align: center;
}

.map-tooltip.visible { opacity: 1; }

.map-tooltip h4 {
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.tooltip-active {
  color: var(--gold-dark);
  font-size: 0.8rem;
  font-weight: 600;
}

.tooltip-inactive {
  color: var(--gray-400);
  font-size: 0.8rem;
}

.tooltip-detail {
  color: var(--gray-600);
  font-size: 0.78rem;
  margin-top: 4px;
  margin-bottom: 0;
}

/* ===== Coverage Tabs & Panels ===== */
.coverage-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.coverage-tab {
  padding: 10px 22px;
  border-radius: 25px;
  background: var(--white);
  color: var(--gray-600);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  border: 2px solid var(--gray-200);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
}

.coverage-tab:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
}

.coverage-tab.active {
  background: var(--navy);
  color: var(--gold);
  border-color: var(--navy);
}

.coverage-tab :is(i, .lottie-icon) { font-size: 0.8rem; width: 1em; height: 1em; }

.coverage-panel {
  display: none;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  margin-bottom: 24px;
  animation: fadeInUp 0.4s ease;
}

.coverage-panel.active { display: block; }

.coverage-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 30px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white);
}

.coverage-panel-header h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.coverage-panel-header h3 :is(i, .lottie-icon) { color: var(--gold); }

.coverage-panel-header p {
  font-size: 0.85rem;
  color: var(--gray-300);
}

.coverage-panel-badge {
  background: rgba(232,184,36,0.15);
  color: var(--gold);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.coverage-table {
  width: 100%;
  border-collapse: collapse;
}

.coverage-table th {
  background: var(--gray-50);
  color: var(--gray-600);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 14px 20px;
  text-align: right;
  border-bottom: 2px solid var(--gray-200);
}

.coverage-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
}

.coverage-table tbody tr:hover {
  background: var(--gray-50);
}

.area-name {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.area-name :is(i, .lottie-icon) {
  color: var(--gold);
  font-size: 0.8rem;
  width: 1em;
  height: 1em;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.service-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.service-tag :is(i, .lottie-icon) { font-size: 0.65rem; width: 1em; height: 1em; }

.service-tag-active {
  background: rgba(16,185,129,0.1);
  color: #059669;
  border: 1px solid rgba(16,185,129,0.2);
}

.service-tag-upcoming {
  background: rgba(245,158,11,0.1);
  color: #D97706;
  border: 1px solid rgba(245,158,11,0.2);
}

.no-upcoming {
  color: var(--gray-300);
  font-size: 0.85rem;
}

/* ─── Circulars - التعاميم العاجلة ─── */
.circulars-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  padding: 40px 0;
  margin-bottom: 0;
}

.circulars-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.circulars-title {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
}

.circulars-title :is(i, .lottie-icon) {
  font-size: 1.5rem;
  width: 1em;
  height: 1em;
  animation: pulseIcon 2s infinite;
}

@keyframes pulseIcon {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.15); }
}

.circulars-title h2 {
  font-size: 1.4rem;
  margin: 0;
  color: var(--white);
}

.circulars-count {
  background: rgba(232,184,36,0.15);
  color: var(--gold);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.circulars-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.circular-card {
  display: flex;
  gap: 20px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-md);
  padding: 24px;
  border-right: 5px solid transparent;
  transition: all 0.3s ease;
}

.circular-card:hover {
  background: rgba(255,255,255,0.07);
  transform: translateX(-4px);
}

.circular-critical { border-right-color: #e74c3c; }
.circular-warning { border-right-color: #f39c12; }
.circular-info { border-right-color: #3498db; }

.circular-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.3rem;
}

.circular-critical .circular-icon { background: rgba(231,76,60,0.15); color: #e74c3c; }
.circular-warning .circular-icon { background: rgba(243,156,18,0.15); color: #f39c12; }
.circular-info .circular-icon { background: rgba(52,152,219,0.15); color: #3498db; }

.circular-body { flex: 1; }

.circular-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.circular-severity-badge, .circular-type-badge {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.severity-critical { background: rgba(231,76,60,0.2); color: #e74c3c; }
.severity-warning { background: rgba(243,156,18,0.2); color: #f39c12; }
.severity-info { background: rgba(52,152,219,0.2); color: #3498db; }

.circular-type-badge { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); }

.circular-date { color: rgba(255,255,255,0.5); font-size: 0.8rem; }

.circular-title {
  color: var(--white);
  font-size: 1.1rem;
  margin: 0 0 8px;
  font-weight: 700;
}

.circular-excerpt {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 12px;
}

.circular-areas {
  margin-bottom: 10px;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
}

.circular-areas strong { color: rgba(255,255,255,0.85); }

.circular-area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.circular-area-tag {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 0.78rem;
}

.circular-times {
  display: flex;
  gap: 20px;
  color: rgba(255,255,255,0.6);
  font-size: 0.82rem;
  flex-wrap: wrap;
}

.circular-times :is(i, .lottie-icon) { margin-left: 4px; }

/* ─── Home Page Circulars Banner ─── */
.home-circulars-banner {
  background: linear-gradient(135deg, #b71c1c 0%, #c62828 50%, #d32f2f 100%);
  padding: 0;
  position: relative;
  overflow: hidden;
}

.home-circulars-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 10px,
    rgba(0,0,0,0.05) 10px,
    rgba(0,0,0,0.05) 20px
  );
  pointer-events: none;
}

.home-circulars-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  position: relative;
  z-index: 1;
}

.home-circulars-icon {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  font-size: 1.2rem;
  animation: pulseIcon 1.5s infinite;
}

.home-circulars-content {
  flex: 1;
}

.home-circulars-content h3 {
  color: #fff;
  font-size: 0.95rem;
  margin: 0 0 6px;
  font-weight: 700;
}

.home-circulars-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.home-circular-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.9);
  flex-wrap: wrap;
}

.home-circular-badge {
  background: rgba(255,255,255,0.2);
  color: #fff;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.home-circular-text { font-weight: 500; }

.home-circular-areas {
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem;
}

.home-circulars-link {
  color: #fff;
  background: rgba(255,255,255,0.15);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.3s;
}

.home-circulars-link:hover { background: rgba(255,255,255,0.25); }

@media (max-width: 768px) {
  .map-wrapper { padding: 15px; }
  .gov-label { font-size: 8px; }
  .gov-label-sm { font-size: 6px; }
  .gov-label-xs { font-size: 5px; }
  .coverage-panel-header { flex-direction: column; gap: 12px; text-align: center; padding: 20px; }
  .coverage-table th, .coverage-table td { padding: 10px 12px; font-size: 0.82rem; }
  .map-legend { gap: 16px; }
  .circulars-header { flex-direction: column; gap: 10px; text-align: center; }
  .circular-card { flex-direction: column; gap: 12px; padding: 16px; }
  .circular-icon { width: 40px; height: 40px; }
  .circular-times { flex-direction: column; gap: 6px; }
  .home-circulars-wrapper { flex-direction: column; text-align: center; padding: 16px 0; }
  .home-circular-item { justify-content: center; }
}

/* ===== tw-landing: تناسق Glassmorphism — نصوص وبطاقات على خلفية داكنة (ليس أبيض) ===== */
body.tw-landing {
  color: #e2e8f0;
}
body.tw-landing a:not(.btn):not(.nav-links a):not(.footer-col a):not(.footer-social a):not(.top-social a):not(.lang-btn):not(.logo):not(.social-link-lg):not(.share-btn):not(.home-circulars-link) {
  color: inherit;
}
body.tw-landing .section-header h2 {
  color: #f8fafc;
}
body.tw-landing .section-header p {
  color: #94a3b8;
}
body.tw-landing .section-badge:not(.tw-section-header-badge) {
  background: rgba(232, 184, 36, 0.12);
  color: var(--gold-light);
  border: 1px solid rgba(232, 184, 36, 0.25);
}
body.tw-landing .service-card,
body.tw-landing .project-card,
body.tw-landing .post-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(232, 184, 36, 0.14);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    var(--glow-gold-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
body.tw-landing .service-card:hover,
body.tw-landing .project-card:hover,
body.tw-landing .post-card:hover {
  border-color: rgba(232, 184, 36, 0.38);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.38),
    0 0 52px -6px rgba(232, 184, 36, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
body.tw-landing .service-card h3,
body.tw-landing .project-body h3,
body.tw-landing .post-body h3 {
  color: #f1f5f9;
}
body.tw-landing .service-card p,
body.tw-landing .project-body p,
body.tw-landing .post-excerpt {
  color: #cbd5e1;
}
body.tw-landing .post-body h3 a {
  color: #f1f5f9;
}
body.tw-landing .post-body h3 a:hover {
  color: var(--gold);
}
body.tw-landing .post-meta,
body.tw-landing .post-date,
body.tw-landing .post-views {
  color: #94a3b8;
}
body.tw-landing .post-footer {
  border-top-color: rgba(255, 255, 255, 0.08);
}
body.tw-landing .card-link {
  color: var(--gold);
}
body.tw-landing .card-link:hover {
  color: var(--gold-light);
}
body.tw-landing .service-detail-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(232, 184, 36, 0.14);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    var(--glow-gold-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
body.tw-landing .service-detail-media {
  border-color: rgba(232, 184, 36, 0.22);
  background: linear-gradient(165deg, rgba(232, 184, 36, 0.1), rgba(255, 255, 255, 0.04));
  box-shadow: var(--glow-gold-soft);
}
body.tw-landing .service-detail-content h3 {
  color: #f1f5f9;
}
body.tw-landing .service-detail-content p,
body.tw-landing .service-features li {
  color: #cbd5e1;
}
body.tw-landing .post-detail {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(232, 184, 36, 0.14);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.28),
    var(--glow-gold-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
body.tw-landing .post-detail-header h1,
body.tw-landing .post-detail-content {
  color: #e2e8f0;
}
body.tw-landing .post-detail-meta {
  color: #94a3b8;
}
body.tw-landing .sidebar-widget {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(232, 184, 36, 0.12);
  box-shadow: var(--glow-gold-soft);
}
body.tw-landing .sidebar-widget h3 {
  color: #f1f5f9;
}
body.tw-landing .sidebar-post-info h4 {
  color: #e2e8f0;
}
body.tw-landing .filter-btn {
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
body.tw-landing .filter-btn:hover,
body.tw-landing .filter-btn.active {
  background: rgba(21, 42, 74, 0.9);
  color: var(--gold);
  border-color: rgba(232, 184, 36, 0.35);
}
body.tw-landing .about-text h2 {
  color: #f8fafc;
}
body.tw-landing .about-text p {
  color: #cbd5e1;
}
body.tw-landing .about-stats .stat-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
body.tw-landing .about-stats .stat-value {
  color: var(--gold);
}
body.tw-landing .about-stats .stat-label {
  color: #94a3b8;
}
body.tw-landing .vision-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
body.tw-landing .timeline-content {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
body.tw-landing .timeline-content h4 {
  color: #f1f5f9;
}
body.tw-landing .timeline-content p {
  color: #cbd5e1;
}
body.tw-landing .contact-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
body.tw-landing .contact-info-section h2,
body.tw-landing .contact-form-section h2 {
  color: #f8fafc;
}
body.tw-landing .contact-card h4 {
  color: #f1f5f9;
}
body.tw-landing .contact-card p {
  color: #cbd5e1;
}
body.tw-landing .form-group label {
  color: #e2e8f0;
}
body.tw-landing .form-group input,
body.tw-landing .form-group textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
}
body.tw-landing .form-group input::placeholder,
body.tw-landing .form-group textarea::placeholder {
  color: #64748b;
}
body.tw-landing .legend-item {
  color: #cbd5e1;
}
body.tw-landing .post-type-text {
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
}
body.tw-landing .empty-state,
body.tw-landing .empty-filter-state {
  color: #94a3b8;
}
body.tw-landing .error-content h1 {
  color: #f8fafc;
}
body.tw-landing .error-content p {
  color: #94a3b8;
}
body.tw-landing .coverage-panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
body.tw-landing .coverage-table th {
  background: rgba(15, 23, 42, 0.5);
  color: #cbd5e1;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
body.tw-landing .coverage-table td {
  border-bottom-color: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
}
body.tw-landing .coverage-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}
body.tw-landing .area-name {
  color: #f1f5f9;
}
body.tw-landing .map-tooltip {
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
body.tw-landing .map-tooltip h4 {
  color: #f1f5f9;
}
body.tw-landing .cta-section {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
body.tw-landing .hero .hero-badge {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(232, 184, 36, 0.35);
  color: var(--gold-light);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
