/* ==========================================================================
   Trishana Technologies — design system
   ========================================================================== */

:root {
  --ink: #1b1a17;
  --ink-2: #2a2824;
  --ink-3: #44413b;
  --body: #4d4a44;
  --muted: #77736b;
  --line: #e8e4dc;
  --line-2: #f1eee8;
  --bg: #ffffff;
  --bg-soft: #f8f6f1;
  --bg-tint: #f4efe4;

  --primary: #98680f;
  --primary-600: #7d550b;
  --primary-700: #634307;
  --primary-50: #f8f0de;
  --primary-100: #eedcb2;

  --accent: #e3a52b;
  --accent-600: #c98a12;
  --accent-50: #fbf3e2;

  --success: #3a9a5f;
  --success-50: #e9f4ec;
  --rose: #b5583a;
  --violet: #8a5a3c;
  --teal: #5e7f6a;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-xs: 0 1px 2px rgba(27,26,23, .06);
  --shadow-sm: 0 2px 8px rgba(27,26,23, .06), 0 1px 2px rgba(27,26,23, .04);
  --shadow: 0 10px 30px -10px rgba(27,26,23, .18), 0 2px 6px rgba(27,26,23, .04);
  --shadow-lg: 0 30px 60px -20px rgba(27,26,23, .28), 0 8px 20px -8px rgba(27,26,23, .12);
  --shadow-primary: 0 12px 28px -10px rgba(27,26,23,.45);

  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;

  --container: 1200px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, h5 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 800; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--primary); color: #fff; }
:focus-visible { outline: 3px solid var(--primary-100); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }

/* ---------- Buttons ---------- */
.btn {
  --h: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 24px; border-radius: 999px;
  font-weight: 700; font-size: 15px; letter-spacing: -.005em; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
/* Primary buttons use the logo charcoal; gold (.btn-accent) is reserved for dark backgrounds */
.btn-primary { background: var(--ink); color: #fff; box-shadow: var(--shadow-primary); }
.btn-primary:hover { background: var(--ink-3); }
.btn-accent { background: var(--accent); color: #2a1b00; box-shadow: 0 12px 28px -12px rgba(201,138,18,.6); }
.btn-accent:hover { background: #ebb346; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); }
.btn-outline { border: 1.5px solid var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost-light { border: 1.5px solid rgba(255,255,255,.25); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); }
.btn-white { background: #fff; color: var(--ink); }
.btn-sm { --h: 40px; padding: 0 18px; font-size: 14px; }
.btn-lg { --h: 58px; padding: 0 32px; font-size: 16px; }
.btn-block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--primary); font-size: 15px; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Chips / badges ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow.center::after { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--ink-3); background: var(--bg-soft); border: 1px solid var(--line);
}
.chip svg { width: 14px; height: 14px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .02em;
}
.badge-hot { background: #f8ebe5; color: #b5583a; }
.badge-new { background: var(--success-50); color: #2e7d4c; }
.badge-primary { background: var(--primary-50); color: var(--primary-700); }

/* ---------- Section scaffolding ---------- */
.section { padding: 110px 0; position: relative; }
.section-sm { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--ink); color: #cdc8be; }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(32px, 4.2vw, 50px); }
.section-head p { font-size: 18px; color: var(--muted); margin: 0; }
.section-dark .section-head p { color: #a8a298; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 48px; }
.section-head-row .section-head { margin-bottom: 0; }

/* ==========================================================================
   Header
   ========================================================================== */
/* Sticky wrapper keeps the header pinned to the top */
#site-header { min-height: var(--header-h); position: sticky; top: 0; z-index: 100; }
.header {
  position: relative;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -14px rgba(27,26,23,.25); }
.header .container { display: flex; align-items: center; height: var(--header-h); gap: 32px; }

.brand { display: inline-flex; align-items: center; flex: none; }
/* Logo is a 181x51 PNG: show it at native size so it stays sharp */
.brand-logo { width: auto; height: 50px; }
.footer .brand-logo { height: 56px; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav > li { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 14px; border-radius: 999px;
  font-weight: 600; font-size: 15px; color: var(--ink-3); transition: color .2s, background .2s;
}
.nav-link svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.nav-link:hover, .nav-link.active { color: var(--ink); background: var(--bg-soft); }
.nav-link.active { color: var(--primary); }
.has-mega:hover .nav-link svg, .has-mega:focus-within .nav-link svg { transform: rotate(180deg); }
.header-cta { display: flex; align-items: center; gap: 10px; flex: none; }

/* Mega menu */
/* Mega menu is positioned against the header container so it centres on the page */
.header .container { position: relative; }
.nav > li.has-mega { position: static; }
.mega {
  position: absolute; top: calc(100% - 4px); left: 50%; transform: translate(-50%, 8px);
  width: min(1040px, calc(100vw - 48px));
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: 250px 1fr; overflow: hidden;
  opacity: 0; visibility: hidden; transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega-side { background: var(--bg-soft); padding: 22px 14px; border-right: 1px solid var(--line); }
.mega-side h6 { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 10px 12px; font-weight: 700; }
.mega-cat {
  display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 10px 12px; border-radius: 10px;
  font-weight: 600; font-size: 14.5px; color: var(--ink-3); text-align: left; transition: background .15s, color .15s;
}
.mega-cat span.count { font-size: 12px; color: var(--muted); font-weight: 600; }
.mega-cat:hover, .mega-cat.active { background: #fff; color: var(--primary); box-shadow: var(--shadow-xs); }
.mega-main { padding: 22px 24px 18px; display: flex; flex-direction: column; }
.mega-panel { display: none; grid-template-columns: repeat(3, 1fr); gap: 4px 12px; }
.mega-panel.active { display: grid; }
.mega-item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; transition: background .15s; }
.mega-item:hover { background: var(--bg-soft); }
.mega-item b { display: block; font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.25; }
.mega-item small { font-size: 12.5px; color: var(--muted); }
.mega-foot {
  margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--muted);
}

/* Mobile nav */
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); place-items: center; }
.menu-toggle svg { width: 22px; height: 22px; color: var(--ink); }
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(27,26,23,.5); z-index: 199; opacity: 0; visibility: hidden; transition: .3s;
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); background: #fff; z-index: 200;
  transform: translateX(100%); transition: transform .35s var(--ease); display: flex; flex-direction: column;
}
body.drawer-open { overflow: hidden; }
body.drawer-open .drawer { transform: none; }
body.drawer-open .drawer-backdrop { opacity: 1; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-body { padding: 12px 20px; overflow-y: auto; flex: 1; }
.drawer-body > a, .drawer-acc > button {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 15px 4px; font-weight: 700; font-size: 17px; color: var(--ink); border-bottom: 1px solid var(--line-2);
}
.drawer-acc > button svg { width: 18px; transition: transform .25s; }
.drawer-acc.open > button svg { transform: rotate(180deg); }
.drawer-acc-panel { display: none; padding: 8px 0 12px; }
.drawer-acc.open .drawer-acc-panel { display: block; }
.drawer-acc-panel a { display: block; padding: 8px 6px; font-size: 15px; color: var(--body); font-weight: 500; }
.drawer-acc-panel h6 { margin: 12px 6px 4px; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.drawer-foot { padding: 18px 20px 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 85% -10%, rgba(227,165,43,.20), transparent 60%),
              radial-gradient(800px 500px at -10% 110%, rgba(168,116,26,.14), transparent 60%),
              var(--ink);
  color: #cdc8be;
  padding: 90px 0 120px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 60% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 30%, #000 20%, transparent 75%);
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); font-size: 14px; color: #e8e4dc; margin-bottom: 28px;
}
.hero-pill b { background: var(--accent); color: #2a1b00; font-size: 12px; padding: 4px 10px; border-radius: 999px; font-weight: 800; }
.hero h1 { color: #fff; font-size: clamp(40px, 5.6vw, 70px); line-height: 1.04; letter-spacing: -.035em; margin-bottom: 24px; }
.hero h1 .serif { color: var(--accent); font-size: 1.08em; }
.hero-lead { font-size: 19px; line-height: 1.6; max-width: 560px; color: #b8b2a6; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.hero-proof { display: flex; align-items: center; gap: 18px; }
.avatars { display: flex; }
.avatars span {
  width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--ink); margin-left: -12px;
  display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff;
}
.avatars span:first-child { margin-left: 0; }
.hero-proof-text { font-size: 14.5px; line-height: 1.45; }
.hero-proof-text b { color: #fff; display: flex; align-items: center; gap: 6px; }
.stars { display: inline-flex; gap: 2px; color: var(--accent); }
.stars svg { width: 15px; height: 15px; }

/* Hero visual: enquiry card with floating badges */
.hero-visual { position: relative; }
.hero-card {
  position: relative; z-index: 2;
  background: #fff; color: var(--body); border-radius: var(--radius-lg); padding: 32px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.55);
}
.hero-card h3 { font-size: 23px; margin-bottom: 6px; }
.hero-card > p { color: var(--muted); font-size: 14.5px; margin-bottom: 22px; }
.float-badge {
  position: absolute; z-index: 3; background: #fff; border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); line-height: 1.3;
  animation: floaty 6s ease-in-out infinite;
}
.float-badge b { display: block; color: var(--ink); font-size: 15px; }
.float-badge .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.float-badge .ico svg { width: 20px; height: 20px; }
.fb-1 { top: -30px; left: -54px; }
.fb-2 { bottom: -34px; right: -40px; animation-delay: -3s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-glow { position: absolute; inset: 10% -10% -10% 10%; background: var(--accent); filter: blur(100px); opacity: .18; z-index: 1; border-radius: 50%; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { position: relative; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-3); margin-bottom: 6px; }
.input, .select, .textarea {
  width: 100%; height: 50px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff;
  font-size: 15px; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.textarea { height: auto; min-height: 120px; padding: 14px 16px; resize: vertical; }
.select { appearance: none; -webkit-appearance: none; padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23667089' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
.input::placeholder, .textarea::placeholder { color: #a29d93; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-50); }
.field.invalid .input, .field.invalid .select { border-color: var(--rose); box-shadow: 0 0 0 4px #f8ebe5; }
.form-note { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; margin: 4px 0 0; }
.form-note svg { width: 14px; height: 14px; color: var(--success); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line);
  font-weight: 600; font-size: 14px; color: var(--ink-3); cursor: pointer; margin: 0; transition: .2s;
}
.seg label svg { width: 16px; height: 16px; }
.seg input:checked + label { border-color: var(--primary); background: var(--primary-50); color: var(--primary-700); }

/* ==========================================================================
   Stats + logos
   ========================================================================== */
.stats-wrap { position: relative; z-index: 5; margin-top: -64px; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.stat { padding: 30px 28px; display: flex; align-items: center; gap: 18px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat .ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; flex: none; }
.stat .ico svg { width: 26px; height: 26px; }
.stat b { display: block; font-size: 32px; font-weight: 800; color: var(--ink); line-height: 1; letter-spacing: -.03em; }
.stat span { font-size: 14px; color: var(--muted); font-weight: 500; }

.logos { padding: 64px 0 20px; }
.logos-title { text-align: center; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 26px; letter-spacing: .02em; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 64px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-size: 24px; font-weight: 800; color: #aca69b; letter-spacing: -.02em; white-space: nowrap; transition: color .2s;
}
.marquee-track span:hover { color: var(--ink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   About split (home)
   ========================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-visual { position: relative; }
.about-panel {
  position: relative; border-radius: var(--radius-xl); background: radial-gradient(420px 300px at 100% 0%, rgba(227,165,43,.32), transparent 65%), linear-gradient(160deg, #34312b 0%, #161512 100%);
  padding: 40px; color: #fff; overflow: hidden; min-height: 460px; display: flex; align-items: center;
}
.about-panel .code-win { width: 100%; }
.about-panel::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1px); background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000, transparent 80%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 80%);
}
.code-win { position: relative; z-index: 1; background: rgba(27,26,23,.86); border-radius: 18px; padding: 18px 20px 22px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 14px; line-height: 1.85; }
.code-win .dots { display: flex; gap: 7px; margin-bottom: 14px; }
.code-win .dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.code-win .dots i:nth-child(2) { background: #febc2e; }
.code-win .dots i:nth-child(3) { background: #28c840; }
.code-win .k { color: #d9a05b; } .code-win .f { color: #e6c07b; } .code-win .s { color: #c3e88d; } .code-win .c { color: #7d776c; } .code-win .n { color: #f78c6c; }
.code-win code { color: #ebe5d6; white-space: pre; display: block; overflow-x: auto; }
.about-chip {
  position: absolute; z-index: 2; background: #fff; color: var(--ink); border-radius: 18px; padding: 16px 20px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 14px;
}
.about-chip b { font-size: 26px; line-height: 1; display: block; letter-spacing: -.03em; }
.about-chip small { color: var(--muted); font-size: 13px; }
.about-chip.c1 { bottom: -28px; left: -28px; }
.about-chip.c2 { top: 36px; right: -30px; }
.check-list { display: grid; gap: 14px; margin: 28px 0 36px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; color: var(--body); }
.check-list li svg { width: 24px; height: 24px; flex: none; color: var(--success); margin-top: 1px; }
.check-list li b { color: var(--ink); }
.lead { font-size: 18px; color: var(--muted); }

/* ==========================================================================
   Course cards
   ========================================================================== */
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.course-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px;
  display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.course-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 28px; margin-bottom: 12px; }
.course-card-top .cat { margin-bottom: 0; }
.course-card h3 { font-size: 20px; margin-bottom: 8px; }
/* The title link stretches over the whole card, so a click anywhere on it opens the course */
.course-card { cursor: pointer; }
.course-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.course-card p { font-size: 15px; color: var(--muted); margin-bottom: 20px; flex: 1; }
.course-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 13.5px; color: var(--muted); font-weight: 600; padding: 18px 46px 0 0; border-top: 1px dashed var(--line); }
.course-meta span { display: inline-flex; align-items: center; gap: 6px; }
.course-meta svg { width: 15px; height: 15px; color: var(--primary); }
.course-card .cat { font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.course-card .go {
  position: absolute; z-index: 2; right: 22px; bottom: 22px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-soft); color: var(--ink); transition: .3s var(--ease);
}
.course-card .go svg { width: 16px; height: 16px; }
.course-card:hover .go { background: var(--ink); color: #fff; transform: rotate(45deg); } /* turns to point right: "open" */

/* Tabs (filter) */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab {
  height: 42px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: 14.5px; color: var(--ink-3);
  background: #fff; border: 1px solid var(--line); transition: .2s;
}
.tab:hover { border-color: var(--ink-3); }
.tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Program cards */
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.program-card {
  position: relative; border-radius: var(--radius-lg); padding: 30px; overflow: hidden; color: #d2cdc3;
  background: linear-gradient(165deg, #2a2824 0%, #1b1a17 100%); border: 1px solid rgba(255,255,255,.08);
  display: flex; flex-direction: column; min-height: 340px; transition: transform .3s var(--ease);
}
.program-card:hover { transform: translateY(-6px); }
.program-card::before {
  content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; right: -100px; top: -110px;
  background: var(--glow, var(--primary)); filter: blur(70px); opacity: .45; transition: opacity .3s;
}
.program-card:hover::before { opacity: .7; }
.program-card > * { position: relative; }
.program-card .tag { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.program-card h3 { color: #fff; font-size: 24px; margin-bottom: 12px; }
.program-card p { font-size: 15px; color: #aaa498; }
.program-card .incl { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 24px; }
.program-card .incl span { font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 8px; background: rgba(255,255,255,.07); color: #e5e0d6; border: 1px solid rgba(255,255,255,.08); }
.program-card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); font-size: 14px; }
.program-card .foot b { color: #fff; }
.program-card .link-arrow { color: #fff; }

/* ==========================================================================
   Features / why
   ========================================================================== */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  padding: 32px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature .ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px; }
.feature .ico svg { width: 26px; height: 26px; }
.feature h3 { font-size: 20px; margin-bottom: 10px; }
.feature p { font-size: 15px; color: var(--muted); margin: 0; }
.ico-blue { background: #f1eee8; color: var(--ink); }
.ico-amber { background: var(--accent-50); color: var(--accent-600); }
.ico-green { background: var(--success-50); color: var(--success); }
.ico-rose { background: #f8ebe5; color: var(--rose); }
.ico-violet { background: #f5ece5; color: var(--violet); }
.ico-teal { background: #ecf2ec; color: var(--teal); }

/* Journey steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 34px; left: 12%; right: 12%; height: 2px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.22) 0 8px, transparent 8px 16px);
}
.step { position: relative; text-align: center; padding: 0 8px; }
.step-num {
  width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 24px; display: grid; place-items: center; position: relative;
  background: var(--ink-2); border: 1px solid rgba(255,255,255,.14); color: #fff; font-weight: 800; font-size: 20px;
}
.step-num svg { width: 28px; height: 28px; color: var(--accent); }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { font-size: 15px; color: #a8a298; margin: 0; }

/* ==========================================================================
   Placements / testimonials
   ========================================================================== */
.place-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.place-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; text-align: center;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.place-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.place-avatar {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center;
  font-size: 24px; font-weight: 800; color: #fff; position: relative;
}
.place-avatar::after {
  content: ""; position: absolute; right: 0; bottom: 2px; width: 22px; height: 22px; border-radius: 50%; border: 3px solid #fff;
  background: var(--success) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat;
}
.place-card h4 { font-size: 17px; margin-bottom: 2px; }
.place-card .course { font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }
.place-card .company {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--bg-soft);
  font-size: 13.5px; font-weight: 700; color: var(--ink);
}
.place-card .company svg { width: 14px; height: 14px; color: var(--primary); }

.testi-wrap { position: relative; }
.testi-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 4px 8px; margin: -4px; }
.testi-track::-webkit-scrollbar { display: none; }
.testi {
  flex: 0 0 calc((100% - 48px) / 3); scroll-snap-align: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; display: flex; flex-direction: column;
}
.testi .quote-ico { width: 40px; height: 40px; color: var(--primary-100); margin-bottom: 12px; }
.testi blockquote { margin: 0 0 24px; font-size: 16px; line-height: 1.7; color: var(--ink-3); flex: 1; }
.testi-person { display: flex; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.testi-person .av { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; flex: none; }
.testi-person b { display: block; color: var(--ink); font-size: 15.5px; line-height: 1.3; }
.testi-person small { color: var(--muted); font-size: 13px; }
.slider-ctrl { display: flex; gap: 10px; }
.slider-btn {
  width: 50px; height: 50px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; background: #fff; color: var(--ink); transition: .2s;
}
.slider-btn svg { width: 20px; height: 20px; }
.slider-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Rating summary */
.rating-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.rating-pill { display: flex; align-items: center; gap: 12px; padding: 12px 20px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--muted); }
.rating-pill b { color: var(--ink); font-size: 18px; }

/* ==========================================================================
   Branches
   ========================================================================== */
.branch-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.branch {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.branch:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.branch .pin { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); margin-bottom: 18px; }
.branch .pin svg { width: 22px; height: 22px; }
.branch h3 { font-size: 19px; margin-bottom: 8px; }
.branch address { font-style: normal; font-size: 14.5px; color: var(--muted); line-height: 1.6; margin-bottom: 20px; flex: 1; }
.branch .actions { display: flex; gap: 8px; }

/* ==========================================================================
   CTA band + FAQ
   ========================================================================== */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: 64px;
  background: radial-gradient(600px 300px at 100% 0%, rgba(227,165,43,.35), transparent 60%), linear-gradient(135deg, #34312b 0%, #161512 100%);
  color: #ebe5d6; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px); background-size: 24px 24px;
  mask-image: linear-gradient(90deg, transparent, #000); -webkit-mask-image: linear-gradient(90deg, transparent, #000);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(30px, 3.8vw, 46px); margin-bottom: 14px; }
.cta-band p { font-size: 18px; margin: 0; color: #e3dccb; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
.faq-list { display: grid; gap: 12px; }
.faq { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .2s, box-shadow .2s; }
.faq.open { border-color: transparent; box-shadow: var(--shadow); }
.faq button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px; text-align: left; font-weight: 700; font-size: 17px; color: var(--ink); }
.faq button .pm { width: 32px; height: 32px; border-radius: 50%; background: var(--bg-soft); display: grid; place-items: center; flex: none; transition: .3s var(--ease); }
.faq button .pm svg { width: 16px; height: 16px; }
.faq.open button .pm { background: var(--ink); color: #fff; transform: rotate(45deg); }
.faq-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.faq-body > div { overflow: hidden; }
.faq-body p { padding: 0 24px 22px; margin: 0; color: var(--muted); font-size: 15.5px; }
.faq.open .faq-body { grid-template-rows: 1fr; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--ink); color: #a8a298; padding: 88px 0 0; font-size: 15px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 56px; }
.footer p.about { margin: 22px 0 26px; max-width: 340px; line-height: 1.7; }
.footer h5 { color: #fff; font-size: 15px; letter-spacing: .02em; margin-bottom: 20px; font-weight: 700; }
.footer-links { display: grid; gap: 11px; }
.footer-links a { transition: color .2s, padding .2s; }
.footer-links a:hover { color: #fff; padding-left: 4px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); color: #e8e4dc; transition: .2s; }
.socials a:hover { background: var(--accent); border-color: var(--accent); color: #2a1b00; transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; }
.footer-contact { display: grid; gap: 16px; }
.footer-contact a, .footer-contact div { display: flex; gap: 12px; align-items: flex-start; transition: color .2s; }
.footer-contact a:hover { color: #fff; }
.footer-contact svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--accent); }
.footer-news { margin-top: 22px; display: flex; gap: 8px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); padding: 6px; border-radius: 999px; }
.footer-news input { flex: 1; min-width: 0; background: none; border: 0; padding: 0 14px; color: #fff; font-size: 14.5px; }
.footer-news input:focus { outline: none; }
.footer-news input::placeholder { color: #8a847a; }
.footer-branches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 36px 0; border-top: 1px solid rgba(255,255,255,.08); }
.footer-branches b { display: block; color: #fff; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }
.footer-branches address { font-style: normal; font-size: 13.5px; line-height: 1.6; color: #918b80; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 26px 0; display: flex; justify-content: space-between; gap: 20px; font-size: 14px; flex-wrap: wrap; }
.footer-bottom nav { display: flex; gap: 22px; }
.footer-bottom a:hover { color: #fff; }

/* Floating actions */
.fab-wa {
  position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -8px rgba(37,211,102,.6); transition: transform .25s var(--ease);
}
.fab-wa svg { width: 30px; height: 30px; }
.fab-wa:hover { transform: scale(1.08); }
.fab-wa::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; animation: ping 2.2s cubic-bezier(0,0,.2,1) infinite; z-index: -1; }
@keyframes ping { 75%, 100% { transform: scale(1.7); opacity: 0; } }
.fab-wa .tip {
  position: absolute; right: 74px; white-space: nowrap; background: #fff; color: var(--ink); font-weight: 700; font-size: 14px;
  padding: 10px 14px; border-radius: 12px; box-shadow: var(--shadow); opacity: 0; transform: translateX(8px); transition: .25s; pointer-events: none;
}
.fab-wa:hover .tip { opacity: 1; transform: none; }
.to-top {
  position: fixed; right: 32px; bottom: 100px; z-index: 89; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--ink);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 18px; height: 18px; }

/* Mobile sticky CTA */
.mobile-cta { display: none; }

/* ==========================================================================
   Modal + toast
   ========================================================================== */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; visibility: hidden; opacity: 0; transition: .25s; }
.modal.open { visibility: visible; opacity: 1; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(27,26,23,.6); backdrop-filter: blur(4px); }
.modal-dialog {
  position: relative; width: min(920px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: #fff; border-radius: var(--radius-xl);
  display: grid; grid-template-columns: .9fr 1.1fr; transform: translateY(16px) scale(.98); transition: transform .3s var(--ease); box-shadow: var(--shadow-lg);
}
.modal.open .modal-dialog { transform: none; }
.modal-aside {
  background: radial-gradient(400px 260px at 100% 0%, rgba(227,165,43,.35), transparent 60%), linear-gradient(160deg, #34312b, #161512);
  color: #ebe5d6; padding: 40px; display: flex; flex-direction: column;
}
.modal-aside h3 { color: #fff; font-size: 28px; margin-bottom: 12px; }
.modal-aside ul { display: grid; gap: 14px; margin: 24px 0; }
.modal-aside li { display: flex; gap: 10px; font-size: 15px; }
.modal-aside li svg { width: 20px; height: 20px; flex: none; color: var(--accent); }
.modal-aside .contact { margin-top: auto; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.2); font-size: 14px; }
.modal-aside .contact a { display: block; color: #fff; font-weight: 800; font-size: 20px; margin-top: 4px; }
.modal-body { padding: 40px; }
.modal-body h3 { font-size: 24px; margin-bottom: 6px; }
.modal-body > p { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-soft); color: var(--ink); z-index: 2; }
.modal-close svg { width: 18px; height: 18px; }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px); z-index: 400; background: var(--ink); color: #fff;
  padding: 14px 20px; border-radius: 14px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-lg); font-weight: 600; font-size: 15px;
  opacity: 0; visibility: hidden; transition: .3s var(--ease); max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast svg { width: 20px; height: 20px; color: var(--success); flex: none; }

/* ==========================================================================
   Inner pages
   ========================================================================== */
.page-hero {
  position: relative; overflow: hidden; color: #bcb6aa; padding: 80px 0 90px;
  background: radial-gradient(900px 400px at 90% -20%, rgba(227,165,43,.20), transparent 60%), radial-gradient(600px 300px at 0% 120%, rgba(168,116,26,.14), transparent 60%), var(--ink);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at 70% 20%, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 20%, #000 10%, transparent 70%);
}
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(36px, 5vw, 60px); letter-spacing: -.03em; margin-bottom: 18px; max-width: 820px; }
.page-hero h1 .serif { color: var(--accent); }
.page-hero p.lead { color: #b8b2a6; max-width: 640px; font-size: 19px; margin: 0; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 22px; color: #968f84; flex-wrap: wrap; }
.crumbs a:hover { color: #fff; }
.crumbs svg { width: 14px; height: 14px; }
.crumbs span:last-child { color: #e8e4dc; }

/* Courses page */
.catalog-bar { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 36px; flex-wrap: wrap; }
.search { position: relative; flex: 0 1 420px; }
.catalog-bar .catalog-count { margin: 0; }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.search .input { padding-left: 46px; border-radius: 999px; }
.catalog-count { font-size: 14.5px; color: var(--muted); margin-bottom: 20px; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius-lg); }

/* Course detail */
.course-hero { padding: 72px 0 80px; }
.course-hero .container { display: grid; grid-template-columns: 1fr 380px; gap: 56px; }
.course-hero .meta-row { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 26px 0 32px; font-size: 15px; color: #cdc8be; }
.course-hero .meta-row span { display: inline-flex; align-items: center; gap: 8px; }
.course-hero .meta-row svg { width: 18px; height: 18px; color: var(--accent); }
.course-layout { display: grid; grid-template-columns: 1fr 380px; gap: 56px; align-items: start; }
.course-side { position: sticky; top: calc(var(--header-h) + 84px); margin-top: -300px; z-index: 25; }
.side-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden; }
.side-card-head { padding: 26px 26px 0; }
.side-card-head h4 { font-size: 19px; margin-bottom: 4px; }
.side-card-head p { font-size: 14px; color: var(--muted); margin: 0 0 18px; }
.side-list { padding: 4px 26px; }
.side-list li { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line-2); font-size: 14.5px; }
.side-list li span { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); }
.side-list li span svg { width: 18px; height: 18px; color: var(--primary); }
.side-list li b { color: var(--ink); font-weight: 700; text-align: right; }
.side-card-body { padding: 22px 26px 26px; display: grid; gap: 10px; }
.side-help { margin-top: 16px; padding: 20px 22px; border-radius: var(--radius); background: var(--bg-soft); display: flex; gap: 14px; align-items: center; }
.side-help .ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--primary); flex: none; box-shadow: var(--shadow-xs); }
.side-help .ico svg { width: 20px; height: 20px; }
.side-help small { display: block; color: var(--muted); font-size: 13px; }
.side-help a { color: var(--ink); font-weight: 800; font-size: 17px; }

.subnav { position: sticky; top: var(--header-h); z-index: 20; background: #fff; border-bottom: 1px solid var(--line); margin-bottom: 48px; }
.subnav .inner { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.subnav .inner::-webkit-scrollbar { display: none; }
.subnav a { padding: 18px 14px; font-weight: 700; font-size: 15px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; transition: .2s; }
.subnav a:hover { color: var(--ink); }
.subnav a.active { color: var(--primary); border-bottom-color: var(--primary); }
.content-block { margin-bottom: 64px; scroll-margin-top: calc(var(--header-h) + 80px); }
.content-block h2 { font-size: 30px; margin-bottom: 18px; }
.content-block > p { font-size: 16.5px; }
.learn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-soft); }
.learn-grid li { display: flex; gap: 12px; font-size: 15.5px; color: var(--ink-3); }
.learn-grid svg { width: 22px; height: 22px; color: var(--success); flex: none; margin-top: 1px; }
.module-list { display: grid; gap: 12px; }
.module { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.module > button { width: 100%; display: flex; align-items: center; gap: 16px; padding: 20px 22px; text-align: left; }
.module .num { width: 40px; height: 40px; border-radius: 12px; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; }
.module .t { flex: 1; }
.module .t b { display: block; color: var(--ink); font-size: 16.5px; }
.module .t small { color: var(--muted); font-size: 13.5px; }
.module .chev { width: 20px; height: 20px; color: var(--muted); transition: transform .3s var(--ease); }
.module.open .chev { transform: rotate(180deg); }
.module-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.module-body > div { overflow: hidden; }
.module-body ul { padding: 0 22px 20px 78px; display: grid; gap: 8px; }
.module-body li { position: relative; font-size: 15px; color: var(--body); }
.module-body li::before { content: ""; position: absolute; left: -18px; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--primary-100); border: 1.5px solid var(--primary); }
.module.open .module-body { grid-template-rows: 1fr; }
/* Pre-built course content shown until main.js renders the full page */
.seo-fallback { padding: 48px 24px 64px; }
.seo-fallback ol { padding-left: 20px; list-style: decimal; }
.seo-fallback h3 { font-size: 17px; margin: 16px 0 4px; }

/* "Who can join" note on course pages */
.prereq { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; margin-top: 24px; border-radius: var(--radius); background: var(--accent-50); border: 1px solid #f1dfb5; }
.prereq svg { width: 24px; height: 24px; flex: none; color: var(--accent-600); margin-top: 2px; }
.prereq b { display: block; color: var(--ink); font-size: 15.5px; margin-bottom: 2px; }
.prereq p { margin: 0; font-size: 15px; color: var(--body); }

/* Language tracks (e.g. Data Structures in C / C++ / Java / Python) */
.tracks { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tracks > div { min-width: 0; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.tracks b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 12px; }
.tracks ul { display: grid; gap: 8px; }
.tracks li { display: flex; gap: 10px; font-size: 14.5px; color: var(--body); }
.tracks li svg { width: 18px; height: 18px; flex: none; color: var(--success); margin-top: 3px; }
@media (max-width: 720px) { .tracks { grid-template-columns: 1fr; } }
.tools { display: flex; flex-wrap: wrap; gap: 10px; }
.tools span { padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line); font-weight: 700; font-size: 14.5px; color: var(--ink-3); background: #fff; }
.feature-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-mini div { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.feature-mini svg { width: 26px; height: 26px; color: var(--primary); margin-bottom: 12px; }
.feature-mini b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.feature-mini small { color: var(--muted); font-size: 14px; line-height: 1.5; display: block; }
.cert-card {
  display: grid; grid-template-columns: 1fr 260px; gap: 32px; align-items: center; padding: 32px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--accent-50), #fff 60%); border: 1px solid #fde7b8;
}
.cert-mock {
  aspect-ratio: 1.4; border-radius: 12px; background: #fff; border: 1px solid #f1d9a6; box-shadow: var(--shadow); padding: 18px; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px;
}
.cert-mock::before { content: ""; position: absolute; inset: 8px; border: 1.5px solid #f3d38b; border-radius: 8px; }
.cert-mock small { font-size: 12px; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; }
.cert-mock b { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 22px; color: var(--ink); }
.cert-mock i { font-style: normal; font-size: 12px; color: var(--muted); }
.cert-mock .seal { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); margin-top: 6px; box-shadow: 0 0 0 4px var(--accent-50); }

/* About page */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mv-card { padding: 40px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; }
.mv-card .ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px; }
.mv-card .ico svg { width: 26px; height: 26px; }
.mv-card h3 { font-size: 24px; }
.mv-card p { color: var(--muted); margin: 0; }
.big-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.big-stat { text-align: center; padding: 20px; }
.big-stat b { display: block; font-size: clamp(40px, 5vw, 60px); color: #fff; font-weight: 800; letter-spacing: -.04em; line-height: 1; margin-bottom: 10px; }
.big-stat span { color: #a8a298; font-size: 15px; }
.trainer-companies { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.trainer-companies span { padding: 14px 24px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-weight: 800; color: var(--ink-3); font-size: 17px; letter-spacing: -.01em; }

/* Corporate page */
.logo-row { display: flex; flex-wrap: wrap; gap: 14px; }
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: p; }
.process-item { position: relative; padding: 30px 26px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.process-item::before { counter-increment: p; content: "0" counter(p); display: block; font-size: 44px; font-weight: 800; letter-spacing: -.04em; color: var(--primary-100); line-height: 1; margin-bottom: 18px; }
.process-item h3 { font-size: 19px; }
.process-item p { font-size: 15px; color: var(--muted); margin: 0; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: start; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 44px; box-shadow: var(--shadow); }
.contact-card h2 { font-size: 30px; }
.contact-side { display: grid; gap: 16px; }
.contact-tile { display: flex; gap: 18px; align-items: center; padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; transition: .25s var(--ease); }
.contact-tile:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.contact-tile .ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; flex: none; }
.contact-tile .ico svg { width: 24px; height: 24px; }
.contact-tile small { display: block; color: var(--muted); font-size: 13.5px; }
.contact-tile b { color: var(--ink); font-size: 18px; }
.hours { padding: 24px; border-radius: var(--radius-lg); background: var(--ink); color: #bcb6aa; }
.hours h4 { color: #fff; font-size: 17px; margin-bottom: 12px; }
.hours li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed rgba(255,255,255,.12); font-size: 14.5px; }
.hours li:last-child { border: 0; }
.hours li b { color: #fff; font-weight: 600; }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); height: 100%; min-height: 300px; background: var(--bg-soft); }
.map-frame iframe { width: 100%; height: 100%; min-height: 300px; border: 0; display: block; }
.branch-tabs { display: grid; grid-template-columns: 360px 1fr; gap: 24px; }
.branch-list { display: grid; gap: 12px; }
.branch-btn { text-align: left; padding: 20px 22px; border-radius: var(--radius); border: 1.5px solid var(--line); background: #fff; transition: .2s; }
.branch-btn b { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 16.5px; margin-bottom: 4px; }
.branch-btn b svg { width: 18px; height: 18px; flex: none; color: var(--primary); }
.branch-btn small { color: var(--muted); font-size: 14px; line-height: 1.5; display: block; }
.branch-btn.active { border-color: var(--primary); background: var(--primary-50); }
.branch-btn.active b { color: var(--primary-700); }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound .code { font-size: clamp(100px, 18vw, 200px); font-weight: 800; letter-spacing: -.06em; line-height: 1; background: linear-gradient(135deg, var(--accent), var(--primary-700)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ==========================================================================
   Reveal animation
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .05s; } .reveal-d2 { transition-delay: .1s; } .reveal-d3 { transition-delay: .15s; } .reveal-d4 { transition-delay: .2s; }
/* Phones and tablets: content is always fully visible, no fade-in */
@media (max-width: 1024px), (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Readability
   ========================================================================== */
/* Justified body copy for a clean, even text edge */
.hero-lead, .lead, .section-head p, .course-card p, .program-card p, .feature p, .step p,
.testi blockquote, .faq-body p, .content-block > p, .mv-card p, .process-item p, .footer p.about,
.cta-band p, .modal-aside > p, .modal-body > p, .split p, .cert-card p, .hero-card > p,
.branch address, .feature-mini small, .contact-card > p, .place-card .course {
  text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto;
}
/* Centred blocks keep their last line centred */
.section-head.center p, .step p { text-align-last: center; }
.place-card .course { text-align: center; }

/* Grid children may shrink below their content width, so nothing is pushed off-screen */
.split > *, .hero .container > *, .faq-wrap > *, .contact-grid > *, .course-layout > *,
.course-hero .container > *, .footer-top > *, .footer-branches > *, .stats > *, .big-stats > *,
.course-grid > *, .program-grid > *, .feature-grid > *, .place-grid > *, .branch-grid > *,
.values-grid > *, .mv-grid > *, .process > *, .steps > *, .branch-tabs > *, .form-row > *,
.learn-grid > *, .feature-mini > *, .cert-card > *, .contact-side > *, .contact-tile > span:last-child { min-width: 0; }
.contact-tile b { overflow-wrap: anywhere; }
.code-win code { max-width: 100%; }
h1, h2, h3, h4 { overflow-wrap: break-word; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .nav, .header-cta .btn-outline { display: none; }
  .menu-toggle { display: grid; }
  .header-cta { margin-left: auto; }
  .fb-1 { left: -20px; } .fb-2 { right: -16px; }
}
@media (max-width: 1024px) {
  .section { padding: 88px 0; }
  .hero .container, .split, .faq-wrap, .contact-grid, .course-hero .container, .course-layout { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 64px 0 120px; }
  .hero-visual { max-width: 560px; }
  .course-grid, .program-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .place-grid, .branch-grid, .values-grid, .process { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .steps::before { display: none; }
  .testi { flex-basis: calc((100% - 24px) / 2); }
  .cta-band { grid-template-columns: 1fr; padding: 48px; }
  .cta-band .actions { justify-content: flex-start; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-branches { grid-template-columns: repeat(2, 1fr); }
  .course-side { position: static; margin-top: 0; order: -1; }
  .course-hero .side-placeholder { display: none; }
  .big-stats { grid-template-columns: repeat(2, 1fr); }
  .about-visual { max-width: 560px; }
  .about-chip.c1 { left: 16px; } .about-chip.c2 { right: 16px; }
  .branch-tabs { grid-template-columns: 1fr; }
  .modal-dialog { grid-template-columns: 1fr; }
  .modal-aside { display: none; }
}
@media (max-width: 720px) {
  :root { --header-h: 66px; }
  body { font-size: 15.5px; }
  .container { padding: 0 16px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .section-head p { font-size: 16.5px; }
  .section-head-row { flex-direction: column; align-items: flex-start; gap: 20px; }
  .section-head-row .btn { white-space: normal; height: auto; min-height: var(--h); padding: 10px 20px; text-align: center; max-width: 100%; }
  .header-cta .btn { display: none; }
  .brand-logo { height: 40px; }
  .hero { padding: 48px 0 110px; }
  .hero-lead { font-size: 17px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-card { padding: 24px; }
  .float-badge { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 20px 16px; flex-direction: column; align-items: flex-start; gap: 12px; }
  .stat b { font-size: 26px; }
  .stat .ico { width: 44px; height: 44px; border-radius: 12px; }
  .stat .ico svg { width: 22px; height: 22px; }
  .course-grid, .program-grid, .feature-grid, .branch-grid, .values-grid, .mv-grid, .process, .feature-mini { grid-template-columns: 1fr; }
  .place-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .place-card { padding: 18px 12px; }
  .place-avatar { width: 60px; height: 60px; font-size: 20px; }
  .place-card .company { font-size: 12.5px; padding: 6px 10px; }
  .steps { grid-template-columns: 1fr; }
  .testi { flex-basis: 100%; padding: 24px; }
  .about-panel { padding: 24px; min-height: 0; }
  .about-visual { display: grid; gap: 12px; }
  .about-chip.c1, .about-chip.c2 { position: relative; inset: auto; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
  .code-win { font-size: 12.5px; }
  .code-win code { white-space: pre-wrap; word-break: break-word; }
  .cta-band { padding: 36px 24px; border-radius: var(--radius-lg); }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-branches { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .learn-grid { grid-template-columns: 1fr; padding: 22px; }
  .cert-card { grid-template-columns: 1fr; padding: 24px; }
  .contact-card { padding: 26px; }
  .module-body ul { padding-left: 64px; }
  .mega { display: none; }
  .fab-wa { bottom: 84px; right: 16px; width: 54px; height: 54px; }
  .to-top { display: none; }
  .mobile-cta {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.95); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  }
  .mobile-cta .btn { --h: 46px; padding: 0 12px; }
  body { padding-bottom: 68px; }
  .catalog-bar { flex-direction: column; align-items: stretch; }
  .search { flex-basis: auto; }
  .tabs { flex-wrap: wrap; gap: 8px; }
  .tab { height: 38px; padding: 0 14px; font-size: 13.5px; }
  .big-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .big-stat { padding: 12px 4px; }
  .big-stat b { font-size: 38px; }
  .page-hero { padding: 56px 0 64px; }
  .page-hero p.lead { font-size: 17px; }
  .trainer-companies span { padding: 10px 16px; font-size: 15px; }
  .faq button { padding: 18px 18px; font-size: 16px; }
  .faq-body p { padding: 0 18px 18px; }
  /* Course section tabs would run off-screen on phones; the page scrolls naturally instead */
  .subnav { display: none; }
  .content-block { scroll-margin-top: calc(var(--header-h) + 16px); }
  .contact-tile { padding: 18px; gap: 14px; }
  .contact-tile b { font-size: 16px; }
}

/* Small phones (iPhone SE, older Android) */
@media (max-width: 400px) {
  .hero h1 { font-size: 36px; }
  .page-hero h1 { font-size: 32px; }
  .section-head h2, .cta-band h2 { font-size: 28px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-card { padding: 20px; }
  .stat { padding: 16px 12px; }
  .stat b { font-size: 22px; }
  .stat span { font-size: 13px; }
  .footer-news { flex-direction: column; border-radius: 16px; }
  .footer-news input { height: 44px; }
  .branch .actions { flex-direction: column; }
  .branch .actions .btn { width: 100%; }
  .cta-band .actions .btn { width: 100%; }
  .mobile-cta .btn { font-size: 14px; }
}
