:root {
  /* ألوان مستوحاة من هوية وزارة التعليم (أخضر أساسي #07a869 ومرافقات فاتحة) — دون شعار رسمي */
  --moe-green: #07a869;
  --moe-teal: #0da9a6;
  --moe-navy: #15445a;
  --moe-blue: #3d7eb9;
  --moe-sand: #e8e4d9;
  --moe-gray: #c2c1c1;
  --accent: var(--moe-green);
  --accent-soft: #2ad49a;
  --accent-glow: rgba(7, 168, 105, 0.18);
  --card: #ffffff;
  --card-muted: #f0f7f4;
  --text: var(--moe-navy);
  --text-muted: #3d5c6b;
  --border: rgba(21, 68, 90, 0.12);
  --nav-h: 72px;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 16px 40px rgba(21, 68, 90, 0.1);
  --shadow-soft: 0 8px 24px rgba(21, 68, 90, 0.08);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Cairo", "Segoe UI", Tahoma, sans-serif;
  color: var(--text);
  background: radial-gradient(1000px 520px at 10% -10%, rgba(7, 168, 105, 0.14), transparent 52%),
    radial-gradient(800px 420px at 100% 0%, rgba(13, 169, 166, 0.12), transparent 48%),
    linear-gradient(180deg, #f7fcfa 0%, #eef6f3 38%, #f4f1ea 100%);
  line-height: 1.75;
}

a {
  color: inherit;
}

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

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -100px;
  background: var(--card);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 1000;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
}

.skip-link:focus {
  top: 12px;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(7, 168, 105, 0.2);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  margin: 0;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-weight: 800;
  color: var(--moe-navy);
  letter-spacing: -0.02em;
}

.brand a {
  text-decoration: none;
  color: inherit;
}

.brand a:hover {
  color: var(--accent);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-links a:hover {
  color: var(--moe-navy);
  background: rgba(7, 168, 105, 0.1);
}

.nav-links a.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
}

main {
  padding-bottom: 48px;
  flex: 1;
}

.hero {
  padding: clamp(32px, 6vw, 72px) 0 clamp(40px, 7vw, 80px);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.hero__content {
  color: var(--text);
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #056845;
  background: rgba(7, 168, 105, 0.12);
  border: 1px solid rgba(7, 168, 105, 0.28);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero__title {
  margin: 0 0 16px;
  font-size: clamp(1.85rem, 4.2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--moe-navy);
  letter-spacing: -0.03em;
}

.hero__lead {
  margin: 0 0 28px;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 34em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), filter 0.2s var(--ease);
}

.btn:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
  color: #fff;
  box-shadow: 0 10px 26px rgba(7, 168, 105, 0.32);
}

.btn--primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.btn--ghost {
  background: #fff;
  color: var(--moe-navy);
  border: 1px solid rgba(21, 68, 90, 0.15);
}

.btn--ghost:hover {
  background: var(--card-muted);
  color: var(--accent);
  border-color: rgba(7, 168, 105, 0.35);
}

.btn--light {
  background: var(--card);
  color: var(--text);
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-soft);
}

.btn--light:hover {
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.hero__panel {
  background: #fff;
  border: 1px solid rgba(21, 68, 90, 0.1);
  border-radius: calc(var(--radius) + 6px);
  padding: 14px;
  box-shadow: var(--shadow-soft);
}

.hero__panel-inner {
  border-radius: var(--radius);
  overflow: hidden;
  background: #eef5f3;
  border: 1px solid rgba(21, 68, 90, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.hero__panel-inner img {
  width: 100%;
  height: auto;
  max-height: min(68vh, 520px);
  object-fit: contain;
  object-position: center;
  display: block;
}

.section {
  padding: clamp(36px, 5vw, 56px) 0;
}

.section--tight {
  padding-top: 8px;
}

.section__head {
  max-width: 640px;
  margin-bottom: 32px;
}

.section__title {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 800;
  color: var(--moe-navy);
}

.section__subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.section__title--in-card {
  color: var(--text);
  margin-bottom: 12px;
}

.section__title--in-card-tight {
  margin-bottom: 10px;
}

.meta-line--tight {
  margin-bottom: 4px;
}

.contact-primary-value {
  margin: 0 0 16px;
  font-weight: 800;
  font-size: 1.15rem;
}

.contact-primary-value a {
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.contact-primary-value a:hover {
  text-decoration: underline;
  color: #05965c;
}

.report-lead {
  margin: 0 0 18px;
  color: var(--text-muted);
}

.policy-doc__actions {
  margin-top: 24px;
}

.footer-contact-label {
  margin: 0 0 8px;
  color: var(--moe-navy);
  font-weight: 700;
}

.card-surface {
  background: var(--card);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 28px);
  box-shadow: var(--shadow-soft);
  border: 1px solid #e8eef5;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.feature-card {
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 22px;
  border: 1px solid #e8eef5;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
}

.feature-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(7, 168, 105, 0.18), rgba(13, 169, 166, 0.12));
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 1.25rem;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
}

.feature-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.steps {
  display: grid;
  gap: 16px;
}

.step-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  border: 1px solid #e8eef5;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-row h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 800;
}

.step-row p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.why-card {
  background: var(--card-muted);
  border-radius: var(--radius-sm);
  padding: 22px;
  border: 1px solid #e2e8f0;
}

.why-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 800;
}

.why-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.alert {
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  background: rgba(251, 191, 36, 0.18);
  border: 1px solid rgba(217, 119, 6, 0.35);
  color: #92400e;
}

.alert strong {
  color: #78350f;
}

.slider {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid #e8eef5;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.slider__viewport {
  overflow: hidden;
  background: #eef5f3;
}

.slider__track {
  display: flex;
  transition: transform 0.45s var(--ease);
  align-items: stretch;
}

.slider__slide {
  min-width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 0;
}

.slider__slide img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(72vh, 540px);
  object-fit: contain;
  object-position: center;
  margin-inline: auto;
  background: #eef5f3;
  flex: 0 0 auto;
}

.slider__caption {
  padding: 14px 18px 18px;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-top: 1px solid #eef2f7;
}

.slider__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #f8fafc;
  border-top: 1px solid #e8eef5;
}

.slider__dots {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  flex: 1;
}

.slider__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: #cbd5e1;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.slider__dot[aria-current="true"] {
  background: var(--accent);
  transform: scale(1.15);
}

.slider__arrow {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.slider__arrow:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.slider__arrow svg {
  width: 20px;
  height: 20px;
}

.page-hero {
  padding: clamp(28px, 5vw, 48px) 0 8px;
}

.page-hero__title {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 800;
  color: var(--moe-navy);
}

.page-hero__lead {
  margin: 0;
  max-width: 52ch;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.accordion__item {
  background: var(--card);
  border-radius: var(--radius-sm);
  border: 1px solid #e8eef5;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.accordion__trigger {
  width: 100%;
  text-align: start;
  padding: 18px 20px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  background: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background 0.2s var(--ease);
}

.accordion__trigger:hover {
  background: #f8fafc;
}

.accordion__trigger::after {
  content: "";
  width: 10px;
  height: 10px;
  border-inline-end: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
  flex-shrink: 0;
  transition: transform 0.25s var(--ease);
}

.accordion__item.is-open .accordion__trigger::after {
  transform: rotate(135deg);
}

.accordion__panel {
  padding: 0 20px 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
  display: none;
}

.accordion__item.is-open .accordion__panel {
  display: block;
}

.policy-doc {
  max-width: 800px;
}

.policy-doc h2 {
  margin: 28px 0 12px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
}

.policy-doc h2:first-child {
  margin-top: 0;
}

.policy-doc p,
.policy-doc li {
  color: var(--text-muted);
  font-size: 0.98rem;
}

.policy-doc ul {
  padding-inline-start: 22px;
}

.policy-doc a {
  color: var(--accent);
  font-weight: 700;
}

.policy-doc a:hover {
  text-decoration: underline;
}

.meta-line {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.site-footer {
  margin-top: auto;
  padding: 32px 0 40px;
  border-top: 1px solid rgba(21, 68, 90, 0.12);
  background: rgba(255, 255, 255, 0.65);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer .footer-links a {
  color: var(--moe-navy);
  font-weight: 600;
  text-decoration: none;
}

.site-footer .footer-links a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.site-footer .footer-contact a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.site-footer .footer-contact a:hover {
  color: #05965c;
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
}

.footer-copy {
  margin: 16px 0 0;
  font-size: 0.85rem;
  color: #64748b;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 120%);
  background: #0f172a;
  color: #f8fafc;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  opacity: 0;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
  z-index: 200;
  white-space: nowrap;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    justify-content: flex-end;
  }
}

@media (max-width: 600px) {
  .nav-links a {
    padding: 6px 10px;
    font-size: 0.88rem;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .contact-actions .btn {
    width: 100%;
  }
}
