/* ==========================================================================
   TAIBA HIGHER TRAINING INSTITUTE — Design System v1.0
   Tokens and components transcribed directly from "Taiba Design System.dc.html"
   Orange leads · Yellow = scarcity only · Radius 0 · No page transitions
   ========================================================================== */

/* ---------- 1. TOKENS ---------- */
:root {
    /* Brand */
    --orange: #FE5000;
    --orange-tint: rgba(254, 80, 0, 0.10);
    --orange-halo: rgba(254, 80, 0, 0.25);
    --yellow: #FFD700;          /* scarcity signals ONLY */
    --ink: #212322;
    --paper: #FFFFFF;

    /* Neutrals derived from Ink */
    --ink-900: #212322;
    --ink-700: #3F4241;
    --ink-500: #6B6E6D;
    --ink-300: #A8ABAA;
    --ink-100: #E5E5E4;
    --sand-50: #F5F4F2;

    /* Alpha helpers */
    --ink-a80: rgba(33, 35, 34, 0.80);
    --ink-a66: rgba(33, 35, 34, 0.66);
    --ink-a50: rgba(33, 35, 34, 0.50);
    --ink-a30: rgba(33, 35, 34, 0.19);
    --ink-a15: rgba(33, 35, 34, 0.09);
    --ink-a10: rgba(33, 35, 34, 0.06);

    /* Semantic */
    --success: #1B8A5A;  --success-bg: #E7F5EE;
    --error:   #C43D2E;  --error-bg:   #FBEAE7;
    --warning: #B8860B;  --warning-bg: #FBF5E3;
    --info:    #1F6FB2;  --info-bg:    #E6F0F8;

    /* Spacing scale (4px base) */
    --space-1: 4px;   --space-2: 8px;   --space-3: 12px;  --space-4: 16px;
    --space-5: 24px;  --space-6: 32px;  --space-7: 48px;  --space-8: 64px;
    --space-9: 96px;  --space-10: 128px;

    /* Radius */
    --r-sm: 2px; --r-md: 6px; --r-lg: 12px; --r-pill: 999px;

    /* Motion */
    --t-fast: 150ms;
    --t-base: 200ms;
    --t-slow: 300ms;
    --ease-standard: cubic-bezier(0.2, 0.8, 0.2, 1);
    --ease-emphasized: cubic-bezier(0.16, 1, 0.3, 1);

    /* Layout */
    --container: 1200px;
    --header-h: 76px;

    /* Type */
    --font-en: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-ar: "GE SS Two", "Tajawal", "Segoe UI", sans-serif;
    --font-mono: "SF Mono", "Menlo", "Consolas", monospace;

    /* Elevation (used sparingly — flat brand) */
    --shadow-card: 0 20px 40px -12px rgba(33, 35, 34, 0.25);
    --shadow-soft: 0 8px 20px -6px rgba(33, 35, 34, 0.18);
}

/* ---------- 2. RESET / BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
    margin: 0;
    padding: 0;
    background: var(--sand-50);
    color: var(--ink);
    font-family: var(--font-en);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--orange); text-decoration: none; transition: color var(--t-fast) var(--ease-standard); }
a:hover { color: var(--ink); }
button, input, select, textarea { font-family: inherit; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; width: 100%; }
.container-narrow { max-width: 860px; margin: 0 auto; padding: 0 24px; }

.ar { font-family: var(--font-ar); direction: rtl; }
.mono { font-family: var(--font-mono); }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 3. TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-en); font-weight: 700; margin: 0 0 var(--space-4); color: var(--ink); }
h1 { font-size: clamp(40px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: clamp(32px, 4vw, 40px); line-height: 1.1;  letter-spacing: -0.015em; }
h3 { font-size: clamp(24px, 3vw, 28px); line-height: 1.2;  letter-spacing: -0.005em; }
h4 { font-size: clamp(20px, 2.4vw, 22px); line-height: 1.3; }
h5 { font-size: 18px; line-height: 1.35; }
p  { margin: 0 0 var(--space-4); }

.eyebrow {
    display: block;
    font-size: 12px; line-height: 16px; font-weight: 700;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--orange); margin-bottom: var(--space-3);
}
.eyebrow-muted { color: var(--ink-a50); }
.body-l { font-size: 18px; line-height: 1.6; }
.body-s { font-size: 14px; line-height: 1.55; color: var(--ink-a80); }
.caption { font-size: 12px; line-height: 1.5; color: var(--ink-a66); letter-spacing: 0.01em; }

/* Arabic parity: +1px body / +4px heading / +0.15 line-height */
.ar h1, .ar h2, .ar h3, .ar h4 { font-family: var(--font-ar); line-height: 1.25; }
.ar p, .ar li { font-weight: 300; line-height: 1.75; }

/* ---------- 4. SECTION RHYTHM ---------- */
.section { padding: var(--space-9) 0; }
.section-sm { padding: var(--space-8) 0; }
.section-paper { background: var(--paper); }
.section-sand { background: var(--sand-50); }
.section-ink { background: var(--ink); color: #fff; }
.section-ink h1, .section-ink h2, .section-ink h3, .section-ink h4 { color: #fff; }

.section-head { max-width: 760px; margin-bottom: var(--space-7); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 18px; line-height: 1.6; color: var(--ink-a66); margin: 0; }
.section-ink .section-head p { color: rgba(255, 255, 255, 0.7); }
.rule { height: 1px; background: var(--ink-a15); border: 0; margin: 0; }

/* ---------- 5. BUTTONS ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    border: 2px solid transparent; border-radius: 0; cursor: pointer;
    font-family: var(--font-en); font-weight: 700; font-size: 15px;
    letter-spacing: 0.08em; text-transform: uppercase;
    padding: 14px 26px; text-align: center; white-space: nowrap;
    transition: background var(--t-base) var(--ease-standard),
                color var(--t-base) var(--ease-standard),
                border-color var(--t-base) var(--ease-standard),
                transform var(--t-fast) var(--ease-standard);
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 11px 20px; font-size: 13px; }
.btn-lg { padding: 19px 34px; font-size: 17px; }
.btn-block { display: flex; width: 100%; }

.btn-primary { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.btn-secondary { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }

.btn-outline-orange { background: transparent; border-color: var(--orange); color: var(--orange); }
.btn-outline-orange:hover { background: var(--orange); color: #fff; }

.btn-on-dark { background: transparent; border-color: rgba(255,255,255,0.45); color: #fff; }
.btn-on-dark:hover { background: #fff; border-color: #fff; color: var(--ink); }

.btn[disabled], .btn.is-disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

.btn-ghost {
    display: inline-flex; align-items: center; gap: 8px;
    background: none; border: 0; border-bottom: 2px solid var(--ink);
    padding: 8px 0; font-size: 15px; font-weight: 700; letter-spacing: 0.04em;
    color: var(--ink); cursor: pointer; transition: color var(--t-base) var(--ease-standard), border-color var(--t-base) var(--ease-standard);
}
.btn-ghost:hover { color: var(--orange); border-color: var(--orange); }

.btn-icon {
    width: 48px; height: 48px; border-radius: var(--r-pill);
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--orange); color: #fff; border: 0; font-size: 18px; cursor: pointer;
    transition: background var(--t-base) var(--ease-standard);
}
.btn-icon:hover { background: var(--ink); color: #fff; }

/* ---------- 6. HEADER (single-line, never wraps) ---------- */
.topbar {
    background: var(--ink); color: rgba(255,255,255,0.72);
    font-size: 12.5px; letter-spacing: 0.04em;
}
.topbar-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; height: 38px; white-space: nowrap; overflow: hidden;
}
.topbar a { color: rgba(255,255,255,0.72); }
.topbar a:hover { color: var(--orange); }
.topbar-contact { display: flex; align-items: center; gap: 22px; }
.topbar-social { display: flex; align-items: center; gap: 14px; font-size: 13px; }

.site-header {
    position: sticky; top: 0; z-index: 900;
    background: var(--paper);
    border-bottom: 1px solid var(--ink-a15);
}
.site-header.is-scrolled { box-shadow: 0 2px 16px rgba(33,35,34,0.08); }

.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px; height: var(--header-h);
    flex-wrap: nowrap;              /* header must never break to 2 lines */
    white-space: nowrap;
}

.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
    width: 38px; height: 38px; background: var(--orange); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 17px; flex: 0 0 auto;
}
.brand-name { display: block; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; }
.brand-sub { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-a50); }

/* Primary nav */
.main-nav { display: flex; align-items: center; gap: 4px; flex: 1 1 auto; justify-content: center; min-width: 0; }
.nav-item { position: relative; }
.nav-link {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 11px; font-size: 13.5px; font-weight: 700; letter-spacing: 0.02em;
    color: var(--ink); border-bottom: 2px solid transparent; white-space: nowrap;
}
.nav-link i { font-size: 9px; color: var(--ink-a50); transition: transform var(--t-base) var(--ease-standard); }
.nav-link:hover, .nav-item:hover > .nav-link { color: var(--orange); }
.nav-item:hover > .nav-link i { transform: rotate(180deg); }
.nav-link.is-active { border-bottom-color: var(--orange); color: var(--ink); }

/* Dropdown / mega menu */
.nav-dropdown {
    position: absolute; top: 100%; left: 0; z-index: 950;
    min-width: 260px; background: var(--paper);
    border: 1px solid var(--ink-a15); border-top: 2px solid var(--orange);
    box-shadow: 0 24px 48px -20px rgba(33,35,34,0.28);
    padding: 14px; white-space: normal;
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity var(--t-base) var(--ease-standard), transform var(--t-base) var(--ease-standard), visibility var(--t-base);
}
.nav-item:hover > .nav-dropdown, .nav-item:focus-within > .nav-dropdown {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown a.drop-link {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 12px; font-size: 14px; font-weight: 500; color: var(--ink);
    border-left: 2px solid transparent;
}
.nav-dropdown a.drop-link:hover { background: var(--sand-50); border-left-color: var(--orange); color: var(--orange); }
.drop-title {
    font-size: 11px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--ink-a50); margin: 4px 0 10px; padding: 0 12px;
}
.nav-dropdown.mega { width: min(940px, calc(100vw - 48px)); padding: 28px; display: grid; gap: 28px; }
.nav-dropdown.mega.cols-3 { grid-template-columns: 1fr 1fr 1.2fr; }
.nav-dropdown.mega.cols-4 { grid-template-columns: 1fr 1fr 1fr 1.3fr; }
.nav-item.pull-right .nav-dropdown { left: auto; right: 0; }

.mega-feature { background: var(--ink); color: #fff; padding: 22px; }
.mega-feature .eyebrow { color: var(--yellow); }
.mega-feature h4 { color: #fff; font-size: 18px; line-height: 1.25; margin-bottom: 8px; }
.mega-feature p { font-size: 13px; color: rgba(255,255,255,0.66); margin-bottom: 16px; }

/* Header right cluster */
.header-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.icon-btn {
    width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
    background: transparent; border: 1px solid var(--ink-a15); color: var(--ink);
    cursor: pointer; font-size: 15px; transition: all var(--t-base) var(--ease-standard);
}
.icon-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.lang-switch { font-size: 13px; font-weight: 700; color: var(--ink); padding: 8px 6px; }
.lang-switch:hover { color: var(--orange); }
.nav-toggle { display: none; }

@media (max-width: 1120px) {
    .main-nav { display: none; }
    .nav-toggle { display: inline-flex; }
    .header-actions .lang-switch { display: none; }
    .header-cta { display: none; }
}
@media (max-width: 860px) { .topbar-contact span.topbar-hide { display: none; } }
@media (max-width: 620px) { .topbar { display: none; } .brand-sub { display: none; } }

/* ---------- 7. MOBILE DRAWER ---------- */
.drawer-scrim {
    position: fixed; inset: 0; background: rgba(33, 35, 34, 0.6); z-index: 980;
    opacity: 0; visibility: hidden; transition: opacity var(--t-slow) var(--ease-emphasized), visibility var(--t-slow);
}
.drawer-scrim.is-open { opacity: 1; visibility: visible; }

.drawer {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 88vw);
    background: var(--ink); color: #fff; z-index: 990; padding: 24px;
    overflow-y: auto; transform: translateX(100%);
    transition: transform var(--t-slow) var(--ease-emphasized);
}
.drawer.is-open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.drawer-close { background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer; }
.drawer .brand-name, .drawer .brand-sub { color: #fff; }
.drawer .brand-sub { color: rgba(255,255,255,0.5); }

.drawer-nav { display: flex; flex-direction: column; }
.drawer-link {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 56px; padding: 12px 0; color: #fff; font-size: 17px; font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,0.14); background: none; border-left: 0; border-right: 0; border-top: 0;
    width: 100%; text-align: left; cursor: pointer;
}
.drawer-link:hover { color: var(--orange); }
.drawer-link i { color: var(--orange); font-size: 12px; transition: transform var(--t-base) var(--ease-standard); }
.drawer-sub { display: none; padding: 4px 0 12px; border-bottom: 1px solid rgba(255,255,255,0.14); }
.drawer-sub.is-open { display: block; }
.drawer-sub a { display: block; padding: 10px 12px; color: rgba(255,255,255,0.72); font-size: 14.5px; }
.drawer-sub a:hover { color: var(--orange); }
.drawer-group.is-open > .drawer-link i { transform: rotate(180deg); }
.drawer-foot { margin-top: 28px; display: grid; gap: 12px; }

/* ---------- 8. HERO ---------- */
/* Hero — warm animated gradient (brand-orange family, never black).
   Pure-CSS motion: a slow gradient shift + a drifting light sheen.
   No video/images, so zero added page weight. */
.hero {
    background: linear-gradient(135deg, #FE5000 0%, #E84600 30%, #C93900 65%, #9E2E00 100%);
    background-size: 280% 280%;
    animation: heroShift 20s var(--ease-standard) infinite;
    color: #fff; padding: var(--space-10) 0; position: relative; overflow: hidden;
}
/* Drifting light sheen — soft white glow, not yellow (yellow stays scarcity-only) */
.hero::before {
    content: ""; position: absolute; top: -15%; left: 48%;
    width: 46%; height: 130%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.13) 0%, rgba(255,255,255,0) 65%);
    animation: heroFloat 16s var(--ease-standard) infinite; pointer-events: none; z-index: 0;
}
/* Decorative ring — white-alpha so it reads on the orange ground */
.hero::after {
    content: ""; position: absolute; top: -120px; right: -120px; width: 420px; height: 420px;
    border: 60px solid rgba(255,255,255,0.08); border-radius: var(--r-pill); pointer-events: none; z-index: 0;
}
@keyframes heroShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes heroFloat { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-7%, 5%); } }
@media (prefers-reduced-motion: reduce) {
    .hero { animation: none; background-size: 100% 100%; }
    .hero::before { animation: none; }
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--space-8); align-items: center; position: relative; z-index: 1; }
.hero h1 { color: #fff; margin-bottom: var(--space-5); }
.hero p.hero-dek { font-size: 18px; line-height: 1.65; color: rgba(255,255,255,0.72); max-width: 60ch; margin-bottom: var(--space-6); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-media { position: relative; }
.hero-media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.media-play {
    position: absolute; inset: 0; margin: auto; width: 76px; height: 76px;
    background: var(--orange); color: #fff; border: 0; border-radius: var(--r-pill);
    font-size: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background var(--t-base) var(--ease-standard);
}
.media-play:hover { background: #fff; color: var(--ink); }
.media-caption {
    position: absolute; left: 0; bottom: 0; background: var(--ink-700); color: #fff;
    font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; padding: 8px 14px;
}

.badge-pill {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.22);
    color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
    padding: 8px 14px; margin-bottom: var(--space-5);
}
.badge-pill i { color: var(--yellow); }

/* Page hero (inner pages) */
.page-hero { background: var(--ink); color: #fff; padding: var(--space-8) 0 var(--space-9); }
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.7); font-size: 18px; max-width: 70ch; margin: 0; }
.breadcrumb { display: flex; gap: 8px; flex-wrap: wrap; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; margin-bottom: var(--space-5); color: rgba(255,255,255,0.5); }
.breadcrumb a { color: rgba(255,255,255,0.5); }
.breadcrumb a:hover { color: var(--orange); }

/* ---------- 9. CARDS ---------- */
.card-grid { display: grid; gap: var(--space-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.course-card {
    background: var(--paper); border: 1px solid var(--ink-a15); position: relative; overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform var(--t-base) var(--ease-standard), box-shadow var(--t-base) var(--ease-standard);
}
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.card-media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--ink-700); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }

.ribbon {
    position: absolute; top: 16px; left: 0; background: var(--yellow); color: var(--ink);
    padding: 6px 16px 6px 12px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 50%, 100% 100%, 0 100%);
}
.price-chip {
    position: absolute; right: 0; bottom: 0; background: var(--ink); color: #fff; padding: 10px 16px;
}
.price-chip .from { font-size: 10px; letter-spacing: 0.2em; opacity: 0.85; text-transform: uppercase; }
.price-chip .amount { font-size: 20px; font-weight: 700; line-height: 1; }
.price-chip .amount span { font-size: 11px; font-weight: 400; opacity: 0.85; }
.accred-lockup { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 6px; }
.accred-lockup span { background: #fff; color: var(--ink); padding: 4px 8px; font-size: 10px; font-weight: 700; letter-spacing: 0.05em; }

.card-body { padding: 24px 20px 20px; display: flex; flex-direction: column; flex: 1 1 auto; }
.card-body h3 { font-size: 20px; line-height: 1.25; margin: 0 0 12px; }
.card-body h3 a { color: var(--ink); }
.card-body h3 a:hover { color: var(--orange); }
.card-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--ink-a66); margin-bottom: 16px; }
.card-meta i { color: var(--orange); margin-right: 5px; }
.card-note { font-size: 12px; color: var(--ink-a66); margin-bottom: 14px; }
.card-note strong { color: var(--ink); }
.card-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--ink-a15); }
.card-foot.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.card-foot.split { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-foot .btn { padding: 12px; font-size: 12px; }

/* Simple feature / value card */
.flat-card { background: var(--paper); border: 1px solid var(--ink-a15); padding: 32px; height: 100%; }
.flat-card h3, .flat-card h4 { margin-bottom: 8px; }
.flat-card p { color: var(--ink-a66); font-size: 14px; line-height: 1.65; margin: 0; }
.flat-card .ico {
    width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
    background: var(--orange-tint); color: var(--orange); font-size: 20px; margin-bottom: 18px;
}
.flat-card.is-link:hover { border-color: var(--orange); }

/* Stat / trust tiles */
.stat-tile { background: var(--ink); color: #fff; padding: 32px; }
.stat-tile .num { font-size: 52px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.stat-tile .num.gold { color: var(--yellow); }
.stat-tile .num.orange { color: var(--orange); }
.stat-tile .lbl { font-size: 14px; margin-top: 12px; opacity: 0.8; }

/* Blog card */
.post-card { background: var(--paper); border: 1px solid var(--ink-a15); display: flex; flex-direction: column; transition: transform var(--t-base) var(--ease-standard), box-shadow var(--t-base) var(--ease-standard); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.post-card .card-media { aspect-ratio: 16/10; }
.post-card .post-body { padding: 24px 20px; display: flex; flex-direction: column; flex: 1 1 auto; }
.post-card h3 { font-size: 19px; line-height: 1.3; margin-bottom: 10px; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--orange); }
.post-card p { font-size: 14px; color: var(--ink-a66); margin-bottom: 16px; }
.post-meta { font-size: 12px; color: var(--ink-a50); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; margin-top: auto; }

/* ---------- 10. SEARCH & FILTER ---------- */
.search-bar { display: flex; border: 2px solid var(--ink); background: #fff; }
.search-bar .ico { display: flex; align-items: center; padding: 0 16px; color: var(--ink-a50); font-size: 15px; }
.search-bar input { flex: 1 1 auto; padding: 16px 8px; border: 0; font-size: 16px; outline: none; min-width: 0; background: transparent; }
.search-bar select { border: 0; border-left: 1px solid var(--ink-a15); padding: 0 16px; font-size: 14px; font-weight: 700; background: var(--sand-50); outline: none; }
.search-bar button {
    background: var(--orange); color: #fff; border: 0; padding: 0 28px;
    font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer;
    transition: background var(--t-base) var(--ease-standard);
}
.search-bar button:hover { background: var(--ink); }

.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
    background: #fff; color: var(--ink); border: 1.5px solid var(--ink-a30);
    padding: 10px 18px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; cursor: pointer;
    transition: all var(--t-base) var(--ease-standard);
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- 11. FORMS ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label {
    display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; margin-bottom: 8px; color: var(--ink);
}
.field .req { color: var(--orange); }
.field input, .field select, .field textarea {
    width: 100%; padding: 14px 16px; border: 1.5px solid var(--ink-a30); background: #fff;
    font-size: 15px; outline: none; border-radius: 0;
    transition: border-color var(--t-base) var(--ease-standard), box-shadow var(--t-base) var(--ease-standard);
}
.field input:focus, .field select:focus, .field textarea:focus {
    border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-halo);
}
.field textarea { resize: vertical; min-height: 120px; }
.field .help { font-size: 12px; color: var(--ink-a66); margin-top: 6px; }
.field.has-error input, .field.has-error select { border-color: var(--error); background: var(--error-bg); }
.field .err { display: none; font-size: 12px; color: var(--error); font-weight: 700; margin-top: 6px; }
.field.has-error .err { display: block; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; cursor: pointer; color: var(--ink-a80); }
.check input { width: 18px; height: 18px; accent-color: var(--orange); margin-top: 2px; flex: 0 0 auto; }

.form-note { font-size: 12px; color: var(--ink-a66); margin-top: 14px; }
.form-success {
    display: none; background: var(--success-bg); border-left: 4px solid var(--success);
    padding: 16px 18px; font-size: 14px; color: #14603f; margin-bottom: 18px; font-weight: 500;
}
.form-success.is-visible { display: block; }

/* ---------- 12. ACCORDION ---------- */
.accordion { border: 1px solid var(--ink-a15); background: var(--paper); }
.acc-item + .acc-item { border-top: 1px solid var(--ink-a15); }
.acc-head {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 20px 24px; background: none; border: 0; cursor: pointer; text-align: left;
    font-size: 16px; font-weight: 700; color: var(--ink); font-family: var(--font-en);
    transition: background var(--t-base) var(--ease-standard);
}
.acc-head:hover { background: var(--sand-50); }
.acc-head > span { display: flex; align-items: center; gap: 12px; }
.acc-head > span > i { color: var(--orange); font-size: 15px; }
.acc-chevron {
    width: 30px; height: 30px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--ink-a15); font-size: 11px; transition: all var(--t-base) var(--ease-standard);
}
.acc-item.is-open .acc-chevron { background: var(--orange); border-color: var(--orange); color: #fff; transform: rotate(180deg); }
.acc-panel { display: none; padding: 0 24px 24px; color: var(--ink-a80); font-size: 15px; line-height: 1.7; }
.acc-item.is-open .acc-panel { display: block; }
.acc-panel ul { margin: 0 0 0 18px; padding: 0; }
.acc-panel li { margin-bottom: 8px; }

/* Data table */
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 18px; background: #fff; }
.data-table th {
    background: var(--ink); color: #fff; text-align: left; padding: 12px 14px;
    font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
}
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--ink-a15); }
.data-table tr:hover td { background: var(--sand-50); }

/* ---------- 13. SIDEBAR (course/diploma) ---------- */
.detail-layout { display: grid; grid-template-columns: 1fr 370px; gap: var(--space-7); align-items: start; }
.sticky-card { position: sticky; top: calc(var(--header-h) + 24px); }
.buy-card { background: var(--paper); border: 1px solid var(--ink-a15); }
.buy-card-head { background: var(--ink); color: #fff; padding: 26px 24px; }
.buy-card-head .old { text-decoration: line-through; opacity: 0.55; font-size: 16px; margin-right: 10px; }
.buy-card-head .now { font-size: 40px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.buy-card-head .now span { font-size: 15px; font-weight: 400; opacity: 0.8; }
.buy-card-head .note { font-size: 12.5px; opacity: 0.7; margin: 10px 0 0; }
.save-tag { display: inline-block; background: var(--yellow); color: var(--ink); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 5px 10px; margin-bottom: 14px; }
.spec-list { list-style: none; margin: 0; padding: 0; }
.spec-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 24px; border-bottom: 1px solid var(--ink-a15); font-size: 14px; }
.spec-list li span { color: var(--ink-a66); display: flex; align-items: center; gap: 9px; }
.spec-list li span i { color: var(--orange); width: 16px; text-align: center; }
.spec-list li strong { font-weight: 700; text-align: right; }
.buy-card-foot { padding: 20px 24px 24px; }
.guarantee { display: flex; align-items: center; gap: 10px; justify-content: center; font-size: 12.5px; color: var(--ink-a66); margin-top: 14px; }
.guarantee i { color: var(--success); }

.scarcity-box { background: var(--warning-bg); border: 2px solid var(--yellow); padding: 22px; text-align: center; margin-top: 20px; }
.scarcity-box i { font-size: 22px; color: var(--orange); }
.scarcity-box h4 { margin: 10px 0 6px; font-size: 18px; }
.scarcity-box p { font-size: 13px; color: var(--ink-a66); margin: 0; }

/* Sticky sub-nav on detail pages */
.detail-subnav { background: var(--paper); border-bottom: 1px solid var(--ink-a15); position: sticky; top: var(--header-h); z-index: 800; }
.detail-subnav .inner { display: flex; gap: 6px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.detail-subnav .inner::-webkit-scrollbar { display: none; }
.detail-subnav a {
    padding: 16px 14px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--ink-a66); border-bottom: 2px solid transparent;
}
.detail-subnav a:hover, .detail-subnav a.is-active { color: var(--orange); border-bottom-color: var(--orange); }

/* Scarcity strip */
.scarcity-strip { background: var(--ink); color: #fff; padding: 14px 0; font-size: 14px; font-weight: 700; letter-spacing: 0.04em; }
.scarcity-strip .inner { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; text-align: center; }
.scarcity-strip i { color: var(--yellow); }
.count-unit { display: inline-flex; flex-direction: column; align-items: center; background: rgba(255,255,255,0.10); padding: 5px 10px; min-width: 52px; }
.count-unit b { font-size: 18px; line-height: 1; font-variant-numeric: tabular-nums; }
.count-unit small { font-size: 9px; letter-spacing: 0.18em; opacity: 0.7; text-transform: uppercase; margin-top: 3px; }

/* ---------- 14. CONTENT BLOCKS ---------- */
.prose-block { background: var(--paper); border: 1px solid var(--ink-a15); padding: 36px; margin-bottom: var(--space-5); }
.prose-block > h2 { font-size: 28px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--ink-a15); }
.prose-block > h3 { font-size: 20px; margin: 30px 0 14px; }
.prose-block p { color: var(--ink-a80); line-height: 1.75; }
.tick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tick-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-a80); line-height: 1.6; }
.tick-list li i { color: var(--orange); margin-top: 4px; }

/* Curriculum */
.module { border: 1px solid var(--ink-a15); background: #fff; margin-bottom: 12px; }
.module-head {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 18px 22px; background: none; border: 0; cursor: pointer; text-align: left;
    font-weight: 700; font-size: 15.5px; color: var(--ink); font-family: var(--font-en);
}
.module-head:hover { background: var(--sand-50); }
.module.is-open .module-head { background: var(--sand-50); }
.module-head .idx { color: var(--orange); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; display: block; margin-bottom: 3px; }
.module-panel { display: none; border-top: 1px solid var(--ink-a15); }
.module.is-open .module-panel { display: block; }
.lesson { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 22px; border-bottom: 1px solid var(--ink-a10); font-size: 14px; color: var(--ink-a80); }
.lesson:last-child { border-bottom: 0; }
.lesson i { color: var(--orange); margin-right: 10px; }
.lesson .dur { font-size: 12px; color: var(--ink-a50); font-variant-numeric: tabular-nums; }
.lesson.is-resource i { color: var(--info); }

/* Instructor */
.instructor { display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: start; }
.instructor img { width: 180px; height: 180px; object-fit: cover; }
.instructor .role { color: var(--orange); font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 14px; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.mini-stats div { border: 1px solid var(--ink-a15); padding: 16px; text-align: center; }
.mini-stats b { display: block; font-size: 24px; line-height: 1; }
.mini-stats small { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-a50); }

/* Reviews */
.review { border: 1px solid var(--ink-a15); background: #fff; padding: 24px; margin-bottom: 14px; }
.review-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.review-who { display: flex; align-items: center; gap: 12px; }
.avatar { width: 44px; height: 44px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.review-name { font-weight: 700; font-size: 15px; }
.review-date { font-size: 12px; color: var(--ink-a50); }
.stars { color: var(--yellow); font-size: 13px; letter-spacing: 2px; }
.review p { font-size: 15px; color: var(--ink-a80); line-height: 1.7; margin-bottom: 10px; }
.verified { font-size: 12px; color: var(--success); font-weight: 700; }

/* Certificate */
.cert {
    background: #fff; border: 2px solid var(--ink); padding: 48px; text-align: center; position: relative;
    max-width: 760px; margin: 0 auto;
}
.cert::before { content: ""; position: absolute; inset: 12px; border: 1px solid var(--ink-a30); pointer-events: none; }
.cert .seal { width: 68px; height: 68px; margin: 0 auto 18px; background: var(--orange); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px; border-radius: var(--r-pill); }
.cert .cert-name { font-size: 34px; margin: 12px 0; letter-spacing: -0.02em; }
.cert .cert-prog { color: var(--orange); font-size: 22px; margin: 12px 0; }
.cert p { color: var(--ink-a66); font-size: 14px; margin: 6px 0; }
.cert-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: 40px; flex-wrap: wrap; }
.cert-foot > div { flex: 1 1 140px; border-top: 1px solid var(--ink-a30); padding-top: 8px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-a50); }

/* Step cards */
.step-card { position: relative; overflow: hidden; background: var(--ink); color: #fff; display: block; }
.step-card img { width: 100%; aspect-ratio: 4/5; object-fit: cover; opacity: 0.5; transition: opacity var(--t-base) var(--ease-standard); }
.step-card:hover img { opacity: 0.32; }
.step-card .step-body { position: absolute; inset: auto 0 0 0; padding: 26px; }
.step-card .tag { display: inline-block; background: var(--orange); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; padding: 5px 10px; margin-bottom: 12px; }
.step-card h3 { color: #fff; font-size: 21px; margin-bottom: 8px; }
.step-card p { font-size: 13.5px; color: rgba(255,255,255,0.75); margin-bottom: 14px; }
.step-card .go { color: var(--orange); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }

/* Testimonial slider */
.slider { position: relative; overflow: hidden; }
.slider-track { display: flex; transition: transform var(--t-slow) var(--ease-emphasized); }
.slide { min-width: 100%; padding: 40px; background: var(--paper); border: 1px solid var(--ink-a15); text-align: center; }
.slide p { font-size: 19px; line-height: 1.65; color: var(--ink-a80); max-width: 62ch; margin: 18px auto; }
.slide .avatar { margin: 0 auto 10px; border-radius: var(--r-pill); }
.slider-dots { display: flex; gap: 8px; justify-content: center; margin-top: 20px; }
.slider-dots button { width: 30px; height: 4px; background: var(--ink-a30); border: 0; cursor: pointer; padding: 0; transition: background var(--t-base) var(--ease-standard); }
.slider-dots button.is-active { background: var(--orange); }

/* Accreditation strip */
.accred-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.accred-strip div { border: 1.5px solid var(--ink-a15); background: #fff; padding: 20px; text-align: center; }
.accred-strip b { display: block; font-size: 20px; letter-spacing: 0.05em; color: var(--ink); }
.accred-strip small { font-size: 10px; letter-spacing: 0.14em; color: var(--ink-a50); text-transform: uppercase; }

/* CTA band */
.cta-band { background: var(--orange); color: #fff; padding: var(--space-8) 0; }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,0.9); font-size: 17px; margin-bottom: 0; }
.cta-band .inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band .btn-secondary { border-color: #fff; color: #fff; }
.cta-band .btn-secondary:hover { background: #fff; color: var(--orange); }

/* Info tiles row */
.info-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--ink-a15); border: 1px solid var(--ink-a15); }
.info-tiles div { background: #fff; padding: 26px 18px; text-align: center; }
.info-tiles i { font-size: 20px; color: var(--orange); }
.info-tiles b { display: block; font-size: 19px; margin: 10px 0 4px; }
.info-tiles small { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-a50); }

/* ---------- 15. FOOTER ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.72); padding: var(--space-9) 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: var(--space-6); }
.site-footer h4 { color: #fff; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 20px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 11px; }
.site-footer a { color: rgba(255,255,255,0.72); font-size: 14px; }
.site-footer a:hover { color: var(--orange); }
.site-footer p { font-size: 14px; line-height: 1.7; }
.footer-brand .brand-mark { margin-bottom: 16px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
    width: 38px; height: 38px; border: 1px solid rgba(255,255,255,0.22); display: flex;
    align-items: center; justify-content: center; color: #fff; font-size: 14px;
    transition: all var(--t-base) var(--ease-standard);
}
.footer-social a:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.branch-block { margin-bottom: 18px; }
.branch-block strong { color: var(--yellow); display: block; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 5px; }
.branch-block p { font-size: 13.5px; color: rgba(255,255,255,0.66); margin: 0; }
.footer-bottom {
    margin-top: var(--space-8); border-top: 1px solid rgba(255,255,255,0.14); padding: 24px 0;
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,0.5);
}

/* ---------- 16. UTILITIES / FLOATERS ---------- */
.to-top {
    position: fixed; right: 24px; bottom: 24px; width: 46px; height: 46px; z-index: 700;
    background: var(--ink); color: #fff; border: 0; cursor: pointer; font-size: 15px;
    opacity: 0; visibility: hidden; transition: opacity var(--t-base) var(--ease-standard), visibility var(--t-base), background var(--t-base);
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--orange); }

.whatsapp-fab {
    position: fixed; left: 24px; bottom: 24px; width: 52px; height: 52px; z-index: 700;
    background: var(--success); color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 22px; border-radius: var(--r-pill); box-shadow: var(--shadow-soft);
}
.whatsapp-fab:hover { background: var(--ink); color: #fff; }

.toast {
    position: fixed; right: 24px; bottom: 88px; z-index: 1000; max-width: 330px;
    background: var(--ink); color: #fff; padding: 16px 20px; display: flex; gap: 12px; align-items: flex-start;
    transform: translateY(16px); opacity: 0; visibility: hidden;
    transition: all var(--t-slow) var(--ease-emphasized);
}
.toast.is-visible { transform: translateY(0); opacity: 1; visibility: visible; }
.toast i { color: var(--success); font-size: 17px; margin-top: 2px; }
.toast strong { display: block; font-size: 14px; margin-bottom: 3px; }
.toast span { font-size: 13px; opacity: 0.75; }

.modal {
    position: fixed; inset: 0; z-index: 1010; background: rgba(33,35,34,0.85);
    display: flex; align-items: center; justify-content: center; padding: 24px;
    opacity: 0; visibility: hidden; transition: opacity var(--t-slow) var(--ease-emphasized), visibility var(--t-slow);
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal-box { background: #000; width: min(920px, 100%); aspect-ratio: 16/9; position: relative; }
.modal-box iframe { width: 100%; height: 100%; border: 0; }
.modal-close { position: absolute; top: -48px; right: 0; background: none; border: 0; color: #fff; font-size: 26px; cursor: pointer; }

.notice { padding: 20px; background: var(--orange-tint); border-left: 3px solid var(--orange); font-size: 14px; line-height: 1.6; }
.notice-yellow { background: var(--warning-bg); border-left-color: var(--warning); }

.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: var(--space-4); } .mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); } .mt-7 { margin-top: var(--space-7); }
.text-center { text-align: center; }

/* ---------- 17. RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: var(--space-6); }
    .detail-layout { grid-template-columns: 1fr; }
    .sticky-card { position: static; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .info-tiles { grid-template-columns: repeat(3, 1fr); }
    .accred-strip { grid-template-columns: repeat(3, 1fr); }
    .nav-dropdown.mega.cols-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .section { padding: var(--space-8) 0; }
    .hero { padding: var(--space-8) 0; }
    .instructor { grid-template-columns: 1fr; }
    .instructor img { width: 140px; height: 140px; }
}
@media (max-width: 640px) {
    body { font-size: 15px; }
    .container, .container-narrow { padding: 0 16px; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .info-tiles { grid-template-columns: repeat(2, 1fr); }
    .accred-strip { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .section { padding: var(--space-7) 0; }
    .prose-block { padding: 24px 20px; }
    .cert { padding: 28px 20px; }
    .slide { padding: 26px 20px; }
    .hero-actions .btn { width: 100%; }
    .mini-stats { grid-template-columns: 1fr; }
    .search-bar { flex-wrap: wrap; }
    .search-bar select, .search-bar button { width: 50%; padding: 14px; }
    .whatsapp-fab { width: 46px; height: 46px; font-size: 19px; left: 16px; bottom: 16px; }
    .to-top { right: 16px; bottom: 16px; }
}

/* ---------- 18. REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important; scroll-behavior: auto !important;
    }
}

/* ---------- 19. PRINT ---------- */
@media print {
    .site-header, .topbar, .site-footer, .to-top, .whatsapp-fab, .drawer, .drawer-scrim, .detail-subnav { display: none !important; }
    body { background: #fff; }
}
