/* Al Resala Training & Consulting — site styles */
:root {
  --brand: #0f3470;
  --brand-2: #1a4c9c;
  --brand-dark: #0a2350;
  --brand-tint: #eaf0fa;
  --gold: #d4a33b;
  --ink: #16213a;
  --muted: #5b6680;
  --line: #dfe5ef;
  --bg: #ffffff;
  --bg-soft: #f4f7fc;
  --wa: #1fa855;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px -12px rgba(15, 52, 112, .25);
  --shadow-sm: 0 2px 10px -4px rgba(15, 52, 112, .18);
  --font: "Inter", "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1200px;
}
html[dir="rtl"] { --font: "Cairo", "Inter", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
body.modal-open, body.nav-open { overflow: hidden; }
img, svg { max-width: 100%; }
a { color: var(--brand-2); text-decoration: none; }
a:hover { color: var(--brand); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; color: var(--brand-dark); }
h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.1rem; font-weight: 700; }
html[dir="rtl"] h1, html[dir="rtl"] h2 { letter-spacing: 0; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 640px) { .container { padding-inline: 24px; } }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
html[dir="rtl"] .ic.flip { transform: scaleX(-1); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .8em 1.4em; border-radius: 999px; font: inherit; font-weight: 700; font-size: .95rem; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s; white-space: nowrap; text-align: center; }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .5em 1.05em; font-size: .87rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-2); color: #fff; box-shadow: var(--shadow-sm); }
.btn-gold { background: var(--gold); color: var(--brand-dark); }
.btn-gold:hover { background: #e2b452; color: var(--brand-dark); }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-ghost-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost-light:hover { background: #fff; color: var(--brand); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #178f47; color: #fff; }

/* ---------- header ---------- */
#site-header { position: sticky; top: 0; z-index: 50; }
.topbar { background: var(--brand-dark); color: #c9d5ec; font-size: .82rem; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar a, .topbar span { color: inherit; display: inline-flex; align-items: center; gap: .4em; }
.topbar a:hover { color: #fff; }
.tb-links { display: flex; gap: 22px; }
.tb-tag { color: var(--gold); font-weight: 600; }
@media (max-width: 860px) { .tb-tag, .tb-loc { display: none !important; } .topbar-in { justify-content: center; } .tb-links { gap: 16px; } }
@media (max-width: 420px) { .tb-links a:first-child span { display: none; } }

.mainbar { background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
#site-header.scrolled .mainbar { box-shadow: 0 6px 20px -12px rgba(10,35,80,.3); }
.mainbar-in { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--brand-dark); }
.brand-mark svg { width: 44px; height: 44px; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; }
.brand-text small { font-size: .74rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
html[dir="rtl"] .brand-text small { text-transform: none; letter-spacing: 0; font-size: .8rem; }

.mainnav { margin-inline-start: auto; }
.mainnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.mainnav li { position: relative; }
.mainnav li > a { display: flex; align-items: center; gap: .3em; padding: .6em .95em; border-radius: 999px; color: var(--ink); font-weight: 600; font-size: .95rem; }
.mainnav li > a:hover, .mainnav li.dd-open > a { background: var(--brand-tint); color: var(--brand); }
.mainnav li.active > a { background: var(--brand); color: #fff; }
.dd-caret { width: .9em; height: .9em; transition: transform .2s; }
.dropdown { position: absolute; top: calc(100% + 8px); inset-inline-start: 0; min-width: 260px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; z-index: 5; }
.dropdown a { display: flex; align-items: center; gap: .6em; padding: .6em .8em; border-radius: var(--radius-sm); color: var(--ink); font-size: .92rem; font-weight: 500; }
.dropdown a .ic { color: var(--brand-2); }
.dropdown a:hover { background: var(--brand-tint); color: var(--brand); }
.dd-wide { min-width: 520px; }
.dd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.dd-grid .dd-all { grid-column: 1 / -1; justify-content: center; font-weight: 700; color: var(--brand); border-top: 1px solid var(--line); border-radius: 0; margin-top: 4px; }
@media (min-width: 961px) {
  .has-dd:hover > .dropdown, .has-dd.dd-open > .dropdown, .has-dd:focus-within > .dropdown { opacity: 1; visibility: visible; transform: none; }
  .has-dd:hover .dd-caret { transform: rotate(180deg); }
}
.mb-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--brand); cursor: pointer; }
.icon-btn:hover { background: var(--brand-tint); }
.lang-btn { height: 42px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--brand); background: transparent; color: var(--brand); font: inherit; font-weight: 700; cursor: pointer; font-family: "Cairo", var(--font); }
.lang-btn:hover { background: var(--brand); color: #fff; }
.menu-btn { display: none; }

@media (max-width: 960px) {
  .menu-btn { display: grid; }
  .mainbar-in { min-height: 66px; gap: 10px; }
  .brand { margin-inline-end: auto; }
  .brand-mark svg { width: 38px; height: 38px; }
  .brand-text strong { font-size: 1.15rem; }
  .mainnav { position: fixed; inset: 104px 0 0 0; background: #fff; overflow-y: auto; padding: 12px 16px 40px; transform: translateX(100%); visibility: hidden; transition: transform .25s, visibility .25s; margin: 0; }
  .mainnav.open { visibility: visible; }
  html[dir="rtl"] .mainnav { transform: translateX(-100%); }
  .mainnav.open, html[dir="rtl"] .mainnav.open { transform: none; }
  .mainnav ul { flex-direction: column; gap: 2px; }
  .mainnav li > a { justify-content: space-between; padding: .9em 1em; border-radius: var(--radius-sm); font-size: 1.02rem; }
  .dropdown, .dd-wide { position: static; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; min-width: 0; padding: 0 0 8px 12px; }
  .has-dd.dd-open > .dropdown { display: block; }
  .has-dd.dd-open .dd-caret { transform: rotate(180deg); }
  .dd-grid { grid-template-columns: 1fr; }
  .dd-grid .dd-all { justify-content: flex-start; border: 0; }
}
@media (max-width: 860px) { .mainnav { inset-block-start: 104px; } }
@media (max-width: 420px) { .mb-actions .icon-btn:first-child { display: none; } .lang-btn { padding: 0 12px; } }

/* ---------- hero ---------- */
.hero { position: relative; background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 55%, var(--brand-2) 100%); color: #fff; overflow: hidden; padding: 56px 0 120px; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 85% 20%, rgba(212,163,59,.25), transparent 40%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M30 4 52 17v26L30 56 8 43V17z' fill='none' stroke='%23ffffff' stroke-opacity='.06'/%3E%3C/svg%3E"); pointer-events: none; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(1.3rem, 2.1vw, 1.7rem); line-height: 1.4; }
.hero-sub { color: #cfdaf0; font-size: 1.1rem; margin-bottom: 26px; }
.eyebrow { display: inline-flex; align-items: center; gap: .5em; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); margin-bottom: 14px; }
html[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: .9rem; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.hero-search { background: #fff; border-radius: var(--radius); padding: 10px; box-shadow: 0 20px 40px -18px rgba(0,0,0,.45); }
.hs-row { display: flex; gap: 8px; }
.hs-row input { flex: 1; min-width: 0; border: 0; font: inherit; font-size: 1.02rem; padding: .75em .8em; color: var(--ink); background: transparent; }
.hs-row input:focus { outline: none; }
.hs-go { width: 52px; border: 0; border-radius: 10px; background: var(--brand); color: #fff; cursor: pointer; display: grid; place-items: center; }
.hs-go:hover { background: var(--brand-2); }
.hs-go .ic { width: 22px; height: 22px; }
.hs-adv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 8px 0 2px; border-top: 1px solid var(--line); margin-top: 8px; }
.hs-adv select { min-width: 0; }
.hs-toggle { background: none; border: 0; color: var(--brand-2); font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: .3em; margin: 4px .6em 0; padding: 4px 0; }
.hs-toggle:hover { color: var(--brand); }
.hs-toggle.open .ic { transform: rotate(180deg); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-cta .btn { font-size: .9rem; }

.hero-slider { position: relative; min-height: 340px; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 60px -25px rgba(0,0,0,.55); }
.slide { position: absolute; inset: 0; padding: 34px; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; opacity: 0; transition: opacity .7s; pointer-events: none; background: linear-gradient(160deg, #1d5bb8, #0b2a63); }
.slide.on { opacity: 1; pointer-events: auto; }
.slide.sv1 { background: linear-gradient(160deg, #0f7a8a, #0b2a63); }
.slide.sv2 { background: linear-gradient(160deg, #6b3fa0, #0b2a63); }
.slide.sv3 { background: linear-gradient(160deg, #b8741a, #3a1f08); }
.slide.sv4 { background: linear-gradient(160deg, #1f8a5b, #0b2a63); }
.slide-art { position: absolute; inset-block-start: -30px; inset-inline-end: -30px; width: 240px; height: 240px; color: rgba(255,255,255,.12); }
.slide-art .ic { width: 100%; height: 100%; stroke-width: 1; }
.slide-kicker { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25); padding: .3em .9em; border-radius: 999px; font-size: .8rem; font-weight: 700; margin-bottom: 14px; }
.slide h3 { color: #fff; font-size: clamp(1.05rem, 1.7vw, 1.3rem); font-weight: 800; max-width: 30ch; line-height: 1.45; }
.slide-date { color: #dbe5f7; display: flex; gap: .5em; align-items: center; font-weight: 600; }
.dots { position: absolute; inset-block-end: 16px; inset-inline-end: 20px; display: flex; gap: 6px; z-index: 2; }
.dots button { width: 9px; height: 9px; border-radius: 99px; border: 0; background: rgba(255,255,255,.4); padding: 0; cursor: pointer; transition: width .25s, background .25s; }
.dots button.on { width: 26px; background: var(--gold); }

@media (max-width: 960px) {
  .hero { padding: 36px 0 110px; }
  .hero-in { grid-template-columns: 1fr; gap: 32px; }
  .hero-slider { min-height: 300px; }
}
@media (max-width: 560px) {
  .hs-adv { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1 1 100%; }
  .slide { padding: 24px; }
}

/* ---------- service cards ---------- */
.services { margin-top: -80px; position: relative; z-index: 2; }
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.svc { background: #fff; border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; border-top: 4px solid var(--brand-2); transition: transform .2s, box-shadow .2s; color: var(--ink); }
.svc:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -16px rgba(15,52,112,.35); color: var(--ink); }
.svc:nth-child(2) { border-top-color: var(--gold); }
.svc:nth-child(3) { border-top-color: #0f7a8a; }
.svc:nth-child(4) { border-top-color: #6b3fa0; }
.svc-ic { width: 54px; height: 54px; border-radius: 14px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; margin-bottom: 16px; }
.svc-ic .ic { width: 28px; height: 28px; }
.svc p { color: var(--muted); font-size: .93rem; flex: 1; }
.more { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; color: var(--brand-2); font-size: .9rem; }
.svc:hover .more .ic { transform: translateX(3px); }
html[dir="rtl"] .svc:hover .more .ic { transform: scaleX(-1) translateX(3px); }
@media (max-width: 960px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .svc-grid { grid-template-columns: 1fr; } }

/* ---------- sections ---------- */
.section { padding: 84px 0; }
.section-soft { background: var(--bg-soft); }
.sec-head { max-width: 680px; margin-bottom: 40px; }
.sec-head.center { text-align: center; margin-inline: auto; }
.sec-head p { color: var(--muted); font-size: 1.05rem; }
.sec-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.sec-head-row .sec-head { margin-bottom: 0; }
@media (max-width: 640px) { .section { padding: 60px 0; } }

.value { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.value-text p { color: var(--muted); }
.value-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.value-list li { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; font-weight: 600; }
.value-list .ic { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--gold); color: var(--brand-dark); stroke-width: 2.6; }
@media (max-width: 860px) { .value { grid-template-columns: 1fr; gap: 32px; } }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.cat-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 6px; color: var(--ink); transition: .2s; }
.cat-tile:hover { border-color: var(--brand-2); box-shadow: var(--shadow-sm); transform: translateY(-2px); color: var(--ink); }
.cat-ic { width: 48px; height: 48px; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; margin-bottom: 8px; }
.cat-ic .ic { width: 24px; height: 24px; }
.cat-tile:hover .cat-ic { background: var(--gold); color: var(--brand-dark); }
.cat-name { font-weight: 700; }
.cat-n { color: var(--muted); font-size: .88rem; }

.numbers-band { background: var(--brand-dark); color: #fff; padding: 64px 0; position: relative; overflow: hidden; }
.numbers-band h2 { color: #fff; text-align: center; margin-bottom: 36px; }
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.num strong { display: block; font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; color: var(--gold); line-height: 1.1; }
.num span { color: #c9d5ec; font-weight: 600; }
@media (max-width: 640px) { .numbers { grid-template-columns: 1fr 1fr; row-gap: 32px; } }

/* tables */
.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
table.sched { width: 100%; border-collapse: collapse; font-size: .95rem; }
.sched th { background: var(--brand); color: #fff; text-align: start; padding: 14px 16px; font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
html[dir="rtl"] .sched th { letter-spacing: 0; font-size: .92rem; }
.sched td { padding: 14px 16px; border-top: 1px solid var(--line); vertical-align: middle; }
.sched tbody tr:hover { background: var(--bg-soft); }
.sched td .ic { color: var(--brand-2); }
.td-course a { font-weight: 700; color: var(--brand-dark); display: block; }
.td-course a:hover { color: var(--brand-2); }
.td-cat { font-size: .82rem; color: var(--muted); }
.date-chip { display: inline-block; background: var(--brand-tint); color: var(--brand); font-weight: 700; border-radius: 6px; padding: .25em .6em; font-size: .88rem; white-space: nowrap; }
.td-act { text-align: end; }
@media (max-width: 760px) {
  .sched thead { display: none; }
  .sched, .sched tbody, .sched tr, .sched td { display: block; width: 100%; }
  .sched tr { padding: 14px 16px; border-top: 1px solid var(--line); }
  .sched tr:first-child { border-top: 0; }
  .sched td { border: 0; padding: 3px 0; }
  .sched td[data-label] { display: flex; gap: 8px; align-items: center; }
  .sched td[data-label]::before { content: attr(data-label); font-size: .8rem; color: var(--muted); min-width: 76px; }
  .td-act { text-align: start; padding-top: 10px !important; }
  .td-act .btn { width: 100%; }
}

/* course cards */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
@media (max-width: 360px) { .course-grid { grid-template-columns: 1fr; } }
.course-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; transition: .2s; }
.course-card:hover { box-shadow: var(--shadow); border-color: transparent; }
.cc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.cc-cat { display: inline-flex; align-items: center; gap: .4em; font-size: .8rem; font-weight: 700; color: var(--brand-2); }
.badge-cert, .tag-gold { display: inline-flex; align-items: center; gap: .3em; font-size: .75rem; font-weight: 700; background: #fbf1da; color: #8a5f0c; padding: .25em .65em; border-radius: 999px; }
.course-card h3 { font-size: 1.08rem; margin-bottom: .4em; }
.course-card h3 a { color: var(--brand-dark); }
.course-card h3 a:hover { color: var(--brand-2); }
.course-card p { color: var(--muted); font-size: .92rem; flex: 1; }
.cc-meta { list-style: none; margin: 0 0 16px; padding: 12px 0 0; border-top: 1px dashed var(--line); display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .84rem; color: var(--ink); font-weight: 600; }
.cc-meta li { display: inline-flex; align-items: center; gap: .35em; }
.cc-meta .ic { color: var(--brand-2); }
.cc-actions { display: flex; gap: 8px; }
.cc-price { display: flex; justify-content: space-between; align-items: baseline; margin: -4px 0 14px; }
.cc-price span { font-size: .82rem; color: var(--muted); font-weight: 600; }
.cc-price strong { font-size: 1.25rem; font-weight: 800; color: var(--brand); }
.side-card .dl-price dd { color: var(--brand); font-size: 1.15rem; font-weight: 800; }
.cc-actions .btn { flex: 1; }

/* page hero */
.page-hero { background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff; padding: 52px 0 56px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 90% 0%, rgba(212,163,59,.28), transparent 45%); }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.6rem); max-width: 26ch; }
.page-hero p { color: #cfdaf0; max-width: 60ch; font-size: 1.05rem; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: #aebddb; margin-bottom: 14px; }
.crumbs a { color: #dbe5f7; }
.crumbs a:hover { color: var(--gold); }
.crumbs span[aria-hidden] { opacity: .6; }

/* courses listing */
.listing { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
.filters-box { position: sticky; top: 130px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.filters-box h2 { font-size: 1.05rem; display: flex; align-items: center; gap: .4em; }
#filters { display: grid; gap: 14px; }
.list-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.list-head h2 { margin: 0; font-size: 1.4rem; }
#result-count { color: var(--muted); font-weight: 600; }
.filter-toggle { display: none; }
.empty { grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty .ic { width: 40px; height: 40px; color: var(--line); }
@media (max-width: 900px) {
  .listing { grid-template-columns: 1fr; }
  .filters-box { position: static; padding: 16px; }
  .filters-box h2 { display: none; }
  .filter-toggle { display: flex; width: 100%; }
  #filters { display: none; margin-top: 14px; }
  #filters.open { display: grid; }
}

/* forms */
.field { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--ink); min-width: 0; }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="number"], input[type="date"], select, textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: .7em .85em; transition: border-color .15s, box-shadow .15s; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6680' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 16px; background-position: right .7em center; padding-inline-end: 2.2em; }
html[dir="rtl"] select { background-position: left .7em center; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(26,76,156,.15); }
textarea { resize: vertical; }
.check { display: flex; gap: 10px; align-items: center; font-size: .9rem; font-weight: 600; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.form-actions .btn { flex: 1 1 200px; }
.form-note { font-size: .82rem; color: var(--muted); margin: 12px 0 0; }
.form-err { color: #b42318; font-weight: 600; font-size: .9rem; margin: 12px 0 0; }
.hp { position: absolute !important; inset-inline-start: 0 !important; top: 0; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.form-done { text-align: center; padding: 30px 10px; }
.form-done .ic { width: 56px; height: 56px; padding: 12px; border-radius: 50%; background: #e7f6ec; color: #157f3d; stroke-width: 2.6; margin-bottom: 12px; }
.form-done h3 { font-size: 1.3rem; }
.form-done p { color: var(--muted); margin: 0; }
.btn:disabled { opacity: .6; cursor: wait; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal-back { position: absolute; inset: 0; background: rgba(10,25,55,.6); backdrop-filter: blur(3px); animation: fade .2s; }
.modal-box { position: relative; background: #fff; border-radius: 18px; padding: 30px; width: 100%; max-width: 620px; max-height: calc(100vh - 32px); overflow-y: auto; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); animation: pop .22s; }
.modal-box h2 { font-size: 1.4rem; padding-inline-end: 40px; }
.modal-x { position: absolute; inset-block-start: 16px; inset-inline-end: 16px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--bg-soft); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.modal-x:hover { background: var(--line); }
@media (max-width: 560px) { .modal-box { padding: 22px 18px; } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }

/* course detail */
.course-hero .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.course-hero .tags span { display: inline-flex; align-items: center; gap: .4em; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); padding: .35em .85em; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.course-hero .tags .tag-gold { background: var(--gold); color: var(--brand-dark); border-color: var(--gold); }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; }
.tabs button { background: none; border: 0; font: inherit; font-weight: 700; color: var(--muted); padding: 12px 16px; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--gold); }
.tabs button:hover { color: var(--brand); }
.tab-panel .lead { font-size: 1.12rem; color: var(--ink); font-weight: 500; }
.tab-panel p { color: var(--muted); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks .ic { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); stroke-width: 2.6; margin-top: 1px; }
.tab-panel .sched { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.side-card { position: sticky; top: 130px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); display: grid; gap: 10px; }
.side-card dl { margin: 0 0 10px; display: grid; }
.side-card dl div { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.side-card dt { color: var(--muted); display: flex; align-items: center; gap: .45em; }
.side-card dt .ic { color: var(--brand-2); }
.side-card dd { margin: 0; font-weight: 700; text-align: end; }
.side-wa { display: flex; align-items: center; justify-content: center; gap: .5em; color: var(--wa); font-weight: 700; padding: 8px; }
.side-wa:hover { color: #178f47; }
@media (max-width: 960px) { .detail { grid-template-columns: minmax(0, 1fr); } .side-card { position: static; } }

/* about */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.about-grid p { color: var(--muted); }
.mv { display: grid; gap: 16px; }
.mv-card { background: var(--brand); color: #fff; border-radius: var(--radius); padding: 26px; }
.mv-card:nth-child(2) { background: var(--brand-dark); }
.mv-card h3 { color: var(--gold); display: flex; align-items: center; gap: .5em; }
.mv-card p { color: #dbe5f7; margin: 0; }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mini { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.mini .n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: var(--brand-dark); font-weight: 800; margin-bottom: 12px; }
.mini p { color: var(--muted); font-size: .93rem; margin: 0; }
.mini .svc-ic { width: 46px; height: 46px; }
@media (max-width: 960px) { .about-grid { grid-template-columns: 1fr; } .cards-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .cards-4 { grid-template-columns: 1fr; } }

/* contact */
.contact-grid { display: grid; grid-template-columns: 380px 1fr; gap: 28px; align-items: start; }
#contact-cards { display: grid; gap: 14px; }
.c-card { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.c-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; }
.c-card h3 { font-size: .95rem; margin: 0 0 2px; }
.c-card p { margin: 0; color: var(--muted); word-break: break-word; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.map { margin-top: 28px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: 360px; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .form-card { padding: 20px 16px; } }

/* footer */
.footer-cta { background: linear-gradient(120deg, var(--brand), var(--brand-2)); color: #fff; padding: 46px 0; }
.fcta-in { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.fcta-in h2 { color: #fff; font-size: clamp(1.3rem, 2.4vw, 1.75rem); margin-bottom: .3em; }
.fcta-in p { color: #dbe5f7; margin: 0; max-width: 56ch; }
.fcta-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-main { background: var(--brand-dark); color: #aebddb; padding: 60px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.3fr; gap: 36px; }
.footer-main h3 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-main ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .92rem; }
.footer-main a { color: #aebddb; }
.footer-main a:hover { color: var(--gold); }
.f-about .brand { color: #fff; margin-bottom: 16px; }
.f-about .brand-text small { color: #aebddb; }
.f-about p { font-size: .92rem; }
.f-contact li { display: flex; gap: 10px; align-items: flex-start; }
.f-contact .ic { color: var(--gold); margin-top: 3px; }
.footer-bottom { background: #071a3d; color: #8597bb; font-size: .85rem; padding: 16px 0; }
.fb-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-bottom a { color: #aebddb; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } .fcta-btns .btn { flex: 1 1 100%; } }
.wa-float { position: fixed; inset-block-end: 20px; inset-inline-end: 20px; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 25px -8px rgba(0,0,0,.4); z-index: 40; transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float .ic { width: 30px; height: 30px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } * { animation: none !important; } }

/* course outline (day by day) */
.tab-h { font-size: 1.05rem; margin: 18px 0 8px; color: var(--brand); }
.outline { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.outline > li { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.ol-day { flex: none; width: 62px; height: 62px; border-radius: 12px; background: var(--brand); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.ol-day span { font-size: .72rem; opacity: .85; font-weight: 600; }
.ol-day b { font-size: 1.5rem; color: var(--gold, #d4a33b); }
.ol-body h3 { margin: 4px 0 8px; font-size: 1.02rem; color: var(--brand-dark, #0a2350); }
.ol-body ul { margin: 0; padding-inline-start: 18px; display: grid; gap: 4px; color: var(--muted); font-size: .94rem; }
.ol-body ul li::marker { color: var(--brand-2); }
@media (max-width: 560px) { .outline > li { flex-direction: column; gap: 10px; } .ol-day { width: auto; height: auto; flex-direction: row; gap: 6px; padding: 6px 12px; } .ol-day b { font-size: 1.1rem; } }

/* schedule filter + custom date */
.sched-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; color: var(--muted); font-weight: 600; }
.sched-bar span { display: inline-flex; align-items: center; gap: 8px; }
.sched-bar select { width: auto; min-width: 180px; }
.sched-custom { margin-top: 18px; padding: 18px 20px; border-radius: var(--radius); background: var(--brand-tint); display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.sched-custom p { margin: 0; flex: 1 1 260px; color: var(--brand-dark, #0a2350); font-weight: 600; }

/* never let a wide element push the page sideways on phones */
html, body { overflow-x: clip; }

/* country landing pages */
.cty-flag { font-size: .9em; }
.cty-hero-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.cty-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.cty-way { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.cty-way > span[data-icon] { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-tint, #eaf0fb); color: var(--brand); display: grid; place-items: center; }
.cty-way h3 { margin: 4px 0 0; font-size: 1.08rem; }
.cty-way p { margin: 0 0 6px; color: var(--muted); }
.cty-lead { max-width: 70ch; color: var(--muted); }
.cty-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 30px; }
.cty-cats a { display: inline-flex; align-items: center; gap: .4em; padding: .45em .9em; border: 1px solid var(--line); border-radius: 99px; background: #fff; font-weight: 600; font-size: .9rem; color: var(--ink); }
.cty-cats a.on { border-color: var(--brand); color: var(--brand); background: var(--brand-tint, #eaf0fb); }
.cty-cats a:hover { text-decoration: none; border-color: var(--brand); }
.cty-sub { margin: 0 0 16px; }
.cty-table { margin: 16px 0 18px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.cty-faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; max-width: 900px; }
.cty-faq summary { cursor: pointer; font-weight: 700; color: var(--brand-dark, #0f3470); }
.cty-faq details p { margin: 10px 0 0; color: var(--muted); }
.cty-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 16px; }
.cty-list a { display: flex; align-items: center; gap: .6em; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-weight: 700; color: var(--ink); }
.cty-list a:hover { text-decoration: none; border-color: var(--brand); color: var(--brand); }
.cty-list a span { font-size: 1.3rem; }
.f-countries { background: var(--brand-dark); color: #aebddb; border-top: 1px solid rgba(255,255,255,.12); }
.f-countries .container { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding-top: 14px; padding-bottom: 14px; font-size: .88rem; }
.f-countries b { color: #fff; }
.f-countries a { color: inherit; opacity: .85; }
.f-countries a:hover { opacity: 1; }
@media (max-width: 860px) { .cty-ways { grid-template-columns: minmax(0, 1fr); } }

/* course titles on one line */
.course-hero h1 { font-size: clamp(1.1rem, 1.7vw, 1.4rem); max-width: none; line-height: 1.45; }
.course-card h3 { font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.course-card h3 a { display: inline; }
.more-wrap { grid-column: 1 / -1; display: flex; justify-content: center; padding: 10px 0 4px; }
/* certificate verification */
.vf { max-width: 720px; }
.vf-form label { display: block; font-weight: 700; margin-bottom: 8px; }
.vf-row { display: flex; gap: 10px; }
.vf-row input { flex: 1; min-width: 0; font: inherit; padding: .7em 1em; border: 1.5px solid var(--line); border-radius: 10px; font-size: 1.05rem; letter-spacing: .04em; }
.vf-res { margin-top: 24px; border-radius: var(--radius); padding: 22px; border: 1.5px solid; }
.vf-res h2 { margin: 0 0 6px; font-size: 1.3rem; }
.vf-ok { background: #effaf3; border-color: #9fd8b3; } .vf-ok h2 { color: #17803d; }
.vf-bad { background: #fdf1f0; border-color: #f1c4bf; } .vf-bad h2 { color: #b42318; }
.vf-res dl { margin: 14px 0 0; display: grid; gap: 8px; }
.vf-res dl div { display: grid; grid-template-columns: 160px 1fr; gap: 10px; }
.vf-res dt { color: var(--muted); font-weight: 600; } .vf-res dd { margin: 0; font-weight: 700; text-align: start; }
html[dir="rtl"] .vf-res dd[dir="ltr"] { text-align: right; }
@media (max-width: 560px) { .vf-res dl div { grid-template-columns: 1fr; gap: 0; } }
/* articles */
.art-h1 { font-size: clamp(1.35rem, 2.6vw, 2rem) !important; max-width: 40ch !important; line-height: 1.4; }
.art-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: start; }
.art-body { font-size: 1.05rem; line-height: 1.95; max-width: 760px; }
.art-body h2 { font-size: 1.35rem; margin: 1.6em 0 .5em; }
.art-body h3 { font-size: 1.1rem; margin: 1.2em 0 .4em; }
.art-body ul, .art-body ol { padding-inline-start: 1.3em; }
.art-body li { margin-bottom: .45em; }
.art-body a { color: var(--brand-2); text-decoration: underline; text-underline-offset: 3px; }
.art-side { position: sticky; top: 96px; display: grid; gap: 16px; }
.art-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.art-box h3 { font-size: 1rem; margin: 0 0 10px; }
.art-course { display: block; padding: 10px 0; border-top: 1px dashed var(--line); color: var(--ink); }
.art-course:hover { text-decoration: none; color: var(--brand); }
.art-course b { display: block; font-size: .92rem; line-height: 1.5; } .art-course span { font-size: .8rem; color: var(--muted); }
.art-cta { background: var(--brand-dark); border-color: var(--brand-dark); } .art-cta h3 { color: #fff; } .art-cta p { color: #cfdaf0; font-size: .9rem; }
.art-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin-top: 14px; }
.art-card { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; color: var(--ink); transition: .2s; }
.art-card:hover { text-decoration: none; border-color: var(--brand); box-shadow: 0 8px 24px -14px rgba(15,52,112,.35); }
.art-card h3 { font-size: 1.05rem; line-height: 1.5; margin: 0; color: var(--brand-dark); }
.art-card p { margin: 0; color: var(--muted); font-size: .92rem; flex: 1; }
.art-meta { font-size: .8rem; color: var(--gold); font-weight: 700; } .art-more { font-weight: 700; color: var(--brand-2); font-size: .9rem; }
@media (max-width: 900px) { .art-wrap { grid-template-columns: minmax(0, 1fr); } .art-side { position: static; } }
.cty-mail { color: var(--muted); font-size: .85rem; }
/* responsive safety: grid/flex children may shrink below their content width (long one-line titles get "…" instead of widening the card) */
.course-grid { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.course-grid > *, .listing > *, .hero-in > *, .detail > *, .art-wrap > *, .cty-ways > *, .cty-list > *, .art-list > *, .footer-grid > * { min-width: 0; }
.course-card { min-width: 0; }
.course-card h3, .course-card h3 a { max-width: 100%; }
@media (max-width: 900px) { .listing { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 380px) {
  .container { padding-inline: 14px; }
  .course-card { padding: 18px; }
  .cc-actions { flex-wrap: wrap; } .cc-actions .btn { flex: 1 1 auto; }
}
@media (max-width: 600px) {
  .wa-float { width: 46px !important; height: 46px !important; bottom: 12px !important; inset-inline-start: 10px !important; inset-inline-end: auto !important; opacity: .92; }
  .wa-float .ic, .wa-float svg { width: 24px; height: 24px; }
  body { padding-bottom: 8px; }
}

/* newsletter sign-up */
.f-news { background: #0b2a5c; color: #dbe5f7; padding: 30px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.fnews-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 24px; align-items: center; }
.fnews-in h3 { color: #fff; font-size: 1.15rem; margin: 0 0 .3em; }
.fnews-in p { margin: 0; font-size: .92rem; color: #c3d0ea; }
.news-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.news-form input[type=email], .news-form select { flex: 1 1 180px; min-width: 0; height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.25); background: #fff; color: #10203f; font: inherit; font-size: .92rem; }
.news-form select { flex: 0 1 190px; }
.news-form .btn { height: 44px; padding: 0 22px; }
.news-msg { flex-basis: 100%; margin: 4px 0 0; font-size: .88rem; color: #ffd1cc; }
.news-msg.ok { color: #b9f0c8; }
.art-news .news-form input[type=email], .art-news .news-form select { flex-basis: 100%; border-color: var(--line, #dfe5ef); }
.art-news .news-form .btn { width: 100%; }
.art-news .news-msg { color: #b42318; } .art-news .news-msg.ok { color: #147a3d; }
.check-line { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 10px; font-size: .88rem; color: var(--muted, #5b6b86); cursor: pointer; }
.check-line input { width: 17px; height: 17px; margin-top: 2px; flex: none; accent-color: var(--brand, #0f3470); }
@media (max-width: 760px) { .fnews-in { grid-template-columns: minmax(0, 1fr); } .news-form select { flex-basis: 100%; } .news-form .btn { flex: 1 1 100%; } }

/* training needs analysis page */
.tna-wrap { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.tna-form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.tna-form-card h2 { margin-top: 4px; }
.tna-areas { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; }
.tna-areas legend { font-weight: 600; font-size: .88rem; margin-bottom: 8px; padding: 0; }
.tna-areas label { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; font-size: .9rem; cursor: pointer; }
.tna-areas input { width: 16px; height: 16px; margin-top: 3px; flex: none; accent-color: var(--brand); }
.tna-side { display: grid; gap: 16px; }
.tna-list { margin: 0; padding-inline-start: 18px; display: grid; gap: 8px; color: var(--muted); }
@media (max-width: 860px) { .tna-wrap { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .tna-areas { grid-template-columns: minmax(0, 1fr); } .tna-form-card { padding: 18px; } }

/* AI training needs analysis tool */
.tai-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; }
.tai-badges li { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); color: #fff; border-radius: 99px; padding: .35em .9em; font-size: .86rem; font-weight: 600; }
.tai-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; max-width: 920px; margin: 0 auto; box-shadow: 0 10px 30px rgba(15,52,112,.06); scroll-margin-top: 90px; }
.tai-steps { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; counter-reset: s; }
.tai-steps li { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: .8rem; color: var(--muted); font-weight: 600; position: relative; }
.tai-steps li b { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #eef2f8; color: var(--muted); font-size: .9rem; }
.tai-steps li.on b { background: var(--brand); color: #fff; } .tai-steps li.on { color: var(--brand); }
.tai-steps li.ok b { background: var(--gold); color: #fff; }
.tai-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.tai-step legend { font-size: 1.2rem; font-weight: 800; color: var(--ink); margin-bottom: 14px; padding: 0; }
.tai-hint { color: var(--muted); font-size: .9rem; margin: -6px 0 12px; }
.tai-groups, .tai-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tai-groups label, .tai-chips label { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; cursor: pointer; font-weight: 600; font-size: .9rem; min-width: 0; }
.tai-groups label:has(input:checked), .tai-chips label:has(input:checked) { border-color: var(--brand); background: var(--brand-tint, #eaf0fb); color: var(--brand); }
.tai-groups input, .tai-chips input { accent-color: var(--brand); flex: none; }
.tai-count { color: var(--muted); font-weight: 500; font-size: .78rem; }
.tai-comp { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.5fr) minmax(0, .8fr); gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.tai-comp:last-of-type { margin-bottom: 14px; }
.tai-cname { font-size: .95rem; }
input.tai-cname { height: 40px; }
.tai-lbl { display: none; font-size: .78rem; color: var(--muted); font-weight: 600; }
.tai-scale { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
.tai-scale label { cursor: pointer; }
.tai-scale input { position: absolute; opacity: 0; pointer-events: none; }
.tai-scale span { display: grid; place-items: center; height: 38px; border: 1px solid var(--line); border-radius: 9px; font-weight: 700; color: var(--muted); }
.tai-scale input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.tai-scale input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.tai-scale-l { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); margin-top: 3px; }
.tai-imp select { height: 40px; }
.tai-privacy { font-size: .82rem; color: var(--muted); margin: 6px 0 0; }
.tai-nav { display: flex; gap: 10px; justify-content: space-between; margin-top: 20px; flex-wrap: wrap; }
.tai-nav #tai-next, .tai-nav #tai-go { margin-inline-start: auto; }
.tai-wait, .tai-done, .tr-msg { text-align: center; padding: 26px 8px; }
.tai-spinner { width: 54px; height: 54px; border-radius: 50%; border: 5px solid #e6ecf6; border-top-color: var(--gold); margin: 0 auto 18px; animation: tai-spin 1s linear infinite; }
@keyframes tai-spin { to { transform: rotate(360deg); } }
.tai-progress { list-style: none; padding: 0; margin: 16px auto; max-width: 420px; display: grid; gap: 8px; text-align: start; }
.tai-progress li { color: #9aa7bd; padding-inline-start: 26px; position: relative; transition: color .4s; }
.tai-progress li::before { content: ""; position: absolute; inset-inline-start: 0; top: .45em; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #c9d3e3; }
.tai-progress li.on { color: var(--ink); font-weight: 600; } .tai-progress li.on::before { background: var(--gold); border-color: var(--gold); }
.tai-foot { text-align: center; margin: 16px 0 0; color: var(--muted); }
@media (max-width: 760px) {
  .tai-card { padding: 18px; }
  .tai-steps li span { display: none; }
  .tai-groups, .tai-chips { grid-template-columns: minmax(0, 1fr); }
  .tai-comp { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .tai-lbl { display: block; margin-bottom: 4px; }
}
/* AI TNA report */
.tr-head { background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff; padding: 44px 0 40px; }
.tr-head h1 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 6px 0 10px; }
.tr-kicker { color: var(--gold); font-weight: 700; font-size: .85rem; letter-spacing: .02em; }
.tr-meta { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; color: #d5def0; font-size: .92rem; }
.tr-meta b { color: #fff; }
.tr-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.tr-body { padding-top: 26px; padding-bottom: 40px; }
.tr-sec { margin: 0 0 30px; }
.tr-sec h2 { font-size: 1.25rem; margin: 0 0 12px; }
.tr-grid2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.tr-lead { font-size: 1.02rem; line-height: 1.9; }
.tr-ready, .tr-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.tr-ready h3 { font-size: 1rem; margin: 0 0 12px; }
.tr-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-bottom: 10px; }
.tr-meter span { height: 10px; border-radius: 6px; background: #e6ecf6; } .tr-meter span.on { background: var(--gold); }
.tr-ready p { color: var(--muted); font-size: .9rem; margin: 6px 0 0; }
.tr-note { color: var(--muted); font-size: .9rem; margin: -4px 0 14px; }
.tr-bars { display: grid; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.tr-bar { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr) auto; gap: 12px; align-items: center; font-size: .9rem; }
.tr-track { height: 12px; border-radius: 8px; background: #eef2f8; overflow: hidden; }
.tr-track i { display: block; height: 100%; border-radius: 8px; background: #6d8bbd; }
.tr-track i.hi { background: #c0392b; } .tr-track i.md { background: var(--gold); } .tr-track i.lo { background: #2e8b57; }
.tr-bv { color: var(--muted); font-size: .82rem; white-space: nowrap; min-width: 8.5em; text-align: end; }
.tr-gaps, .tr-courses, .tr-plan, .tr-kpis { display: grid; gap: 14px; }
.tr-courses { grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.tr-plan { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.tr-kpis { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.tr-gap, .tr-course, .tr-phase, .tr-kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; min-width: 0; }
.tr-gap header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.tr-gap h3 { font-size: 1.02rem; margin: 0; flex: 1; }
.tr-gap p { margin: 4px 0; font-size: .93rem; }
.tr-num { width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; display: inline-grid; place-items: center; font-weight: 700; font-size: .85rem; flex: none; }
.tr-pri { display: inline-block; font-size: .76rem; font-weight: 700; border-radius: 99px; padding: .2em .7em; background: #eef2f8; color: var(--muted); }
.tr-pri.p-high { background: #fdecea; color: #b42318; } .tr-pri.p-medium { background: #fff4dc; color: #8a5a00; } .tr-pri.p-low { background: #e8f5ee; color: #1e7a4a; }
.tr-course h3 { font-size: 1rem; margin: 8px 0 6px; }
.tr-course p { font-size: .92rem; margin: 4px 0; }
.tr-who { color: var(--muted); font-size: .88rem; }
.tr-cfoot { display: flex; justify-content: space-between; margin-top: 10px; font-size: .85rem; color: var(--muted); }
.tr-box ul, .tr-phase ul { margin: 0; padding-inline-start: 20px; display: grid; gap: 6px; }
.tr-phase h3 { font-size: .98rem; margin: 0 0 10px; color: var(--brand); }
.tr-inhouse { background: var(--brand-tint, #eaf0fb); border-radius: var(--radius); padding: 22px; }
.tr-mods { margin: 10px 0; padding-inline-start: 22px; display: grid; gap: 4px; }
.tr-kpi b { display: block; margin: 8px 0 4px; } .tr-kpi p { margin: 0 0 6px; font-size: .92rem; } .tr-kpi small { color: var(--muted); }
.tr-cta { background: linear-gradient(120deg, var(--brand), var(--brand-2)); color: #fff; border-radius: var(--radius); padding: 26px; margin: 10px 0 18px; }
.tr-cta h2 { color: #fff; } .tr-cta p { color: #dbe5f7; }
.tr-disc { font-size: .8rem; color: var(--muted); }
@media (max-width: 760px) { .tr-grid2 { grid-template-columns: minmax(0, 1fr); } .tr-bar { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
@media print {
  #site-header, #site-footer, .no-print, .wa-float, .topbar { display: none !important; }
  body { background: #fff; }
  .tr-head { background: #fff !important; color: #000; padding: 0 0 12px; border-bottom: 2px solid #0f3470; }
  .tr-head h1, .tr-meta b { color: #0f3470 !important; } .tr-meta { color: #333; }
  .tr-gap, .tr-course, .tr-phase, .tr-kpi, .tr-box, .tr-ready, .tr-bars, .tr-inhouse { break-inside: avoid; box-shadow: none; }
  .tr-sec { margin-bottom: 18px; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* privacy policy */
.pv { max-width: 860px; }
.pv h2 { font-size: 1.2rem; margin: 30px 0 10px; }
.pv p, .pv li { line-height: 1.9; color: var(--ink); }
.pv ul { padding-inline-start: 22px; display: grid; gap: 8px; }
.pv-lead { font-size: 1.05rem; color: var(--muted) !important; }
.pv-draft { background: #fff4dc; border: 1px solid #f0d28a; color: #7a5200; border-radius: 12px; padding: 12px 16px; font-weight: 700; margin-bottom: 18px; }

/* certificate sample page */
.cs-note { text-align: center; color: var(--muted); font-size: .88rem; margin: 14px 0 0; }
.cs-ways { margin-top: 14px; }
.cs-btns { justify-content: center; margin-top: 26px; }
.vf-sample { margin: 16px 0 0; font-weight: 600; }

/* ===== visual refresh (Nov 2026): flatter, quieter, built around the course calendar ===== */
:root { --font: "IBM Plex Sans Arabic", "Segoe UI", system-ui, -apple-system, sans-serif; --font-head: "Noto Kufi Arabic", "IBM Plex Sans Arabic", sans-serif;
  --night: #0b1f3f; --gold-text: #8a6417; --radius: 10px; --radius-sm: 6px; --shadow: 0 1px 0 rgba(15,52,112,.06); --shadow-sm: none; --bg-soft: #f2f4f8; }
h1, h2, h3 { font-family: var(--font-head); letter-spacing: 0; }
h1 { font-weight: 700; } h2 { font-weight: 700; font-size: clamp(1.35rem, 2.3vw, 1.8rem); } h3 { font-weight: 600; }
.lang-btn { font-family: var(--font); border-radius: 8px; border-width: 1.5px; }
.btn { border-radius: 8px; font-weight: 600; }
.btn-sm { border-radius: 6px; }
.btn-primary:hover { box-shadow: none; }
.eyebrow { display: none; }
.reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
.sec-head.center { text-align: start; margin-inline: 0; }

/* hero: the calendar is the main thing */
.hero { background: var(--night); padding: 56px 0 60px; }
.hero::before { display: none; }
.hero-in { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.hero h1 { font-size: clamp(1.55rem, 2.7vw, 2.2rem); line-height: 1.5; max-width: 20ch; margin-bottom: .45em; }
.hero-sub { max-width: 54ch; color: #c5d0e4; font-size: 1rem; line-height: 1.9; }
.hero-search { border-radius: 10px; box-shadow: none; }
.hero-cta { margin-top: 20px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 26px 0 0; color: #c5d0e4; font-size: .92rem; }
.hero-facts b { color: #fff; font-family: var(--font-head); font-size: 1.15rem; margin-inline-end: 6px; }
.next { background: #fff; color: var(--ink); border-radius: 10px; padding: 20px 22px 16px; }
.next h2 { font-size: 1.02rem; margin: 0 0 4px; color: var(--brand-dark); }
.next ol { list-style: none; margin: 0; padding: 0; }
.next li a { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 14px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); color: var(--ink); }
.next li:first-child a { border-top: 0; }
.next-d { text-align: center; line-height: 1.1; border-inline-end: 2px solid var(--gold); padding-inline-end: 12px; }
.next-d b { display: block; font-family: var(--font-head); font-size: 1.4rem; color: var(--brand); }
.next-d small { color: var(--muted); font-size: .76rem; }
.next-t b { display: block; font-weight: 600; font-size: .94rem; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-t > span { color: var(--muted); font-size: .84rem; }
.next li a:hover .next-t b { color: var(--brand-2); text-decoration: underline; text-underline-offset: 3px; }
.next-all { display: inline-block; margin-top: 10px; font-weight: 600; font-size: .92rem; }

/* services: four plain columns under a rule, not tiles */
.services { margin-top: 0; padding: 46px 0 6px; }
.svc { background: transparent; box-shadow: none; border-radius: 0; border-top: 2px solid var(--brand); padding: 18px 0 0; }
.svc:nth-child(2), .svc:nth-child(3), .svc:nth-child(4) { border-top-color: var(--brand); }
.svc:hover { transform: none; box-shadow: none; }
.svc:hover h3 { color: var(--brand-2); }
.svc-ic, .svc .more .ic { display: none; }

/* why us: text and a short list, no boxes */
.value { align-items: start; }
.value-list { gap: 0; }
.value-list li { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 14px 0; font-weight: 500; }
.value-list li:first-child { border-top: 0; padding-top: 4px; }
.value-list .ic { background: transparent; color: var(--gold-text); padding: 0; width: 22px; height: 22px; }

/* categories: an index, like the contents page of a prospectus */
.cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 44px; }
.cat-tile { flex-direction: row; align-items: baseline; gap: 12px; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 14px 0; }
.cat-tile:hover { transform: none; box-shadow: none; color: var(--brand); border-color: var(--brand); }
.cat-ic { display: none; }
.cat-name { flex: 1; font-weight: 600; }
.cat-n { color: var(--muted); font-size: .88rem; white-space: nowrap; }

/* course cards: flatter */
.course-card { border-radius: 10px; }
.course-card:hover { box-shadow: none; border-color: var(--brand); }
.cert-all { margin: 26px 0 0; }

@media (max-width: 960px) { .hero-in { grid-template-columns: minmax(0, 1fr); gap: 32px; } .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .hero { padding: 36px 0 40px; } .cat-grid { grid-template-columns: minmax(0, 1fr); } .services { padding-top: 34px; } }
html[dir="rtl"], html[dir="ltr"] { --font: "IBM Plex Sans Arabic", "Segoe UI", system-ui, -apple-system, sans-serif; }
/* refresh, part 2: navigation, bands and inner-page heroes without gradients or pills */
.mainnav li > a { border-radius: 0; }
.mainnav li.active > a { background: transparent; color: var(--brand); box-shadow: inset 0 -2px 0 var(--gold); }
.hero h1 { max-width: 24ch; }
.footer-cta { background: var(--brand); }
.page-hero { background: var(--night); }
.page-hero::before { display: none; }
.page-hero h1 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); line-height: 1.5; }
.tr-head, .tr-cta { background: var(--night); }

/* most requested fields: photo cards */
.cat-feature { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-bottom: 40px; }
.feat { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; color: var(--ink); }
.feat img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: #dfe5ef; }
.feat-b { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; }
.feat-b b { font-family: var(--font-head); font-size: 1.08rem; color: var(--brand-dark); }
.feat-b span { color: var(--muted); font-size: .92rem; line-height: 1.7; }
.feat-b small { color: var(--gold-text); font-weight: 600; font-size: .85rem; margin-top: 4px; }
.feat:hover { border-color: var(--brand); color: var(--ink); }
.feat:hover b { color: var(--brand-2); }
.feat:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.cat-all-h { font-size: 1.05rem; margin: 0 0 6px; }
@media (max-width: 860px) { .cat-feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 560px) { .cat-feature { grid-template-columns: minmax(0, 1fr); gap: 16px; } }
