
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800;900&family=Noto+Sans+Arabic:wght@300;400;500;600;700&display=swap');

:root {
  --purple-900: #2d1854;
  --purple-800: #3b1f6e;
  --purple-700: #4a2688;
  --purple-600: #6b3fa0;
  --purple-500: #7c4dba;
  --purple-400: #9b6dd3;
  --purple-300: #b794e6;
  --purple-200: #d4bef5;
  --purple-100: #ede4fb;
  --purple-50: #f7f2fd;
  --teal-700: #0d6e6e;
  --teal-600: #0f8585;
  --teal-500: #14a3a3;
  --teal-400: #2bc4c4;
  --teal-300: #5dd8d8;
  --teal-200: #9aeaea;
  --teal-100: #d0f5f5;
  --teal-50: #effbfb;
  --gold-500: #d4a843;
  --gold-400: #e0be6a;
  --gold-300: #ecd48f;
  --warm-50: #fefcf8;
  --warm-100: #fdf8ed;
  --gray-900: #1a1a2e;
  --gray-700: #3d3d56;
  --gray-500: #6b6b85;
  --gray-300: #b3b3c6;
  --gray-100: #e8e8f0;
  --shadow-sm: 0 1px 3px rgba(45,24,84,0.08);
  --shadow-md: 0 4px 15px rgba(45,24,84,0.1);
  --shadow-lg: 0 10px 40px rgba(45,24,84,0.12);
  --shadow-xl: 0 20px 60px rgba(45,24,84,0.15);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Cairo', 'Noto Sans Arabic', sans-serif;
  direction: rtl;
  text-align: right;
  background: var(--warm-50);
  color: var(--gray-900);
  line-height: 1.8;
  font-size: 16px;
  overflow-x: hidden;
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(45,24,84,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0;
  transition: all 0.3s ease;
  border-bottom: 2px solid var(--gold-500);
}
.navbar.scrolled { box-shadow: var(--shadow-lg); }
.nav-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 30px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}
.nav-logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--teal-400), var(--purple-400));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.nav-logo-text { font-weight: 700; font-size: 15px; line-height: 1.3; }
.nav-logo-text small { font-weight: 400; font-size: 11px; opacity: 0.8; display: block; }
.nav-links { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}
.nav-links a:hover, .nav-links a.active {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 70px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--purple-900) 0%, var(--purple-700) 40%, var(--teal-700) 100%);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5 Q35 15 30 25 Q25 15 30 5Z' fill='rgba(255,255,255,0.03)'/%3E%3C/svg%3E");
  opacity: 0.5;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  padding: 60px 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.hero-text { color: #fff; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 13px;
  margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,0.15);
}
.hero-text h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 20px;
}
.hero-text h1 span { color: var(--teal-300); }
.hero-text p {
  font-size: 17px;
  opacity: 0.9;
  margin-bottom: 30px;
  max-width: 500px;
  line-height: 1.9;
}
.hero-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 3px solid rgba(255,255,255,0.15);
}
.hero-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

/* ===== ISLAMIC QUOTE ===== */
.quran-quote {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--purple-900);
  text-align: center;
  padding: 35px 30px;
  font-size: 20px;
  font-weight: 700;
  line-height: 2;
  letter-spacing: 0.5px;
}
.quran-quote .ref { font-size: 14px; font-weight: 400; opacity: 0.7; display: block; margin-top: 8px; }

/* ===== SECTIONS ===== */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 30px;
}
.section-header {
  text-align: center;
  margin-bottom: 50px;
}
.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--purple-800);
  margin-bottom: 12px;
}
.section-header p {
  color: var(--gray-500);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
}
.section-divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--purple-500), var(--teal-500));
  border-radius: 4px;
  margin: 16px auto 0;
}

/* ===== SYNDROME CARDS ===== */
.syndromes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.syndrome-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.35s ease;
  border: 1px solid var(--gray-100);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.syndrome-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--purple-200);
}
.syndrome-card-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}
.syndrome-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.syndrome-card:hover .syndrome-card-img img { transform: scale(1.06); }
.syndrome-card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--purple-600);
  color: #fff;
  font-size: 11px;
  padding: 5px 14px;
  border-radius: 50px;
  font-weight: 600;
}
.syndrome-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.syndrome-card-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--purple-800);
  margin-bottom: 10px;
}
.syndrome-card-body p {
  font-size: 14px;
  color: var(--gray-500);
  flex: 1;
  margin-bottom: 16px;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal-600);
  font-weight: 600;
  font-size: 14px;
}
.card-link::before { content: '←'; }

/* ===== IMAGE GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--gray-100);
  transition: all 0.3s ease;
}
.gallery-item:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--purple-200);
}
.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.gallery-item figcaption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--gray-700);
  background: #fff;
  text-align: center;
  font-weight: 500;
}

/* ===== QUOTE CARDS ===== */
.quote-card {
  background: linear-gradient(135deg, var(--purple-50), var(--teal-50));
  border-radius: var(--radius-lg);
  padding: 35px 40px;
  margin: 40px 0;
  border-right: 5px solid var(--purple-500);
  position: relative;
}
.quote-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  right: 30px;
  font-size: 80px;
  color: var(--purple-200);
  font-family: serif;
  line-height: 1;
}
.quote-card p { font-size: 18px; font-weight: 600; color: var(--purple-800); }
.quote-card .source { font-size: 13px; color: var(--gray-500); margin-top: 10px; font-weight: 400; }

/* ===== CONTENT PAGES ===== */
.page-hero {
  margin-top: 70px;
  padding: 80px 30px 60px;
  background: linear-gradient(135deg, var(--purple-900), var(--purple-700));
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, var(--warm-50), transparent);
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; margin-bottom: 12px; }
.page-hero .subtitle { font-size: 17px; opacity: 0.85; max-width: 600px; margin: 0 auto; }
.page-hero .badge-eng {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 14px;
  margin-top: 16px;
  border: 1px solid rgba(255,255,255,0.2);
  font-family: 'Segoe UI', sans-serif;
  direction: ltr;
}

.content-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 50px 30px 80px;
}
.content-section {
  margin-bottom: 50px;
}
.content-section h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--purple-800);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--purple-100);
  display: flex;
  align-items: center;
  gap: 12px;
}
.content-section h2 .icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--purple-500), var(--teal-500));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  flex-shrink: 0;
}
.content-section h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--purple-700);
  margin: 24px 0 12px;
}
.content-section p {
  color: var(--gray-700);
  line-height: 2;
  margin-bottom: 14px;
}

/* Info boxes */
.info-box {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 20px 0;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
}
.info-box.highlight {
  border-right: 4px solid var(--teal-500);
  background: var(--teal-50);
}
.info-box.warning {
  border-right: 4px solid #f59e0b;
  background: #fffbeb;
}
.info-box.important {
  border-right: 4px solid var(--purple-500);
  background: var(--purple-50);
}
.info-box h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--purple-800);
}

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.stat-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
}
.stat-card .stat-num {
  font-size: 28px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--purple-600), var(--teal-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-card .stat-label { font-size: 13px; color: var(--gray-500); margin-top: 4px; }

/* Tables */
.content-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.content-table th {
  background: var(--purple-700);
  color: #fff;
  padding: 14px 18px;
  font-weight: 600;
  font-size: 14px;
}
.content-table td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--gray-100);
  font-size: 14px;
  color: var(--gray-700);
}
.content-table tr:last-child td { border-bottom: none; }
.content-table tr:nth-child(even) td { background: var(--purple-50); }

/* Content images */
.content-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 24px 0;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--purple-100);
}
.content-img img {
  width: 100%;
  height: auto;
  display: block;
}
.content-img figcaption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--gray-500);
  background: var(--purple-50);
  text-align: center;
}

/* FAQ */
.faq-item {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 14px 0;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
}
.faq-item .q {
  font-weight: 700;
  color: var(--purple-700);
  margin-bottom: 8px;
  font-size: 15px;
}
.faq-item .a { color: var(--gray-700); font-size: 14px; }

/* Steps list */
.steps-list {
  counter-reset: step;
  list-style: none;
  padding: 0;
}
.steps-list li {
  counter-increment: step;
  padding: 16px 20px 16px 0;
  padding-right: 60px;
  position: relative;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
}
.steps-list li::before {
  content: counter(step);
  position: absolute;
  right: 0;
  top: 14px;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--purple-500), var(--teal-500));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

/* Do/Don't lists */
.do-list, .dont-list { list-style: none; padding: 0; }
.do-list li, .dont-list li {
  padding: 10px 34px 10px 0;
  position: relative;
  color: var(--gray-700);
}
.do-list li::before {
  content: '✓';
  position: absolute;
  right: 0;
  color: var(--teal-600);
  font-weight: 700;
  font-size: 18px;
}
.dont-list li::before {
  content: '✗';
  position: absolute;
  right: 0;
  color: #ef4444;
  font-weight: 700;
  font-size: 18px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--purple-900);
  color: rgba(255,255,255,0.7);
  padding: 50px 30px 30px;
  text-align: center;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer h3 { color: #fff; font-size: 18px; margin-bottom: 16px; }
.footer p { font-size: 14px; margin-bottom: 8px; }
.footer .footer-links { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin: 24px 0; }
.footer .footer-links a { color: var(--teal-300); text-decoration: none; font-size: 14px; }
.footer .footer-links a:hover { color: #fff; }
.footer .copyright { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; margin-top: 20px; font-size: 12px; }
.footer .emergency {
  background: rgba(239,68,68,0.15);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  margin-bottom: 24px;
  color: #fca5a5;
  font-size: 14px;
}
.footer .emergency strong { color: #fff; }

/* ===== BREADCRUMB ===== */
.breadcrumb {
  margin-top: 70px;
  padding: 14px 30px;
  background: var(--purple-50);
  border-bottom: 1px solid var(--purple-100);
  font-size: 13px;
}
.breadcrumb a { color: var(--purple-600); text-decoration: none; }
.breadcrumb span { color: var(--gray-500); margin: 0 8px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-text p { margin: 0 auto 30px; }
  .hero-image { max-width: 500px; margin: 0 auto; }
  .nav-links { display: none; position: fixed; top: 70px; right: 0; left: 0; background: var(--purple-900); flex-direction: column; padding: 20px; gap: 4px; border-bottom: 2px solid var(--gold-500); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .syndromes-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp 0.7s ease forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ===== DROPDOWN MENUS ===== */
.nav-dropdown {
  position: relative;
}
.dropdown-toggle {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  cursor: pointer;
  display: inline-block;
}
.dropdown-toggle:hover, .nav-dropdown.open .dropdown-toggle {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--purple-800);
  border-radius: var(--radius-md);
  padding: 8px 0;
  min-width: 220px;
  box-shadow: var(--shadow-xl);
  z-index: 1001;
  border: 1px solid rgba(255,255,255,0.1);
}
.nav-dropdown.open .dropdown-menu {
  display: block;
}
.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.dropdown-menu a:hover {
  background: rgba(255,255,255,0.1);
  color: var(--teal-300);
}

/* ===== PAGE HERO IMAGE ===== */
.page-hero-img {
  max-width: 600px;
  margin: 30px auto 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 3px solid rgba(255,255,255,0.15);
  position: relative;
  z-index: 1;
}
.page-hero-img img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

/* Mobile dropdown fix */
@media (max-width: 900px) {
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-sm);
    margin: 4px 0;
    padding: 4px 0;
    min-width: 100%;
  }
  .dropdown-menu a {
    padding: 8px 30px;
    font-size: 13px;
  }
  .nav-dropdown.open .dropdown-menu {
    display: flex;
    flex-direction: column;
  }
}
