/* ==========================================================
   XELFACT – Design B "Bold Academy"
   Colours, fonts and spacing are set once here in :root.
   ========================================================== */
:root {
  --deep: #0a1b4d;
  --deep-2: #10255f;
  --blue: #1d4ed8;
  --blue-2: #2563eb;
  --sky: #0ea5e9;
  --yellow: #ffd23f;
  --yellow-2: #ffc61a;
  --ink: #0b1533;
  --muted: #5d6785;
  --line: #e6eaf3;
  --bg: #f4f7fd;
  --white: #ffffff;
  --r: 22px;
  --max: 1220px;
  --shadow: 0 10px 30px rgba(10, 27, 77, .08);
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
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.65; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--deep); letter-spacing: -.015em; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--yellow); color: var(--deep); padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; border-radius: 14px; font-weight: 600; font-size: 15px; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; transition: transform .15s, background .15s, box-shadow .15s; line-height: 1.2; }
.btn:hover { transform: translateY(-2px); }
.btn-yellow { background: var(--yellow); color: var(--deep); box-shadow: 0 8px 20px rgba(255, 210, 63, .35); }
.btn-yellow:hover { background: var(--yellow-2); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-2); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn-outline { background: #fff; color: var(--deep); border: 1.5px solid var(--line); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10, 27, 77, .97); backdrop-filter: blur(8px); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.brand { background: #fff; border-radius: 12px; padding: 7px 12px; display: inline-flex; }
.brand img { height: 30px; width: auto; }
.nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; align-items: center; }
.nav a { display: block; padding: 8px 14px; color: rgba(255,255,255,.88); text-decoration: none; font-size: 15px; border-radius: 10px; }
.nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav a[aria-current="page"] { color: var(--yellow); font-weight: 600; }
.nav .nav-cta { display: none; }
.header-cta { padding: 11px 20px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; padding: 64px 0 130px;
  background: radial-gradient(900px 500px at 85% 15%, #2563eb 0, transparent 60%),
              radial-gradient(700px 500px at 0% 100%, #0ea5e9 0, transparent 55%), var(--deep); }
.hero::after { content: ""; position: absolute; right: -140px; bottom: -180px; width: 520px; height: 520px; border-radius: 50%; border: 60px solid rgba(255,210,63,.10); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; position: relative; z-index: 1; }
.kicker { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,210,63,.14); color: var(--yellow); border: 1px solid rgba(255,210,63,.4); padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; margin-bottom: 22px; }
.kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.9rem); line-height: 1.07; font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero .lede { font-size: 1.1rem; opacity: .88; margin: 20px 0 28px; max-width: 580px; }
.search { display: flex; background: #fff; border-radius: 16px; padding: 7px; max-width: 580px; box-shadow: 0 20px 40px rgba(0,0,0,.25); }
.search input { flex: 1; border: 0; outline: 0; padding: 12px 14px; font: inherit; font-size: 15px; color: var(--ink); min-width: 0; background: transparent; }
.chips { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.chips a { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; padding: 6px 13px; border-radius: 999px; font-size: 13px; }
.chips a:hover { background: rgba(255,255,255,.2); }
.hero-media { position: relative; height: 480px; }
.hero-media img { position: absolute; object-fit: cover; border-radius: 24px; border: 6px solid rgba(255,255,255,.12); }
.hero-media .m1 { width: 74%; height: 88%; right: 0; top: 0; }
.hero-media .m2 { width: 56%; height: 52%; left: 0; bottom: 0; }
.stat-pop { position: absolute; left: 10%; top: 8%; background: var(--yellow); color: var(--deep); border-radius: 20px; padding: 16px 20px; font-weight: 700; font-size: 2.1rem; line-height: 1; box-shadow: 0 14px 30px rgba(0,0,0,.25); }
.stat-pop small { display: block; font-size: 13px; font-weight: 600; margin-top: 6px; }

/* Page hero (inner pages) */
.page-hero { position: relative; overflow: hidden; color: #fff; padding: 56px 0 110px;
  background: radial-gradient(700px 400px at 90% 0%, #2563eb 0, transparent 60%), var(--deep); }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 3.1rem); max-width: 860px; }
.page-hero h1 em { font-style: normal; color: var(--yellow); }
.page-hero p { font-size: 1.08rem; opacity: .88; max-width: 720px; }
.crumbs { font-size: 13px; opacity: .75; margin-bottom: 16px; }
.crumbs a { color: #fff; }
.page-hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* ---------- Stat bar ---------- */
.statbar { margin-top: -64px; position: relative; z-index: 2; }
.statbar .inner { background: #fff; border-radius: 24px; box-shadow: 0 20px 50px rgba(10,27,77,.12); display: grid; grid-template-columns: repeat(4, 1fr); padding: 26px 16px; }
.statbar .item { text-align: center; padding: 6px 10px; }
.statbar .item + .item { border-left: 1px solid var(--line); }
.statbar b { display: block; font-size: 1.9rem; color: var(--blue); line-height: 1.2; }
.statbar small { color: var(--muted); font-size: 14px; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section.tight { padding: 56px 0; }
.section.white { background: #fff; }
.eyebrow { color: var(--blue); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; display: block; }
.section h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
.sub { color: var(--muted); font-size: 1.05rem; max-width: 680px; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.head .link { font-weight: 600; text-decoration: none; }
.center { text-align: center; }
.center .sub { margin-left: auto; margin-right: auto; }

/* ---------- Path cards (SKM / Corporate) ---------- */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.path { position: relative; border-radius: 26px; overflow: hidden; min-height: 360px; color: #fff; text-decoration: none; display: flex; }
.path img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.path:hover img { transform: scale(1.04); }
.path .ov { position: relative; margin-top: auto; padding: 32px; width: 100%; background: linear-gradient(180deg, rgba(10,27,77,0) 0%, rgba(10,27,77,.92) 45%); }
.path h3 { color: #fff; font-size: 1.6rem; margin: 10px 0 6px; }
.path p { opacity: .9; margin: 0 0 14px; max-width: 460px; }
.path .go { color: var(--yellow); font-weight: 600; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 8px; }
.tag-y { background: var(--yellow); color: var(--deep); }
.tag-skm { background: #fff4c7; color: #7a5a00; }
.tag-corp { background: #dbeafe; color: var(--blue); }
.tag-edu { background: #dcfce7; color: #166534; }

/* ---------- Course cards ---------- */
.courses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.courses.three { grid-template-columns: repeat(3, 1fr); }
.course { background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.course:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(10,27,77,.12); }
.course img { width: 100%; height: 170px; object-fit: cover; }
.course .body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.course .tag { align-self: flex-start; margin-bottom: 10px; }
.course h3 { font-size: 1.08rem; margin-bottom: 6px; }
.course p { font-size: 14px; color: var(--muted); margin: 0; }
.course .meta { display: flex; justify-content: space-between; border-top: 1px solid #eef1f7; margin-top: auto; padding-top: 14px; font-size: 13px; color: var(--muted); }
.course .body > p { margin-bottom: 16px; }
.course .meta b { color: var(--blue); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; align-items: center; }
.filters button { border: 1.5px solid var(--line); background: #fff; color: var(--deep); padding: 9px 18px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--deep); color: #fff; border-color: var(--deep); }
.filters input { margin-left: auto; border: 1.5px solid var(--line); border-radius: 999px; padding: 9px 18px; font: inherit; font-size: 14px; min-width: 240px; }
.no-results { display: none; text-align: center; color: var(--muted); padding: 30px; }

/* ---------- Feature list / icon cards ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.features.four { grid-template-columns: repeat(4, 1fr); }
.feature { background: #fff; border-radius: var(--r); padding: 28px; box-shadow: var(--shadow); }
.ficon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: #e8efff; color: var(--blue); font-weight: 700; margin-bottom: 18px; font-size: 15px; }
.ficon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature.y .ficon { background: #fff4c7; color: #8a6500; }
.feature h3 { font-size: 1.12rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; margin: 0; }
.ticks { list-style: none; padding: 0; margin: 14px 0 0; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: 8px; font-size: 15px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: #e8efff; }
.ticks li::after { content: ""; position: absolute; left: 6px; top: 7px; width: 5px; height: 9px; border: solid var(--blue); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* ---------- Split (text + image) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.rev > :first-child { order: 2; }
.split img.rounded { border-radius: 26px; width: 100%; height: 440px; object-fit: cover; }
.prose p, .prose li { color: #2c3553; }
.prose h2 { margin-top: 1.4em; }
.prose h3 { margin-top: 1.3em; font-size: 1.2rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
.step { background: #fff; border-radius: var(--r); padding: 26px; box-shadow: var(--shadow); position: relative; }
.step::before { counter-increment: s; content: counter(s); width: 40px; height: 40px; border-radius: 12px; background: var(--yellow); color: var(--deep); font-weight: 700; display: grid; place-items: center; margin-bottom: 16px; }
.step h3 { font-size: 1.05rem; }
.step p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ---------- Level table ---------- */
.levels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.level { background: #fff; border-radius: 18px; padding: 20px; box-shadow: var(--shadow); border-top: 4px solid var(--blue); }
.level:nth-child(n+4) { border-top-color: var(--yellow); }
.level b { display: block; color: var(--deep); font-size: 1.05rem; }
.level span { display: block; color: var(--blue); font-weight: 600; font-size: 13px; margin: 2px 0 8px; }
.level p { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quotes.two { grid-template-columns: repeat(2, 1fr); }
.quote { background: #fff; border-radius: var(--r); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; margin: 0; }
.quote::before { content: "\201C"; font-size: 4rem; line-height: .6; color: var(--yellow); font-family: Georgia, serif; height: 30px; }
.quote blockquote { margin: 0 0 20px; color: #2c3553; font-size: 15px; flex: 1; }
.quote .en { display: block; margin-top: 10px; color: var(--muted); font-size: 13.5px; font-style: italic; }
.quote figcaption { display: flex; gap: 14px; align-items: center; border-top: 1px solid #eef1f7; padding-top: 16px; }
.quote figcaption img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.quote figcaption b { display: block; font-size: 14.5px; color: var(--deep); }
.quote figcaption small { color: var(--muted); font-size: 13px; }

/* ---------- CTA band ---------- */
.band { border-radius: 28px; background: linear-gradient(110deg, var(--blue), var(--sky)); color: #fff; display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; padding: 48px 56px; gap: 30px; }
.band h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 8px; }
.band p { opacity: .92; margin: 0; }
.band .r { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { background: #fff; border-radius: 16px; box-shadow: var(--shadow); margin-bottom: 12px; padding: 0 24px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 30px 20px 0; font-weight: 600; color: var(--deep); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 16px; font-size: 1.5rem; color: var(--blue); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p, .faq details ul { color: var(--muted); padding-bottom: 6px; }
.faq h2.group { font-size: 1.3rem; margin: 36px 0 14px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: start; }
.form-card { background: #fff; border-radius: 24px; padding: 34px; box-shadow: var(--shadow); }
.form-card h2 { font-size: 1.5rem; }
.form-card label { display: block; font-size: 13.5px; font-weight: 600; color: var(--deep); margin: 16px 0 6px; }
.form-card input, .form-card select, .form-card textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; font: inherit; font-size: 15px; background: #fbfcff; color: var(--ink); }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { outline: 2px solid var(--blue); border-color: transparent; }
.form-card textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-card .btn { margin-top: 22px; width: 100%; }
.form-note { font-size: 13px; color: var(--muted); text-align: center; margin: 12px 0 0; }
.hp { display: none !important; }
.info-card { background: var(--deep); color: #fff; border-radius: 24px; padding: 32px; }
.info-card h2, .info-card h3 { color: #fff; font-size: 1.25rem; }
.info-card p { opacity: .9; font-size: 15px; }
.info-card a { color: var(--yellow); }
.info-card .row { display: flex; gap: 14px; margin-bottom: 16px; align-items: flex-start; }
.info-card .row .ficon { background: rgba(255,255,255,.1); color: var(--yellow); width: 42px; height: 42px; margin: 0; flex: none; }
.map { border: 0; width: 100%; height: 260px; border-radius: 18px; margin-top: 10px; }

/* ---------- Blog ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post { background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform .2s; }
.post:hover { transform: translateY(-4px); }
.post img { width: 100%; height: 200px; object-fit: cover; }
.post .body { padding: 22px; }
.post h3 { font-size: 1.1rem; }
.post p { color: var(--muted); font-size: 14.5px; margin: 0; }
.newsletters { display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); gap: 30px; }
.nl { text-decoration: none; color: var(--deep); font-weight: 600; text-align: center; }
.nl img { border-radius: 14px; box-shadow: 0 14px 30px rgba(0,0,0,.18); margin-bottom: 14px; transition: transform .2s; }
.nl:hover img { transform: translateY(-4px); }

/* ---------- Article ---------- */
.article-wrap { max-width: 820px; margin: 0 auto; background: #fff; border-radius: 28px; padding: 48px 56px; box-shadow: var(--shadow); margin-top: -70px; position: relative; z-index: 2; }
.article-wrap > img:first-child { border-radius: 18px; width: 100%; height: 380px; object-fit: cover; margin-bottom: 30px; }
.article-wrap h2 { font-size: 1.45rem; margin-top: 1.6em; }
.article-wrap p, .article-wrap li { color: #2c3553; font-size: 16.5px; }
.article-wrap figure { margin: 28px 0; }
.article-wrap figure img { border-radius: 16px; }
.article-wrap figcaption { font-size: 13.5px; color: var(--muted); text-align: center; margin-top: 8px; }
.byline { display: flex; gap: 12px; align-items: center; font-size: 14px; color: var(--muted); margin-bottom: 26px; }
.byline b { color: var(--deep); }
.pull { border-left: 4px solid var(--yellow); background: #fffbea; padding: 18px 22px; border-radius: 0 14px 14px 0; font-weight: 600; color: var(--deep); margin: 26px 0; }
.boxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 22px 0; }
.boxes div { background: var(--bg); border-radius: 16px; padding: 18px; }
.boxes h3 { font-size: 1rem; }
.boxes p { font-size: 14.5px !important; margin: 0; color: var(--muted) !important; }
.table-wrap { overflow-x: auto; margin: 22px 0; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th { background: var(--deep); color: #fff; text-align: left; padding: 12px 14px; }
th:first-child { border-radius: 12px 0 0 0; } th:last-child { border-radius: 0 12px 0 0; }
td { padding: 12px 14px; border-bottom: 1px solid var(--line); }

/* ---------- About ---------- */
.mission { background: var(--deep); color: #fff; border-radius: 28px; padding: 46px 52px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.mission h2 { color: var(--yellow); font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px; }
.mission p { font-size: 1.15rem; margin: 0; opacity: .95; }
.gallery { columns: 3 260px; column-gap: 16px; }
.gallery img { width: 100%; margin-bottom: 16px; break-inside: avoid; border-radius: 16px; }
.cred-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* ---------- Video ---------- */
.video { position: relative; padding-top: 56.25%; border-radius: 24px; overflow: hidden; box-shadow: 0 20px 40px rgba(10,27,77,.2); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: rgba(255,255,255,.85); padding: 70px 0 26px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
.site-footer .brand { margin-bottom: 18px; }
.site-footer h2 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer p, .site-footer li { font-size: 14.5px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.1); display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff; }
.social a:hover { background: var(--yellow); color: var(--deep); }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 46px; padding-top: 22px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13.5px; opacity: .8; }

/* ---------- WhatsApp float ---------- */
.wa-float { position: fixed; right: 18px; bottom: 18px; height: 54px; padding: 0 18px 0 14px; border-radius: 999px; background: #25d366; color: #fff; display: flex; align-items: center; gap: 8px; box-shadow: 0 10px 24px rgba(0,0,0,.25); z-index: 60; text-decoration: none; font-weight: 600; font-size: 15px; }
.wa-float svg { width: 26px; height: 26px; fill: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .courses { grid-template-columns: repeat(2, 1fr); }
  .levels { grid-template-columns: repeat(3, 1fr); }
  .steps, .features.four { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav a { padding: 8px 10px; font-size: 14.5px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--deep); border-top: 1px solid rgba(255,255,255,.1); display: none; padding: 10px 20px 20px; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; }
  .nav a { padding: 13px 8px; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,.07); border-radius: 0; }
  .nav .nav-cta { display: block; margin-top: 14px; }
  .nav .nav-cta a { border: 0; background: var(--yellow); color: var(--deep); border-radius: 14px; text-align: center; font-weight: 600; }
  .hero { padding: 40px 0 110px; }
  .hero-grid, .split, .paths, .contact-grid, .mission, .band { grid-template-columns: 1fr; }
  .split.rev > :first-child { order: 0; }
  .hero-media { height: 300px; }
  .split img.rounded { height: 300px; }
  .features, .quotes, .posts, .cred-row, .boxes { grid-template-columns: 1fr; }
  .quotes.two { grid-template-columns: 1fr; }
  .band { padding: 36px 26px; }
  .band .r { justify-content: flex-start; }
  .article-wrap { padding: 28px 22px; border-radius: 22px; }
  .article-wrap > img:first-child { height: 220px; }
  .mission { padding: 34px 26px; gap: 26px; }
  .filters input { margin-left: 0; min-width: 0; width: 100%; }
}
@media (max-width: 560px) {
  .courses, .courses.three, .steps, .features.four, .levels, .foot-grid { grid-template-columns: 1fr; }
  .statbar .inner { grid-template-columns: 1fr 1fr; row-gap: 14px; }
  .statbar .item:nth-child(3) { border-left: 0; }
  .statbar b { font-size: 1.45rem; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .form-card, .info-card { padding: 24px; }
  .newsletters { grid-template-columns: 1fr; justify-items: center; }
  .wa-float span { display: none; }
  .wa-float { padding: 0; width: 56px; justify-content: center; }
  .search .btn { padding: 12px 16px; }
}

/* Prevent grid children from forcing overflow on small screens */
.hero-grid > *, .split > *, .contact-grid > *, .paths > *, .band > * { min-width: 0; }
@media (max-width: 560px) {
  .hero h1 { font-size: 2.1rem; }
  .kicker { font-size: 12px; }
  .search input { font-size: 14px; }
}

/* ==========================================================
   v3 additions: language switch, institutions, catalogue,
   course pages, trainers, pricing
   ========================================================== */
.site-header .container { gap: 14px; }
.nav a { padding: 8px 12px; font-size: 14.5px; }
.lang { display: inline-flex; border: 1px solid rgba(255,255,255,.3); border-radius: 10px; overflow: hidden; flex: none; }
.lang a { color: rgba(255,255,255,.85); text-decoration: none; font-size: 13px; font-weight: 600; padding: 6px 10px; }
.lang a[aria-current="true"] { background: var(--yellow); color: var(--deep); }
.head-right { display: flex; align-items: center; gap: 12px; }

.paths.three { grid-template-columns: repeat(3, 1fr); }
.paths.three .path { min-height: 400px; }

/* Price + intake */
.price-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: stretch; }
.price-card { background: #fff; border-radius: 26px; padding: 34px; box-shadow: var(--shadow); border: 2px solid var(--yellow); position: relative; }
.price-card .tag { position: absolute; top: -13px; left: 30px; }
.price { font-size: 3rem; font-weight: 700; color: var(--deep); line-height: 1; margin: 10px 0 4px; }
.price small { font-size: 1rem; color: var(--muted); font-weight: 500; }
.intake-card { background: var(--deep); color: #fff; border-radius: 26px; padding: 34px; display: flex; flex-direction: column; justify-content: center; }
.intake-card h3 { color: var(--yellow); font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; }
.intake-date { font-size: 1.9rem; font-weight: 700; line-height: 1.2; margin: 6px 0 4px; }
.intake-card p { opacity: .88; margin: 0 0 6px; }
.intake-card .btn { margin-top: 18px; align-self: flex-start; }

/* Institutions chips */
.inst { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.inst span { background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 600; color: var(--deep); }
.page-hero .inst span { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); color: #fff; }

/* Questions grid (B2B) */
.qgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.qgrid div { background: var(--deep); color: #fff; border-radius: 18px; padding: 22px; font-weight: 600; font-size: 15.5px; }
.qgrid div::before { content: "?"; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--yellow); color: var(--deep); font-weight: 700; margin-bottom: 12px; }

/* Phases */
.phases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: ph; }
.phase { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 26px; border-top: 5px solid var(--blue); }
.phase:nth-child(even) { border-top-color: var(--yellow); }
.phase small { color: var(--blue); font-weight: 700; letter-spacing: .08em; font-size: 12px; text-transform: uppercase; }
.phase h3 { font-size: 1.12rem; margin: 6px 0 10px; }
.phase p { color: var(--muted); font-size: 14.5px; }
.phase .pills { display: flex; flex-wrap: wrap; gap: 6px; }
.phase .pills span { background: var(--bg); border-radius: 8px; padding: 4px 9px; font-size: 12.5px; color: var(--deep); font-weight: 500; }
.flow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.flow span { background: var(--bg); border-radius: 8px; padding: 5px 10px; font-size: 13px; color: var(--deep); font-weight: 500; }
.flow i { font-style: normal; color: var(--blue); font-weight: 700; }

/* Simulation companies */
.sims { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.sim { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.sim .top { background: linear-gradient(120deg, var(--blue), var(--sky)); color: #fff; padding: 22px 24px; }
.sim .top small { opacity: .9; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.sim .top h3 { color: #fff; margin: 4px 0 0; font-size: 1.2rem; }
.sim .body { padding: 20px 24px; }
.sim .body b { font-size: 13.5px; color: var(--deep); }
.checks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 20px; margin-top: 20px; }
.checks span { background: #fff; border-radius: 12px; padding: 10px 14px; font-size: 14.5px; box-shadow: 0 4px 12px rgba(10,27,77,.05); display: flex; gap: 8px; align-items: center; }
.checks span::before { content: "\2713"; color: #16a34a; font-weight: 700; }

/* Promise equation */
.equation { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 24px; }
.equation span { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); border-radius: 14px; padding: 12px 18px; font-weight: 600; }
.equation i { font-style: normal; color: var(--yellow); font-size: 1.4rem; font-weight: 700; }
.equation strong { background: var(--yellow); color: var(--deep); border-radius: 14px; padding: 12px 20px; }
.dark-section { background: var(--deep); color: #fff; }
.dark-section h2 { color: #fff; }
.dark-section .sub { color: rgba(255,255,255,.85); }
.dark-section .eyebrow { color: var(--yellow); }

/* Trainers */
.trainer { display: grid; grid-template-columns: 360px 1fr; gap: 44px; background: #fff; border-radius: 28px; box-shadow: var(--shadow); overflow: hidden; }
.trainer + .trainer { margin-top: 30px; }
.trainer .photo { background: linear-gradient(160deg, #e8efff, #c9d8ff); min-height: 380px; position: relative; }
.trainer .photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; position: absolute; inset: 0; }
.monogram { position: absolute; inset: 0; display: grid; place-items: center; font-size: 6rem; font-weight: 700; color: var(--blue); }
.trainer .info { padding: 40px 44px 40px 0; }
.trainer .role { display: inline-block; background: var(--yellow); color: var(--deep); font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 8px; margin-bottom: 12px; }
.trainer h2 { font-size: 2rem; margin-bottom: 4px; }
.trainer .aka { color: var(--muted); margin-bottom: 18px; }
.creds { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; }
.creds span { background: #e8efff; color: var(--blue); border-radius: 8px; padding: 6px 11px; font-size: 13px; font-weight: 600; }
.mini-trainers { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.mini-trainer { display: flex; gap: 20px; align-items: center; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 22px; text-decoration: none; color: inherit; }
.mini-trainer .av { width: 92px; height: 92px; border-radius: 50%; overflow: hidden; flex: none; background: #e8efff; display: grid; place-items: center; font-weight: 700; color: var(--blue); font-size: 2rem; }
.mini-trainer .av img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.mini-trainer b { display: block; color: var(--deep); font-size: 1.1rem; }
.mini-trainer small { color: var(--blue); font-weight: 600; }
.mini-trainer p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }

/* Catalogue */
.cat-nav { position: sticky; top: 76px; z-index: 5; background: var(--bg); padding: 14px 0; margin-bottom: 10px; }
.cat-block { margin-top: 46px; scroll-margin-top: 150px; }
.cat-block h2 { font-size: 1.6rem; display: flex; align-items: center; gap: 12px; }
.cat-block h2 small { font-size: 13px; color: var(--muted); font-weight: 500; background: #fff; border-radius: 999px; padding: 4px 12px; border: 1px solid var(--line); }
.cat-block > p { color: var(--muted); max-width: 760px; }
.course.compact img { height: 130px; }
.course .body h3 { font-size: 1rem; }
.themes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.theme { background: #fff; border-radius: 18px; padding: 20px; box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: transform .2s; }
.theme:hover { transform: translateY(-3px); }
.theme .ficon { margin-bottom: 12px; width: 44px; height: 44px; }
.theme b { display: block; color: var(--deep); font-size: 15px; line-height: 1.3; }
.theme small { color: var(--muted); font-size: 13px; }

/* Course detail */
.course-layout { display: grid; grid-template-columns: 1fr 360px; gap: 34px; align-items: start; margin-top: -70px; position: relative; z-index: 2; }
.course-main { background: #fff; border-radius: 26px; box-shadow: var(--shadow); padding: 38px 42px; }
.course-main h2 { font-size: 1.35rem; margin-top: 1.2em; }
.course-main h2:first-child { margin-top: 0; }
.course-main p { color: #2c3553; font-size: 16.5px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.facts span { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 10px; padding: 7px 12px; font-size: 14px; }
.facts b { color: var(--yellow); font-weight: 600; }
.aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 18px; }
.aside .box { background: #fff; border-radius: 22px; box-shadow: var(--shadow); padding: 26px; }
.aside .box.dark { background: var(--deep); color: #fff; }
.aside .box.dark h3 { color: #fff; }
.aside .box h3 { font-size: 1.1rem; }
.aside .btn { width: 100%; margin-top: 10px; }
.aside dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 14.5px; }
.aside dt { color: var(--muted); }
.aside dd { margin: 0; font-weight: 600; color: var(--deep); }
.bite-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bite { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 24px; scroll-margin-top: 110px; }
.bite .n { width: 36px; height: 36px; border-radius: 10px; background: var(--yellow); color: var(--deep); font-weight: 700; display: grid; place-items: center; margin-bottom: 12px; }
.bite h3 { font-size: 1.05rem; }
.bite p { color: var(--muted); font-size: 14.5px; }

@media (max-width: 1180px) {
  .nav a { padding: 8px 8px; font-size: 14px; }
  .header-cta { padding: 10px 14px; font-size: 14px; }
}
@media (max-width: 1060px) {
  .themes { grid-template-columns: repeat(3, 1fr); }
  .phases, .qgrid { grid-template-columns: repeat(2, 1fr); }
  .checks { grid-template-columns: repeat(3, 1fr); }
  .bite-list { grid-template-columns: repeat(2, 1fr); }
  .trainer { grid-template-columns: 280px 1fr; }
}
@media (max-width: 860px) {
  .paths.three, .price-grid, .sims, .course-layout, .mini-trainers { grid-template-columns: 1fr; }
  .course-layout { margin-top: -60px; }
  .course-main { padding: 26px 22px; }
  .aside { position: static; }
  .trainer { grid-template-columns: 1fr; gap: 0; }
  .trainer .photo { min-height: 320px; }
  .trainer .info { padding: 28px 24px; }
  .cat-nav { top: 76px; overflow-x: auto; }
  .cat-nav .filters { flex-wrap: nowrap; }
  .cat-nav .filters button { white-space: nowrap; }
  .head-right .lang { margin-left: auto; }
}
@media (max-width: 560px) {
  .themes, .phases, .qgrid, .bite-list { grid-template-columns: 1fr; }
  .checks { grid-template-columns: 1fr 1fr; }
  .price { font-size: 2.4rem; }
  .price-card, .intake-card { padding: 26px; }
  .mini-trainer { flex-direction: column; text-align: center; }
}
.course.iconic { border-top: 4px solid var(--blue); }
.course.iconic .card-ico { padding: 22px 20px 0; }
.course.iconic .card-ico svg { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: #e8efff; color: var(--blue); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.course.iconic .body { padding-top: 14px; }
.cat-block .courses.three > .course.iconic:nth-child(3n+2) { border-top-color: var(--yellow); }
.cat-block .courses.three > .course.iconic:nth-child(3n+2) .card-ico svg { background: #fff4c7; color: #8a6500; }
.trainer#amir .photo { background: #c9cdd3; }
.trainer#amir .photo img { object-position: center 10%; }
.level { position: relative; }
.level.offered { border: 2px solid var(--yellow); border-top-width: 4px; box-shadow: 0 14px 30px rgba(255,210,63,.25); }
.level.offered .tag { margin-bottom: 8px; }
.levels .level:not(.offered) { opacity: .72; }
.trainer .photo.razali { background: #fff; }
.trainer .photo.razali img { object-position: center 15%; }
