/* EIAST AI platform: home, course and lesson pages.
   Built on the logo's five colours; flat fields, no gradients, rules or shadows at rest. */
:root {
  --ground: #ffffff;
  --ink: #0e1726;
  --ink-2: #44526a;
  --field: #123f85;
  --field-2: #0d2f66;
  --blue: #1c5fb8;
  --sky: #2e8be0;
  --yellow: #f2c230;
  --red: #e03a34;
  --green: #6fb544;
  --black: #111111;
  --paper: #eef4fb;
  --paper-2: #e2ebf6;
  --edge: clamp(16px, 3vw, 40px);
  --max: 1360px;
  --gap: clamp(96px, 12vw, 180px);
  --d1: clamp(42px, 5.6vw, 88px);
  --d2: clamp(32px, 4.4vw, 64px);
  --d3: clamp(22px, 2vw, 28px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body.p {
  background: var(--ground); color: var(--ink);
  font-family: "Tajawal", system-ui, sans-serif; font-size: 18px; line-height: 1.6;
}
html[lang="en"] body.p { font-family: "Archivo", "Tajawal", system-ui, sans-serif; }
.p a { color: inherit; text-decoration: none; }
.p img { display: block; max-width: 100%; }
.frame { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--edge); }
.p :focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

/* Header: a plain bar */
.p header#site-header { position: sticky; top: 0; z-index: 20; background: var(--ground); border: 0; backdrop-filter: none; }
.p .bar { height: 76px; gap: 28px; max-width: var(--max); padding-inline: var(--edge); }
.p .logo img { height: 56px; }
.p nav { font-size: 17px; gap: 26px; color: var(--ink); }
.p nav a.on { color: var(--blue); }
.p .lang { display: inline-flex; align-items: center; min-height: 44px; border: 0; background: var(--paper); border-radius: 0; padding: 8px 14px; font-weight: 700; font-size: 16px; color: var(--ink); }
.p .lang:hover { background: var(--paper-2); color: var(--blue); }
.p .menu-btn { border: 0; background: var(--paper); border-radius: 0; }
.p .bar .go { background: var(--yellow); color: #1a1400; font-weight: 800; padding: 10px 18px; font-size: 16px; }
@media (max-width: 1499px) {
  .p nav { box-shadow: 0 18px 30px rgba(14, 23, 38, .12); border: 0; }
  .p nav a + a { border: 0; }
}

/* Buttons: square, flat */
.btn-p {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  font: inherit; font-weight: 800; font-size: 18px; line-height: 1;
  padding: 18px 28px; border: 0; border-radius: 0;
  background: var(--yellow); color: #1a1400;
  transition: transform .18s var(--ease), background-color .18s;
}
.btn-p:hover { transform: translateY(-2px); background: #ffd24a; }
.btn-p:active { transform: translateY(1px); }
.btn-p.dark { background: var(--ink); color: #fff; }
.btn-p.dark:hover { background: var(--blue); }
.btn-p.light { background: var(--paper); color: var(--ink); }
.btn-p.light:hover { background: var(--paper-2); }
.btn-p[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.link-p { font-weight: 800; color: var(--blue); }
.link-p:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Type */
.p h1, .p h2, .p h3 { font-weight: 800; letter-spacing: -.01em; }
.p h1 { font-size: var(--d1); line-height: 1.05; }
.p h2 { font-size: var(--d2); line-height: 1.1; }
.p h3 { font-size: var(--d3); line-height: 1.25; }
.say { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.5; max-width: 34ch; }
.p p { max-width: 64ch; }

/* Hero */
.hero-p { background: var(--field); color: #fff; padding-block: clamp(40px, 4vw, 64px) 0; overflow: hidden; }
.hero-p .grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: end; }
.hero-p .copy { padding-bottom: clamp(40px, 4vw, 64px); }
.hero-p .say { margin-top: 18px; color: #fff; }
.hero-p .acts { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.hero-p .facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 40px; font-size: 17px; color: #fff; }
.hero-p .facts b { color: var(--yellow); font-weight: 800; }
.hero-p figure { position: relative; height: 100%; min-height: 560px; }
.hero-p figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 42% 50%; transform-origin: 50% 80%; }
/* The logo sits centred above the copy, larger, with the copy starting near the top of the hero. */
.hero-p .copy { align-self: start; }
.hero-p .mark { display: block; width: clamp(210px, 20vw, 290px); height: auto; margin: -12px auto 0; }
.hero-p .kicker { margin-top: 20px; font-weight: 800; font-size: clamp(17px, 1.5vw, 22px); color: var(--yellow); }
.hero-p h1 { margin-top: 10px; font-size: clamp(36px, 3.9vw, 58px); line-height: 1.12; letter-spacing: -.01em; }
.hero-p .say { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.7; max-width: 46ch; }
.hero-p .say + .say { margin-top: 12px; }
.btn-p.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.btn-p.ghost:hover { background: rgba(255, 255, 255, .12); }
.hero-p figure.coach .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); flex: none; }
.stripe5 { display: grid; grid-template-columns: repeat(5, 1fr); height: 14px; }
.stripe5 i:nth-child(1) { background: var(--sky); }
.stripe5 i:nth-child(2) { background: var(--yellow); }
.stripe5 i:nth-child(3) { background: var(--black); }
.stripe5 i:nth-child(4) { background: var(--red); }
.stripe5 i:nth-child(5) { background: var(--green); }

/* The tutor demo */
/* Courses on offer, right under the hero */
.offer { padding-block: var(--gap); }
.offer .head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: end; }
.cards2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(16px, 2vw, 28px); margin-top: 56px; }
/* Four courses sit two by two, never three and an orphan. */
@media (min-width: 700px) { .cards2:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); } }
.ccard { background: var(--paper); display: grid; grid-template-rows: auto 1fr; }
.ccard .pic { display: block; overflow: hidden; }
.ccard .pic img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s var(--ease); }
.ccard:hover .pic img { transform: scale(1.03); }
.ccard .body { padding: clamp(22px, 2.6vw, 36px); display: grid; gap: 18px; align-content: start; }
.ccard h3, .ccard .ct { font-size: clamp(26px, 2.4vw, 36px); line-height: 1.2; }
.ccard h3 a:hover, .ccard .ct a:hover { color: var(--blue); }
.ccard p { font-size: 18px; }
.ccard .nums { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 17px; }
.ccard .nums b { color: var(--blue); font-size: 24px; font-weight: 800; }
.ccard .acts { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-top: 6px; }

.lesson-top + .offer { padding-top: 56px; }
.offer + .tracks { padding-top: 0; }
.past { padding-bottom: var(--gap); }
.past ul { list-style: none; padding: 0; margin-top: 28px; display: grid; gap: 4px; max-width: 900px; }
.past li { background: var(--paper); padding: 16px 18px; font-size: 18px; }
.past li a { color: var(--blue); font-weight: 700; white-space: nowrap; }

.tutor { background: var(--paper); padding-block: var(--gap); }
.tutor .head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: end; }
.tutor .head p { color: var(--ink-2); }
.tutor .stage { display: grid; grid-template-columns: minmax(260px, .8fr) 1.2fr; gap: clamp(24px, 3vw, 48px); margin-top: 64px; }
.tutor .asks { display: grid; gap: 10px; align-content: start; }
.tutor .ask {
  text-align: start; font: inherit; font-size: 19px; line-height: 1.45; cursor: pointer;
  padding: 20px 22px; border: 0; border-radius: 0; background: #fff; color: var(--ink);
  transition: background-color .18s, transform .18s var(--ease);
}
.tutor .ask:hover { background: var(--paper-2); }
.tutor .ask[aria-pressed="true"] { background: var(--yellow); color: #1a1400; font-weight: 700; }
.chat[data-ui] { background: #fff; color: var(--ink); padding: clamp(20px, 3vw, 36px); min-height: 440px; display: grid; align-content: start; gap: 18px; }
.chat .bar-ui { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--ink-2); padding-bottom: 14px; border-bottom: 1px solid #d8e2ef; }
.chat .bar-ui b { color: var(--ink); font-size: 17px; }
.chat .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--green); margin-inline-end: 8px; }
.msg { max-width: 92%; padding: 16px 18px; font-size: 17px; line-height: 1.65; border-radius: 4px; }
.msg.q { justify-self: start; background: var(--blue); color: #fff; }
.msg.a { justify-self: end; background: var(--paper); border: 1px solid #d8e2ef; }
.msg.a ol, .msg.a ul { padding-inline-start: 22px; margin-top: 8px; }
.msg.a li + li { margin-top: 4px; }
.msg .src { display: block; margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.msg .src a { color: var(--blue); font-weight: 700; }
.caret::after { content: ""; display: inline-block; width: 8px; height: 1.1em; background: var(--blue); vertical-align: -3px; margin-inline-start: 3px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.tutor .note { margin-top: 20px; font-size: 15px; color: var(--ink-2); }

/* Featured course */
.course { padding-block: var(--gap); }
.course .grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 88px); align-items: start; }
.course figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.course figcaption { font-size: 15px; color: var(--ink-2); margin-top: 10px; }
.course .lede { margin-top: 28px; }
.course .nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 40px; }
.course .nums div { background: var(--paper); padding: 18px 16px; }
.course .nums b { display: block; font-size: clamp(30px, 3vw, 44px); line-height: 1; font-weight: 800; color: var(--blue); }
.course .nums span { display: block; margin-top: 8px; font-size: 16px; }
.units { list-style: none; padding: 0; margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; counter-reset: u; }
.units li { counter-increment: u; display: flex; gap: 14px; align-items: baseline; background: var(--paper); padding: 14px 16px; font-size: 17px; font-weight: 500; }
.units li::before { content: counter(u, arabic-indic); font-weight: 800; color: var(--blue); min-width: 1.4em; }
html[lang="en"] .units li::before { content: counter(u); }
.course .acts { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 40px; }
.course-2 { background: var(--paper); }
.course-2 .grid { grid-template-columns: 1.1fr 1fr; }
.course-2 .nums div { background: #fff; }

/* Learning path: the logo's stripe, enlarged */
.path { padding-bottom: var(--gap); }
.path h2 { margin-bottom: 48px; }
.path .band { display: grid; grid-template-columns: 1.25fr 1fr 1fr 1fr 1.15fr; min-height: 420px; }
.path .band > div { padding: clamp(22px, 2.4vw, 36px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.path .band h3 { font-size: clamp(26px, 2.6vw, 38px); }
.path .band p { font-size: 17px; }
.path .s1 { background: var(--sky); color: #04203f; }
.path .s2 { background: var(--yellow); color: #1a1400; }
.path .s3 { background: var(--black); color: #fff; }
.path .s4 { background: var(--red); color: #fff; }
.path .s5 { background: var(--green); color: #102a05; }
.path .s1 img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%; }

/* Course page */
.c-hero { background: var(--field); color: #fff; padding-block: clamp(56px, 7vw, 104px) 0; }
.c-hero .grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 80px); align-items: end; }
.c-hero .copy { padding-bottom: clamp(56px, 7vw, 104px); }
.c-hero .say { margin-top: 32px; color: #dfe9f7; }
.c-hero .acts { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.c-hero figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.c-units { padding-block: var(--gap); }
.c-units .head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: end; margin-bottom: 56px; }
.c-list { list-style: none; padding: 0; display: grid; gap: 4px; counter-reset: u; }
.c-list li { counter-increment: u; }
.c-list a { display: grid; grid-template-columns: 72px 1fr auto; gap: 24px; align-items: center; background: var(--paper); padding: 22px 24px; transition: background-color .18s; }
.c-list a:hover { background: var(--paper-2); }
.c-list a::before { content: counter(u, arabic-indic); font-size: clamp(36px, 3.4vw, 52px); font-weight: 800; color: var(--blue); line-height: 1; }
html[lang="en"] .c-list a::before { content: counter(u); }
.c-list h3 { font-size: clamp(20px, 1.8vw, 26px); }
.c-list p { margin-top: 6px; color: var(--ink-2); font-size: 17px; }
.c-list .min { font-size: 16px; color: var(--ink-2); white-space: nowrap; }
.c-list li.final a { background: var(--ink); color: #fff; }
.c-list li.final a::before { content: "★"; color: var(--yellow); }
.c-list li.final p, .c-list li.final .min { color: #c9d4e6; }
.c-who { background: var(--paper); padding-block: var(--gap); }
.c-who .grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 88px); }
.c-who ul { list-style: none; padding: 0; margin-top: 32px; display: grid; gap: 4px; }
.c-who li { background: #fff; padding: 16px 18px; font-size: 18px; }
.c-who li b { color: var(--blue); }
.c-cert { padding-block: var(--gap); }
.c-cert .grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 88px); align-items: center; }
.c-cert .say { margin-top: 24px; }
.c-cert ul { list-style: none; padding: 0; margin-top: 32px; display: grid; gap: 4px; }
.c-cert li { background: var(--paper); padding: 16px 18px; font-size: 18px; }
.c-cert li b { color: var(--blue); }
.c-cert .sample { display: block; background: var(--paper); padding: clamp(12px, 1.6vw, 24px); }
.c-cert .sample img { width: 100%; height: auto; transition: transform .4s var(--ease); }
.c-cert .sample:hover img { transform: scale(1.015); }
.c-cert .sample span { display: block; margin-top: 12px; font-weight: 700; color: var(--blue); }

/* Lesson page */
.lesson-top { background: var(--field); color: #fff; padding-block: 40px 0; }
.lesson-top .row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 40px; }
.lesson-top .crumb { font-size: 16px; color: #c9d4e6; }
.lesson-top .crumb a { color: #fff; font-weight: 700; }
.lesson-top h1 { font-size: clamp(34px, 4.4vw, 64px); margin-top: 12px; }
.lesson-top .meta-l { font-size: 17px; color: #dfe9f7; }
.prog { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; margin-top: 36px; }
.prog a { height: 30px; display: grid; place-items: center; border-radius: 6px; background: rgba(255, 255, 255, .22); color: #0d2350; font: 800 13px/1 Tajawal, Arial, sans-serif; text-decoration: none; }
.prog a.done { background: var(--green); }
.prog a.open { background: rgba(255, 255, 255, .55); }
.prog a.here { background: var(--yellow); }
.prog a.locked { cursor: not-allowed; }
/* The units bar is a <nav>: keep the header-menu link styles (padding, pills) off it so 12 boxes fit a phone. */
#prog { grid-template-columns: repeat(12, minmax(0, 1fr)); }
#prog a { padding: 0; min-width: 0; border-radius: 6px; }
.lesson { padding-block: 56px var(--gap); }
.lesson .grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 4vw, 72px); align-items: start; }
.video-box { background: var(--ink); color: #fff; aspect-ratio: 16 / 9; display: grid; place-items: center; text-align: center; padding: 24px; }
.video-box video { width: 100%; height: 100%; background: #000; }
.video-box h2 { font-size: clamp(22px, 2.2vw, 30px); }
.video-box p { color: #c9d4e6; margin-top: 8px; font-size: 17px; }
.doc { margin-top: 56px; font-size: 19px; line-height: 1.8; }
.doc > * + * { margin-top: 18px; }
.doc img { display: block; width: min(100%, 300px); height: auto; margin-inline: auto; }
.doc img[src$=".jpg"] { width: min(100%, 560px); }
.doc img[src*="football-fitness/img"] { width: min(100%, 680px); }
.doc img[src*="sports-commentary/img"] { width: min(100%, 720px); }
.doc img[src*="strategic-leadership/img"] { width: min(100%, 720px); }
.doc img[src*="fitness-diploma/img"], .doc img[src*="pilates-instructor/img"], .doc img[src*="therapeutic-nutrition/img"], .doc img[src*="smartwatch-training/img"], .doc img[src*="goalkeeper-coach/img"], .doc img[src*="fitness-strength/img"], .doc img[src*="spine-shoulder/img"], .doc img[src*="outdoor-camps/img"], .doc img[src*="public-speaking/img"], .doc img[src*="pe-teacher-diploma/img"], .doc img[src*="first-aid/img"], .doc img[src*="coach-marketing/img"], .doc img[src*="mental-health/img"], .doc img[src*="youth-football/img"], .doc img[src*="womens-fitness/img"] { width: min(100%, 720px); }
.doc img[src$=".png"] { width: min(100%, 520px); background: #fff; }
.doc h1 { font-size: clamp(30px, 3.2vw, 44px); margin-top: 72px; line-height: 1.2; }
.doc h1:first-child { margin-top: 0; }
.doc h2 { font-size: clamp(26px, 2.6vw, 36px); margin-top: 56px; line-height: 1.25; }
.doc h3 { font-size: 23px; margin-top: 36px; }
.doc p, .doc li { max-width: 70ch; }
.doc ul, .doc ol { padding-inline-start: 28px; }
.doc li + li { margin-top: 6px; }
.doc hr { border: 0; height: 12px; background: var(--paper); margin-block: 64px; }
.doc blockquote { background: var(--paper); padding: 20px 24px; border-inline-start: 6px solid var(--yellow); }
.doc table { width: 100%; border-collapse: collapse; font-size: 17px; line-height: 1.6; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: start; padding: 12px 14px; vertical-align: top; border-bottom: 1px solid #d8e2ef; }
.doc th { background: var(--paper); font-weight: 800; }
.doc pre { background: var(--paper); padding: 18px; overflow-x: auto; direction: rtl; font-family: inherit; white-space: pre; line-height: 1.5; font-size: 16px; }
.doc code { font-family: inherit; }
.doc .answers { background: #fff8e0; padding: 20px 24px; }
.side { position: sticky; top: 96px; display: grid; gap: 16px; }
.side .box { background: var(--paper); padding: 22px; }
.side h2 { font-size: 21px; margin-bottom: 12px; }
.side ol { list-style: none; padding: 0; display: grid; gap: 2px; font-size: 16px; }
.side ol a, .side ol span { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; }
.side ol a:hover { background: var(--paper-2); }
.side ol .here { background: #fff; font-weight: 800; }
.side ol .lock { color: #8a96aa; }
.side ol .tick { color: var(--green); font-weight: 800; }
.side .tutor-box { background: var(--ink); color: #fff; }
.side .tutor-box p { font-size: 16px; color: #c9d4e6; }
.side .tutor-box textarea { width: 100%; margin-top: 14px; font: inherit; font-size: 16px; padding: 12px; border: 0; border-radius: 0; min-height: 92px; resize: vertical; }
.side .tutor-box .btn-p { margin-top: 10px; width: 100%; justify-content: center; font-size: 16px; padding: 14px; }
.side .tutor-box .tutor-note { margin-top: 10px; font-size: 14px; color: #9fb0c9; }
.chat-log { display: grid; gap: 8px; margin-top: 14px; max-height: 420px; overflow-y: auto; }
.chat-log:empty { display: none; }
.chat-log .m { padding: 12px 14px; font-size: 16px; line-height: 1.65; }
.chat-log .m.q { background: var(--blue); color: #fff; }
.chat-log .m.a { background: #fff; color: var(--ink); }
.chat-log .m.a ol, .chat-log .m.a ul { padding-inline-start: 20px; }
.chat-log .m.a p + p, .chat-log .m.a p + ol, .chat-log .m.a ol + p { margin-top: 8px; }
.chat-log .m.err { background: #fde6e5; color: #7a1410; }
.chat-log .m.wait { background: #fff; color: var(--ink-2); }
.quiz { margin-top: 80px; background: var(--paper); padding: clamp(22px, 3vw, 44px); }
.quiz > h2 { font-size: clamp(28px, 3vw, 42px); }
.quiz .rule { margin-top: 10px; font-size: 17px; color: var(--ink-2); }
.quiz .case { margin-top: 40px; background: var(--ink); color: #fff; padding: 22px 24px; font-size: 18px; line-height: 1.75; }
.qz { margin-top: 32px; }
.qz legend { font-size: 20px; font-weight: 700; line-height: 1.5; padding: 0; }
.qz fieldset { border: 0; padding: 0; margin: 0; }
.qz label { display: flex; gap: 12px; align-items: flex-start; background: #fff; padding: 14px 16px; margin-top: 4px; cursor: pointer; font-size: 18px; transition: background-color .15s; }
.qz label:hover { background: #f6f9fd; }
.qz input { width: 20px; height: 20px; flex: none; margin-top: 5px; accent-color: var(--blue); }
.qz label.right { background: #e6f4dc; }
.qz label.wrong { background: #fde6e5; }
.qz .why { margin-top: 8px; font-size: 16px; color: var(--ink-2); }
.quiz .result-q { margin-top: 36px; padding: 24px; font-size: 20px; font-weight: 700; }
.quiz .result-q.pass { background: var(--green); color: #102a05; }
.quiz .result-q.fail { background: var(--red); color: #fff; }
.quiz .acts { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
.quiz .holder { margin-top: 48px; background: #fff; padding: clamp(18px, 2.4vw, 32px); display: grid; gap: 16px; }
.quiz .holder h3 { font-size: 22px; }
.quiz .holder label { display: grid; gap: 6px; font-weight: 700; font-size: 17px; }
.quiz .holder input { font: inherit; font-weight: 400; padding: 12px 14px; border: 2px solid var(--paper-2); background: var(--ground); color: var(--ink); }
.quiz .holder input:focus { border-color: var(--blue); outline: none; }
.quiz .holder .consent { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 16px; line-height: 1.6; }
.quiz .holder .consent input { width: 20px; height: 20px; flex: none; margin-top: 3px; padding: 0; accent-color: var(--blue); }
/* Graduates page */
.grads-top { padding-bottom: 48px; }
.grads-top .say { margin-top: 16px; color: #dfe9f7; max-width: 60ch; }
.grads { padding-block: 56px var(--gap); }
.grads-bar { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 32px; }
.grads-bar label { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; font-weight: 700; font-size: 16px; flex: 1 1 240px; min-width: 0; max-width: 420px; }
/* A long course name in the filter must not widen the page on phones. */
.grads-bar input, .grads-bar select { width: 100%; min-width: 0; text-overflow: ellipsis; font: inherit; font-weight: 400; padding: 12px 14px; border: 2px solid var(--paper-2); background: var(--paper); color: var(--ink); }
.grads-bar input:focus, .grads-bar select:focus { border-color: var(--blue); outline: none; background: #fff; }
.grads-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 4px; }
.grads-list li { background: var(--paper); padding: 24px; display: grid; gap: 6px; align-content: start; }
.grads-list li.state { background: none; padding: 0; color: var(--ink-2); }
.grads-list h2 { font-family: "Archivo", "Tajawal", sans-serif; font-size: clamp(22px, 2vw, 28px); line-height: 1.2; text-align: start; color: var(--field); }
.grads-list .g-prog { font-weight: 700; }
.grads-list .g-when { color: var(--ink-2); font-size: 16px; }
.grads-list a { margin-top: 10px; color: var(--blue); font-weight: 700; font-size: 16px; }
.grads-list a:hover { text-decoration: underline; }
.grads-list a span { white-space: nowrap; }
.grads-empty { display: grid; gap: clamp(28px, 3vw, 44px); }
.ge-head { max-width: 62ch; }
.ge-head h2, .ge-pick { font-size: var(--d3); }
.ge-head p { margin-top: 10px; font-size: 18px; color: var(--ink-2); }
.ge-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.ge-steps li { background: var(--paper); padding: 26px 24px; display: grid; gap: 8px; align-content: start; border-top: 4px solid var(--yellow); }
.ge-steps b { font-family: "Archivo", "Tajawal", sans-serif; font-size: 40px; line-height: 1; color: var(--blue); }
.ge-steps h3 { font-size: 21px; font-weight: 800; }
.ge-steps p { font-size: 16.5px; line-height: 1.6; color: var(--ink-2); }
.ge-pick { margin-top: 8px; }
.ge-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: -16px; }
.ge-card { display: grid; grid-template-rows: auto auto 1fr; background: #fff; border: 1px solid var(--paper-2); border-top: 6px solid var(--t); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.ge-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(13, 35, 80, .12); }
.ge-card img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.ge-tag { padding: 12px 14px 0; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.ge-title { padding: 4px 14px 16px; font-size: 18px; line-height: 1.4; font-weight: 800; color: var(--ink); }
.ge-card:hover .ge-title { color: var(--blue); }
@media (max-width: 1100px) { .ge-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px) { .ge-steps { grid-template-columns: minmax(0, 1fr); } .ge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .ge-title { font-size: 16px; } }

/* Graduation project page */
body.p:has(.project) .lesson-top { padding-bottom: 40px; }
.project .doc { margin-top: 0; }
.pform { margin-top: 48px; }
.pform .part { margin-top: 36px; }
.pform .part label { display: flex; gap: 14px; align-items: baseline; font-size: clamp(22px, 2vw, 28px); font-weight: 800; line-height: 1.3; }
.pform .part .n { color: var(--blue); font-family: "Archivo", sans-serif; }
.pform .hint { margin-top: 8px; color: var(--ink-2); font-size: 17px; }
.pform textarea, .pform .who input { width: 100%; margin-top: 12px; font: inherit; font-size: 18px; line-height: 1.7; padding: 14px 16px; border: 2px solid var(--paper-2); background: var(--paper); color: var(--ink); resize: vertical; }
.pform textarea:focus, .pform .who input:focus { border-color: var(--blue); outline: none; background: #fff; }
.pform .part.miss textarea { border-color: var(--red); }
.pform .who { margin-top: 56px; background: var(--paper); padding: clamp(18px, 2.4vw, 32px); display: grid; gap: 16px; }
.pform .who label { display: grid; gap: 4px; font-weight: 700; font-size: 17px; }
.pform .who input { background: #fff; margin-top: 4px; }
.pform .acts { margin-top: 32px; }
.pform .err { margin-top: 14px; color: var(--red); font-weight: 700; min-height: 1.6em; }
.state-box { margin-top: 48px; background: var(--paper); padding: clamp(22px, 3vw, 40px); display: grid; gap: 16px; }
.presult { margin-top: 64px; background: var(--paper); padding: clamp(22px, 3vw, 44px); }
.presult > h2 { font-size: clamp(28px, 3vw, 42px); }
.presult .result-q { margin-top: 24px; padding: 24px; font-size: 20px; font-weight: 700; }
.presult .result-q.pass { background: var(--green); color: #102a05; }
.presult .result-q.fail { background: var(--red); color: #fff; }
.presult .summary { margin-top: 20px; font-size: 19px; line-height: 1.75; }
.presult .note-warn { margin-top: 16px; background: var(--yellow); color: #1a1400; padding: 16px 18px; font-weight: 700; }
.presult .crit { list-style: none; padding: 0; margin-top: 28px; display: grid; gap: 4px; }
.presult .crit li { background: #fff; padding: 18px 20px; }
.presult .crit .top { display: flex; justify-content: space-between; gap: 16px; font-weight: 800; font-size: 19px; }
.presult .crit .top b { color: var(--blue); white-space: nowrap; }
.presult .crit p { margin-top: 8px; font-size: 17px; }
.presult .acts { margin-top: 32px; }
.rubric { list-style: none; padding: 0; margin-top: 12px; display: grid; gap: 2px; font-size: 16px; }
.rubric li { display: flex; justify-content: space-between; gap: 12px; background: #fff; padding: 10px 12px; }
.rubric b { color: var(--blue); }
.rubric li.sum { background: var(--ink); color: #fff; font-weight: 800; }
.rubric li.sum b { color: var(--yellow); }
.c-list li.project a { background: var(--blue); color: #fff; }
.c-list li.project a::before { color: var(--yellow); }
.c-list li.project p, .c-list li.project .min { color: #dfe9f7; }
.review-flag { background: var(--yellow); color: #1a1400; font-weight: 800; padding: 10px var(--edge); font-size: 16px; }
@media (max-width: 1000px) {
  .c-hero .grid, .c-units .head, .c-who .grid, .c-cert .grid, .lesson .grid { grid-template-columns: minmax(0, 1fr); }
  .c-hero .copy { padding-bottom: 0; }
  .c-hero figure { margin-inline: calc(var(--edge) * -1); }
  .c-hero figure img { aspect-ratio: 4 / 3; }
  .side { position: static; }
}
@media (max-width: 600px) {
  .c-list a { grid-template-columns: 48px 1fr; gap: 14px; padding: 18px 16px; }
  .c-list .min { grid-column: 2; }
  .doc { font-size: 18px; }
}

/* Certificate */
.cert { background: var(--paper); padding-block: var(--gap); }
.cert .grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 112px); align-items: center; }
.cert figure { background: #fff; padding: clamp(16px, 2vw, 28px); }
.cert figure img { width: 100%; height: auto; }
.cert .lede { margin-top: 28px; }
.cert ul { list-style: none; padding: 0; margin-top: 32px; display: grid; gap: 4px; }
.cert li { background: #fff; padding: 16px 18px; font-size: 17px; }
.cert li b { color: var(--blue); }
.cert .acts { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }

/* Tracks */
.tracks { padding-block: var(--gap); }
.tracks .grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 5vw, 88px); align-items: start; }
.tracks ul { list-style: none; padding: 0; margin-top: 44px; }
.tracks li { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding-block: 16px; font-size: clamp(22px, 2.2vw, 32px); font-weight: 700; }
.tracks li + li { background: none; }
.tracks li span { font-size: 16px; font-weight: 700; padding: 6px 12px; background: var(--paper); color: var(--ink-2); white-space: nowrap; }
.tracks li.live span { background: var(--green); color: #102a05; }
.tracks figure img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.tracks figcaption { font-size: 15px; color: var(--ink-2); margin-top: 10px; }

/* Join */
.join { background: var(--field); color: #fff; padding-block: var(--gap); }
.join .grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 88px); align-items: center; }
.join .say { margin-top: 28px; color: #dfe9f7; }
.join .acts { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }
.join .cicons { gap: 22px; }
.join .cicon i { background: #fff; color: var(--blue); }
.join img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.join .addr { margin-top: 24px; color: #dfe9f7; }

/* Footer: the name returns */
.foot { background: var(--ink); color: #c9d4e6; padding-block: 72px 40px; font-size: 16px; }
.foot .name { font-family: "Archivo", sans-serif; font-weight: 800; color: #fff; font-size: clamp(88px, 22vw, 340px); line-height: .8; letter-spacing: -.04em; direction: ltr; text-align: left; }
.foot .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; margin-top: 56px; }
.foot h3 { color: #fff; font-size: 18px; margin-bottom: 12px; }
.foot nav.fl { display: grid; gap: 6px; font-size: 16px; color: #c9d4e6; position: static; box-shadow: none; padding: 0; background: none; }
.foot a:hover { color: #fff; }
.foot .credits { font-size: 14px; line-height: 1.7; color: #9fb0c9; }
.foot .legal { margin-top: 48px; font-size: 14px; color: #9fb0c9; }

/* Entrances */
.rv { opacity: 1; }
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js .rv.in { opacity: 1; transform: none; }
.hero-p figure img { animation: drift 18s var(--ease) both; }
@keyframes drift { from { transform: scale(1.08); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; transition: none; }
  .hero-p figure img { animation: none; }
  .caret::after { animation: none; }
  .btn-p, .tutor .ask { transition: none; }
}

@media (max-width: 1000px) {
  .hero-p .grid, .tutor .head, .tutor .stage, .offer .head, .cards2, .course .grid, .cert .grid, .tracks .grid, .join .grid { grid-template-columns: minmax(0, 1fr); }
  .hero-p .copy { padding-bottom: 0; }
  .hero-p figure { min-height: 0; aspect-ratio: 4 / 3; margin-inline: calc(var(--edge) * -1); }
  .path .band { grid-template-columns: 1fr 1fr; }
  .path .band .s1 { grid-column: 1 / -1; }
  .course .nums { grid-template-columns: repeat(2, 1fr); }
  .foot .cols { grid-template-columns: 1fr 1fr; }
  .cert figure { max-width: 420px; }
}
@media (max-width: 600px) {
  body.p { font-size: 17px; }
  .units { grid-template-columns: 1fr; }
  .path .band { grid-template-columns: 1fr; }
  .path .band > div { gap: 20px; }
  .foot .cols { grid-template-columns: 1fr; }
  .tracks li { font-size: 21px; }
  .p .bar .go { display: none; }
}

/* Project part filled from the commentator studio */
.studio-acts { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 10px; }
.studio-acts .btn-p { padding: 12px 18px; font-size: 16px; }
.studio-acts .btn-p.light { background: var(--paper); color: var(--field); }

/* Diploma: module headings inside the unit list, and the commentator studio band */
.c-list li.mod { counter-increment: none; padding: 28px 0 8px; }
.c-list li.mod:first-child { padding-top: 0; }
.c-list li.mod h3 { font-size: clamp(18px, 1.5vw, 21px); color: var(--blue); }
.c-studio { background: var(--field-2); color: #fff; padding-block: var(--gap); }
.c-studio .grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 88px); align-items: center; }
.c-studio h2 { font-size: var(--d2); line-height: 1.1; }
.c-studio .say { margin-top: 20px; color: #dfe8f6; }
.c-studio ul { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 4px; }
.c-studio li { background: rgba(255, 255, 255, .07); padding: 14px 16px; font-size: 17px; }
.c-studio li b { color: var(--yellow); }
.c-studio .shot img { width: 100%; height: auto; }
@media (max-width: 900px) { .c-studio .grid { grid-template-columns: minmax(0, 1fr); } }

/* Course page: how this course differs from a neighbouring one */
.c-diff { padding-block: var(--gap); }
.c-diff h2 { font-size: var(--d2); line-height: 1.1; }
.c-diff .say { margin-top: 18px; max-width: 60ch; }
.c-diff .cards2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 32px; }
.c-diff .cards2 > div { background: var(--paper); padding: 24px; }
.c-diff .cards2 > div.on { background: var(--field); color: #fff; }
.c-diff .cards2 h3 { font-size: clamp(20px, 1.8vw, 26px); margin-bottom: 10px; }
.c-diff .cards2 h3 a { text-decoration: underline; text-underline-offset: 4px; }
.c-diff .cards2 p + p { margin-top: 8px; }
@media (max-width: 760px) { .c-diff .cards2 { grid-template-columns: minmax(0, 1fr); } }

/* Programme passes (tools/build_passes.py): every programme is the same accreditation pass,
   its band in the track's colour from the logo, a lanyard slot, the photo in a passe-partout. */
.passes-sec { background: var(--field-2); color: #fff; }
.passes-sec .head h2 { color: #fff; }
.passes-sec .head .say { color: #dce6f5; }
.passes-sec .en-sub { margin-top: 12px; font-size: clamp(18px, 1.6vw, 24px); font-weight: 700; color: var(--yellow); }
.trackbar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 48px; }
.trackbar button { font: inherit; font-size: 16px; font-weight: 700; color: #fff; background: var(--field); border: 0; padding: 12px 18px;
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer; transition: background-color .18s, color .18s, transform .18s var(--ease); }
.trackbar button span { font-weight: 500; opacity: .75; }
.trackbar button b { font-weight: 800; color: var(--yellow); }
.trackbar button i { width: 14px; height: 14px; background: var(--t); flex: none; }
.trackbar button:hover { transform: translateY(-2px); background: #1b4c97; }
.trackbar button.on { background: #fff; color: var(--ink); }
.trackbar button.on b { color: var(--blue); }
.passes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 1.6vw, 24px); margin-top: 28px; }
.passes.dips { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 32px; }
.passes.dips:not(:has(.pass:not([hidden]))) { display: none; }
.pass { --tc: #fff; background: #fff; color: var(--ink); padding: 0 12px 12px; display: grid; grid-template-rows: auto auto 1fr; align-content: start;
  transition: transform .3s var(--ease); }
.pass:hover { transform: translateY(-6px); }
.pass[data-track="fitness"] { --tc: #1a1400; }
.pass[data-track="football"] { --tc: #0c2200; }
.pass[data-track="science"] { --tc: #021a36; }
.pass .band { position: relative; margin: 0 -12px; background: var(--t); color: var(--tc); padding: 38px 18px 16px; }
.pass .slot { position: absolute; top: 12px; left: 50%; width: 58px; height: 12px; margin-left: -29px; border-radius: 6px; background: var(--field-2); }
.pass .band p { line-height: 1.3; }
.pass .band p b { display: block; font-size: clamp(18px, 1.35vw, 21px); font-weight: 800; }
.pass .band p span { display: block; margin-top: 2px; font-size: 16px; font-weight: 700; text-align: start; }
.pass .code { position: absolute; top: 9px; inset-inline-end: 18px; font-size: 16px; font-weight: 800; white-space: nowrap; }
.pass .pic { display: block; overflow: hidden; margin-top: 12px; }
.pass .pic img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease); }
.pass:hover .pic img { transform: scale(1.05); }
.pass .body { padding: 20px 8px 8px; display: grid; gap: 14px; align-content: start; }
.pass .pt { font-size: clamp(22px, 1.65vw, 26px); line-height: 1.3; font-weight: 800; }
.pass .pt a:hover { color: var(--blue); }
.pass .en { margin-top: -6px; font-size: 16.5px; font-weight: 600; color: var(--ink); line-height: 1.4; text-align: start; }
.pass .blurb { font-size: 16.5px; line-height: 1.6; }
.pass .figs { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.pass .figs li { background: var(--paper); padding: 10px 8px; text-align: center; line-height: 1.2; }
.pass .figs b { display: block; font-size: 26px; font-weight: 800; color: var(--blue); }
.pass .figs span { font-size: 14px; color: var(--ink-2); }
.pass .acts { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.pass .acts .btn-p { padding: 12px 20px; font-size: 16px; }
@media (min-width: 900px) {
  .pass.wide { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 0; }
  .pass.wide .band { grid-column: 1 / -1; }
  .pass.wide .pic { margin-top: 12px; }
  .pass.wide .pic img { height: 100%; aspect-ratio: auto; min-height: 340px; }
  .pass.wide .body { padding: 22px 24px 10px; }
  .pass.wide .pt { font-size: clamp(24px, 2vw, 30px); }
}
@media (max-width: 1180px) { .passes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* No empty space at the end of a grid: the three diplomas share one row on wide screens, and a card left
   alone in the last row stretches across it with the picture beside the text. */
@media (min-width: 1181px) {
  .passes.dips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .passes.dips .pass.wide { grid-template-columns: none; grid-template-rows: auto auto 1fr; }
  .passes.dips .pass.wide .pic img { height: auto; aspect-ratio: 4 / 3; min-height: 0; }
  .passes.dips .pass.wide .body { padding: 20px 8px 8px; }
  .passes:not(.dips) > .pass:last-child:nth-child(4n+1) { grid-column: 1 / -1; }
}
@media (min-width: 901px) and (max-width: 1180px) {
  .passes > .pass:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
/* The picture goes beside the text only when the last card really spans the row:
   an odd last card on two columns, a 4n+1 last card on four. */
@media (min-width: 901px) and (max-width: 1180px) {
  .passes:not(.dips) > .pass:last-child:nth-child(odd):not(.wide) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 0; }
  .passes:not(.dips) > .pass:last-child:nth-child(odd):not(.wide) .band { grid-column: 1 / -1; }
  .passes:not(.dips) > .pass:last-child:nth-child(odd):not(.wide) .pic img { height: 100%; aspect-ratio: auto; min-height: 300px; }
  .passes:not(.dips) > .pass:last-child:nth-child(odd):not(.wide) .body { padding: 22px 24px 10px; }
}
@media (min-width: 1181px) {
  .passes:not(.dips) > .pass:last-child:nth-child(4n+1):not(.wide) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 0; }
  .passes:not(.dips) > .pass:last-child:nth-child(4n+1):not(.wide) .band { grid-column: 1 / -1; }
  .passes:not(.dips) > .pass:last-child:nth-child(4n+1):not(.wide) .pic img { height: 100%; aspect-ratio: auto; min-height: 300px; }
  .passes:not(.dips) > .pass:last-child:nth-child(4n+1):not(.wide) .body { padding: 22px 24px 10px; }
}

@media (max-width: 900px) { .passes.dips { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .passes { grid-template-columns: minmax(0, 1fr); }
  .trackbar { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--edge)); padding-inline: var(--edge); padding-bottom: 6px; }
  .trackbar button { flex: none; }
  .trackbar button span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .pass, .pass .pic img, .trackbar button { transition: none; } .pass:hover { transform: none; } }
.pass[hidden] { display: none; }

/* Courses catalogue (tools/build_passes.py): a dark hero with the offer, the search and a picture
   mosaic; the diplomas large in a passe-partout of their track colour; then each track as a full
   field in its logo colour, its courses as rows. Flat colour, no lines, no shadows. */
.cat-hero { background: var(--field-2); color: #fff; padding-block: clamp(48px, 6vw, 88px) clamp(56px, 7vw, 104px); }
.cat-hero .frame { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.cat-hero h1 { font-size: clamp(44px, 5.4vw, 88px); line-height: 1.05; font-weight: 800; }
.cat-hero .say { margin-top: 28px; font-size: clamp(18px, 1.35vw, 21px); line-height: 1.65; color: #eef3fb; max-width: 34em; }
.cat-hero .big { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 16px 48px; margin-top: 40px; font-size: 18px; font-weight: 700; }
.cat-hero .big b { display: block; font-family: "Archivo", "Tajawal", sans-serif; font-size: clamp(48px, 4.8vw, 76px); line-height: 1; color: var(--yellow); margin-bottom: 6px; }
.cat-hero .find { margin-top: 44px; max-width: 580px; }
.cat-hero .find label { display: block; font-size: 18px; font-weight: 800; margin-bottom: 12px; }
.cat-hero .find input { width: 100%; font: inherit; font-size: 20px; padding: 18px 22px; border: 0; border-radius: 0; background: #fff; color: var(--ink); -webkit-appearance: none; appearance: none; }
.cat-hero .find input::placeholder { color: #5d6b82; }
.cat-hero .found { margin-top: 12px; min-height: 1.6em; font-weight: 700; color: var(--yellow); }
.cat-hero .mosaic { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); grid-template-rows: 1fr 1fr; gap: 12px; height: clamp(400px, 42vw, 640px); overflow: hidden; }
.cat-hero .mosaic img { width: 100%; height: 100%; object-fit: cover; }
.cat-hero .mosaic .m0 { grid-row: 1 / 3; animation: cat-drift 1.6s var(--ease) both; }

.cat-bar { position: sticky; top: 76px; z-index: 15; background: var(--ground); padding-block: 14px; }
.cat-bar .chips { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-bar button { font: inherit; font-size: 17px; font-weight: 700; color: var(--ink); background: var(--paper); border: 0; border-radius: 0; padding: 12px 18px;
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer; transition: background-color .18s, color .18s, transform .18s var(--ease); }
.cat-bar button i { width: 14px; height: 14px; background: var(--t); flex: none; }
.cat-bar button b { font-weight: 800; color: var(--blue); }
.cat-bar button:hover { background: var(--paper-2); transform: translateY(-2px); }
.cat-bar button.on { background: var(--ink); color: #fff; }
.cat-bar button.on b { color: var(--yellow); }

.cat-dips { padding-block: clamp(72px, 8vw, 128px); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 64px; align-items: end; margin-bottom: clamp(48px, 5vw, 80px); }
.sec-head h2 { font-size: clamp(36px, 4.4vw, 68px); line-height: 1.05; font-weight: 800; }
.sec-head p { font-size: 20px; line-height: 1.6; max-width: 32em; }
.dip, .crow { display: grid; align-items: center; }
.dip { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(28px, 4.5vw, 72px); }
.dip + .dip { margin-top: clamp(72px, 8vw, 128px); }
.dip:nth-of-type(even) .pic { order: 2; }
.dip .pic, .crow .pic { display: block; overflow: hidden; }
.dip .pic { background: var(--t); padding: clamp(14px, 1.6vw, 24px); }
.dip .pic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .7s var(--ease); }
.crow .pic img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .7s var(--ease); }
.dip:hover .pic img, .crow:hover .pic img { transform: scale(1.04); }
[data-track="fitness"] { --t: var(--yellow); }
[data-track="football"] { --t: var(--green); }
[data-track="science"] { --t: var(--sky); }
[data-track="lead"] { --t: var(--black); }
[data-track="media"] { --t: var(--red); }
.dip h3 { font-size: clamp(26px, 2.3vw, 36px); line-height: 1.25; font-weight: 800; }
.crow h3 { font-size: clamp(24px, 2vw, 32px); line-height: 1.25; font-weight: 800; }
.dip h3 a:hover, .crow h3 a:hover { color: var(--blue); }
.dip .en, .crow .en { margin-top: 6px; font-size: 16px; font-weight: 600; color: var(--ink-2); text-align: start; }
.dip .who, .crow .who { margin-top: 18px; font-size: 19px; font-weight: 800; }
.dip .does, .crow .does { margin-top: 8px; font-size: 18px; line-height: 1.65; max-width: 40em; }
.nums { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 36px; margin-top: 22px; font-size: 16px; font-weight: 700; color: var(--ink-2); }
.nums b { display: block; font-family: "Archivo", "Tajawal", sans-serif; font-size: 36px; line-height: 1; font-weight: 800; color: var(--blue); margin-bottom: 4px; }
.dip .acts, .crow .acts { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; margin-top: 26px; }
.dip .acts .btn-p, .crow .acts .btn-p { padding: 14px 24px; font-size: 17px; }

.cat-track .field { background: var(--t); color: var(--ink); padding-block: clamp(56px, 6.5vw, 104px); }
.cat-track.dark .field { color: #fff; }
.cat-track .field h2 { font-size: clamp(44px, 5.6vw, 88px); line-height: 1; font-weight: 800; }
.cat-track .field p { margin-top: 20px; font-size: clamp(19px, 1.5vw, 22px); line-height: 1.6; max-width: 38em; }
.cat-track .field .frame { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 64px; align-items: end; }
.cat-track .field .count { font-size: 22px; font-weight: 800; text-align: center; margin: 0; }
.cat-track .field .count b { display: block; font-family: "Archivo", "Tajawal", sans-serif; font-size: clamp(96px, 12vw, 200px); line-height: .85; }
.crow:nth-child(even) .pic { order: 2; }
.cat-track .list { display: grid; gap: clamp(56px, 6vw, 88px); padding-block: clamp(56px, 6.5vw, 104px); }
.crow { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); }
/* Compact catalogue on wide screens: two courses per row, a smaller photo beside a shorter text. */
@media (min-width: 1100px) {
  .cat-track .list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 3vw, 56px); row-gap: clamp(40px, 4vw, 64px); padding-block: clamp(48px, 5vw, 80px); }
  .cat-track .crow { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 24px; align-items: start; }
  .cat-track .crow:nth-child(even) .pic { order: 0; }
  .cat-track .crow .pic img { aspect-ratio: 4 / 5; }
  .cat-track .crow h3 { font-size: clamp(21px, 1.6vw, 25px); }
  .cat-track .crow .who { margin-top: 12px; font-size: 16px; }
  .cat-track .crow .does { font-size: 16px; line-height: 1.6; }
  .cat-track .crow .acts { margin-top: 16px; gap: 10px 20px; }
  .cat-track .crow .acts .btn-p { padding: 11px 18px; font-size: 15.5px; }
  .cat-track .crow:last-child:nth-child(odd) { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .cat-track .crow:last-child:nth-child(odd) .pic img { aspect-ratio: 16 / 9; }
}
.cat-coming { padding-bottom: clamp(56px, 6vw, 96px); font-size: 20px; }
.cat-coming b { font-weight: 800; }
.none { padding-block: 72px; font-size: 21px; font-weight: 700; }
.none a { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.cat-hero [hidden], .dip[hidden], .crow[hidden], .cat-track[hidden], .cat-dips[hidden] { display: none; }

@keyframes cat-drift { from { transform: scale(1.08); } to { transform: none; } }
@media (max-width: 1000px) {
  .cat-hero .frame { grid-template-columns: minmax(0, 1fr); }
  .cat-hero .mosaic { height: clamp(280px, 60vw, 460px); }
  .sec-head, .dip, .crow { grid-template-columns: minmax(0, 1fr); }
  .dip:nth-of-type(even) .pic, .crow:nth-child(even) .pic { order: 0; }
  .cat-track .field .frame { grid-template-columns: minmax(0, 1fr); }
  .cat-track .field .count { text-align: start; }
}
@media (max-width: 640px) {
  .cat-bar { top: 64px; padding-block: 10px; }
  .cat-bar .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--edge)); padding-inline: var(--edge); padding-bottom: 4px; }
  .cat-bar button { flex: none; font-size: 16px; padding: 10px 14px; }
  .cat-hero .big { gap: 12px 28px; }
  .nums b { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .cat-hero .mosaic .m0 { animation: none; }
  .dip .pic img, .crow .pic img, .cat-bar button { transition: none; }
  .dip:hover .pic img, .crow:hover .pic img { transform: none; }
}

/* Price: a yellow chip in the logo colour, so it stands apart from the unit, hour and question counts. */
.pass .figs li.price { background: var(--yellow); }
.pass .figs li.price b, .pass .figs li.price span { color: var(--navy, #0d2350); }
.nums li.price { background: var(--yellow); color: var(--navy, #0d2350); padding: 8px 14px 6px; border-radius: 4px; }
.nums li.price b { color: var(--navy, #0d2350); }
/* Courses being prepared: a "coming soon" tag in place of the numbers, and a motto under the track's introduction. */
.nums li.later { background: var(--paper); color: var(--ink); padding: 8px 14px 6px; border-radius: 4px; }
.cat-track .field p.motto { margin-top: 12px; }
.cat-track .field p.motto b { color: var(--yellow); }
/* The community page: its own section of the academy, opened from the menu and from the courses page. */
.comm-top .field { padding-block: clamp(72px, 9vw, 140px) clamp(56px, 6.5vw, 104px); }
.comm-top .field h1 { font-size: clamp(44px, 6.4vw, 104px); line-height: 1; font-weight: 800; }
.comm-top .kicker, .comm-band .kicker { font-weight: 800; font-size: clamp(16px, 1.3vw, 19px); color: var(--yellow); margin: 0 0 14px; }
.comm-back { margin-top: 20px; font-size: 19px; line-height: 1.65; max-width: 44em; }
.comm-back a { color: var(--blue); font-weight: 800; white-space: nowrap; }
.comm-band { margin-block: 0 clamp(56px, 6vw, 96px); padding: clamp(36px, 4.5vw, 64px) clamp(24px, 4vw, 56px); background: var(--field); color: #fff; }
.comm-band h2 { font-size: clamp(32px, 3.6vw, 56px); line-height: 1.05; font-weight: 800; }
.comm-band p:not(.kicker) { margin-top: 16px; font-size: clamp(18px, 1.4vw, 21px); line-height: 1.6; max-width: 40em; }
.comm-band .btn-p { margin-top: 26px; }
.comm-video { margin-top: clamp(36px, 4.5vw, 64px); }
.comm-video video { display: block; width: 100%; max-width: 1040px; aspect-ratio: 16 / 9; background: #0d2350; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.facts .price { background: var(--yellow); color: var(--navy, #0d2350); padding: 2px 12px; border-radius: 4px; font-weight: 700; }
.facts .price b { color: var(--navy, #0d2350) !important; }
.btn-p.buy[hidden] { display: none; }

/* Paywall (pay.js): shown instead of units after the first, on buy.html and on the project page. */
.paywall { background: var(--paper); border-top: 4px solid var(--yellow); padding: 28px 24px; }
.paywall h2 { margin-top: 0; }
.paywall label { display: block; font-weight: 700; margin: 14px 0 6px; }
.paywall input { display: block; width: 100%; max-width: 420px; margin-top: 6px; padding: 12px 14px; font: inherit; border: 1px solid #c9d3e3; border-radius: 4px; background: #fff; }
.paywall .btn-p { margin-top: 14px; }
.paywall .pw-msg { min-height: 1.4em; margin-top: 10px; color: var(--ink-2); }
.paywall details { margin-top: 22px; }
.paywall summary { cursor: pointer; font-weight: 700; color: var(--blue); }
.paywall .pw-note { margin-top: 18px; font-size: 15px; color: var(--ink-2); }
.paywall .btn-p.light { background: #fff; border: 1px solid #c9d3e3; }

/* Cart (pay.js, cart.html): buy two courses, the third is free. */
.paywall .pw-offer { margin-top: 18px; font-weight: 700; }
.paywall .pw-offer .btn-p { margin: 8px 0 0; }
.cart-badge { position: fixed; z-index: 30; inset-inline-start: calc(16px + env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); background: var(--yellow); color: var(--navy, #0d2350); font-weight: 800; padding: 10px 16px; border-radius: 99px; box-shadow: 0 4px 14px rgba(13, 35, 80, .2); text-decoration: none; }
.cart-badge[hidden] { display: none; }
.cart-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid #c9d3e3; }
.cart-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 0; border-bottom: 1px solid #c9d3e3; }
.cart-list .t { flex: 1 1 220px; min-width: 0; font-weight: 700; }
.cart-list .p { font-variant-numeric: tabular-nums; font-weight: 700; }
.cart-list .p s { color: var(--ink-2); font-weight: 400; margin-inline-end: 6px; }
.cart-list .free-tag { background: var(--green); color: #fff; font-size: 13px; padding: 2px 10px; border-radius: 99px; }
.cart-list button { font: inherit; font-size: 14px; background: none; border: 0; color: var(--red); cursor: pointer; padding: 4px; }
.cart-total { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cart-hint { margin-top: 12px; background: #fff; border-inline-start: 4px solid var(--green); padding: 10px 14px; }
.cart-more { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.cart-more button { font: inherit; font-size: 14px; background: #fff; border: 1px solid #c9d3e3; border-radius: 99px; padding: 6px 12px; cursor: pointer; }
.cart-more button:hover { border-color: var(--blue); }

/* Graduate stories (story.html, graduates page). */
.story ul, .story ol { display: grid; gap: 6px; }
.story-note { background: var(--paper); border-inline-start: 4px solid var(--yellow); padding: 12px 16px; }
.paywall label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.paywall label.check input { display: inline-block; width: 20px; height: 20px; flex: none; margin: 3px 0 0; padding: 0; }
.paywall select { display: block; width: 100%; max-width: 420px; margin-top: 6px; padding: 12px 14px; font: inherit; border: 1px solid #c9d3e3; border-radius: 4px; background: #fff; }
/* Each video sits in a navy frame with the graduate's name over it and the course and certificate
   number under it. On a phone the cards scroll sideways. */
.stories-band h2 { margin-bottom: clamp(24px, 3vw, 40px); }
.stories { color: #fff; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: clamp(16px, 2vw, 28px); list-style: none; margin: 0; padding: 0; }
.stories li { display: grid; gap: 10px; align-content: start; background: var(--field-2); padding: 10px 10px 18px; }
.s-frame { position: relative; aspect-ratio: 9 / 16; overflow: hidden; background: var(--ink); }
.s-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.s-play { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border: 0; border-radius: 50%; background: var(--yellow); cursor: pointer; transition: transform .25s var(--ease), background .2s; }
.s-play::after { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-38%, -50%); border-style: solid; border-width: 13px 0 13px 22px; border-color: transparent transparent transparent var(--ink); }
.s-play:hover { transform: scale(1.08); background: #ffd24a; }
.s-play:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.s-who { position: absolute; inset: auto 0 0; display: grid; padding: 64px 16px 16px; background: linear-gradient(0deg, rgba(8, 14, 28, .85), rgba(8, 14, 28, 0)); pointer-events: none; transition: opacity .3s; }
.s-who b { font-size: 22px; line-height: 1.25; }
.s-who span { font-size: 15px; color: #dfe9f7; }
.s-frame.on .s-play, .s-frame.on .s-who { opacity: 0; visibility: hidden; }
.stories .s-prog { padding-inline: 6px; font-weight: 700; font-size: 17px; line-height: 1.45; }
.s-cert { padding-inline: 6px; color: var(--yellow); font-weight: 700; font-size: 15px; display: grid; }
.s-cert span { color: #c9d6ea; font-weight: 400; font-size: 13px; }
.s-cert:hover { text-decoration: underline; }
.stories-band .s-gift { margin-top: 20px; font-size: 15px; }
.s-gift a { color: var(--blue); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.stories-band .stories-cta { margin-top: clamp(28px, 3vw, 40px); }
@media (max-width: 640px) {
  .stories { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 76%; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--edge)); padding-inline: var(--edge); scrollbar-width: none; }
  .stories li { scroll-snap-align: center; }
}
.s-gift { font-size: 14px; color: var(--ink-2); }
.c-stories .s-lead { margin: calc(-1 * clamp(12px, 2vw, 24px)) 0 clamp(20px, 2.5vw, 32px); max-width: 60ch; }
@media (min-width: 641px) { .c-stories .stories { grid-template-columns: repeat(auto-fill, minmax(220px, 260px)); } }
/* In the payment box: two small videos side by side, also on phones. */
.pw-proof { margin-top: 22px; padding-top: 18px; border-top: 1px solid #dde4ef; }
.pw-proof-h { font-weight: 700; margin: 0 0 12px; }
.stories.mini, .stories.mini li { scroll-snap-type: none; }
.stories.mini { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 170px)); grid-auto-columns: auto; gap: 12px; overflow: visible; margin-inline: 0; padding-inline: 0; }
.stories.mini li { padding: 6px 6px 10px; gap: 6px; }
.stories.mini .s-play { width: 50px; height: 50px; }
.stories.mini .s-play::after { border-width: 9px 0 9px 15px; }
.stories.mini .s-who { padding: 40px 10px 10px; }
.stories.mini .s-who b { font-size: 15px; }
.stories.mini .s-who span { font-size: 12px; }
.stories.mini .s-prog { font-size: 13px; padding-inline: 4px; }
.stories.mini .s-cert { font-size: 12px; padding-inline: 4px; }
.stories.mini .s-cert span { font-size: 11px; overflow-wrap: anywhere; }
.pw-proof .s-gift { margin-top: 10px; font-size: 13px; }
.stories-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 18px; }

/* Reading pages moved onto the platform look (about, contact, diplomas, instructors, news,
   partnerships, privacy, certificate check): the navy title band, then plain sections. */
.page-top { padding-block: clamp(40px, 5vw, 72px) clamp(40px, 4vw, 56px); }
.page-top h1 { font-size: var(--d2); }
.page-top .say { margin-top: 14px; color: #dfe9f7; max-width: 52ch; font-size: clamp(18px, 1.6vw, 22px); }
.p main > section:not([class]), .p main > section.light { padding-block: clamp(56px, 7vw, 112px); }
.p main > section.light { background: var(--paper); }
.p .prose { max-width: 70ch; }
.p .prose p, .p .intro, .p .card p { color: var(--ink); }
.p .prose p + p { margin-top: 16px; }
.p .intro { margin-top: 16px; font-size: clamp(18px, 1.5vw, 20px); }
.p .cards { gap: 20px; margin-top: 40px; }
.p .card { background: var(--paper); border: 0; border-top: 6px solid var(--sky); border-radius: 0; padding: 28px; transition: none; }
.p .light .card { background: #fff; }
.p .card:hover { transform: none; }
.p .card:nth-child(5n+2) { border-top-color: var(--yellow); }
.p .card:nth-child(5n+3) { border-top-color: var(--red); }
.p .card:nth-child(5n+4) { border-top-color: var(--green); }
.p .card:nth-child(5n+5) { border-top-color: var(--black); }
.p .card h3 { font-size: var(--d3); margin: 0 0 10px; }
.p .card .role { font-weight: 800; color: var(--blue); margin: -4px 0 10px; font-size: 17px; }
.p .card.media { padding: 0; }
.p .card .num { font-family: inherit; font-size: 16px; color: var(--blue); }
.p .ticks { gap: 14px 40px; margin-top: 32px; }
.p .ticks li::before { border-radius: 0; background: var(--field); }
.p .notice { border: 0; border-radius: 0; background: var(--paper); text-align: start; padding: 32px; margin-top: 40px; }
.p .notice p { color: var(--ink); }
.p .result { border-radius: 0; }
.p .verify input, .p .reg input, .p .reg select, .p .reg textarea, .p .filters input, .p .filters select { border: 2px solid var(--paper-2); border-radius: 0; background: var(--paper); padding: 12px 14px; }
.p .verify input:focus, .p .reg input:focus, .p .reg select:focus, .p .reg textarea:focus { outline: none; border-color: var(--blue); background: #fff; }
.p dialog#reg-dialog { border-radius: 0; }
.p .reg .btn { border-radius: 0; padding: 14px 24px; }
.p .aside-note { margin-top: 40px; background: var(--paper); border-top: 6px solid var(--yellow); padding: 24px 28px; max-width: 70ch; }
.p .aside-note h3 { font-size: 20px; margin-bottom: 8px; }

/* Contact: Fares's video beside the title, then the five ways in, one per colour of the logo. Each tile is one link. */
.contact-top { padding-bottom: clamp(48px, 5vw, 80px); }
.contact-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.contact-top h1 { font-size: var(--d1); line-height: 1; }
.contact-top .say { margin-top: 22px; max-width: 26ch; color: #fff; }
.contact-top .btn-p { margin-top: 32px; }
.contact-video { margin: 0; }
.contact-video video { display: block; width: 100%; aspect-ratio: 16 / 9; background: var(--field-2); }
.contact-video figcaption { margin-top: 12px; font-size: 16px; color: #c9d4e6; }
.ways-h { font-size: var(--d2); line-height: 1.05; }
.ways { display: grid; grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: clamp(32px, 4vw, 56px); }
.way { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 236px; padding: clamp(24px, 2.4vw, 36px); background: var(--c); transition: background-color .2s var(--ease), transform .2s var(--ease); }
.p .way { color: var(--t, #fff); }
.way svg { width: 52px; height: 52px; margin-bottom: auto; transition: transform .35s var(--ease); }
.way .k { margin-top: 28px; font-size: 19px; font-weight: 700; }
.way .v { font-size: clamp(22px, 2vw, 30px); font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; text-align: start; }
.way .n { font-size: 19px; line-height: 1.55; max-width: 26em; }
.way .go { margin-top: 14px; font-size: 19px; font-weight: 800; display: inline-flex; align-items: center; gap: 10px; }
.way .go i { font-style: normal; transition: transform .3s var(--ease); }
.way:hover .go i, .way:focus-visible .go i { transform: translateX(-6px); }
.way:hover svg, .way:focus-visible svg { transform: scale(1.08); }
.way:active { transform: scale(.99); }
.w-wa { --c: var(--green); --t: var(--ink); grid-row: span 2; }
.w-wa svg { width: 88px; height: 88px; }
.w-wa .v { font-size: clamp(30px, 3.2vw, 48px); }
.w-mail { --c: var(--blue); }
.w-tel { --c: var(--yellow); --t: var(--ink); }
.w-ig { --c: var(--red); }
.w-map { --c: var(--black); }
.w-wa:hover { background: #64a63b; }
.w-mail:hover { background: #17519f; }
.w-tel:hover { background: #e6b51f; }
.w-ig:hover { background: #cc2f29; }
.w-tt { --c: #111; }
.w-tt:hover { background: #333; }
.w-map:hover { background: #262626; }
@media (max-width: 980px) {
  .contact-hero { grid-template-columns: minmax(0, 1fr); }
  .ways { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .w-wa { grid-row: auto; grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .ways { grid-template-columns: minmax(0, 1fr); }
  .way { min-height: 0; }
  .way svg { margin-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { .way, .way svg, .way .go i { transition: none; } }

/* Footer: ways to reach the academy, the two link columns, image credits under them */
.p footer.foot { border: 0; }
.foot .addr { margin-top: 10px; color: #c9d4e6; }
.foot .reach { list-style: none; padding: 0; margin-top: 16px; display: grid; gap: 6px; }
.foot .reach a { color: #fff; }
.foot .reach a span { color: #c9d4e6; margin-inline-start: 6px; }
.foot .reach a:hover span { color: #fff; }
.foot .credits { margin-top: 40px; max-width: none; }
.foot .credits-h { color: #fff; font-weight: 700; }

/* English course pages: the course itself is taught in Arabic (tools/build_en.py adds the note). */
.lang-note { margin-top: 14px; font-size: 16px; font-weight: 700; color: var(--yellow); max-width: 52ch; }
.p .notice .btn-p.light, .p .aside-note .btn-p.light { background: #fff; }
.p .notice .btn-p.light:hover { background: var(--paper-2); }

/* The founders offer page: seats left beside the title, four steps, then the form beside the rules. */
.founders-hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.founders-top .kicker { font-weight: 800; color: var(--yellow); margin: 0 0 12px; font-size: clamp(16px, 1.3vw, 19px); }
.founders-top h1 { font-size: var(--d1); line-height: 1.05; }
.founders-top .say { margin-top: 20px; color: #fff; max-width: 34ch; }
.founders-top .btn-p { margin-top: 28px; }
.founders-count { background: var(--yellow); color: var(--ink); padding: clamp(24px, 3vw, 40px); }
.founders-count .big { font-size: clamp(72px, 9vw, 140px); font-weight: 800; line-height: 1; }
.founders-count p:not(.big) { font-size: 19px; font-weight: 700; margin-top: 8px; }
.founders-count .when { font-weight: 500; }
.founders-video { margin: clamp(24px, 3vw, 40px) 0 0; max-width: 960px; }
.founders-video video { display: block; width: 100%; aspect-ratio: 16 / 9; background: var(--field-2); }
.founders-video figcaption { margin-top: 10px; font-size: 16px; color: var(--ink-2); }
.founders-steps { list-style: none; padding: 0; margin: clamp(28px, 3vw, 44px) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: s; }
.founders-steps li { background: var(--paper); padding: 24px; counter-increment: s; }
.founders-steps li::before { content: counter(s); display: block; font-size: 44px; font-weight: 800; color: var(--blue); line-height: 1; margin-bottom: 12px; }
.founders-steps b { display: block; font-size: 20px; }
.founders-steps span { display: block; margin-top: 8px; font-size: 17px; line-height: 1.6; }
.founders-claim { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.founders-claim h2 { font-size: var(--d2); }
.founders-claim .paywall { margin-top: 24px; background: #fff; }
.founders-claim select { display: block; width: 100%; max-width: 420px; margin-top: 6px; padding: 12px 14px; font: inherit; border: 1px solid #c9d3e3; border-radius: 4px; background: #fff; }
.founders-rules h3 { font-size: 22px; }
.founders-rules ul { margin: 14px 0 0; padding-inline-start: 20px; display: grid; gap: 10px; font-size: 17px; line-height: 1.6; }
.founders-rules a { color: var(--blue); font-weight: 700; }
.founders-rules .pw-have { margin-top: 24px; }
.founders-rules .pw-have label { display: block; font-weight: 700; margin: 12px 0 6px; }
.founders-rules .pw-have input { display: block; width: 100%; padding: 10px 12px; font: inherit; border: 1px solid #c9d3e3; border-radius: 4px; margin-top: 6px; }
.founders-rules .pw-have .btn-p { margin-top: 12px; }
@media (max-width: 900px) {
  .founders-hero, .founders-claim { grid-template-columns: minmax(0, 1fr); }
  .founders-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) { .founders-steps { grid-template-columns: minmax(0, 1fr); } }

/* How to buy a course (how-to-buy): ten steps under the video, notes before buying. */
.howto-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.howto-notes { list-style: none; padding: 0; margin: clamp(20px, 2.5vw, 32px) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.howto-notes li { background: var(--paper); padding: 24px; border-top: 4px solid var(--yellow); }
.howto-notes b { display: block; font-size: 20px; }
.howto-notes span { display: block; margin-top: 8px; font-size: 17px; line-height: 1.6; }
@media (max-width: 1000px) { .howto-steps, .howto-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .howto-steps, .howto-notes { grid-template-columns: minmax(0, 1fr); } }
.howto-band { background: var(--paper); border-top: 4px solid var(--yellow); }
.howto-band .frame { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); align-items: center; padding-block: clamp(24px, 3vw, 44px); }
.howto-band video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #0d2350; }
.howto-band h2 { margin: 6px 0 10px; }
.howto-band p:not(.kicker) { font-size: 18px; line-height: 1.7; margin: 0 0 18px; }
@media (max-width: 800px) { .howto-band .frame { grid-template-columns: minmax(0, 1fr); } }
.howto-band .kicker { margin: 0; font-weight: 800; font-size: clamp(16px, 1.3vw, 19px); color: var(--blue); }
.howto-play { display: inline-flex; align-items: center; gap: 10px; margin: 14px 0 6px; font-weight: 800; font-size: 18px; color: var(--yellow); text-decoration: none; }
.howto-play i { display: grid; place-items: center; width: 34px; height: 34px; background: var(--yellow); color: #0d2350; font-style: normal; font-size: 14px; }
.howto-play:hover { text-decoration: underline; }
.howto-band { scroll-margin-top: 90px; }
#howto-h { scroll-margin-top: 120px; }

/* Graduates page: the 2024 Personal Trainer Diploma groups and their original diplomas (tools/build_alumni.py). */
.alumni { background: var(--paper); padding-block: clamp(64px, 8vw, 128px); }
.al-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 16px clamp(24px, 4vw, 64px); align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.al-head h2 { font-size: clamp(30px, 3.6vw, 52px); line-height: 1.15; color: var(--field); }
.al-head p { color: var(--ink); max-width: 62ch; }
.al-group + .al-group { margin-top: clamp(48px, 5vw, 80px); }
.al-group h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; margin-bottom: 24px; color: var(--ink); }
.al-group h3 span { font-size: clamp(24px, 2.4vw, 34px); color: var(--field); }
.al-group h3 time { font-size: clamp(18px, 1.6vw, 22px); font-weight: 700; }
.al-group h3 small { font-size: 16px; font-weight: 500; color: var(--ink-2); }
.al-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: clamp(16px, 2vw, 28px) clamp(12px, 1.6vw, 22px); }
.al-grid a { display: grid; gap: 10px; align-content: start; color: var(--ink); }
.al-grid img { display: block; width: 100%; height: auto; aspect-ratio: 420 / 594; object-fit: cover; object-position: top; background: #fff; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.al-grid span { font-weight: 700; font-size: 15px; line-height: 1.35; text-align: start; }
.al-grid a:hover img, .al-grid a:focus-visible img { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(13, 35, 80, .16); }
.al-grid a:hover span { color: var(--blue); }
.al-note { margin-top: clamp(40px, 5vw, 64px); color: var(--ink-2); font-size: 16px; }
.al-note a { color: var(--blue); font-weight: 700; }
.al-note a:hover { text-decoration: underline; }
.al-view { margin: auto; border: 0; padding: 0; background: transparent; max-width: min(92vw, 640px); max-height: 94vh; overflow: visible; }
.al-view::backdrop { background: rgba(6, 18, 40, .82); }
.al-view img { display: block; width: 100%; max-height: 86vh; object-fit: contain; background: #fff; }
.al-view p { margin-top: 10px; color: #fff; font-weight: 700; text-align: center; }
.al-x { position: absolute; top: -14px; inset-inline-end: -14px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: var(--ink); font-size: 28px; line-height: 1; cursor: pointer; }
.al-x:focus-visible { outline: 3px solid var(--yellow, #f2c230); outline-offset: 2px; }
@media (max-width: 800px) {
  .al-head { grid-template-columns: minmax(0, 1fr); }
  .al-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .al-x { top: -52px; inset-inline-end: 0; }
}
.grads-find { padding-top: clamp(48px, 6vw, 88px); background: var(--paper); }
.grads-find .grads-bar { margin-bottom: 0; }
.grads-find .grads-bar input, .grads-find .grads-bar select { background: #fff; }
.g-none { margin-top: 20px; font-weight: 700; color: var(--ink); }
.grads-find + .alumni { padding-top: clamp(40px, 5vw, 64px); }
.g-searching .al-head p, .g-searching .al-note { display: none; }
.g-searching .al-head { margin-bottom: 24px; }
.g-searching .grads-find + .alumni { padding-top: 24px; }

/* Community page: the upcoming courses block under the current list. */
.comm-next { padding-top: clamp(24px, 3vw, 48px); border-top: 1px solid rgba(13, 35, 80, .12); }
.comm-next .kicker { font-weight: 800; font-size: clamp(16px, 1.3vw, 19px); color: var(--blue); margin: 0 0 12px; }
.comm-next h2 { font-size: clamp(32px, 3.8vw, 58px); line-height: 1.08; font-weight: 800; }
.comm-next p:not(.kicker) { margin-top: 16px; font-size: clamp(18px, 1.4vw, 21px); line-height: 1.6; max-width: 42em; }
.comm-grp { margin-top: clamp(40px, 4.5vw, 64px); font-size: clamp(22px, 2vw, 30px); font-weight: 800; }
.comm-grp + .list { padding-top: clamp(24px, 3vw, 40px) !important; }

/* Saudi riyal amount under / beside the dollar price. */
.nums li.price .sar, .figs li.price .sar { display: block; font-size: 14px; font-weight: 800; color: var(--navy, #0d2350); margin: 2px 0; white-space: nowrap; }
.cart-list small, .cart-total small { font-size: .8em; font-weight: 700; opacity: .8; white-space: nowrap; }

/* Upcoming community courses: the outline and references fold out under each card. */
.comm-units { margin-top: 18px; border-top: 1px solid rgba(13, 35, 80, .12); padding-top: 12px; }
.comm-units summary { cursor: pointer; font-weight: 800; font-size: 16px; color: var(--blue); }
.comm-units ol { margin: 12px 0 0; padding-inline-start: 22px; font-size: 15.5px; line-height: 1.7; }
.comm-units .refs-h { margin-top: 12px; font-size: 14px; font-weight: 800; }
.comm-units .refs { list-style: none; padding: 0; margin: 6px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
html[dir=rtl] .comm-units .refs li { text-align: right; }

/* «ادعُ صديقاً» and the course rating, shown to a certificate holder (pay.js EIASTPay.referral). */
.ref-out:empty { display: none; }
.ref-out { display: grid; gap: 16px; margin-top: 28px; }
.ref-box, .rate-box { background: var(--paper); border-top: 4px solid var(--yellow); padding: 24px; }
.ref-box h2 { margin: 0 0 8px; font-size: var(--d3); }
.rate-box h3 { margin: 0 0 6px; font-size: 20px; }
.ref-code { display: inline-block; margin: 14px 0 4px; padding: 10px 18px; background: #fff; border: 2px dashed var(--blue); font: 800 26px/1 'Archivo', sans-serif; letter-spacing: .14em; color: var(--field); }
.ref-box .acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.ref-msg { min-height: 1.4em; margin-top: 8px; color: var(--ink-2); overflow-wrap: anywhere; }
.ref-progress { margin-top: 6px; font-weight: 700; }
.ref-gift { margin-top: 14px; }
.ref-gift label { display: block; font-weight: 700; }
.ref-gift select { display: block; width: 100%; max-width: 520px; margin-top: 6px; padding: 12px 14px; font: inherit; border: 1px solid #c9d3e3; border-radius: 4px; background: #fff; }
.ref-gift .btn-p { margin-top: 12px; }
.rate-stars { display: flex; gap: 8px; margin-top: 12px; }
.rate-stars button { width: 52px; height: 52px; font: 800 20px/1 'Archivo', sans-serif; border: 2px solid var(--blue); background: #fff; color: var(--blue); border-radius: 50%; cursor: pointer; }
.rate-stars button[aria-checked="true"], .rate-stars button:hover { background: var(--blue); color: #fff; }
.rate-stars button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.quiz .ref-out .ref-progress, .quiz .ref-out p { font-size: inherit; }

/* «دليل المدربين والخبراء» (coaches, coach-join; coaches.js) */
.co-acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.co-find { padding-block: 64px 0; }
.co-intro { padding-block: 64px 0; }
.co-intro-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.co-intro-in p { font-size: 18px; line-height: 1.8; max-width: 52ch; margin-bottom: 22px; }
.co-video figcaption { color: var(--ink-2); }
@media (max-width: 860px) { .co-intro-in { grid-template-columns: minmax(0, 1fr); } }
.co-h2 { font-size: var(--d3); margin-bottom: 28px; }
.co-bar { align-items: end; }
.co-checks { display: flex; flex-wrap: wrap; gap: 10px 22px; padding-bottom: 12px; }
.chk { display: inline-flex; gap: 8px; align-items: center; font-weight: 500; cursor: pointer; }
.chk input { width: 20px; height: 20px; accent-color: var(--blue); flex: none; }
.co-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 16px; }
.co-card { display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: start; background: var(--paper); padding: 18px; height: 100%; color: var(--ink); text-decoration: none; transition: background-color .18s, transform .18s var(--ease); }
.co-card:hover { background: var(--paper-2); transform: translateY(-2px); }
.co-card:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
/* The photo is shown whole, at its own shape (never cropped by the page); very tall photos are fitted, not cut. */
.co-face, .co-big { display: block; width: 100%; aspect-ratio: 4 / 5; background: var(--field); }
img.co-face, img.co-big { aspect-ratio: auto; height: auto; max-height: 560px; object-fit: contain; background: transparent; }
img.co-face { max-height: 150px; }
.co-initials { display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 34px; }
.co-body { display: grid; gap: 6px; }
.co-name { font-size: 21px; line-height: 1.3; }
.co-place { color: var(--ink-2); font-size: 16px; }
.co-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.co-tags span { background: #fff; padding: 3px 10px; font-size: 14px; font-weight: 700; color: var(--field); }
.co-foot { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 15px; color: var(--ink-2); margin-top: 4px; }
.co-badge { background: var(--yellow); color: var(--ink); font-weight: 800; padding: 2px 10px; font-size: 14px; }
.co-empty { background: var(--field); color: #fff; padding: clamp(28px, 4vw, 48px); display: grid; gap: 14px; justify-items: start; }
.co-empty h3 { font-size: var(--d3); }
.co-empty p { max-width: 60ch; color: #e7eef9; font-size: 18px; }
.co-why { padding-block: var(--gap) 0; }
.co-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.co-steps > div { background: var(--paper); padding: 26px 24px; display: grid; gap: 10px; align-content: start; }
.co-steps h3 { font-size: 22px; }
.co-steps p { font-size: 17px; line-height: 1.7; }
.co-seek { padding-block: var(--gap); }
.co-seek .paywall, .co-ask { max-width: 760px; }
.paywall textarea { display: block; width: 100%; max-width: 640px; margin-top: 6px; padding: 12px 14px; font: inherit; border: 1px solid #c9d3e3; border-radius: 4px; background: #fff; resize: vertical; }
.paywall fieldset { border: 0; padding: 0; margin: 18px 0 0; }
.paywall legend { font-weight: 700; margin-bottom: 8px; }
.chk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px 18px; }
.chk-grid .chk input:disabled + * , .chk-grid .chk:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.hp, .paywall input.hp { position: absolute; width: 1px; max-width: 1px; height: 1px; padding: 0; margin: 0; border: 0; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.co-profile { padding-block: 48px var(--gap); }
.co-profile .crumb a { font-weight: 700; color: var(--blue); }
.co-pro { display: grid; grid-template-columns: minmax(180px, 300px) 1fr; gap: clamp(20px, 4vw, 48px); align-items: start; margin-top: 24px; }
.co-pro .co-initials { font-size: 72px; }
.co-pname { font-size: var(--d2); line-height: 1.15; }
.co-en { font-size: 19px; color: var(--ink-2); margin-top: 4px; }
.co-pro .co-place { margin-top: 10px; font-size: 18px; }
.co-pro .co-tags { margin-top: 14px; }
.co-pro .co-tags span { background: var(--paper); font-size: 15px; }
.co-facts { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 22px; }
.co-facts dt { font-size: 14px; color: var(--ink-2); font-weight: 700; }
.co-facts dd { margin: 2px 0 0; font-size: 18px; font-weight: 700; }
.co-facts a { color: var(--blue); }
.co-text { margin-top: 40px; max-width: 70ch; display: grid; gap: 10px; }
.co-text h3 { font-size: 22px; margin-top: 14px; }
.co-text p { font-size: 18px; line-height: 1.8; white-space: pre-line; }
.co-text .co-note { font-size: 15px; color: var(--ink-2); margin-top: 18px; }
.co-ask { margin-top: 40px; }
.co-contact, .co-share { margin-top: 40px; max-width: 760px; display: grid; gap: 14px; }
.co-contact h3, .co-share h3 { font-size: 24px; }
.co-nets { display: flex; flex-wrap: wrap; gap: 10px; }
.co-net { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 22px; font-weight: 800; color: #fff; background: var(--field); text-decoration: none; transition: transform .18s var(--ease), filter .18s; }
.co-net:hover { transform: translateY(-2px); filter: brightness(1.1); }
.co-net:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.co-net-whatsapp { background: #1f8f4e; }
.co-net-instagram { background: #c13584; }
.co-net-tiktok { background: #111111; }
.co-net-facebook { background: #1b5fcf; }
.co-net-youtube { background: #c4302b; }
.co-nets a.co-net { color: #fff; }
.co-nets a.co-net-snapchat { background: #f2c230; color: var(--ink); }
.co-net-linkedin { background: #0a66c2; }
.co-share { background: var(--paper); padding: clamp(20px, 3vw, 32px); }
.co-share p { font-size: 17px; line-height: 1.7; }
.co-share .acts { display: flex; flex-wrap: wrap; gap: 10px; }
.co-links-in { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 4px 18px; }
.co-grad { padding-block: var(--gap) 0; }
.co-grad .frame > div { background: var(--field); color: #fff; padding: clamp(28px, 4vw, 48px); display: grid; gap: 14px; justify-items: start; }
.co-grad h2 { font-size: var(--d3); }
.co-grad p { max-width: 62ch; color: #e7eef9; font-size: 18px; line-height: 1.7; }

@media (max-width: 760px) {
  .co-steps, .co-pro { grid-template-columns: minmax(0, 1fr); }
  .co-pro .co-big { max-width: 220px; }
  .co-card { grid-template-columns: 88px 1fr; }
}
.grads-bar .chk { display: inline-flex; flex: none; max-width: none; font-weight: 500; }
.grads-bar .chk input { width: 20px; height: 20px; padding: 0; }

/* «مقالات للمدربين»: articles.html and article-*.html (tools/build_articles.py) */
.p main > section.art { padding-block: clamp(48px, 6vw, 96px); }
.page-top .crumb { margin-top: 18px; font-size: 17px; }
.page-top .crumb a { color: #fff; font-weight: 700; }
.page-top .meta-l { margin-top: 14px; font-size: 17px; color: #dfe9f7; }
.art-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px 64px; align-items: start; }
.art-fig { grid-column: 1 / -1; margin: 0; }
.art-fig img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 8; object-fit: cover; }
.art-fig figcaption { margin-top: 10px; font-size: 15px; color: var(--ink-2); }
.art-body { max-width: 68ch; font-size: clamp(18px, 1.3vw, 20px); line-height: 1.85; }
.art-body h2 { font-size: var(--d3); line-height: 1.3; margin: 48px 0 12px; }
.art-body h2:first-child { margin-top: 0; }
.art-body p { margin: 0 0 16px; }
.art-body ul { margin: 0 0 20px; padding: 0; list-style: none; display: grid; gap: 10px; }
.art-body li { position: relative; padding-inline-start: 26px; }
.art-body li::before { content: ""; position: absolute; inset-inline-start: 4px; top: .7em; width: 10px; height: 10px; background: var(--yellow); }
.art-body blockquote { margin: 28px 0; padding: 24px 28px; background: var(--field); color: #fff; }
.art-body blockquote p { margin: 0; font-size: clamp(20px, 1.7vw, 24px); font-weight: 700; line-height: 1.55; }
.art-cta { position: sticky; top: 96px; background: var(--paper); padding: 28px; }
.art-cta h2 { font-size: var(--d3); line-height: 1.3; }
.art-cta p { margin-top: 12px; font-size: 17px; line-height: 1.7; }
.art-cta .acts { margin-top: 20px; }
.art-list { display: grid; gap: 28px; margin-top: 32px; }
.art-row { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: center; color: inherit; text-decoration: none; background: #fff; }
.art-hub .art-row { background: var(--paper); }
.art-row img { display: block; width: 100%; height: 100%; min-height: 190px; object-fit: cover; transition: transform .5s var(--ease); }
.art-row { overflow: hidden; }
.art-row-t { display: grid; gap: 8px; padding: 20px 0 20px 24px; }
.art-row-t b { font-size: var(--d3); line-height: 1.3; }
.art-row-t span { font-size: 17px; line-height: 1.7; color: var(--ink); }
.art-row-t small { font-size: 15px; color: var(--ink-2); }
.art-row:hover b, .art-row:focus-visible b { color: var(--blue); }
.art-row:hover img { transform: scale(1.03); }
@media (max-width: 900px) {
  .art-grid { grid-template-columns: minmax(0, 1fr); }
  .art-cta { position: static; }
}
@media (max-width: 640px) {
  .art-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .art-row img { aspect-ratio: 16 / 9; min-height: 0; height: auto; }
  .art-row-t { padding: 18px 18px 22px; }
}
@media (prefers-reduced-motion: reduce) { .art-row img { transition: none; } .art-row:hover img { transform: none; } }
.art-hub-top { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px 64px; align-items: center; }
.art-hub-top figure { margin: 0; }
.art-hub-top img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; }
.art-row-t span { max-width: 62ch; }
@media (max-width: 900px) { .art-hub-top { grid-template-columns: minmax(0, 1fr); } }

/* A track's big course count must never widen the page on a 320px phone (en/courses was 350px wide). */
.cat-track .field { overflow-x: clip; }

/* Home page visitor counter (platform.js fills it from /api/public?visitors=1) */
.hero-p .visits { display: flex; flex-wrap: wrap; gap: 12px 36px; margin-top: 26px; }
.hero-p .visits[hidden] { display: none; }
.hero-p .visits .v { display: grid; gap: 2px; }
.hero-p .visits b { font: 800 clamp(28px, 2.6vw, 38px)/1 "Archivo", "Tajawal", sans-serif; color: #fff; font-variant-numeric: tabular-nums; }
.hero-p .visits .v > span { font-size: 16px; color: #dfe9f7; }

/* Iraq: Zain Cash / Qi Card through WhatsApp (pay.js, iraqBox) */
.pw-iraq { background: #eef7f0; border: 2px solid #2e9e5b; border-radius: 10px; padding: 16px 18px; margin: 16px 0; }
.pw-iraq p { margin: 0 0 8px; }
.pw-iraq .pw-iraq-t { font-weight: 800; font-size: 1.15em; color: #1d6b3d; }
.pw-iraq ol { margin: 6px 0 10px; padding-inline-start: 22px; line-height: 1.8; }
.pw-iraq .btn-p { background: #25d366; color: #0b2e17; border-color: #25d366; margin-top: 4px; }
.pw-or { margin: 10px 0 0; font-weight: 700; color: #4a5a75; }
.pw-iraq-line { display: inline-block; margin-top: 12px; padding: 8px 14px; border-radius: 999px; background: #eef7f0; border: 2px solid #2e9e5b; color: #1d6b3d !important; font-weight: 800; text-decoration: none; } /* !important: the course hero colours its links white */
.pw-iraq .pw-iraq-n { font-size: 1.1em; background: #fff; border-radius: 8px; padding: 8px 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pw-iraq .pw-iraq-n b { font-size: 1.15em; letter-spacing: .04em; }
.pw-copy { font: inherit; font-size: .85em; font-weight: 700; padding: 4px 10px; border: 1px solid #2e9e5b; background: #eef7f0; color: #1d6b3d; border-radius: 6px; cursor: pointer; }

/* The free first unit: a buy bar fixed at the bottom of the screen (lesson.js). */
.buy-bar { position: fixed; inset-inline: 0; bottom: 0; z-index: 900; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #0b1f3a; color: #fff; box-shadow: 0 -6px 20px rgba(0,0,0,.18); }
.buy-bar p { margin: 0; font-size: .95rem; line-height: 1.4; }
.buy-bar .btn-p { flex: none; margin: 0; padding: 10px 18px; }
body.has-buy-bar { padding-bottom: 76px; }
body.has-buy-bar .wa-float { bottom: 88px; }
body.has-buy-bar .ig-float { bottom: 148px; }
