:root {
  --navy: #101d34;
  --navy-deep: #0b1629;
  --ink: #182941;
  --gold: #edc475;
  --gold-dark: #80520b;
  --cream: #fbf8f0;
  --paper: #fffdf8;
  --line: #e4dccb;
  --muted: #4b596b;
  font-family: "Noto Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--ink);
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--cream); line-height: 1.75; }
h1, h2, h3, p, ul, ol { margin-block-start: 0; }
a { color: inherit; text-underline-offset: .23em; }
button { font: inherit; cursor: pointer; }
:where(a, button, summary, audio):focus-visible { outline: 3px solid #387fd1; outline-offset: 4px; }
.wrap { width: min(1170px, calc(100% - 4rem)); margin-inline: auto; }
.skip { position: absolute; z-index: 5; inset-inline-start: 1rem; top: .5rem; color: var(--ink); background: white; padding: .45rem .9rem; transform: translateY(-200%); }
.skip:focus { transform: none; }
.site-header { color: white; background: var(--navy-deep); border-bottom: 1px solid #ffffff25; }
.header-inner { display: flex; min-height: 76px; align-items: center; gap: 1rem 1.6rem; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font-weight: 800; white-space: nowrap; line-height: 1.3; }
.brand img { object-fit: contain; background: white; padding: .15rem; border-radius: .5rem; }
.brand small { display: block; direction: ltr; font-size: .74rem; font-weight: 600; margin-top: .2rem; opacity: .8; }
.header-inner nav { display: flex; align-items: center; column-gap: clamp(.9rem, 2.3vw, 2rem); font-size: .91rem; }
.header-inner nav a, .header-link { text-decoration: none; white-space: nowrap; }
.header-inner nav a:hover { color: var(--gold); text-decoration: underline; }
.header-link { padding: .42rem .9rem; color: #ffdc96; border: 1px solid #f2c77566; border-radius: .45rem; font-size: .91rem; }

.hero {
  color: white;
  background: radial-gradient(ellipse at 14% 20%, #29476d, transparent 55%), linear-gradient(155deg, #152943, var(--navy-deep) 70%);
  border-bottom: 4px solid #cfab60;
}
.hero-grid { display: grid; grid-template-columns: 1.08fr 1fr; align-items: center; gap: clamp(2rem, 5vw, 4.6rem); padding-block: clamp(3.2rem, 7vw, 6.3rem); }
.hero-copy { min-width: 0; }
.eyebrow { display: flex; align-items: center; gap: .6rem; margin-bottom: .65rem; color: #f5cf88; font-size: .94rem; font-weight: 800; }
.eyebrow::before { content: ""; width: 1.45rem; height: 2px; background: currentColor; }
.eyebrow.ink { color: var(--gold-dark); }
h1 { font-weight: 900; font-size: clamp(2.5rem, 5.15vw, 4.75rem); line-height: 1.19; margin-bottom: 1.2rem; }
h1 bdi { color: var(--gold); font-size: 1.01em; letter-spacing: -.045em; font-family: "Segoe UI", Arial, sans-serif; }
.hero-intro { max-width: 34rem; color: #e0e8f5; font-size: clamp(1.06rem, 1.45vw, 1.18rem); margin-bottom: 1.5rem; }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: .64rem 1rem; border: 1px solid transparent; border-radius: .52rem; min-height: 44px; font-weight: 800; text-align: center; text-decoration: none; }
.button.gold { background: var(--gold); color: #15243b; }
.button.gold:hover { background: #fbda96; }
.button.ghost { color: white; border-color: #a3b4ce; }
.button.ghost:hover, .header-link:hover { background: #ffffff13; }
.hero-points { list-style: none; display: flex; gap: .5rem 1.05rem; flex-wrap: wrap; padding: 0; margin: 1.4rem 0 0; font-size: .93rem; color: #e3eaf6; }
.hero-points li { display: flex; gap: .45rem; align-items: center; }
.hero-points li::before { content: ""; width: .28rem; height: .28rem; transform: rotate(45deg); background: var(--gold); }

.workbook {
  position: relative;
  min-width: 0;
  color: var(--ink);
  background: var(--paper);
  border-radius: 1rem;
  border: 1px solid #d3ae61;
  box-shadow: 8px 8px 0 #bb9a55, 15px 15px 0 #bda36c33, 0 22px 50px #040b18a1;
  padding: clamp(1.1rem, 2.7vw, 1.8rem);
}
.workbook-head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: 1rem; }
.workbook-head h2 { margin: 0; font-size: clamp(1.35rem, 2.4vw, 1.85rem); line-height: 1.25; }
.mini-label { margin: 0 0 .2rem; font-size: .84rem; font-weight: 750; color: var(--gold-dark); }
.page-mark { color: #72511c; font: 850 .84rem/1.4 "Segoe UI", Arial, sans-serif; letter-spacing: .11em; padding: .35rem .65rem; border: 1px solid #d7c29a; border-radius: .35rem; }
.example-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .25rem; padding: .2rem; background: #f0eadf; border-radius: .5rem; margin-bottom: .9rem; }
.example-tabs button { color: #505768; background: transparent; border: 1px solid transparent; border-radius: .35rem; min-height: 40px; padding: .3rem .38rem; font-weight: 750; }
.example-tabs button[aria-pressed="true"] { color: white; background: var(--navy); }
.example-tabs button:hover:not([aria-pressed="true"]) { background: #e1d9ca; }
#exercise { min-height: 242px; }
.sample-text, .sample-question { font-family: "Segoe UI", Arial, sans-serif; font-size: 1rem; line-height: 1.55; text-align: left; }
.sample-text { background: #f1f3f6; color: #35445b; padding: .65rem .8rem; margin-bottom: .65rem; border-left: 3px solid #bb9958; border-radius: .25rem; }
.sample-question { margin-block: .65rem .6rem; font-weight: 750; }
.sample-answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; }
.sample-answers button { min-height: 42px; padding: .3rem .48rem; border: 1px solid #d8dce2; border-radius: .38rem; background: white; color: var(--ink); font: 650 .93rem/1.35 "Segoe UI", Arial, sans-serif; text-align: left; }
.sample-answers button:hover { background: #f0f3f8; }
.sample-answers button.is-correct { background: #e6f4ea; border-color: #478557; color: #1a532e; }
.sample-answers button.is-incorrect { background: #fff2e3; border-color: #aa6832; color: #743d13; }
.sample-result { min-height: 2.6rem; margin: .45rem 0 0; font-size: .85rem; color: #803e0a; }
.sample-result[data-correct="true"] { color: #1a532e; }
#exercise audio { max-width: 100%; width: 100%; height: 39px; display: block; }

.section { padding-block: clamp(2.65rem, 6vw, 5rem); }
.section-heading { max-width: 41rem; }
.section h2 { font-size: clamp(1.8rem, 3.35vw, 2.8rem); line-height: 1.34; margin-bottom: .65rem; }
.section-heading > p:last-child { color: var(--muted); margin-bottom: 0; }
.skill-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.skill { background: var(--paper); border: 1px solid var(--line); border-top: 3px solid #ab8644; border-radius: .65rem; padding: clamp(1rem, 2.4vw, 1.75rem); }
.skill-label { direction: ltr; text-align: right; color: var(--gold-dark); font-size: .85rem; font-weight: 750; margin-bottom: .25rem; }
.skill h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); margin-bottom: .45rem; line-height: 1.4; }
.skill > p:not(.skill-label), .plan p, .fit-list span, .faq details p { color: var(--muted); }
.skill > p:not(.skill-label) { margin-bottom: .85rem; }
.skill ul { padding-inline-start: 1.1rem; margin-bottom: 0; padding-top: .7rem; border-top: 1px solid var(--line); font-size: .94rem; }
.skill li::marker { color: var(--gold-dark); }

.plan-section { background: #f0e9db; border-block: 1px solid var(--line); }
.plan-grid, .fit { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.5rem, 6vw, 5rem); }
.plan, .fit-list { list-style: none; padding: 0; margin: 0; }
.plan li { display: flex; gap: 1rem; padding-bottom: 1rem; }
.plan li + li { border-top: 1px solid #d8ccb7; padding-top: 1rem; }
.plan li:last-child { padding-bottom: 0; }
.plan h3 { margin: 0 0 .12rem; font-size: 1.14rem; }
.plan p { margin: 0; }
.plan li > span { flex: 0 0 2.3rem; height: 2.3rem; display: grid; place-items: center; background: #f8f1e2; color: #745219; border: 1px solid #cbb789; border-radius: 50%; font-weight: 800; }

.practice { background: var(--navy); color: white; padding: clamp(1.35rem, 4.5vw, 3.5rem); border-radius: 1rem; }
.practice-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem 3rem; }
.practice .section-heading > p:last-child { color: #e1e8f3; }
.practice-count { flex: 0 0 10rem; text-align: center; padding-inline-start: 1.25rem; border-inline-start: 1px solid #fff4; }
.practice-count strong { display: block; font: 850 3.25rem/1.2 "Segoe UI", Arial, sans-serif; color: var(--gold); }
.practice-count span { display: block; color: #e1e8f3; font-size: .9rem; }
.level-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin-top: 1.35rem; }
.level { display: grid; align-content: start; color: var(--ink); background: var(--paper); border: 1px solid #e8d6ae; border-radius: .6rem; text-decoration: none; padding: .85rem 1rem; }
.level:hover { background: #fbefd2; }
.level strong { font-size: 1.13rem; }
.level span:not(.level-action) { color: var(--muted); font-size: .92rem; }
.level-action { color: var(--gold-dark); font-size: .91rem; font-weight: 800; text-decoration: underline; margin-top: .55rem; }
.practice-link { display: inline-block; margin-top: .85rem; color: #ffdd95; }

.fit { padding-block-start: 0; }
.fit-list li { padding: 0 0 .8rem; }
.fit-list li + li { border-top: 1px solid var(--line); padding-top: .8rem; }
.fit-list strong, .fit-list span { display: block; }
.faq-section { border-block: 1px solid var(--line); background: var(--paper); }
.faq-section .fit { padding-block-start: clamp(2.65rem, 6vw, 5rem); }
.faq details { border-bottom: 1px solid var(--line); padding-block: .7rem; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 800; }
.faq details p { margin: .45rem 0 0; }
.registration { display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; padding: clamp(1.25rem, 4vw, 2.25rem); border: 1px solid #324c70; border-radius: .85rem; background: #182c49; color: white; }
.registration h2 { font-size: clamp(1.55rem, 2.8vw, 2rem); margin-bottom: .3rem; }
.registration p { color: #e2e9f5; margin-bottom: 0; max-width: 35rem; }
.registration .actions { flex-shrink: 0; }
.footer { border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; padding-block: 1rem 1.6rem; gap: .75rem; }

@media (max-width: 940px) {
  .hero-grid { gap: 2rem; }
  .header-inner { flex-wrap: wrap; padding-block: .7rem; }
  .header-inner nav { order: 3; width: 100%; flex-wrap: wrap; row-gap: .2rem; }
  .registration { align-items: flex-start; flex-direction: column; }
  .registration .actions { flex-shrink: 1; }
}
@media (max-width: 730px) {
  .wrap { width: calc(100% - 2rem); }
  .hero-grid { grid-template-columns: 1fr; padding-block: 2.4rem 3.1rem; }
  .workbook { width: min(100%, 32rem); justify-self: center; }
  .skill-grid, .plan-grid, .level-grid, .fit { grid-template-columns: 1fr; }
  .plan-grid, .fit { gap: 1.2rem; }
  .practice-heading { align-items: flex-start; flex-direction: column; }
  .practice-count { flex: auto; display: flex; gap: .7rem; align-items: baseline; text-align: start; border-inline-start: 0; padding-inline-start: 0; }
  .practice-count strong { font-size: 2.3rem; }
}
@media (max-width: 390px) {
  .header-inner nav { font-size: .84rem; column-gap: .75rem; }
  .hero-grid h1 { font-size: 2.2rem; }
}
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } }
