/* ==========================================================================
   LMI GCC — site stylesheet
   Light theme is the default. Dark is opt-in via [data-theme="dark"], set by
   the toggle (assets/js/theme-init.js applies it before first paint).

   Colour roles
     navy  — headings, footer, depth
     blue  — links, secondary actions, eyebrows
     gold  — the ONE primary action on a screen (Enroll / Get a quote)
   ========================================================================== */

/* ----------------------------------------------------------------- Tokens */
:root {
  --navy:        #0E2A52;
  --navy-900:    #0A1F3D;
  --blue:        #1E5BA8;
  --blue-700:    #174A8B;
  --blue-bright: #2E86C9;
  --gold:        #E0A93B;
  --gold-600:    #CC9426;
  --gold-ink:    #8A5A00;   /* gold for TEXT on light backgrounds (AA contrast) */
  --gold-soft:   rgba(224, 169, 59, .14);

  --bg:          #FFFFFF;
  --bg-soft:     #F5F8FC;
  --bg-tint:     #EDF3FA;
  --card:        #FFFFFF;
  --ink:         #0F1E33;
  --body:        #44546A;
  --muted:       #5A6A80;
  --line:        #E2E8F0;
  --line-strong: #CCD7E4;
  --nav-bg:      rgba(255, 255, 255, .94);
  --footer-bg:   #0A1F3D;
  --product-bg:  #F4F5F7;   /* matches the background of the program artwork */

  --shadow-sm:   0 1px 2px rgba(15, 30, 51, .05), 0 2px 8px rgba(15, 30, 51, .04);
  --shadow:      0 10px 30px rgba(15, 30, 51, .08);
  --shadow-lg:   0 24px 60px rgba(15, 30, 51, .14);

  --radius-sm:   10px;
  --radius:      16px;
  --radius-lg:   24px;
  --t:           .25s ease;

  --font-ar: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
  --font-en: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

[data-theme="dark"] {
  --blue:        #5AA9E6;
  --blue-700:    #7BBAEC;
  --gold-ink:    #EBBF5E;
  --gold-soft:   rgba(224, 169, 59, .16);

  --bg:          #0B1A30;
  --bg-soft:     #0F2140;
  --bg-tint:     #12284A;
  --card:        #112643;
  --ink:         #F1F5FB;
  --body:        #C3CFE0;
  --muted:       #94A3BA;
  --line:        rgba(255, 255, 255, .10);
  --line-strong: rgba(255, 255, 255, .18);
  --nav-bg:      rgba(11, 26, 48, .92);
  --footer-bg:   #07142A;

  --shadow-sm:   0 1px 2px rgba(0, 0, 0, .3);
  --shadow:      0 12px 32px rgba(0, 0, 0, .35);
  --shadow-lg:   0 26px 64px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

/* ------------------------------------------------------------------- Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--bg); color: var(--body);
  font-family: var(--font-en); font-size: 1.0625rem; line-height: 1.75;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body { font-family: var(--font-ar); }

h1, h2, h3, h4, h5, h6 { color: var(--ink); font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
html[lang="ar"] :is(h1, h2, h3, h4, h5, h6) { letter-spacing: 0; line-height: 1.4; }

a { color: var(--blue); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--blue-700); }
img { max-width: 100%; height: auto; }
section { position: relative; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; inset-inline-start: 1rem; top: -100px; z-index: 3000;
  background: var(--gold); color: var(--navy-900); padding: .6rem 1rem; border-radius: 0 0 8px 8px; font-weight: 700;
}
.skip-link:focus { top: 0; }

/* ------------------------------------------------------------ Typography */
.section { padding: 5.5rem 0; }
.section-sm { padding: 3.5rem 0; }
.section-soft { background: var(--bg-soft); }
.section-tint { background: var(--bg-tint); }
@media (max-width: 767.98px) { .section { padding: 3.75rem 0; } .section-sm { padding: 2.5rem 0; } }

.section-head { max-width: 46rem; margin-bottom: 2.75rem; }
.section-title { font-size: clamp(1.65rem, 3vw, 2.35rem); margin: 0 0 .85rem; }
.section-sub { font-size: 1.08rem; color: var(--body); max-width: 44rem; margin: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem; margin-bottom: .8rem;
  color: var(--blue); font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .92rem; }
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--gold); }

.lead { font-size: 1.15rem; color: var(--body); }
.text-gold { color: var(--gold-ink) !important; }
.text-ink { color: var(--ink) !important; }
.text-muted-2 { color: var(--muted) !important; }

/* ---------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; border-radius: var(--radius-sm); padding: .72rem 1.35rem; font-size: 1rem;
  transition: background var(--t), color var(--t), border-color var(--t), box-shadow var(--t), transform var(--t);
}
.btn-lg { padding: .9rem 1.7rem; font-size: 1.05rem; }
.btn:active { transform: translateY(1px); }

.btn-gold { background: var(--gold); color: var(--navy-900); border: 1px solid var(--gold); font-weight: 700; }
.btn-gold:hover, .btn-gold:focus-visible { background: var(--gold-600); border-color: var(--gold-600); color: var(--navy-900); box-shadow: 0 8px 20px rgba(224, 169, 59, .32); }

.btn-brand { background: var(--blue); color: #fff; border: 1px solid var(--blue); }
[data-theme="dark"] .btn-brand { background: #1E5BA8; border-color: #1E5BA8; }
.btn-brand:hover, .btn-brand:focus-visible { background: var(--navy); border-color: var(--navy); color: #fff; }

.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--blue); color: var(--blue); background: var(--card); }

.btn-light-outline { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .5); }
.btn-light-outline:hover { background: #fff; color: var(--navy-900); border-color: #fff; }

.btn-wa { background: #15803D; color: #fff; border: 1px solid #15803D; }
.btn-wa:hover { background: #116932; border-color: #116932; color: #fff; }

.arrow-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--blue); }
.arrow-link i { transition: transform var(--t); }
.arrow-link:hover i { transform: translateX(4px); }
[dir="rtl"] .arrow-link:hover i { transform: translateX(-4px); }

/* ------------------------------------------------------------------ Topbar */
.topbar { background: var(--navy-900); color: rgba(255, 255, 255, .78); font-size: .84rem; padding: .4rem 0; }
.topbar a { color: rgba(255, 255, 255, .85); }
.topbar a:hover { color: var(--gold); }
.topbar i { color: var(--gold); margin-inline-end: .25rem; }

/* ------------------------------------------------------------------ Navbar */
.site-nav {
  background: var(--nav-bg); border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  padding: .6rem 0; transition: box-shadow var(--t), padding var(--t);
}
.site-nav.scrolled { box-shadow: var(--shadow-sm); padding: .4rem 0; }
.navbar-brand img { height: 46px; width: auto; display: block; transition: height var(--t); }
.site-nav.scrolled .navbar-brand img { height: 40px; }
[data-theme="dark"] .navbar-brand img, [data-theme="dark"] .footer-logo img { background: #fff; border-radius: 8px; padding: 3px 6px; }

.navbar-toggler { border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: .3rem .6rem; color: var(--ink); font-size: 1.6rem; line-height: 1; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px var(--gold-soft); }

.site-nav .nav-link {
  color: var(--ink); font-weight: 600; font-size: .97rem; padding: .55rem .85rem !important;
  position: relative; border-radius: 8px;
}
.site-nav .nav-link:hover, .site-nav .nav-link:focus-visible, .site-nav .nav-link.show { color: var(--blue); }
.site-nav .nav-link.active { color: var(--blue); }
@media (min-width: 1200px) {
  .site-nav .nav-link.active::after {
    content: ''; position: absolute; inset-inline: .85rem; bottom: .1rem; height: 2px; background: var(--gold); border-radius: 2px;
  }
}

.dropdown-menu {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: .5rem; margin-top: .5rem !important; min-width: 15rem;
}
.dropdown-item { display: flex; align-items: center; gap: .6rem; border-radius: 8px; padding: .55rem .8rem; color: var(--body); font-weight: 500; white-space: normal; }
.dropdown-item i { color: var(--blue); font-size: 1rem; flex: none; }
.dropdown-item:hover, .dropdown-item:focus { background: var(--bg-tint); color: var(--ink); }
.dropdown-divider { border-color: var(--line); }

@media (min-width: 1200px) {
  .dropdown-menu.mega { display: none; min-width: 36rem; padding: 1rem; gap: 1rem; grid-template-columns: 1fr 1fr; }
  .dropdown-menu.mega.show { display: grid; }
}
.mega-col { display: flex; flex-direction: column; }
.mega-h { font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: .3rem .8rem .5rem; }
html[lang="ar"] .mega-h { letter-spacing: 0; font-size: .85rem; }
.mega-code { font-size: .7rem; font-weight: 700; background: var(--bg-tint); color: var(--blue); border-radius: 6px; padding: .1rem .4rem; min-width: 2.6rem; text-align: center; flex: none; }
.mega-all { color: var(--blue); font-weight: 700; margin-top: .25rem; }

.nav-tools { display: flex; align-items: center; gap: .5rem; }
.theme-toggle, .lang-switch {
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
  height: 40px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: transparent; color: var(--ink); font-weight: 600; font-size: .9rem; cursor: pointer;
}
.theme-toggle { width: 40px; padding: 0; font-size: 1rem; }
.lang-switch { padding: 0 .8rem; }
.theme-toggle:hover, .lang-switch:hover { border-color: var(--blue); color: var(--blue); }
.theme-toggle .bi-sun { display: none; }
[data-theme="dark"] .theme-toggle .bi-sun { display: inline; }
[data-theme="dark"] .theme-toggle .bi-moon-stars { display: none; }
.btn-sm-nav { padding: .5rem 1rem; height: 40px; }

@media (max-width: 1199.98px) {
  .site-nav .navbar-collapse { padding: .75rem 0 1rem; }
  .site-nav .navbar-nav { gap: .1rem; }
  .dropdown-menu { box-shadow: none; border: 0; background: var(--bg-soft); margin: 0 0 .5rem !important; }
  .dropdown-menu.mega { padding: .25rem; }
  .mega-col + .mega-col { margin-top: .5rem; }
  .nav-tools { margin-top: .75rem; flex-wrap: wrap; }
  .nav-tools .btn { flex: 1 1 auto; }
}

/* ------------------------------------------------------------- Home hero */
.hero {
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(46, 134, 201, .12), transparent 60%),
    linear-gradient(180deg, var(--bg-tint) 0%, var(--bg) 100%);
  padding: 4.5rem 0 2.5rem;
}
[dir="rtl"] .hero { background: radial-gradient(900px 480px at 15% -10%, rgba(46, 134, 201, .12), transparent 60%), linear-gradient(180deg, var(--bg-tint) 0%, var(--bg) 100%); }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); margin: 0 0 1.1rem; }
.hero h1 .hl { color: var(--blue); }
.hero .lead { max-width: 38rem; margin-bottom: 1.6rem; }
.hero-figures { display: flex; flex-wrap: wrap; gap: 1.25rem 2.25rem; margin-top: 1.75rem; }
.hero-figures div { display: flex; flex-direction: column; }
.hero-figures strong { font-size: 1.6rem; color: var(--ink); line-height: 1.1; }
.hero-figures span { font-size: .88rem; color: var(--muted); }
.hero-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 4.4; background: var(--bg-tint); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-badge {
  position: absolute; inset-inline-start: 1rem; bottom: 1rem; display: flex; align-items: center; gap: .7rem;
  background: var(--card); color: var(--ink); border-radius: var(--radius); padding: .7rem 1rem; box-shadow: var(--shadow); font-weight: 700; font-size: .92rem; max-width: calc(100% - 2rem);
}
.hero-badge i { font-size: 1.5rem; color: var(--gold-ink); }
.hero-badge small { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; }

/* Three doors: who is this for? */
.doors { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 3rem; }
@media (max-width: 991.98px) { .doors { grid-template-columns: 1fr; } }
.door {
  display: flex; flex-direction: column; gap: .35rem; position: relative;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.5rem 1.35rem;
  color: var(--body); box-shadow: var(--shadow-sm); transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.door:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-3px); color: var(--body); }
.door-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-tint); color: var(--blue); font-size: 1.35rem; margin-bottom: .5rem; }
.door h2, .door h3 { font-size: 1.2rem; margin: 0; }
.door p { margin: 0 0 .6rem; font-size: .97rem; }
.door .arrow-link { margin-top: auto; }
.door--primary { border-top: 3px solid var(--gold); }
.door--primary .door-ic { background: var(--gold-soft); color: var(--gold-ink); }

/* ---------------------------------------------------------- Subpage hero */
.page-hero { background: linear-gradient(180deg, var(--bg-tint), var(--bg)); padding: 2.25rem 0 3.25rem; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin: .25rem 0 .9rem; }
.page-hero .lead { max-width: 42rem; }
.page-hero .hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.page-hero-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--product-bg); }
.page-hero-media img { display: block; width: 100%; height: auto; }

.crumbs ol { list-style: none; padding: 0; margin: 0 0 1.25rem; display: flex; flex-wrap: wrap; gap: .25rem .5rem; font-size: .88rem; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-inline-end: .5rem; color: var(--line-strong); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--blue); }

/* -------------------------------------------------------------- Proof bar */
.proof { border-block: 1px solid var(--line); background: var(--card); }
.proof-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 991.98px) { .proof-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.proof-item { display: flex; align-items: center; gap: .85rem; padding: 1.25rem 1rem; }
.proof-item + .proof-item { border-inline-start: 1px solid var(--line); }
@media (max-width: 991.98px) { .proof-item:nth-child(3) { border-inline-start: 0; } .proof-item:nth-child(n+3) { border-top: 1px solid var(--line); } }
.proof-item img { height: 54px; width: auto; border-radius: 8px; background: #fff; padding: 3px; flex: none; }
.proof-ic { width: 54px; height: 54px; flex: none; border-radius: 12px; background: var(--bg-tint); color: var(--blue); display: grid; place-items: center; font-size: 1.5rem; }
.proof-item strong { display: block; color: var(--ink); line-height: 1.3; }
.proof-item span { font-size: .85rem; color: var(--muted); }

.logo-wall { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; align-items: center; }
@media (max-width: 991.98px) { .logo-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.logo-wall img { max-height: 48px; width: auto; margin-inline: auto; filter: grayscale(1); opacity: .75; transition: filter var(--t), opacity var(--t); }
.logo-wall img:hover { filter: none; opacity: 1; }

/* --------------------------------------------------------- Method steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; counter-reset: step; }
@media (max-width: 991.98px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .steps { grid-template-columns: 1fr; } }
.step-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.step-card .step-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-tint); }
.step-card .step-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.step-card .step-body { padding: 1.2rem 1.25rem 1.4rem; }
.step-no { display: inline-block; font-weight: 700; font-size: .82rem; color: var(--gold-ink); margin-bottom: .25rem; }
.step-card h3 { font-size: 1.15rem; margin: 0 0 .4rem; }
.step-card p { font-size: .95rem; margin: 0; }

.difference { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 2.25rem; }
@media (max-width: 991.98px) { .difference { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.diff-item { display: flex; gap: .75rem; align-items: flex-start; }
.diff-item i { color: var(--gold-ink); font-size: 1.35rem; flex: none; line-height: 1.4; }
.diff-item strong { display: block; color: var(--ink); }
.diff-item span { font-size: .92rem; }

/* ---------------------------------------------------------------- Needs */
.need-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.need-card {
  display: flex; flex-direction: column; gap: .3rem; height: 100%;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.35rem;
  color: var(--body); transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.need-card:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-3px); color: var(--body); }
.need-card i.need-ic { font-size: 1.5rem; color: var(--blue); }
.need-card h3 { font-size: 1.1rem; margin: .35rem 0 .1rem; }
.need-card p { font-size: .93rem; margin: 0 0 .6rem; }
.need-card .need-progs { margin-top: auto; font-size: .82rem; font-weight: 600; color: var(--muted); }

/* ------------------------------------------------------- Program cards */
.p-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.5rem; }
.p-card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.p-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-3px); }
.p-card.is-featured { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.p-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-tint); }
.p-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.p-card:hover .p-media img { transform: scale(1.03); }
.p-media--product { aspect-ratio: 4 / 3; background: var(--product-bg); }
.p-media--product img { object-fit: contain; }
.p-body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 1.25rem 1.35rem 1.4rem; }
.p-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .55rem; }
.p-code { font-size: .74rem; font-weight: 700; letter-spacing: .04em; background: var(--bg-tint); color: var(--blue); border-radius: 6px; padding: .15rem .5rem; }
.p-tag { font-size: .74rem; font-weight: 700; background: var(--gold-soft); color: var(--gold-ink); border-radius: 6px; padding: .15rem .5rem; }
.p-tag--muted { background: var(--bg-soft); color: var(--muted); }
.p-title { font-size: 1.15rem; margin: 0 0 .45rem; }
.p-title a { color: var(--ink); }
.p-title a:hover { color: var(--blue); }
.p-text { font-size: .95rem; margin: 0 0 1rem; flex: 1 1 auto; }
.p-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: auto; }
.p-actions .btn { flex: 1 1 auto; }
.p-more { margin: -.35rem 0 1rem; font-size: .93rem; }
.p-more summary { cursor: pointer; color: var(--blue); font-weight: 600; list-style: none; display: inline-flex; align-items: center; gap: .35rem; }
.p-more summary::-webkit-details-marker { display: none; }
.p-more summary::after { content: '\F282'; font-family: 'bootstrap-icons'; font-size: .8rem; transition: transform var(--t); }
.p-more[open] summary::after { transform: rotate(180deg); }
.p-more .check-list { margin-top: .6rem; }

.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .35rem; color: var(--ink); margin-bottom: 1rem; }
.price strong { font-size: 1.45rem; font-weight: 700; line-height: 1; }
.price .vat-note { flex-basis: 100%; }
.price-lg strong { font-size: 2rem; }

/* Saudi Riyal symbol, drawn as SVG (see eleventy.config.js) */
.sar { font-size: 1.2em; font-weight: 700; line-height: 1; display: inline-flex; }
.sar svg { height: 1em; width: auto; fill: currentColor; vertical-align: -.1em; }
.vat-note { display: block; font-size: .76rem; font-weight: 500; color: var(--muted); line-height: 1.4; }

/* --------------------------------------------------------- Filter tabs */
.filter-tabs { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .4rem; margin-bottom: 2rem; scrollbar-width: thin; }
@media (min-width: 992px) { .filter-tabs { flex-wrap: wrap; justify-content: center; overflow: visible; } }
.filter-tab {
  flex: none; display: inline-flex; align-items: center; gap: .45rem;
  border: 1px solid var(--line-strong); background: var(--card); color: var(--ink);
  border-radius: 999px; padding: .5rem 1rem; font-weight: 600; font-size: .93rem; cursor: pointer;
  transition: background var(--t), color var(--t), border-color var(--t);
}
.filter-tab i { color: var(--blue); }
.filter-tab:hover { border-color: var(--blue); }
.filter-tab[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.filter-tab[aria-pressed="true"] i { color: var(--gold); }
[data-theme="dark"] .filter-tab[aria-pressed="true"] { background: #1E5BA8; border-color: #1E5BA8; }
.need-block { scroll-margin-top: 110px; }
.need-block + .need-block { margin-top: 3.5rem; }
.need-block-head { display: flex; align-items: flex-start; gap: .9rem; margin-bottom: 1.4rem; }
.need-block-head i { font-size: 1.5rem; color: var(--blue); width: 48px; height: 48px; border-radius: 12px; background: var(--bg-tint); display: grid; place-items: center; flex: none; }
.need-block-head h2 { font-size: 1.4rem; margin: 0 0 .2rem; }
.need-block-head p { margin: 0; font-size: .97rem; }
[hidden] { display: none !important; }

/* ------------------------------------------------------------ Split block */
.split-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--bg-tint); }
.split-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.check-list { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.check-list li { display: flex; gap: .65rem; align-items: flex-start; margin-bottom: .7rem; color: var(--ink); }
.check-list li i { color: var(--gold-ink); font-size: 1.15rem; flex: none; line-height: 1.6; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; height: 100%; }
.feature i.f-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-tint); color: var(--blue); font-size: 1.3rem; margin-bottom: .8rem; }
.feature h3 { font-size: 1.1rem; margin: 0 0 .4rem; }
.feature p { font-size: .95rem; margin: 0; }

/* --------------------------------------------------------------- Stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 767.98px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.2rem; text-align: center; }
.stat .num { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 700; color: var(--navy); line-height: 1.1; }
[data-theme="dark"] .stat .num { color: var(--ink); }
.stat .num .suffix { color: var(--gold-ink); }
.stat .label { color: var(--muted); font-size: .92rem; margin-top: .35rem; }

/* -------------------------------------------------------------- Timeline */
.timeline { position: relative; max-width: 50rem; margin: 0 auto; padding-inline-start: 2rem; }
.timeline::before { content: ''; position: absolute; inset-inline-start: 7px; top: .5rem; bottom: .5rem; width: 2px; background: var(--line-strong); }
.tl-item { position: relative; padding: 0 0 1.5rem; }
.tl-item::before { content: ''; position: absolute; inset-inline-start: calc(-2rem + 1px); top: .45rem; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.tl-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; }
.tl-year { font-weight: 700; color: var(--gold-ink); font-size: .95rem; }
.tl-card h3 { font-size: 1.08rem; margin: .15rem 0 .3rem; }
.tl-card p { font-size: .95rem; margin: 0; }

/* -------------------------------------------------------- People cards */
.fac-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.fac-card, .team-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.fac-media, .team-media { aspect-ratio: 1 / 1; overflow: hidden; background: var(--bg-tint); }
.fac-media img, .team-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fac-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .2rem; }
.fac-code { align-self: flex-start; background: var(--bg-tint); color: var(--blue); border-radius: 6px; padding: .1rem .5rem; font-size: .72rem; font-weight: 700; }
.fac-body h3 { font-size: 1rem; margin: .35rem 0 0; }
.fac-prog { color: var(--gold-ink); font-weight: 600; font-size: .86rem; margin: 0; }
.fac-cred { color: var(--muted); font-size: .82rem; line-height: 1.6; margin: .25rem 0 0; }
.team-body { padding: 1.2rem 1.35rem 1.45rem; }
.team-body h2, .team-body h3 { font-size: 1.12rem; margin: 0 0 .15rem; }
.team-role { color: var(--gold-ink); font-weight: 600; font-size: .9rem; }
.team-body p { font-size: .94rem; margin: .7rem 0 0; }
.open-card { border-style: dashed; align-items: center; justify-content: center; text-align: center; padding: 2rem 1.4rem; background: var(--bg-soft); }

/* ----------------------------------------------------- Testimonial/story */
.story-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; height: 100%; }
.story-card .story-num { font-size: 2.2rem; font-weight: 700; color: var(--navy); line-height: 1; }
.story-card blockquote { margin: 0; color: var(--ink); font-size: 1.02rem; }
.story-who { display: flex; align-items: center; gap: .75rem; margin-top: 1.1rem; font-size: .9rem; }
.story-who strong { display: block; color: var(--ink); }

/* ---------------------------------------------------------- Dark bands */
.band-dark { background: var(--navy-900); color: rgba(255, 255, 255, .86); position: relative; overflow: hidden; }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark .eyebrow { color: var(--gold); }
.band-photo { position: absolute; inset: 0; }
.band-photo img { width: 100%; height: 100%; object-fit: cover; }
.band-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, rgba(10, 31, 61, .95) 0%, rgba(10, 31, 61, .86) 55%, rgba(14, 42, 82, .7) 100%); }
.band-dark .container { position: relative; z-index: 1; }
.quote-text { font-size: clamp(1.35rem, 2.6vw, 2rem); font-weight: 600; line-height: 1.5; color: #fff; margin: 0; }
.quote-text .mk { color: var(--gold); }

.cta-band { background: var(--navy); color: rgba(255, 255, 255, .88); border-radius: var(--radius-lg); padding: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-band h2 { color: #fff; font-size: clamp(1.45rem, 2.6vw, 1.9rem); margin: 0 0 .4rem; }
.cta-band p { margin: 0; max-width: 38rem; }
.cta-band .cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
[data-theme="dark"] .cta-band { background: var(--bg-tint); border: 1px solid var(--line); }

.vision-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 1.75rem; background: var(--bg-tint); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.75rem 2rem; }
.vision-strip .v-ic { width: 56px; height: 56px; border-radius: 14px; background: var(--card); color: #1B7F4B; display: grid; place-items: center; font-size: 1.6rem; flex: none; }
.vision-strip h2, .vision-strip h3 { font-size: 1.25rem; margin: 0 0 .25rem; }
.vision-strip p { margin: 0; font-size: .97rem; }
.vision-strip > div:nth-child(2) { flex: 1 1 22rem; }

.brochure { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 1.75rem; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; }
@media (max-width: 767.98px) { .brochure { grid-template-columns: 1fr; } }
.brochure img { border-radius: var(--radius-sm); box-shadow: var(--shadow); display: block; width: 100%; height: auto; }
.brochure h2, .brochure h3 { font-size: 1.3rem; margin: 0 0 .5rem; }
.brochure-meta { display: block; margin-top: .6rem; font-size: .82rem; color: var(--muted); }

/* ------------------------------------------------------------------ FAQ */
.faq .accordion-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius) !important; margin-bottom: .75rem; overflow: hidden; }
.faq .accordion-button { background: var(--card); color: var(--ink); font-weight: 600; font-size: 1.04rem; padding: 1.1rem 1.3rem; box-shadow: none; gap: 1rem; }
.faq .accordion-button:not(.collapsed) { background: var(--bg-tint); color: var(--ink); }
.faq .accordion-button:focus { box-shadow: 0 0 0 3px var(--gold-soft); }
.faq .accordion-button::after { margin-inline-start: auto; margin-inline-end: 0; }
[data-theme="dark"] .faq .accordion-button::after { filter: invert(1) brightness(1.6); }
.faq .accordion-body { color: var(--body); padding: .3rem 1.3rem 1.25rem; }
[dir="rtl"] .faq .accordion-button { text-align: right; }

/* -------------------------------------------------------------- Contact */
.contact-card { background: var(--navy); color: rgba(255, 255, 255, .85); border-radius: var(--radius-lg); padding: 2rem; height: 100%; }
[data-theme="dark"] .contact-card { background: var(--bg-tint); border: 1px solid var(--line); }
.contact-card h2 { color: #fff; font-size: 1.35rem; margin-bottom: 1.4rem; }
.contact-line { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: 1.15rem; }
.contact-line .ci { width: 42px; height: 42px; flex: none; border-radius: 10px; background: rgba(255, 255, 255, .1); color: var(--gold); display: grid; place-items: center; font-size: 1.1rem; }
.contact-line small { display: block; color: rgba(255, 255, 255, .65); font-size: .8rem; }
.contact-line a, .contact-line span { color: #fff; font-weight: 600; }
.contact-social { display: flex; gap: .5rem; margin-top: 1.4rem; }
.contact-social a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, .1); color: #fff; display: grid; place-items: center; }
.contact-social a:hover { background: var(--gold); color: var(--navy-900); }

.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-sm); }
.form-label { font-weight: 600; color: var(--ink); font-size: .93rem; margin-bottom: .35rem; }
.form-control, .form-select {
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: .72rem .95rem; font-size: 1rem;
  background-color: var(--bg); color: var(--ink);
}
.form-control::placeholder { color: var(--muted); }
.form-control:focus, .form-select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30, 91, 168, .15); background-color: var(--bg); color: var(--ink); }
[data-theme="dark"] .form-select { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23C3CFE0' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); }
.req { color: #B42318; }
.hp-field { position: absolute; left: -9999px; top: -9999px; height: 0; width: 0; overflow: hidden; }
.form-note { font-size: .84rem; color: var(--muted); }
.form-alert { display: none; border-radius: var(--radius-sm); padding: .85rem 1rem; font-weight: 600; margin-bottom: 1rem; border: 1px solid; }
.form-alert.ok { display: block; background: #E8F6EE; color: #17663A; border-color: #B8E2C8; }
.form-alert.err { display: block; background: #FDECEC; color: #B42318; border-color: #F5C2C0; }
[data-theme="dark"] .form-alert.ok { background: rgba(27, 122, 61, .2); color: #8FE3B0; border-color: rgba(27, 122, 61, .45); }
[data-theme="dark"] .form-alert.err { background: rgba(180, 35, 24, .2); color: #FFA79F; border-color: rgba(180, 35, 24, .45); }

/* --------------------------------------------------------------- Footer */
.footer { background: var(--footer-bg); color: rgba(255, 255, 255, .7); padding: 4rem 0 0; margin-top: 0; }
.footer a { color: rgba(255, 255, 255, .72); }
.footer a:hover { color: var(--gold); }
.footer-logo { display: inline-block; background: #fff; border-radius: 12px; padding: .55rem .75rem; }
.footer-logo img { height: 44px; width: auto; display: block; }
[data-theme="dark"] .footer-logo img { padding: 0; }
.footer-about { max-width: 24rem; font-size: .95rem; }
.footer-h { color: #fff; font-size: 1rem; font-weight: 600; margin-bottom: 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: .55rem; font-size: .95rem; }
.footer-social { display: flex; gap: .5rem; margin-top: 1rem; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; color: #fff; }
.footer-social a:hover { background: var(--gold); color: var(--navy-900); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 3rem; padding: 1.3rem 0; font-size: .86rem; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ----------------------------------------- Floating & fixed contact bits */
.wa-float {
  position: fixed; inset-inline-end: 22px; bottom: 22px; z-index: 900;
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: #15803D; color: #fff; font-size: 1.6rem; box-shadow: var(--shadow);
}
.wa-float:hover { color: #fff; background: #116932; }
.to-top {
  position: fixed; inset-inline-end: 24px; bottom: 88px; z-index: 900;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity var(--t), transform var(--t), visibility var(--t);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }

.action-bar { display: none; }
@media (max-width: 767.98px) {
  .action-bar {
    display: flex; gap: .6rem; position: fixed; inset-inline: 0; bottom: 0; z-index: 950;
    background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(15, 30, 51, .08);
    padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom));
  }
  .ab-wa { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; flex: 0 0 auto; padding: 0 1rem; border-radius: var(--radius-sm); background: #15803D; color: #fff; font-weight: 600; }
  .ab-wa:hover { color: #fff; }
  .ab-main { flex: 1 1 auto; }
  .wa-float { display: none; }
  .to-top { bottom: 84px; }
  body { padding-bottom: 72px; }
}

/* --------------------------------------------------- Program page parts */
.detail-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.detail-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.25rem; }
.detail-card .ic { font-size: 1.4rem; color: var(--blue); }
.detail-card .k { font-size: .86rem; color: var(--muted); margin-top: .4rem; }
.detail-card .v { font-weight: 600; color: var(--ink); font-size: 1.02rem; }
.price-tag { font-size: 1.9rem; font-weight: 700; color: var(--ink); }
.outcome-list { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.outcome-item { display: flex; gap: .75rem; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.15rem; }
.outcome-item i { color: var(--gold-ink); font-size: 1.3rem; flex: none; line-height: 1.5; }
.outcome-item strong { color: var(--ink); }
.outcome-item .section-sub { font-size: .94rem; }
.start-hint { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem 1rem; text-align: center; margin-top: 1.75rem; padding: .9rem 1.2rem; border: 1px solid var(--gold); border-radius: var(--radius); background: var(--gold-soft); color: var(--ink); }
.start-hint:hover { color: var(--ink); background: rgba(224, 169, 59, .22); }
.start-hint i { color: var(--gold-ink); font-size: 1.2rem; }
.start-hint .go { color: var(--gold-ink); font-weight: 700; white-space: nowrap; }
.buy-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 1.5rem; }
.buy-box .btn { width: 100%; }
.buy-box .buy-note { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1rem; margin-top: .9rem; font-size: .84rem; color: var(--muted); }
.buy-box .buy-note i { color: var(--gold-ink); }
.trust-strip { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; align-items: center; justify-content: center; font-size: .9rem; color: var(--muted); }
.trust-strip .ti { display: inline-flex; align-items: center; gap: .4rem; }
.trust-strip .ti i { color: var(--gold-ink); }
.enroll-strip { display: none; }
@media (min-width: 768px) {
  .enroll-strip {
    display: block; position: sticky; bottom: 0; z-index: 940; background: var(--navy-900); color: #fff; padding: .7rem 0;
    transform: translateY(100%); transition: transform .3s ease;
  }
  .enroll-strip.show { transform: none; }
  .enroll-strip .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
  .enroll-strip strong { color: #fff; }
}
.lp-report { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1rem; box-shadow: var(--shadow); }
.lp-report img { display: block; width: 100%; height: auto; }

/* ------------------------------------------------------ How-to centre */
.jump-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.jump-nav a { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem 1rem; border-radius: 999px; background: var(--card); border: 1px solid var(--line-strong); color: var(--ink); font-size: .92rem; font-weight: 600; }
.jump-nav a:hover { border-color: var(--blue); color: var(--blue); }
.video-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-body { padding: 1.1rem 1.3rem 1.4rem; }
.video-body h3 { font-size: 1.12rem; margin: 0 0 .3rem; }
.video-body p { color: var(--muted); font-size: .94rem; margin: 0; }
.who-chip { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 700; color: var(--gold-ink); margin-bottom: .35rem; }
.step-list { display: grid; gap: 1rem; }
.step { display: flex; gap: 1.1rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.step-num { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; font-size: 1.1rem; background: var(--navy); color: #fff; }
.step h3 { font-size: 1.12rem; margin: .2rem 0 .6rem; }
.step ul { margin: 0; padding-inline-start: 1.1rem; }
.step ul li { margin-bottom: .4rem; }
.step ul ul { margin-top: .4rem; }
.callout { border-radius: var(--radius-sm); padding: .85rem 1.1rem; font-size: .94rem; margin-top: .9rem; border: 1px solid; color: var(--ink); }
.callout i { margin-inline-end: .4rem; }
.callout.tip { background: var(--gold-soft); border-color: rgba(224, 169, 59, .5); }
.callout.note { background: rgba(46, 134, 201, .1); border-color: rgba(46, 134, 201, .4); }
.howto-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.howto-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.35rem; height: 100%; }
.howto-card .ic { font-size: 1.45rem; color: var(--blue); }
.howto-card h3 { font-size: 1.05rem; margin: .5rem 0 .5rem; }
.howto-card ul { margin: 0; padding-inline-start: 1.05rem; font-size: .95rem; }
.howto-card ul li { margin-bottom: .38rem; }
.dl-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.dl-card { display: flex; align-items: center; gap: .9rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.15rem; color: var(--ink); transition: border-color var(--t), transform var(--t); }
.dl-card:hover { border-color: var(--blue); transform: translateY(-2px); color: var(--ink); }
.dl-card i { font-size: 1.7rem; color: var(--blue); flex: none; }
.dl-card strong { display: block; font-size: .98rem; }
.dl-card span { font-size: .84rem; color: var(--muted); }
.ext-link { word-break: break-all; unicode-bidi: isolate; }

/* ---------------------------------------------------------------- Legal */
.legal-wrap { max-width: 820px; }
.legal-wrap h2 { margin-top: 2.2rem; font-size: 1.35rem; }
.note-draft { background: var(--gold-soft); border: 1px solid rgba(224, 169, 59, .5); border-radius: var(--radius-sm); padding: 1rem 1.2rem; font-size: .95rem; color: var(--ink); }

/* --------------------------------------------------------------- Motion */
.reveal-on [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal-on [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-on [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------------------------------------------------------------- Print */
@media print {
  .topbar, .site-nav, .action-bar, .wa-float, .to-top, .enroll-strip, .footer { display: none !important; }
  body { padding: 0; }
}

.container-narrow { max-width: 860px; }
.fac-portrait { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; flex: none; }
.award-img { width: 96px; height: auto; border-radius: 10px; background: #fff; padding: 4px; flex: none; }
.page-hero h1 .hl { color: var(--blue); }
/* Program codes ("360°", "AAS · 360°") are Latin text: keep them LTR inside Arabic */
.p-code, .mega-code, .fac-code { direction: ltr; unicode-bidi: isolate; }

/* Closing call-to-action band: the section above already provides spacing */
.cta-wrap { padding: 0 0 4rem; }
.section-soft + .cta-wrap, .section-tint + .cta-wrap, .band-dark + .cta-wrap { padding-top: 4rem; }

/* A group with a single program shows one wide card */
@media (min-width: 768px) {
  .p-grid--single { grid-template-columns: 1fr; }
  .p-grid--single .p-card { flex-direction: row; }
  .p-grid--single .p-media { flex: 0 0 40%; aspect-ratio: auto; min-height: 100%; }
  .p-grid--single .p-body { padding: 1.75rem 2rem; justify-content: center; }
  .p-grid--single .p-actions .btn { flex: 0 0 auto; }
}
@media (min-width: 576px) { .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .detail-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
html[lang="en"] .hero h1 { font-size: clamp(2rem, 4vw, 3.1rem); }

/* ------------------------------------------------------------------- Quiz */
.quiz-progress { height: 6px; background: var(--bg-tint); border-radius: 999px; overflow: hidden; }
.quiz-progress span { display: block; height: 100%; width: 0; background: var(--gold); border-radius: 999px; transition: width .3s ease; }
.quiz-count { margin: .75rem 0 1.25rem; font-size: .9rem; font-weight: 600; color: var(--muted); }
.quiz-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.quiz-q { font-size: clamp(1.35rem, 2.6vw, 1.75rem); font-weight: 700; color: var(--ink); margin-bottom: 1.25rem; float: none; width: 100%; }
.quiz-options { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.quiz-option {
  position: relative; display: flex; align-items: flex-start; gap: .85rem; cursor: pointer;
  background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 1.1rem 1.15rem;
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
.quiz-option:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.quiz-option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.quiz-option > i { font-size: 1.4rem; color: var(--blue); flex: none; line-height: 1.4; }
.quiz-option strong { display: block; color: var(--ink); }
.quiz-option small { display: block; color: var(--muted); font-size: .88rem; margin-top: .15rem; }
.quiz-option:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); }
.quiz-option:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.quiz-back { margin-top: 1.5rem; }
.quiz-result:focus { outline: none; }

/* ------------------------------------------------------- ROI calculator */
.roi { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.75rem; }
@media (min-width: 992px) { .roi { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; } }
.roi-inputs { display: grid; gap: .35rem; }
.roi-inputs .form-control { margin-bottom: .75rem; }
.roi-out { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.roi-out .stat { background: var(--bg-soft); }
.roi-out .num { font-size: clamp(1.25rem, 2.4vw, 1.7rem); }
