/* ==========================================================================
   DCTC – Design system
   Tokens → base → layout → components → pages → responsive
   ========================================================================== */
:root {
    --brand: #1e3a8a;
    --brand-600: #1d4ed8;
    --brand-700: #1e40af;
    --brand-900: #0f1f52;
    --brand-100: #dbe7ff;
    --brand-50: #eff4ff;
    --accent: #f59e0b;
    --accent-600: #d98a06;
    --accent-50: #fff7e6;
    --wa: #128c4a;
    --wa-600: #0e7a3f;
    --ink: #0f172a;
    --ink-2: #334155;
    --muted: #5b6b82;
    --line: #e2e8f0;
    --bg: #f6f8fc;
    --surface: #ffffff;
    --danger: #b91c1c;
    --ok: #15803d;

    --radius: 14px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .06);
    --shadow: 0 8px 24px -8px rgba(15, 31, 82, .18), 0 2px 6px rgba(15, 23, 42, .06);
    --shadow-lg: 0 24px 48px -16px rgba(15, 31, 82, .28);

    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--ink-2);
    background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; }
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

/* Icons: inline by default so they sit on the text baseline; flex parents control their own layout */
.icon { display: inline-block; vertical-align: -.2em; width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 200; }
.skip-link:focus { left: 8px; color: #fff; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 20px; }
.section { padding-block: clamp(48px, 7vw, 88px); }
.section--white { background: var(--surface); }
.section--tint { background: var(--brand-50); }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-600); margin-bottom: 10px; }
.section-foot { margin-top: 32px; text-align: center; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px;
    font: 600 .975rem/1 var(--font); border-radius: 999px; border: 2px solid transparent; cursor: pointer;
    transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, color .15s ease; text-decoration: none; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn .icon { vertical-align: 0; }
.btn-primary { background: var(--brand-600); color: #fff; box-shadow: 0 6px 16px -6px rgba(29, 78, 216, .6); }
.btn-primary:hover { background: var(--brand-700); color: #fff; }
.btn-accent { background: var(--accent); color: #3b2300; box-shadow: 0 6px 16px -6px rgba(245, 158, 11, .7); }
.btn-accent:hover { background: var(--accent-600); color: #2a1900; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-600); color: #fff; }
.btn-wa .icon { width: 1.3em; height: 1.3em; }
.btn-outline { color: var(--brand-600); border-color: var(--brand-100); background: #fff; }
.btn-outline:hover { border-color: var(--brand-600); color: var(--brand-700); }
.btn-ghost-light { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 1.05rem; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .9rem; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .94rem; }

/* ---------- Header ---------- */
/* The top bar is 38px tall and the header sticks 38px above the viewport: scrolling down slides the
   top bar out of view while the main navigation stays pinned; scrolling back to the top reveals it again. */
.site-header { position: sticky; top: -38px; z-index: 100; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.topbar { background: var(--brand-900); color: #cbd5f5; font-size: .82rem; }
.topbar__row { display: flex; justify-content: space-between; align-items: center; height: 38px; gap: 16px; }
.topbar a { color: #fff; font-weight: 500; }
.topbar a:hover { color: var(--accent); }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; line-height: 1; }
.topbar__item .icon { width: 15px; height: 15px; vertical-align: 0; color: var(--accent); }
.topbar__right { display: flex; align-items: center; gap: 22px; }
.nav-row { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand img { border-radius: 0; width: 48px; height: 48px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-size: 1.02rem; font-weight: 700; letter-spacing: -.01em; }
.brand__text small { font-size: .78rem; color: var(--muted); font-weight: 500; }
.brand--light { color: #fff; }
.brand--light small { color: #aab8e6; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav ul { display: flex; gap: 4px; }
.site-nav li a { display: block; padding: 10px 14px; border-radius: 999px; color: var(--ink-2); font-weight: 600; font-size: .95rem; }
.site-nav li a:hover { background: var(--brand-50); color: var(--brand-700); }
.site-nav li a.is-active { background: var(--brand-50); color: var(--brand-700); }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); background: #fff; border-radius: 12px; cursor: pointer; color: var(--ink); align-items: center; justify-content: center; }
.nav-toggle .icon { width: 24px; height: 24px; vertical-align: 0; }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #dbe4ff; background: radial-gradient(1200px 500px at 85% -10%, rgba(245, 158, 11, .22), transparent 60%), linear-gradient(135deg, #0f1f52 0%, #1e3a8a 55%, #1d4ed8 100%); overflow: hidden; padding-block: clamp(44px, 7vw, 84px) clamp(96px, 10vw, 128px); }
.hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent, #000 70%); pointer-events: none; }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); color: #fff; font-size: .85rem; font-weight: 600; margin-bottom: 18px; }
.pill .icon { color: var(--accent); vertical-align: 0; }
.hero h1 { color: #fff; margin-bottom: 16px; }
.hero h1 span { color: var(--accent); }
.hero .lead { font-size: 1.1rem; max-width: 560px; color: #cdd8ff; margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero__points { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .92rem; color: #e6ecff; font-weight: 500; }
.hero__points li { display: inline-flex; align-items: center; gap: 8px; }
.hero__points .icon { color: #6ee7a7; vertical-align: 0; }
.hero__logo { position: relative; display: grid; place-items: center; }
.hero__logo::before { content: ""; position: absolute; width: 88%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, .22), rgba(255, 255, 255, .06) 62%, transparent 70%); border: 1px solid rgba(255, 255, 255, .16); }
.hero__logo::after { content: ""; position: absolute; width: 104%; aspect-ratio: 1; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .18); }
.hero__logo img { position: relative; z-index: 1; width: min(100%, 440px); height: auto; filter: drop-shadow(0 24px 40px rgba(4, 10, 40, .55)); }

.stats-wrap { margin-top: -64px; position: relative; z-index: 2; }
.stats { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); display: grid; grid-template-columns: repeat(4, 1fr); padding: 8px; border: 1px solid var(--line); }
.stat { padding: 20px 16px; text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line); }
.stat strong { display: block; font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--brand-600); font-weight: 800; line-height: 1.1; }
.stat span { font-size: .88rem; color: var(--muted); font-weight: 500; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(135deg, #0f1f52 0%, #1e3a8a 100%); color: #cdd8ff; padding-block: 40px 44px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: rgba(245, 158, 11, .14); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 8px; }
.page-hero p { max-width: 640px; margin: 0; font-size: 1.05rem; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .86rem; margin-bottom: 14px; color: #aab8e6; }
.breadcrumb a { color: #dbe4ff; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb .icon { width: 14px; height: 14px; opacity: .7; vertical-align: 0; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.ico-box { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); margin-bottom: 14px; }
.ico-box .icon { width: 24px; height: 24px; vertical-align: 0; }
.ico-box--accent { background: var(--accent-50); color: var(--accent-600); }
.ico-box--green { background: #e7f7ee; color: var(--ok); }

.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; color: var(--ink-2); transition: transform .18s, box-shadow .18s, border-color .18s; }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-100); color: var(--ink-2); }
.cat-card h3 { margin-bottom: 8px; font-size: 1.12rem; }
.cat-card p { font-size: .94rem; color: var(--muted); flex: 1; }
.cat-card .count { font-size: .85rem; font-weight: 600; color: var(--brand-600); display: inline-flex; align-items: center; gap: 6px; }
.cat-card .count .icon { vertical-align: 0; }

/* Category colours */
.cat-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--brand-50); color: var(--brand-700); }
.cat-badge .icon { width: 14px; height: 14px; vertical-align: 0; }
.cat-accounting { background: #fff4dc; color: #8a5a00; }
.cat-programming { background: #ece9ff; color: #4c3bb0; }
.cat-web { background: #e0f5ff; color: #0b6a94; }
.cat-design { background: #ffe8f0; color: #a3224f; }
.cat-hardware { background: #e7f7ee; color: #17663b; }

/* Course cards */
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.course-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s, border-color .18s; }
.course-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-100); }
.course-card__media { position: relative; display: flex; align-items: flex-end; justify-content: space-between; height: 108px; padding: 14px 16px; color: #fff; overflow: hidden; background: linear-gradient(135deg, #1d4ed8, #38bdf8); }
.media-accounting { background: linear-gradient(135deg, #c2610a, #f5a623); }
.media-programming { background: linear-gradient(135deg, #4c1d95, #8b5cf6); }
.media-web { background: linear-gradient(135deg, #075985, #22d3ee); }
.media-design { background: linear-gradient(135deg, #9d174d, #f472b6); }
.media-hardware { background: linear-gradient(135deg, #14532d, #4ade80); }
.course-card__media .media-bg { position: absolute; right: -14px; top: -18px; opacity: .18; }
.course-card__media .media-bg .icon { width: 130px; height: 130px; stroke-width: 1.5; vertical-align: 0; }
.course-card__media .media-icon { width: 52px; height: 52px; border-radius: 14px; background: rgba(255, 255, 255, .22); border: 1px solid rgba(255, 255, 255, .35); display: grid; place-items: center; position: relative; }
.course-card__media .media-icon .icon { width: 26px; height: 26px; vertical-align: 0; }
.course-card__media .media-dur { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #fff; color: var(--ink); font-size: .8rem; font-weight: 700; box-shadow: 0 4px 10px rgba(0, 0, 0, .15); line-height: 1; }
.course-card__media .media-dur .icon { color: var(--brand-600); width: 14px; height: 14px; vertical-align: 0; }
.course-card__body { display: flex; flex-direction: column; flex: 1; padding: 18px 18px 20px; }
.course-card__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.code { font-size: .75rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.course-card__title { font-size: 1.05rem; margin-bottom: 8px; min-height: 2.5em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.course-card__title a { color: var(--ink); }
.course-card__title a:hover { color: var(--brand-600); }
.level-line { display: flex; align-items: center; gap: 6px; font-size: .86rem; font-weight: 600; color: var(--ink-2); margin-bottom: 12px; }
.level-line .icon { color: var(--brand-600); vertical-align: 0; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; flex: 1; align-content: flex-start; }
.tag-list li { font-size: .78rem; font-weight: 500; padding: 4px 10px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); color: var(--ink-2); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag-list .tag-more { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand-700); font-weight: 600; }
.course-card__cta { margin-top: auto; }

.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 28px 24px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -18px; left: 22px; width: 38px; height: 38px; border-radius: 50%; background: var(--brand-600); color: #fff; font-weight: 800; display: grid; place-items: center; box-shadow: 0 6px 14px -4px rgba(29, 78, 216, .6); }
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }

.offer { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; background: linear-gradient(120deg, #fff7e6, #ffefc7); border: 1px solid #fde1a1; border-radius: 20px; padding: clamp(22px, 4vw, 36px); }
.offer h2 { margin-bottom: 8px; font-size: clamp(1.35rem, 2.6vw, 1.8rem); }
.offer p { margin: 0; color: #6b4b00; max-width: 640px; }
.offer .tag { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #8a5a00; margin-bottom: 8px; }
.offer .tag .icon { vertical-align: 0; }

/* People & quotes */
.quote-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 18px; }
.quote p { margin: 0; color: var(--ink-2); font-size: 1rem; position: relative; }
.quote p::before { content: "“"; font-size: 3rem; line-height: 0; color: var(--accent); vertical-align: -.35em; margin-right: 4px; font-family: Georgia, serif; }
.who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.who img, .avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--brand-100); background: var(--brand-50); }
.who strong { display: block; color: var(--ink); line-height: 1.2; }
.who span { font-size: .85rem; color: var(--muted); }
.avatar { display: grid; place-items: center; font-weight: 700; color: var(--brand-600); position: relative; overflow: hidden; width: 120px; height: 120px; font-size: 2rem; margin-inline: auto; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0; }

.success-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.success { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 16px; text-align: center; }
.success img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; border: 3px solid var(--accent-50); box-shadow: 0 0 0 2px var(--accent); }
.success strong { display: block; color: var(--ink); }
.success span { font-size: .85rem; color: var(--muted); display: block; line-height: 1.35; margin-top: 4px; }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.team { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 20px; }
.team h3 { margin: 14px 0 2px; }
.team span { color: var(--muted); font-size: .92rem; }

.logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; align-items: center; }
.logos figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; height: 84px; display: grid; place-items: center; }
.logos img { max-height: 56px; width: auto; object-fit: contain; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.g-item { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--brand-50); aspect-ratio: 4 / 3; cursor: zoom-in; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.g-item:hover img { transform: scale(1.05); }
.g-item .cap { position: absolute; inset: auto 0 0 0; padding: 28px 14px 12px; color: #fff; font-size: .88rem; font-weight: 500; background: linear-gradient(transparent, rgba(8, 15, 40, .8)); }
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(8, 15, 40, .92); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 82vh; max-width: min(1100px, 100%); border-radius: 12px; object-fit: contain; }
.lightbox__cap { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #dbe4ff; font-size: .95rem; }
.lightbox button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lightbox button .icon { vertical-align: 0; }
.lightbox button:hover { background: rgba(255, 255, 255, .26); }
.lightbox .lb-close { top: 18px; right: 18px; }
.lightbox .lb-prev { left: 18px; top: 50%; transform: translateY(-50%) rotate(180deg); }
.lightbox .lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* Video */
.video-lite { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: 20px; overflow: hidden; background: #000; cursor: pointer; box-shadow: var(--shadow); }
.video-lite img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video-lite .play { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; background: var(--accent); color: #3b2300; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); transition: transform .2s; }
.video-lite:hover .play { transform: scale(1.08); }
.video-lite .play .icon { width: 32px; height: 32px; fill: currentColor; margin-left: 4px; vertical-align: 0; }
.video-lite iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .2s; color: var(--brand-600); vertical-align: 0; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details[open] { border-color: var(--brand-100); box-shadow: var(--shadow-sm); }
.faq .answer { padding: 0 20px 18px; color: var(--muted); }
.faq .answer p { margin: 0; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, #0f1f52, #1d4ed8); border-radius: 24px; padding: clamp(28px, 5vw, 52px); color: #cdd8ff; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(245, 158, 11, .18); }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0; max-width: 560px; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }

/* ---------- Course listing ---------- */
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); margin-top: -30px; position: relative; z-index: 2; }
.filters__row { display: grid; grid-template-columns: 1fr 180px 180px auto; gap: 12px; align-items: center; }
.search-box { position: relative; }
.search-box .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 20px; height: 20px; pointer-events: none; vertical-align: 0; }
input, select, textarea { font: inherit; color: var(--ink); }
.input, .search-box input, .filters select { width: 100%; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font-size: 1rem; transition: border-color .15s, box-shadow .15s; }
.search-box input { padding-left: 44px; }
.input:focus, .search-box input:focus, .filters select:focus, textarea.input:focus { outline: none; border-color: var(--brand-600); box-shadow: 0 0 0 4px rgba(29, 78, 216, .14); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); font: 600 .88rem var(--font); cursor: pointer; transition: all .15s; }
.chip .icon { vertical-align: 0; }
.chip:hover { border-color: var(--brand-600); color: var(--brand-700); }
.chip.is-active { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.chip .n { font-size: .78rem; opacity: .7; font-weight: 500; }
.result-meta { display: flex; justify-content: space-between; align-items: center; margin: 26px 0 16px; color: var(--muted); font-size: .95rem; }
.result-meta strong { color: var(--ink); }
.empty { text-align: center; padding: 56px 20px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty h3 { margin-bottom: 6px; }

/* ---------- Course detail ---------- */
.detail { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.detail-main > section { margin-bottom: 36px; }
.detail-main h2 { font-size: 1.4rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.info-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); color: #fff; font-size: .88rem; font-weight: 600; line-height: 1; }
.info-chip .icon { color: var(--accent); vertical-align: 0; }
.topic-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.topic-list li { display: flex; align-items: flex-start; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-weight: 500; color: var(--ink); font-size: .95rem; }
.topic-list .icon { color: var(--ok); margin-top: 3px; vertical-align: 0; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; }
.check-list .icon { color: var(--ok); margin-top: 4px; vertical-align: 0; }
.aside { position: sticky; top: calc(var(--header-h) + 52px); display: grid; gap: 16px; }
.apply-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); }
.apply-card h3 { font-size: 1.2rem; margin-bottom: 4px; }
.apply-card .sub { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.apply-card .btn { margin-bottom: 10px; }
.facts { border-top: 1px solid var(--line); margin: 8px 0 0; padding-top: 14px; display: grid; gap: 10px; font-size: .92rem; }
.facts div { display: flex; justify-content: space-between; gap: 12px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; }
.note { font-size: .85rem; color: var(--muted); background: var(--brand-50); border-radius: 12px; padding: 12px 14px; }
.note--accent { background: var(--accent-50); color: #6b4b00; }
/* Ads: clean full-width block container matching original working AdSense setup */
.ad-unit { display: block; width: 100%; margin: 24px 0; overflow: hidden; }
.ad-row { margin-block: 16px; }
.ad-row--top { margin-top: 28px; margin-bottom: 0; }
.ad-row--top .ad-unit { margin: 0; }
.detail-main .ad-unit { margin-block: 24px; }

/* ---------- Forms ---------- */
.form-layout { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow); }
.form-card h2 { font-size: 1.4rem; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; color: var(--ink); font-size: .92rem; margin-bottom: 6px; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field .hint { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.field .err { font-size: .84rem; color: var(--danger); margin-top: 6px; display: none; }
.field.has-error .err { display: block; }
.field.has-error .input { border-color: var(--danger); }
textarea.input { padding: 12px 14px; min-height: 110px; resize: vertical; line-height: 1.5; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235b6b82' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.phone-wrap { display: flex; }
.phone-wrap .prefix { display: grid; place-items: center; padding: 0 14px; border: 1.5px solid var(--line); border-right: 0; border-radius: 12px 0 0 12px; background: var(--brand-50); font-weight: 600; color: var(--ink); }
.phone-wrap .input { border-radius: 0 12px 12px 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 16px; border-radius: 12px; margin-bottom: 20px; font-size: .95rem; }
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: var(--danger); }
.alert ul { list-style: disc; padding-left: 20px; }
.form-foot { display: flex; align-items: center; gap: 10px; font-size: .84rem; color: var(--muted); margin: 14px 0 0; }
.form-foot .icon { vertical-align: 0; }
.success-card { text-align: center; max-width: 620px; margin-inline: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(28px, 5vw, 52px); box-shadow: var(--shadow); }
.success-card .tick { width: 72px; height: 72px; border-radius: 50%; background: #e7f7ee; color: var(--ok); display: grid; place-items: center; margin: 0 auto 18px; }
.success-card .tick .icon { width: 36px; height: 36px; stroke-width: 2.6; vertical-align: 0; }
.success-card .actions { display: grid; gap: 10px; margin-top: 22px; }

/* ---------- Contact / about / services ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 28px; }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.info-card h3 { margin-bottom: 6px; }
.info-card p { margin: 0 0 6px; color: var(--ink-2); }
.info-card small { color: var(--muted); display: block; }
.info-lines { display: grid; gap: 12px; margin-bottom: 22px; }
.info-lines li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink-2); }
.info-lines .icon { color: var(--brand-600); margin-top: 4px; width: 20px; height: 20px; vertical-align: 0; }
.map-wrap { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--brand-50); }
.map-wrap iframe { display: block; width: 100%; height: 420px; border: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { border-radius: 20px; box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split p { color: var(--ink-2); }
.service-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.service-card h3 { font-size: 1.2rem; }
.service-card p { color: var(--muted); }

.error-page { text-align: center; padding-block: clamp(64px, 12vw, 140px); }
.error-page .big { font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; color: var(--brand-600); line-height: 1; letter-spacing: -.04em; }
.prose { max-width: 780px; }
.prose h2 { font-size: 1.3rem; margin-top: 1.8em; }
.prose ul { list-style: disc; padding-left: 22px; margin-bottom: 1em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-900); color: #aab8e6; padding-top: 56px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 36px; padding-bottom: 40px; }
.site-footer h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: #cdd8ff; }
.site-footer a:hover { color: #fff; }
.footer-col li { padding: 4px 0; }
.footer-about p { margin: 16px 0; max-width: 340px; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.contact-list .icon { margin-top: 5px; color: var(--accent); vertical-align: 0; }
.social { display: flex; gap: 10px; }
.social a { width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; }
.social a .icon { width: 20px; height: 20px; vertical-align: 0; }
.social a:hover { background: var(--accent); color: #3b2300; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-block: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .86rem; }

/* Floating actions */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: inline-flex; align-items: center; gap: 10px; background: var(--wa); color: #fff; padding: 0 22px 0 16px; min-height: 54px; border-radius: 999px; font-weight: 600; box-shadow: 0 10px 24px -6px rgba(18, 140, 74, .6); }
.wa-float:hover { background: var(--wa-600); color: #fff; transform: translateY(-2px); }
.wa-float .icon { width: 28px; height: 28px; vertical-align: 0; }
.mobile-bar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .course-grid, .cat-grid, .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4, .success-grid { grid-template-columns: repeat(2, 1fr); }
    .logos { grid-template-columns: repeat(3, 1fr); }
    .detail, .form-layout { grid-template-columns: 1fr; }
    .aside { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .filters__row { grid-template-columns: 1fr 1fr; }
    .filters__row .search-box { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
    :root { --header-h: 64px; }
    .topbar { display: none; }
    .site-header { top: 0; }
    .hero__logo img { width: min(78%, 300px); }
    .nav-toggle { display: inline-flex; }
    .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 20px 20px; display: none; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
    .site-nav.is-open { display: flex; }
    .site-nav ul { flex-direction: column; gap: 2px; }
    .site-nav li a { padding: 14px 12px; border-radius: 12px; font-size: 1.02rem; }
    .nav-cta { width: 100%; min-height: 50px; }
    .hero__grid { grid-template-columns: 1fr; gap: 32px; }
    .hero__badge { left: 12px; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(3)::before { display: none; }
    .steps, .team-grid { grid-template-columns: 1fr; gap: 28px; }
    .quote-grid, .split, .contact-grid { grid-template-columns: 1fr; }
    .split { gap: 24px; }
    .offer, .cta-band { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .topic-list { grid-template-columns: 1fr; }
    .mobile-bar { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(15, 23, 42, .1); padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); gap: 8px; }
    .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-radius: 12px; font-weight: 600; font-size: .92rem; color: #fff; }
    .mobile-bar .icon { width: 20px; height: 20px; vertical-align: 0; }
    .mb-call { background: var(--brand-600); }
    .mb-wa { background: var(--wa); }
    .mb-apply { background: var(--accent); color: #3b2300 !important; }
    .wa-float { display: none; }
    body { padding-bottom: 68px; }
}
@media (max-width: 600px) {
    .container { padding-inline: 16px; }
    .course-grid, .cat-grid, .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .success-grid { grid-template-columns: repeat(2, 1fr); }
    .field-row { grid-template-columns: 1fr; gap: 0; }
    .logos { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .filters__row { grid-template-columns: 1fr; }
    .hero__actions .btn { flex: 1 1 100%; }
    .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -18px; padding: 2px 18px 6px; scrollbar-width: none; }
    .chips::-webkit-scrollbar { display: none; }
    .chip { flex: none; }
    .hero__badge { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
    .site-header, .site-footer, .mobile-bar, .wa-float, .aside { display: none !important; }
    body { background: #fff; }
}
