/* ══════════════════════════════════════════════════════════════
   وزارة التعليم العالي والبحث العلمي — الجمهورية العربية السورية
   Design System — Anti-Plagiarism Academic Integrity Portal
   ══════════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ── */
:root {
  /* Syrian Institutional Palette */
  --primary: #007a3d;
  --primary-dark: #005c2d;
  --primary-light: #e8f5ee;
  --primary-glass: rgba(0,122,61,0.08);
  --accent-red: #ce1126;
  --accent-red-light: rgba(206,17,38,0.08);
  --gold: #c8a951;
  --gold-light: rgba(200,169,81,0.12);

  /* Neutrals */
  --black: #0f1419;
  --text: #1a1a1a;
  --text-secondary: #4a5568;
  --muted: #6b7280;
  --border: rgba(0,122,61,0.10);
  --border-subtle: rgba(0,0,0,0.06);

  /* Backgrounds */
  --bg: #ffffff;
  --bg-warm: #f9fafb;
  --bg-section: #f5f8f6;
  --bg-dark: #0a1f12;
  --bg-dark-card: rgba(255,255,255,0.04);

  /* Cards */
  --card: #ffffff;
  --card-hover: #fafffe;

  /* Spacing & Shape */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow: 0 8px 32px rgba(0,122,61,0.06);
  --shadow-lg: 0 20px 60px rgba(0,122,61,0.10);
  --shadow-card: 0 4px 20px rgba(0,0,0,0.04);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ── RESET & BASE ── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Cairo', 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }
ul, ol { list-style: none; }

/* ── UTILITY ── */
.section-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-accent { color: var(--primary); }
.text-accent-red { color: var(--accent-red); }

/* ══════════════════════════════════════════════════════
   FLAG TRICOLOR BAR (top of page)
   ══════════════════════════════════════════════════════ */
.flag-bar {
  display: flex;
  height: 5px;
  width: 100%;
  position: relative;
  z-index: 200;
}
.flag-bar span {
  flex: 1;
  display: block;
}
.flag-green { background: #007a3d; }
.flag-white { background: #ffffff; }
.flag-black { background: #000000; }

/* ══════════════════════════════════════════════════════
   GOVERNMENT BAR — الجمهورية العربية السورية
   ══════════════════════════════════════════════════════ */
.gov-bar {
  background: var(--bg-dark);
  color: #fff;
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-family: 'Cairo', sans-serif;
  position: relative;
}
.gov-bar-text {
  opacity: 0.95;
}

/* ══════════════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════════════ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 2px solid var(--border);
  transition: box-shadow 0.3s var(--ease);
}
.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Brand */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.nav-brand-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}
.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.brand-subtitle {
  font-size: 11px;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: var(--primary-glass);
}
.nav-link.active {
  font-weight: 600;
}

/* Nav CTA (login) */
.nav-cta {
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: var(--radius-xs);
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,122,61,0.2);
}
.mobile-menu .nav-cta {
  text-align: center;
  margin-top: 12px;
  padding: 14px 16px;
  font-size: 16px;
}

/* Nav dropdown (toolbox) */
.nav-dropdown {
  position: relative;
  display: inline-flex;
}
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.nav-dropdown-trigger .dd-arrow {
  transition: transform 0.2s;
  opacity: 0.75;
}
.nav-dropdown:hover .dd-arrow,
.nav-dropdown:focus-within .dd-arrow { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  inset-inline-start: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 32px rgba(0,0,0,0.10);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 9px 14px;
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
  color: var(--primary);
  background: var(--primary-glass);
}
.nav-dropdown-menu a.active { font-weight: 600; }

/* Mobile dropdown grouping */
.mobile-menu .mobile-dropdown-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 14px;
  margin-bottom: 2px;
  padding: 0 16px;
}
.mobile-menu .nav-sub {
  padding-inline-start: 32px;
}

/* Language Switch */
.lang-switch {
  display: flex;
  gap: 4px;
  align-items: center;
  margin-right: 8px;
  border-right: 1px solid var(--border-subtle);
  padding-right: 14px;
}
html[dir="ltr"] .lang-switch {
  margin-right: 0;
  margin-left: 8px;
  border-right: none;
  border-left: 1px solid var(--border-subtle);
  padding-right: 0;
  padding-left: 14px;
}
.lang-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 5px 10px;
  border-radius: var(--radius-xs);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  font-family: 'Cairo', 'Inter', sans-serif;
}
.lang-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.lang-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-xs);
  transition: background 0.2s;
}
.hamburger:hover { background: var(--primary-glass); }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s var(--ease);
}

/* ══════════════════════════════════════════════════════
   INSTITUTIONAL HEADER — Hero Section
   ══════════════════════════════════════════════════════ */
.inst-header {
  position: relative;
  background: linear-gradient(175deg, #ffffff 0%, var(--bg-section) 50%, var(--primary-light) 100%);
  overflow: hidden;
  padding: 60px 0 80px;
}
.inst-header::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23007a3d' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  opacity: 0.6;
  pointer-events: none;
}

/* Logos Row */
.inst-logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-bottom: 40px;
  position: relative;
  flex-wrap: wrap;
}
.inst-emblem {
  height: 120px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.08));
}
.inst-flag {
  height: 80px;
  width: auto;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
.inst-center-text {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.inst-republic {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  font-family: 'Cairo', sans-serif;
  letter-spacing: 0.02em;
}
.inst-ministry {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.5;
  font-family: 'Cairo', sans-serif;
  max-width: 400px;
}
.inst-patronage {
  text-align: center;
  max-width: 720px;
  margin: 8px auto 22px;
  padding: 10px 22px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--primary-dark);
  line-height: 1.6;
  font-family: 'Cairo', sans-serif;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Title Block */
.inst-title-block {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}
.inst-system-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-red-light);
  color: var(--accent-red);
  border: 1px solid rgba(206,17,38,0.2);
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}
.inst-system-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--accent-red);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.inst-main-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 18px;
  font-family: 'Cairo', sans-serif;
}
.inst-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* Action Buttons */
.inst-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 50px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  padding: 14px 30px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  font-family: 'Cairo', 'Inter', sans-serif;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,122,61,0.2);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  border: 2px solid var(--primary);
  transition: background 0.2s, transform 0.2s;
  font-family: 'Cairo', 'Inter', sans-serif;
}
.btn-secondary:hover {
  background: var(--primary-glass);
  transform: translateY(-1px);
}
.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  border: 1.5px solid rgba(255,255,255,0.3);
  transition: background 0.2s, border-color 0.2s;
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}
.btn-large { padding: 16px 36px; font-size: 16px; }

/* Stats Row */
.inst-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.inst-stat {
  background: #fff;
  padding: 24px 16px;
  text-align: center;
  transition: background 0.2s;
}
.inst-stat:hover { background: var(--card-hover); }
.inst-stat-num {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
  line-height: 1;
  font-family: 'Inter', 'Cairo', sans-serif;
}
.inst-stat-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  font-weight: 500;
}

/* ══════════════════════════════════════════════════════
   SECTION HEADERS (shared)
   ══════════════════════════════════════════════════════ */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-tag {
  display: inline-block;
  background: var(--accent-red-light);
  color: var(--accent-red);
  border: 1px solid rgba(206,17,38,0.18);
  padding: 5px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.3;
  font-family: 'Cairo', sans-serif;
}
.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ══════════════════════════════════════════════════════
   PLAGIARISM DEFINITION SECTION
   ══════════════════════════════════════════════════════ */
.definition-section { padding: 100px 0; background: var(--bg); }
.definition-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.def-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.def-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  opacity: 0;
  transition: opacity 0.3s;
}
html[dir="rtl"] .def-card::before {
  right: auto;
  left: 0;
  border-radius: var(--radius) 0 0 var(--radius);
}
.def-card:hover {
  border-color: rgba(0,122,61,0.25);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.def-card:hover::before { opacity: 1; }

.def-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(145deg, #fff, var(--primary-light));
  border: 1px solid rgba(0,122,61,0.12);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0,122,61,0.06);
  transition: transform 0.4s var(--ease-bounce);
}
.def-card:hover .def-icon { transform: scale(1.08); }
.def-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.def-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ══════════════════════════════════════════════════════
   FEATURES / CARDS GRID
   ══════════════════════════════════════════════════════ */
.features-section { padding: 100px 0; background: var(--bg-section); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
  border-color: rgba(0,122,61,0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.feature-card-large { grid-column: span 2; }
.feature-icon-wrap {
  width: 56px;
  height: 56px;
  background: linear-gradient(145deg, #fff, var(--primary-light));
  border: 1px solid rgba(0,122,61,0.12);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0,122,61,0.06);
  transition: transform 0.4s var(--ease-bounce);
}
.feature-card:hover .feature-icon-wrap { transform: scale(1.08) rotate(-3deg); }
.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.feature-pill {
  display: inline-block;
  background: var(--primary-glass);
  color: var(--primary);
  border: 1px solid rgba(0,122,61,0.18);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 14px;
}
.feature-pill-red {
  background: var(--accent-red-light);
  color: var(--accent-red);
  border-color: rgba(206,17,38,0.18);
}

/* ══════════════════════════════════════════════════════
   QUICK ACCESS CARDS
   ══════════════════════════════════════════════════════ */
.quick-access { padding: 100px 0; background: var(--bg); }
.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.quick-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: all 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.quick-card:hover {
  border-color: var(--primary);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.quick-card-icon {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.quick-card-icon.green { background: var(--primary-glass); color: var(--primary); }
.quick-card-icon.red { background: var(--accent-red-light); color: var(--accent-red); }
.quick-card-icon.gold { background: var(--gold-light); color: var(--gold); }
.quick-card h3 { font-size: 18px; font-weight: 700; color: var(--text); }
.quick-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.quick-card .card-arrow {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  transition: gap 0.2s;
}
.quick-card:hover .card-arrow { gap: 10px; }

/* ══════════════════════════════════════════════════════
   ADVICE / GUIDES SECTION
   ══════════════════════════════════════════════════════ */
.advice-section { padding: 100px 0; background: var(--bg-section); }
.advice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.advice-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.3s, transform 0.3s;
}
.advice-card:hover {
  border-color: rgba(0,122,61,0.25);
  transform: translateY(-3px);
}
.advice-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.advice-icon-green { background: var(--primary-glass); color: var(--primary); }
.advice-icon-blue { background: rgba(59,130,246,0.08); color: #3b82f6; }
.advice-icon-gold { background: var(--gold-light); color: var(--gold); }
.advice-icon-red { background: var(--accent-red-light); color: var(--accent-red); }
.advice-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.advice-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
}
.advice-list {
  padding-right: 18px;
  list-style: disc;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
html[dir="ltr"] .advice-list { padding-right: 0; padding-left: 18px; }
.advice-list li {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.advice-list li strong { color: var(--text); }

/* FAQ */
.faq-container {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}
.faq-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 28px;
}
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.faq-item {
  background: var(--bg-warm);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 20px;
  transition: border-color 0.2s;
}
.faq-item:hover { border-color: rgba(0,122,61,0.2); }
.faq-q {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}
.faq-a {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Citation examples */
.cite-examples {
  margin-top: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.cite-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
}
.cite-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.cite-box {
  background: var(--bg-warm);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}
.cite-style {
  display: inline-block;
  background: var(--primary-glass);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
}
.cite-sample {
  display: block;
  font-family: 'Inter', 'Cairo', monospace;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}
@media (max-width: 900px) {
  .cite-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════
   TEACHERS SECTION
   ══════════════════════════════════════════════════════ */
.teachers-section { padding: 100px 0; background: var(--bg); }
.teachers-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.teachers-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 16px 0 32px;
}
.teacher-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}
.tf-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.tf-dot {
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}
.tf-item strong {
  display: block;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 4px;
}
.tf-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* ══════════════════════════════════════════════════════
   LEGAL / LAWS SECTION
   ══════════════════════════════════════════════════════ */
.legal-section { padding: 100px 0; background: var(--bg-section); }
.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.legal-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.legal-card:hover {
  border-color: rgba(0,122,61,0.25);
  transform: translateY(-3px);
}
.legal-number {
  position: absolute;
  top: 16px;
  left: 20px;
  font-size: 52px;
  font-weight: 800;
  color: rgba(0,122,61,0.05);
  line-height: 1;
  font-family: 'Inter', sans-serif;
}
html[dir="rtl"] .legal-number { left: auto; right: 20px; }
.legal-icon {
  color: var(--primary);
  margin-bottom: 16px;
}
.legal-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.legal-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}
.legal-badge {
  display: inline-block;
  background: var(--primary-glass);
  color: var(--primary);
  border: 1px solid rgba(0,122,61,0.18);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
}
.legal-badge-red {
  background: var(--accent-red-light);
  color: var(--accent-red);
  border-color: rgba(206,17,38,0.18);
}
.legal-badge-gold {
  background: var(--gold-light);
  color: #9a7d30;
  border-color: rgba(200,169,81,0.25);
}

/* ══════════════════════════════════════════════════════
   UNIVERSITIES SECTION
   ══════════════════════════════════════════════════════ */
.universities-section { padding: 100px 0; background: var(--bg); }

/* Tabs */
.uni-tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 40px;
  background: var(--bg-warm);
  border-radius: var(--radius-sm);
  padding: 4px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.uni-tab {
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  border: none;
  background: none;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Cairo', sans-serif;
}
.uni-tab:hover { color: var(--primary); }
.uni-tab.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,122,61,0.2);
}

/* University Grid */
.uni-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.uni-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.uni-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.uni-card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.uni-card-city {
  font-size: 12px;
  color: var(--muted);
}
.uni-card-desc {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-top: 8px;
  line-height: 1.5;
}
.uni-card-badge {
  display: inline-block;
  margin-top: 10px;
  background: var(--primary-glass);
  color: var(--primary);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
}

/* ══════════════════════════════════════════════════════
   NEWS / ACTUALITÉS
   ══════════════════════════════════════════════════════ */
.news-section { padding: 100px 0; background: var(--bg-section); }
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.news-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s var(--ease);
}
.news-card:hover {
  border-color: rgba(0,122,61,0.25);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.news-card-body { padding: 28px; }
.news-card-date {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
}
.news-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.5;
}
.news-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.news-card-tag {
  display: inline-block;
  background: var(--primary-glass);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 14px;
}

/* ══════════════════════════════════════════════════════
   SANCTIONS SCALE (visual)
   ══════════════════════════════════════════════════════ */
.sanctions-scale {
  display: flex;
  gap: 0;
  margin: 40px 0;
}
.sanction-step {
  flex: 1;
  padding: 24px 16px;
  text-align: center;
  position: relative;
  border-top: 4px solid;
}
.sanction-step:nth-child(1) { border-color: #10b981; background: rgba(16,185,129,0.04); }
.sanction-step:nth-child(2) { border-color: #f59e0b; background: rgba(245,158,11,0.04); }
.sanction-step:nth-child(3) { border-color: #f97316; background: rgba(249,115,22,0.04); }
.sanction-step:nth-child(4) { border-color: #ef4444; background: rgba(239,68,68,0.04); }
.sanction-step:nth-child(5) { border-color: #991b1b; background: rgba(153,27,27,0.04); }
.sanction-step-num {
  font-size: 28px;
  font-weight: 800;
  opacity: 0.15;
  margin-bottom: 8px;
  font-family: 'Inter', sans-serif;
}
.sanction-step-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.sanction-step-desc {
  font-size: 11px;
  color: var(--muted);
}

/* ══════════════════════════════════════════════════════
   CTA SECTION (dark)
   ══════════════════════════════════════════════════════ */
.cta-section {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, var(--bg-dark) 0%, #0d2b16 50%, #071a0d 100%);
  z-index: 0;
}
.cta-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23007a3d' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  opacity: 0.4;
}
.cta-orb {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0,122,61,0.15), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}
.cta-container {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.cta-logo {
  height: 80px;
  width: auto;
  object-fit: contain;
  margin-bottom: 32px;
  filter: brightness(0) invert(1) opacity(0.9);
}
.cta-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  font-family: 'Cairo', sans-serif;
}
.cta-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
  margin-bottom: 36px;
}
.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════ */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 48px;
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.footer-logo {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1) opacity(0.85);
}
.footer-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.footer-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}
.footer-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-bottom: 16px;
}
.footer-contact-item {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.footer-contact-item svg { flex-shrink: 0; opacity: 0.5; }
.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: background 0.2s, color 0.2s;
}
.footer-social a:hover {
  background: var(--primary);
  color: #fff;
}
.footer-links-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.footer-links-col a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-links-col a:hover { color: var(--primary); }

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 24px;
}
.footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom-inner span {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}
.footer-powered {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
}
.footer-powered strong {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.footer-powered:hover { color: rgba(255,255,255,0.7); }
.footer-flags {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-flag-bar {
  display: flex;
  width: 36px;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
}
.footer-flag-bar span { flex: 1; }
.footer-flags span {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

/* ══════════════════════════════════════════════════════
   TIMELINE (for news/actualités)
   ══════════════════════════════════════════════════════ */
.timeline {
  position: relative;
  padding-right: 32px;
}
html[dir="ltr"] .timeline { padding-right: 0; padding-left: 32px; }
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), transparent);
  border-radius: 3px;
}
html[dir="ltr"] .timeline::before { right: auto; left: 0; }
.timeline-item {
  position: relative;
  margin-bottom: 36px;
  padding-right: 24px;
}
html[dir="ltr"] .timeline-item { padding-right: 0; padding-left: 24px; }
.timeline-item::before {
  content: '';
  position: absolute;
  top: 8px;
  right: -36px;
  width: 12px;
  height: 12px;
  background: var(--primary);
  border: 3px solid var(--bg);
  border-radius: 50%;
}
html[dir="ltr"] .timeline-item::before { right: auto; left: -36px; }

/* ══════════════════════════════════════════════════════
   PAGE HEADER (for inner pages)
   ══════════════════════════════════════════════════════ */
.page-header {
  background: linear-gradient(170deg, var(--bg-dark) 0%, #0d2b16 100%);
  padding: 48px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23007a3d' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  opacity: 0.5;
}
.page-header-content {
  position: relative;
  z-index: 1;
}
.page-header h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  font-family: 'Cairo', sans-serif;
}
.page-header p {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}
.page-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 13px;
}
.page-breadcrumb a { color: rgba(255,255,255,0.5); transition: color 0.2s; }
.page-breadcrumb a:hover { color: var(--primary); }
.page-breadcrumb span { color: rgba(255,255,255,0.3); }
.page-breadcrumb .current { color: rgba(255,255,255,0.8); }
.page-breadcrumb .sep::before { content: "\2039"; }
html[dir="ltr"] .page-breadcrumb .sep::before { content: "\203A"; }

/* ══════════════════════════════════════════════════════
   AUTH (login / forgot password)
   ══════════════════════════════════════════════════════ */
.auth-section {
  min-height: calc(100vh - 220px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  background: linear-gradient(175deg, #ffffff 0%, var(--bg-section) 55%, var(--primary-light) 100%);
}
.auth-card {
  width: 100%;
  max-width: 430px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 40px 36px;
  text-align: center;
}
.auth-logo { height: 64px; width: auto; object-fit: contain; margin-bottom: 18px; }
.auth-title { font-size: 22px; font-weight: 800; color: var(--text); margin-bottom: 8px; font-family: 'Cairo', sans-serif; }
.auth-sub { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 22px; }
.auth-label { display: block; text-align: start; font-size: 13px; font-weight: 600; color: var(--text); margin: 14px 0 6px; }
.auth-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg-warm);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.auth-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glass); background: #fff; }
.auth-pass-wrap { position: relative; }
.auth-toggle {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  inset-inline-end: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  display: flex;
  padding: 4px;
  border-radius: var(--radius-xs);
}
.auth-toggle:hover { color: var(--primary); }
.auth-toggle .eye-off { display: none; }
.auth-toggle.on .eye { display: none; }
.auth-toggle.on .eye-off { display: block; }
.auth-btn { width: 100%; justify-content: center; margin-top: 22px; }
.auth-link {
  display: inline-block;
  margin-top: 18px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
}
.auth-link:hover { text-decoration: underline; }
.auth-msg {
  display: none;
  font-size: 13px;
  line-height: 1.5;
  border-radius: var(--radius-sm);
  text-align: start;
}
.auth-msg.show { display: block; padding: 11px 14px; margin-bottom: 10px; }
.auth-msg.error { background: var(--accent-red-light); color: var(--accent-red); border: 1px solid rgba(206,17,38,0.2); }
.auth-msg.success { background: var(--primary-glass); color: var(--primary-dark); border: 1px solid rgba(0,122,61,0.2); }

/* ══════════════════════════════════════════════════════
   SCROLL ANIMATIONS
   ══════════════════════════════════════════════════════ */
.anim-fade {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.anim-fade.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Staggered children */
.anim-stagger > * { transition-delay: calc(var(--i, 0) * 80ms); }

/* ══════════════════════════════════════════════════════
   MOBILE MENU
   ══════════════════════════════════════════════════════ */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  top: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  z-index: 99;
  flex-direction: column;
  padding: 80px 24px 24px;
  gap: 4px;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu .nav-link {
  font-size: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
}
.mobile-menu .lang-switch {
  border: none;
  padding: 0;
  margin: 16px 0 0;
  justify-content: center;
}
.mobile-close {
  position: absolute;
  top: 20px;
  left: 20px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--text);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
}
html[dir="ltr"] .mobile-close { left: auto; right: 20px; }
.mobile-close:hover { background: var(--bg-warm); }

/* ══════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 900px) {
  .inst-stats-row { grid-template-columns: repeat(2, 1fr); }
  .definition-grid,
  .features-grid,
  .quick-grid { grid-template-columns: 1fr; }
  .feature-card-large { grid-column: span 1; }
  .advice-grid,
  .faq-grid,
  .legal-grid,
  .news-grid { grid-template-columns: 1fr; }
  .teachers-layout { grid-template-columns: 1fr; }
  .uni-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-container { grid-template-columns: 1fr 1fr; }
  .sanctions-scale { flex-direction: column; }
}
@media (max-width: 480px) {
  .inst-stats-row { grid-template-columns: 1fr; }
  .inst-emblem { height: 90px; }
  .inst-flag { height: 60px; }
  .inst-main-title { font-size: 28px; }
  .uni-grid { grid-template-columns: 1fr; }
  .uni-tabs { flex-wrap: wrap; }
  .footer-container { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: column; align-items: center; }
}

/* ══════════════════════════════════════════════════════
   RTL SPECIFIC OVERRIDES
   ══════════════════════════════════════════════════════ */
html[dir="rtl"] body { font-family: 'Cairo', 'Inter', sans-serif; }
html[dir="rtl"] .tf-item { text-align: right; }
html[dir="rtl"] .footer-container { direction: rtl; }
html[dir="rtl"] .footer-links-col { text-align: right; }
html[dir="rtl"] .footer-brand { text-align: right; }
html[dir="rtl"] .advice-card,
html[dir="rtl"] .legal-card,
html[dir="rtl"] .faq-item,
html[dir="rtl"] .feature-card,
html[dir="rtl"] .def-card { text-align: right; }
html[dir="rtl"] .teachers-left { text-align: right; }

/* LTR overrides */
html[dir="ltr"] body { font-family: 'Inter', 'Cairo', sans-serif; }
html[dir="ltr"] .nav-brand { flex-direction: row; }
