:root {
  --green-950: #0b3c31;
  --green-900: #0e4f40;
  --green-800: #0f6b55;
  --green-700: #1a7d65;
  --green-100: #dff3eb;
  --green-50: #eef9f4;
  --blue-100: #e5f3f7;
  --blue-700: #246d80;
  --gold-500: #c89a45;
  --gold-100: #f5ead2;
  --ink: #172721;
  --muted: #66766f;
  --line: #dbe7e1;
  --paper: #fffefa;
  --sand: #f8f5ec;
  --white: #ffffff;
  --danger: #a33e3e;
  --shadow-sm: 0 8px 24px rgba(17, 66, 51, 0.08);
  --shadow-lg: 0 24px 70px rgba(17, 66, 51, 0.12);
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Dubai", "Segoe UI", Tahoma, Arial, sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(200, 154, 69, 0.65);
  outline-offset: 3px;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  transform: translateY(-150%);
  padding: 10px 16px;
  border-radius: 10px;
  color: var(--white);
  background: var(--green-950);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid rgba(15, 107, 85, 0.1);
  background: rgba(255, 254, 250, 0.92);
  backdrop-filter: blur(14px);
}

.header-content,
.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  color: var(--white);
  background: linear-gradient(145deg, var(--green-700), var(--green-950));
  box-shadow: 0 8px 18px rgba(15, 107, 85, 0.2);
}

.organization-logo {
  width: 58px;
  height: 58px;
  padding: 3px;
  border-radius: 15px;
  object-fit: contain;
  background: var(--white);
  box-shadow: 0 7px 18px rgba(15, 73, 59, 0.1);
}

.footer-logo {
  width: 66px;
  height: 66px;
}

.brand-mark svg {
  width: 29px;
  height: 29px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.1rem;
  line-height: 1.3;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.header-link {
  color: var(--green-900);
  font-size: 0.92rem;
  font-weight: 700;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 15%, rgba(200, 154, 69, 0.12), transparent 24%),
    radial-gradient(circle at 88% 82%, rgba(15, 107, 85, 0.12), transparent 28%),
    linear-gradient(180deg, var(--paper), var(--sand));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.25;
  background-image: radial-gradient(rgba(15, 107, 85, 0.2) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  align-items: center;
  min-height: 600px;
  gap: 44px;
  padding-block: 52px 38px;
}

.eyebrow,
.section-tag,
.success-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--green-800);
  font-size: 0.86rem;
  font-weight: 700;
}

.eyebrow {
  padding: 7px 12px;
  border: 1px solid rgba(15, 107, 85, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.eyebrow svg {
  width: 17px;
  height: 17px;
  color: var(--gold-500);
}

.hero h1 {
  max-width: 650px;
  margin: 0 0 20px;
  color: var(--green-950);
  font-size: clamp(2.35rem, 5.4vw, 4.65rem);
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.17;
}

.hero h1 em {
  position: relative;
  color: var(--green-700);
  font-style: normal;
  white-space: nowrap;
}

.hero h1 em::after {
  content: "";
  position: absolute;
  inset-inline: 4px;
  inset-block-end: -4px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-500);
  opacity: 0.55;
  transform: rotate(-1deg);
}

.hero-copy > p {
  max-width: 590px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.23rem);
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 13px 22px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--green-900);
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-features li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero-features li span {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  color: var(--green-800);
  background: var(--green-100);
  font-size: 0.75rem;
}

.hero-visual {
  position: relative;
  align-self: end;
  min-height: 500px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 9% 10% 2%;
  border-radius: 48% 48% 28% 28%;
  background: linear-gradient(155deg, var(--green-100), rgba(255, 255, 255, 0.72));
  border: 1px solid rgba(15, 107, 85, 0.1);
}

.hero-visual img {
  position: absolute;
  z-index: 2;
  inset-block-end: 0;
  inset-inline-start: 50%;
  width: min(100%, 530px);
  height: auto;
  transform: translateX(50%);
  filter: drop-shadow(0 22px 32px rgba(16, 71, 56, 0.14));
}

.visual-orbit {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(200, 154, 69, 0.42);
  border-radius: 50%;
}

.orbit-one {
  width: 78%;
  aspect-ratio: 1;
  inset: 10% 13% auto auto;
}

.orbit-two {
  width: 58%;
  aspect-ratio: 1;
  inset: 20% auto auto 12%;
}

.visual-note {
  position: absolute;
  z-index: 3;
  min-width: 106px;
  padding: 11px 15px;
  border: 1px solid rgba(15, 107, 85, 0.11);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

.visual-note span,
.visual-note strong {
  display: block;
}

.visual-note span {
  color: var(--muted);
  font-size: 0.72rem;
}

.visual-note strong {
  color: var(--green-900);
  font-size: 0.95rem;
}

.note-top {
  inset-block-start: 14%;
  inset-inline-start: -3%;
}

.note-bottom {
  inset-block-end: 15%;
  inset-inline-end: -2%;
}

.finder-section,
.result-section,
.about-section {
  padding-block: 90px;
}

.finder-section {
  background: var(--white);
}

.finder-wrap {
  max-width: 920px;
}

.section-heading,
.next-step-heading {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 30px;
}

.section-number,
.next-step-heading > span {
  color: var(--gold-500);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.section-heading h2,
.next-step-heading h2,
.about-section h2 {
  margin: 0 0 5px;
  color: var(--green-950);
  font-size: clamp(1.65rem, 3.5vw, 2.5rem);
  line-height: 1.25;
}

.section-heading p,
.next-step-heading p {
  margin: 0;
  color: var(--muted);
}

.finder-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.finder-progress {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
  background: var(--sand);
}

.progress-copy {
  min-width: 150px;
}

.progress-copy span,
.progress-copy strong {
  display: block;
}

.progress-copy span {
  color: var(--muted);
  font-size: 0.78rem;
}

.progress-copy strong {
  color: var(--green-900);
  font-size: 0.95rem;
}

.progress-track {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.progress-track span {
  display: block;
  width: 25%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-700), var(--green-900));
  transition: width 0.25s ease;
}

.step-content {
  min-height: 470px;
  padding: 44px 36px 32px;
}

.step-heading {
  margin-bottom: 28px;
  text-align: center;
}

.step-heading h3 {
  margin: 0 0 7px;
  color: var(--green-950);
  font-size: clamp(1.45rem, 3.4vw, 2rem);
}

.step-heading p {
  margin: 0;
  color: var(--muted);
}

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

.option-grid.two-columns {
  grid-template-columns: repeat(2, 1fr);
}

.option-button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 148px;
  gap: 12px;
  padding: 18px;
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
  transition: 0.18s ease;
}

.option-button:hover {
  border-color: rgba(15, 107, 85, 0.5);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.option-button[aria-pressed="true"] {
  border-color: var(--green-700);
  color: var(--green-900);
  background: var(--green-50);
  box-shadow: 0 0 0 4px rgba(15, 107, 85, 0.08);
}

.option-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  color: var(--green-800);
  background: var(--green-100);
}

.option-icon svg {
  width: 25px;
  height: 25px;
}

.option-label {
  font-weight: 800;
  text-align: center;
}

.option-note {
  max-width: 180px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.55;
  text-align: center;
}

.selection-check {
  position: absolute;
  inset-block-start: 11px;
  inset-inline-start: 11px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: transparent;
  background: transparent;
  font-size: 0.75rem;
}

.option-button[aria-pressed="true"] .selection-check {
  color: var(--white);
  background: var(--green-700);
}

.step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  gap: 9px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 800;
  cursor: pointer;
  transition: 0.18s ease;
}

.button svg,
.text-button svg {
  width: 20px;
  height: 20px;
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.button-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--green-700), var(--green-950));
  box-shadow: 0 10px 20px rgba(15, 107, 85, 0.2);
}

.button-secondary {
  border-color: var(--line);
  color: var(--green-900);
  background: var(--white);
}

.button-light {
  color: var(--green-950);
  background: var(--white);
  box-shadow: 0 12px 30px rgba(1, 28, 20, 0.14);
}

.button-small {
  min-height: 44px;
  padding: 8px 14px;
  font-size: 0.84rem;
}

.result-section {
  background: linear-gradient(180deg, var(--sand), var(--paper));
}

.is-hidden {
  display: none !important;
}

.result-shell {
  padding: clamp(22px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.result-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.success-label {
  margin-bottom: 8px;
}

.result-topline h2 {
  margin: 0 0 4px;
  color: var(--green-950);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.result-topline p {
  margin: 0;
  color: var(--muted);
}

.data-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 22px;
  padding: 15px 17px;
  border: 1px solid #edd9ac;
  border-radius: var(--radius-sm);
  background: #fff9ec;
}

.data-notice > svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: #9b6d19;
}

.data-notice strong {
  display: block;
  color: #79520d;
}

.data-notice p {
  margin: 2px 0 0;
  color: #7d6a46;
  font-size: 0.86rem;
}

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

.curriculum-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 17px;
  min-height: 230px;
  padding: 26px;
  border: 1px solid rgba(15, 107, 85, 0.1);
  border-radius: var(--radius-md);
}

.memorization-card {
  background: var(--green-50);
}

.recitation-card {
  border-color: rgba(36, 109, 128, 0.12);
  background: var(--blue-100);
}

.curriculum-icon,
.mada-icon,
.coming-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
}

.curriculum-icon {
  color: var(--green-800);
  background: rgba(255, 255, 255, 0.8);
}

.recitation-card .curriculum-icon {
  color: var(--blue-700);
}

.curriculum-icon svg,
.mada-icon svg,
.coming-icon svg {
  width: 27px;
  height: 27px;
}

.card-kicker {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.curriculum-card h3 {
  margin: 1px 0 12px;
  color: var(--green-950);
  font-size: 1.35rem;
}

.curriculum-content {
  color: var(--muted);
}

.curriculum-content p {
  margin: 0;
}

.curriculum-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.curriculum-list li {
  padding-top: 10px;
  border-top: 1px solid rgba(15, 107, 85, 0.12);
}

.curriculum-list li:first-child {
  padding-top: 0;
  border-top: 0;
}

.curriculum-list strong,
.curriculum-list span {
  display: block;
}

.curriculum-list strong {
  color: var(--green-950);
}

.curriculum-list span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.88rem;
}

.source-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding: 16px 4px 0;
  border-top: 1px solid var(--line);
}

.source-row > div {
  display: flex;
  align-items: center;
  gap: 11px;
}

.source-row svg {
  width: 25px;
  height: 25px;
  color: var(--green-700);
}

.source-row strong,
.source-row small {
  display: block;
}

.source-row strong {
  font-size: 0.9rem;
}

.source-row small {
  color: var(--muted);
}

.text-button {
  border: 0;
  color: var(--green-800);
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.text-button:disabled {
  color: var(--muted);
  cursor: not-allowed;
}

.result-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.next-step-heading {
  margin-top: 70px;
}

.mada-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  overflow: hidden;
  padding: clamp(25px, 5vw, 42px);
  border-radius: var(--radius-lg);
  color: var(--white);
  background: linear-gradient(135deg, var(--green-700), var(--green-950));
  box-shadow: 0 24px 58px rgba(9, 67, 51, 0.25);
}

.mada-pattern {
  position: absolute;
  inset-inline-end: -90px;
  inset-block-start: -110px;
  width: 360px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 42%;
  transform: rotate(30deg);
}

.mada-pattern::before,
.mada-pattern::after {
  content: "";
  position: absolute;
  inset: 45px;
  border: inherit;
  border-radius: inherit;
}

.mada-pattern::after {
  inset: 95px;
}

.mada-icon {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.12);
}

.mada-content,
.mada-card .button {
  position: relative;
  z-index: 1;
}

.free-badge {
  display: inline-flex;
  margin-bottom: 9px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: #fff2c9;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.76rem;
  font-weight: 800;
}

.mada-content h2 {
  margin: 0 0 6px;
  font-size: clamp(1.55rem, 3.5vw, 2.25rem);
}

.mada-content p {
  max-width: 570px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.coming-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 17px;
  margin-top: 16px;
  padding: 22px 26px;
  border: 1px dashed #cbd8d2;
  border-radius: var(--radius-md);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.66);
}

.coming-icon {
  color: var(--muted);
  background: #edf1ef;
}

.coming-card h3 {
  margin: 0 0 2px;
  color: #47564f;
}

.coming-card p {
  margin: 0;
  font-size: 0.9rem;
}

.coming-badge {
  padding: 6px 11px;
  border-radius: 999px;
  color: #6c5a30;
  background: var(--gold-100);
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.about-section {
  background: var(--green-950);
  color: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.about-section .section-tag {
  margin-bottom: 8px;
  color: #a9d5c5;
}

.about-section h2 {
  color: var(--white);
}

.about-section p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.02rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.footer-content {
  min-height: 116px;
  gap: 24px;
}

.footer-content > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 22px;
  color: var(--muted);
  font-size: 0.84rem;
}

.footer-links a:hover {
  color: var(--green-800);
}

/* صفحة برنامج مدى */
.mada-page {
  background: var(--paper);
}

.mada-header {
  position: sticky;
  inset-block-start: 0;
}

.mada-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--green-900);
  font-size: 0.9rem;
  font-weight: 700;
}

.mada-nav a:hover {
  color: var(--gold-500);
}

.mada-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 15% 20%, rgba(200, 154, 69, 0.2), transparent 25%),
    linear-gradient(135deg, var(--green-700), var(--green-950));
}

.mada-hero::after {
  content: "";
  position: absolute;
  inset-inline-end: -180px;
  inset-block-start: -180px;
  width: 520px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 42%;
  transform: rotate(30deg);
}

.mada-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 70px;
  min-height: 630px;
  padding-block: 80px;
}

.mada-pill {
  display: inline-flex;
  margin-bottom: 20px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fff2c9;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  font-weight: 700;
}

.mada-hero h1 {
  max-width: 650px;
  margin: 0 0 20px;
  font-size: clamp(2.55rem, 5.5vw, 4.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.16;
}

.mada-hero-copy > p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
}

.mada-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 28px;
}

.mada-outline-button {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
  background: transparent;
}

.mada-hero-copy .mada-assurance {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.63);
  font-size: 0.8rem;
}

.mada-hero-visual {
  display: grid;
  place-items: center;
}

.online-class-card {
  width: min(100%, 430px);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 30px 80px rgba(2, 28, 20, 0.3);
  transform: rotate(-2deg);
}

.online-window {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 260px;
  border-radius: 19px;
  color: var(--white);
  background:
    radial-gradient(circle at 30% 25%, rgba(200, 154, 69, 0.3), transparent 30%),
    linear-gradient(145deg, var(--green-700), var(--green-950));
}

.online-window svg {
  width: 78px;
  height: 78px;
  opacity: 0.9;
}

.online-status {
  position: absolute;
  inset-block-start: 14px;
  inset-inline-start: 14px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--white);
  background: #b44747;
  font-size: 0.7rem;
  font-weight: 700;
}

.online-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 4px 10px;
}

.online-copy strong,
.online-copy span {
  display: block;
}

.online-copy span {
  color: var(--muted);
  font-size: 0.78rem;
}

.online-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.online-progress span {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: inherit;
  background: var(--green-700);
}

.mada-section {
  padding-block: 95px;
}

.mada-soft-section {
  background: var(--sand);
}

.mada-section-heading {
  max-width: 680px;
  margin-bottom: 42px;
}

.mada-section-heading > span,
.mada-final-box > div > span {
  display: block;
  margin-bottom: 8px;
  color: var(--gold-500);
  font-size: 0.82rem;
  font-weight: 800;
}

.mada-section-heading h2,
.mada-final-box h2 {
  margin: 0 0 9px;
  color: var(--green-950);
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.25;
}

.mada-section-heading p,
.mada-final-box p {
  margin: 0;
  color: var(--muted);
}

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

.benefit-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.benefit-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 19px;
  border-radius: 15px;
  color: var(--green-800);
  background: var(--green-100);
}

.benefit-icon svg {
  width: 25px;
  height: 25px;
}

.benefit-card h3 {
  margin: 0 0 7px;
  color: var(--green-950);
  font-size: 1.28rem;
}

.benefit-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.91rem;
}

.mada-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mada-steps li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
}

.mada-steps li > span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--white);
  background: var(--green-700);
  font-weight: 800;
}

.mada-steps strong {
  display: block;
  margin-bottom: 4px;
  color: var(--green-950);
}

.mada-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.schedule-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 22px;
  padding: 26px 30px;
  border-radius: var(--radius-md);
  color: var(--white);
  background: var(--green-950);
}

.schedule-box > div > span {
  color: #b6d7ca;
  font-size: 0.76rem;
}

.schedule-box h3 {
  margin: 2px 0 0;
  font-size: 1.35rem;
}

.schedule-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.schedule-options span {
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
}

.faq-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 65px;
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.faq-list summary {
  color: var(--green-950);
  font-weight: 700;
  cursor: pointer;
}

.faq-list p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.mada-final-cta {
  padding-block: 0 95px;
}

.mada-final-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: clamp(30px, 5vw, 52px);
  border-radius: var(--radius-lg);
  color: var(--white);
  background: linear-gradient(135deg, var(--green-700), var(--green-950));
  box-shadow: var(--shadow-lg);
}

.mada-final-box h2 {
  color: var(--white);
}

.mada-final-box p {
  color: rgba(255, 255, 255, 0.7);
}

.mada-final-box .button {
  flex: 0 0 auto;
}

/* الصفحات القانونية وصفحة 404 */
.legal-page {
  min-height: calc(100vh - 76px);
  padding-block: 75px;
  background: var(--sand);
}

.legal-content {
  max-width: 850px;
  padding: clamp(24px, 5vw, 50px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.legal-content h1 {
  margin: 0 0 12px;
  color: var(--green-950);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}

.legal-intro {
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 1.05rem;
}

.legal-content h2 {
  margin: 30px 0 5px;
  color: var(--green-900);
  font-size: 1.3rem;
}

.legal-content p {
  color: var(--muted);
}

.legal-content p a {
  color: var(--green-800);
  text-decoration: underline;
}

.legal-content .button {
  margin-top: 22px;
}

.error-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  background: var(--sand);
}

.error-content {
  max-width: 650px;
  padding-block: 60px;
  text-align: center;
}

.error-content img {
  width: 110px;
  height: 110px;
  object-fit: contain;
}

.error-content > span {
  display: block;
  margin-top: 20px;
  color: var(--gold-500);
  font-size: 1rem;
  font-weight: 800;
}

.error-content h1 {
  margin: 4px 0 8px;
  color: var(--green-950);
  font-size: clamp(2.2rem, 6vw, 4rem);
}

.error-content p {
  margin: 0 auto 25px;
  color: var(--muted);
}

.download-dialog {
  width: min(calc(100% - 28px), 520px);
  padding: 0;
  border: 0;
  border-radius: 24px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 28px 90px rgba(7, 40, 31, 0.28);
}

.download-dialog::backdrop {
  background: rgba(8, 31, 24, 0.55);
  backdrop-filter: blur(5px);
}

.download-dialog form {
  padding: 27px;
}

.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 22px;
}

.dialog-heading span {
  color: var(--green-700);
  font-size: 0.76rem;
  font-weight: 800;
}

.dialog-heading h2 {
  margin: 1px 0 0;
  color: var(--green-950);
  font-size: 1.65rem;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: var(--white);
  cursor: pointer;
}

.icon-button svg {
  width: 21px;
  height: 21px;
}

.download-dialog label {
  display: block;
  margin-bottom: 16px;
  color: var(--ink);
  font-weight: 700;
}

.download-dialog label > span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.download-dialog label small {
  color: var(--muted);
  font-weight: 400;
}

.download-dialog input {
  width: 100%;
  min-height: 50px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--paper);
}

.download-dialog input:focus {
  border-color: var(--green-700);
}

.dialog-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 23px;
}

.dialog-note {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
}

/* بطاقة التسجيل السريع بعد عرض المقرر */
.register-cta-box {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  overflow: hidden;
  margin-top: 32px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid #dce8df;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at 0% 100%, rgba(200, 154, 69, 0.12), transparent 55%),
    linear-gradient(115deg, var(--paper), #edf7f1);
  box-shadow: 0 12px 32px rgba(17, 66, 51, 0.06), inset 0 1px 0 var(--white);
}

.register-cta-box::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 32px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #cbded1, var(--gold-500), transparent);
}

.register-cta-copy {
  position: relative;
  z-index: 1;
}

.register-cta-box .next-step-heading {
  margin: 0;
  align-items: flex-start;
}

.register-cta-copy h2 {
  margin: 0 0 5px;
  color: var(--green-950);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.35;
}

.register-cta-copy p {
  margin: 0;
  color: var(--muted);
}

.register-cta-summary {
  margin-top: 8px !important;
  color: var(--green-900) !important;
  font-size: 0.88rem;
  font-weight: 700;
}

.register-cta-box > .button {
  position: relative;
  z-index: 1;
  min-width: 176px;
  min-height: 54px;
}

/* نموذج التسجيل */
.register-dialog {
  --register-padding: 30px;
  width: min(calc(100% - 28px), 560px);
  max-height: min(90vh, 760px);
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid #d8e3db;
  border-radius: 28px;
  background: #fcfbf7;
  box-shadow: 0 30px 90px rgba(7, 40, 31, 0.32);
}

.register-dialog[open] {
  animation: register-dialog-in 0.2s ease-out;
}

@keyframes register-dialog-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.register-dialog form {
  position: relative;
  padding: 0 var(--register-padding) 24px;
}

.register-dialog .dialog-heading {
  margin: 0 calc(-1 * var(--register-padding)) 22px;
  padding: 26px var(--register-padding);
  border-bottom: 3px solid #c9ab69;
  background: radial-gradient(ellipse at top left, #277d67, transparent 70%), var(--green-950);
}

.register-dialog .dialog-heading h2 {
  color: var(--white);
  margin-top: 8px;
}

.register-dialog-eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 2px;
  padding: 3px 9px;
  border-radius: 999px;
  color: #fff0ce !important;
  border: 1px solid rgba(255, 240, 206, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.register-dialog-lead {
  max-width: 400px;
  margin: 5px 0 0;
  color: #deeee6;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.55;
}

.register-dialog .icon-button {
  flex: 0 0 auto;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
}

.register-dialog .icon-button:hover {
  color: var(--green-950);
  background: var(--green-100);
}

.reg-summary {
  margin: 0 0 21px;
  padding: 12px 15px;
  border: 1px solid #e6dcc6;
  border-inline-start: 3px solid var(--gold-500);
  border-radius: var(--radius-sm);
  background: #f7f2e6;
}

.reg-summary > span {
  display: block;
  margin-bottom: 1px;
  color: var(--green-700);
  font-size: 0.7rem;
  font-weight: 800;
}

.reg-summary p {
  margin: 0;
  color: var(--green-950);
  font-size: 0.91rem;
  font-weight: 800;
  line-height: 1.45;
}

.register-dialog .register-field {
  margin-bottom: 17px;
}

.register-dialog .register-field-label {
  justify-content: flex-start;
  margin-bottom: 7px;
  font-size: 0.92rem;
}

.register-dialog .register-field-label small {
  margin-inline-start: 7px;
  padding: 1px 7px;
  border-radius: 999px;
  color: var(--green-700);
  background: var(--green-50);
  font-size: 0.65rem;
  font-weight: 700;
}

.register-dialog .register-field input {
  min-height: 55px;
  padding-inline: 16px;
  border-color: #ceddd6;
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: 0 2px 5px rgba(17, 66, 51, 0.03);
  font-size: 1rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.register-dialog .register-field input:hover {
  border-color: #aac5b9;
}

.register-dialog .register-field input:focus {
  border-color: var(--green-700);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(15, 107, 85, 0.09);
  outline: none;
}

.field-error {
  display: none;
  margin: 10px 0 0;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--danger);
  background: #fff2f2;
  font-size: 0.85rem;
  font-weight: 700;
}

.field-error.is-visible {
  display: block;
}

.download-dialog input.field-invalid {
  border-color: var(--danger);
}

.register-success {
  padding: 42px 32px 34px;
  text-align: center;
}

.register-success.is-hidden,
.is-hidden {
  display: none !important;
}

.success-check {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--green-700), var(--green-950));
  box-shadow: 0 12px 26px rgba(15, 107, 85, 0.24);
  font-size: 1.8rem;
  font-weight: 800;
}

.register-success h2 {
  margin: 0 0 6px;
  color: var(--green-950);
}

.register-success > p:not(.dialog-note) {
  margin: 0;
  color: var(--green-700);
  font-weight: 700;
}

.register-dialog-actions {
  grid-template-columns: 1.55fr 0.75fr;
  margin-top: 20px;
}

.register-dialog-actions .button {
  min-height: 54px;
}

.register-dialog-actions .button-primary {
  background: var(--green-800);
  box-shadow: 0 6px 16px rgba(15, 107, 85, 0.17);
}

.register-dialog-actions .button-primary:hover:not(:disabled) {
  background: var(--green-950);
}

.register-privacy-note {
  max-width: 420px;
  margin: 12px auto 0;
  line-height: 1.5;
}

.button.is-loading {
  opacity: 0.65;
  pointer-events: none;
}

#reg-phone {
  text-align: left;
  letter-spacing: 0.04em;
}

@media (max-width: 760px) {
  .register-cta-box {
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: start;
    justify-items: stretch;
  }

  .register-cta-box > .button {
    width: 100%;
  }

  .register-dialog {
    --register-padding: 20px;
  }

  .register-dialog .dialog-heading h2 {
    font-size: 1.4rem;
  }

  .register-dialog-actions {
    grid-template-columns: 1fr;
  }

  .register-dialog-actions .button-primary {
    grid-row: 1;
  }

  .register-success {
    padding: 35px 20px 25px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .register-dialog[open] {
    animation: none;
  }
}

.toast {
  position: fixed;
  z-index: 100;
  inset-inline-start: 50%;
  inset-block-end: 22px;
  max-width: calc(100% - 32px);
  padding: 11px 17px;
  border-radius: 12px;
  color: var(--white);
  background: var(--green-950);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translate(50%, 20px);
  transition: 0.2s ease;
}

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

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 62px;
    text-align: center;
  }

  .hero-copy > p {
    margin-inline: auto;
  }

  .hero-features {
    justify-content: center;
  }

  .hero-visual {
    width: min(100%, 570px);
    min-height: 470px;
    margin-inline: auto;
  }

  .curriculum-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    gap: 18px;
  }

  .mada-card {
    grid-template-columns: auto 1fr;
  }

  .mada-card .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .mada-hero-grid,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .mada-hero-grid {
    min-height: auto;
    text-align: center;
  }

  .mada-hero-copy > p,
  .mada-section-heading {
    margin-inline: auto;
  }

  .mada-hero-actions {
    justify-content: center;
  }

  .benefit-grid,
  .mada-steps {
    grid-template-columns: 1fr;
  }

  .mada-final-box {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 660px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .header-content {
    min-height: 68px;
  }

  .brand-mark {
    width: 41px;
    height: 41px;
  }

  .organization-logo {
    width: 50px;
    height: 50px;
  }

  .brand small,
  .header-link,
  .mada-nav {
    display: none;
  }

  .hero-grid {
    gap: 15px;
    padding-block: 45px 18px;
  }

  .hero h1 {
    font-size: clamp(2.15rem, 12vw, 3.4rem);
  }

  .hero-visual {
    min-height: 390px;
  }

  .visual-note {
    min-width: 92px;
    padding: 8px 11px;
  }

  .finder-section,
  .result-section,
  .about-section {
    padding-block: 60px;
  }

  .finder-progress {
    display: block;
    padding: 17px 19px;
  }

  .progress-copy {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
  }

  .step-content {
    min-height: 0;
    padding: 30px 17px 20px;
  }

  .option-grid,
  .option-grid.two-columns {
    grid-template-columns: repeat(2, 1fr);
  }

  .option-button {
    min-height: 130px;
    padding: 14px 9px;
  }

  .step-actions .button {
    flex: 1;
  }

  .result-topline,
  .source-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .curriculum-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .result-tools .button {
    flex: 1 1 160px;
  }

  .next-step-heading {
    margin-top: 50px;
  }

  .mada-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .mada-icon {
    margin-inline: auto;
  }

  .coming-card {
    grid-template-columns: auto 1fr;
  }

  .coming-badge {
    grid-column: 1 / -1;
    justify-self: start;
    margin-inline-start: 68px;
  }

  .footer-content {
    align-items: center;
    flex-direction: column;
    justify-content: center;
    padding-block: 22px;
  }

  .footer-links {
    justify-content: center;
  }

  .mada-hero-grid {
    gap: 42px;
    padding-block: 60px;
  }

  .online-window {
    min-height: 210px;
  }

  .mada-section {
    padding-block: 65px;
  }

  .schedule-box {
    align-items: flex-start;
    flex-direction: column;
  }

  .mada-final-cta {
    padding-bottom: 65px;
  }

  .mada-final-box .button {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .option-grid,
  .option-grid.two-columns {
    grid-template-columns: 1fr;
  }

  .option-button {
    min-height: 112px;
  }

  .step-actions {
    flex-direction: column-reverse;
  }

  .step-actions .button,
  .dialog-actions .button {
    width: 100%;
  }

  .dialog-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  body * {
    visibility: hidden;
  }

  #result-section,
  #result-section * {
    visibility: visible;
  }

  #result-section {
    position: absolute;
    inset: 0;
    padding: 20px;
    background: white;
  }

  .result-shell {
    box-shadow: none;
  }

  .result-tools,
  .next-step-heading,
  .mada-card,
  .coming-card,
  .data-notice,
  #edit-selection {
    display: none !important;
  }
}
