/* =========================================================
   INERSIA EDUCATION — Portal CBT & Bank Latihan
   Stylesheet utama
   ========================================================= */

/* ---------- Reset & variabel ---------- */
:root{
  --navy:#0E3F8A;
  --blue:#1B5FBF;
  --mid:#2E7BC2;
  --sky:#74D1F6;
  --pale:#BFDDF7;
  --pale-soft:#EAF3FF;
  --yellow:#FED135;
  --gold:#E5A80D;
  --paper:#F7F6F4;
  --ink:#1E1E1E;
  --muted:#4A5872;
  --muted-soft:#75829A;
  --green:#5DB268;
  --green-bg:#E8F6EA;
  --green-ink:#24743B;
  --amber-bg:#FFF2CC;
  --amber-ink:#8D5D00;
  --peach:#FFB9A6;
  --orange:#FF8A5B;
  --line:#DCE7F2;
  --line-soft:#E9F0F8;
  --shadow-sm:0 4px 14px rgba(24,67,123,.07);
  --shadow-md:0 10px 28px rgba(24,67,123,.10);
  --shadow-lg:0 20px 48px rgba(24,67,123,.16);
  --radius-lg:24px;
  --radius-md:16px;
  --radius-sm:11px;
  --header-h:70px;
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  width:100%;
  min-width:0;
  background:var(--paper);
  color:var(--ink);
  font-family:"Work Sans",-apple-system,BlinkMacSystemFont,sans-serif;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block}
button,input,a{font:inherit;color:inherit}
button{cursor:pointer;background:none;border:0}
a{text-decoration:none}
ul,ol{margin:0}
.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}
button:focus-visible,a:focus-visible,input:focus-visible,[tabindex]:focus-visible{
  outline:3px solid var(--yellow);outline-offset:2px;border-radius:6px;
}
.page-shell{width:100%;min-height:100%;overflow:hidden}
.wrap{width:100%;max-width:1320px;margin:0 auto;padding-left:24px;padding-right:24px}

/* ---------- Header ---------- */
.site-header{
  background:rgba(255,255,255,.92);
  backdrop-filter:saturate(160%) blur(8px);
  border-bottom:1px solid var(--line);
  position:sticky;top:0;z-index:40;
}
.header-inner{height:var(--header-h);display:flex;align-items:center;justify-content:space-between;gap:18px}
.brand{display:flex;align-items:center;gap:12px;min-width:0;text-decoration:none}
.logo{width:44px;height:44px;border-radius:13px;flex:none;box-shadow:var(--shadow-sm)}
.brand-copy{min-width:0}
.brand-name{display:block;font-weight:800;letter-spacing:.03em;color:var(--navy);line-height:1.15;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.brand-sub{display:block;font-size:11.5px;color:var(--muted);margin-top:2px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.header-nav{display:flex;align-items:center;gap:6px;font-size:14.5px;font-weight:700}
.header-nav a,.header-nav .nav-btn{
  color:var(--navy);padding:10px 14px;border-radius:11px;transition:background .15s;
}
.header-nav a:hover,.header-nav .nav-btn:hover{background:var(--pale-soft)}
.header-nav .nav-btn[aria-expanded="true"]{background:var(--pale-soft)}
.back-link{
  display:inline-flex;align-items:center;gap:7px;
  border:1.5px solid var(--pale);border-radius:12px;background:#fff!important;
  padding:9px 15px 9px 13px;
}
.back-link svg{width:16px;height:16px}
.hamburger{display:none;width:44px;height:44px;border-radius:12px;align-items:center;justify-content:center;border:1.5px solid var(--line)}
.hamburger:hover{background:var(--pale-soft)}
.hamburger svg{width:22px;height:22px;color:var(--navy)}

.mobile-nav-panel{
  display:none;position:fixed;inset:0;z-index:50;
}
.mobile-nav-panel.open{display:block}
.mnp-scrim{position:absolute;inset:0;background:rgba(14,32,58,.42);opacity:0;transition:opacity .2s}
.mobile-nav-panel.open .mnp-scrim{opacity:1}
.mnp-sheet{
  position:absolute;top:0;right:0;height:100%;width:min(320px,84vw);
  background:#fff;box-shadow:var(--shadow-lg);
  padding:20px;display:flex;flex-direction:column;gap:6px;
  transform:translateX(100%);transition:transform .25s ease;
}
.mobile-nav-panel.open .mnp-sheet{transform:translateX(0)}
.mnp-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.mnp-head span{font-weight:800;color:var(--navy);font-size:14px;text-transform:uppercase;letter-spacing:.06em}
.mnp-head .mnp-close{width:38px;height:38px;padding:0;border-radius:10px;display:grid;place-items:center;border:1px solid var(--line)}
.mnp-close svg{width:18px;height:18px;color:var(--navy)}
.mnp-sheet a,.mnp-sheet button{
  display:flex;align-items:center;gap:10px;padding:13px 12px;border-radius:12px;
  font-weight:700;color:var(--navy);font-size:15px;text-align:left;width:100%;
}
.mnp-sheet a:hover,.mnp-sheet button:hover{background:var(--pale-soft)}
.mnp-divider{height:1px;background:var(--line);margin:8px 0}

/* ---------- Hero ---------- */
.hero{position:relative;padding:44px 0 8px;overflow:hidden}
.hero-blob{position:absolute;border-radius:50%;filter:blur(2px);opacity:.55;z-index:0;pointer-events:none}
.hero-blob.b1{width:280px;height:280px;background:radial-gradient(circle,var(--pale) 0%,rgba(191,221,247,0) 72%);top:-90px;right:-40px}
.hero-blob.b2{width:220px;height:220px;background:radial-gradient(circle,#FFE9B8 0%,rgba(255,233,184,0) 72%);bottom:-60px;right:280px}
.hero-grid{position:relative;z-index:1;display:grid;grid-template-columns:1.15fr .85fr;gap:28px;align-items:center}
.hero-copy{min-width:0}
.eyebrow{
  display:inline-flex;align-items:center;gap:7px;background:var(--amber-bg);color:var(--amber-ink);
  border-radius:999px;padding:8px 13px 8px 11px;font-size:12px;font-weight:800;letter-spacing:.03em;
}
.eyebrow svg{width:14px;height:14px}
h1{
  font-size:clamp(30px,4.2vw,48px);line-height:1.06;letter-spacing:-.03em;color:var(--navy);
  margin:16px 0 10px;font-weight:800;
}
.lead{font-size:clamp(15.5px,1.6vw,18px);font-weight:700;color:var(--blue);margin:0}
.description{max-width:640px;color:var(--muted);line-height:1.65;margin:13px 0 6px;font-size:15.5px}
.supporting{font-size:13.5px;color:var(--muted-soft);margin:0}

.hero-art{position:relative;height:100%;min-height:300px;display:flex;align-items:flex-end;justify-content:center}
.hero-art .char{position:absolute;filter:drop-shadow(0 16px 22px rgba(14,63,138,.18))}
.hero-art .char-primary{width:36%;right:8%;bottom:0;z-index:3}
.hero-art .char-secondary{width:28%;left:6%;bottom:4%;z-index:2;transform:rotate(-3deg)}
.hero-art .ring{position:absolute;border-radius:50%;border:2px dashed var(--pale);opacity:.8}
.hero-art .ring1{width:78%;height:78%;bottom:0;left:11%}


.chips{display:flex;gap:9px;overflow-x:auto;padding:18px 2px 6px;scrollbar-width:thin;position:relative;z-index:1}
.chip{
  white-space:nowrap;border:1.5px solid var(--line);background:#fff;border-radius:999px;
  padding:10px 16px;color:var(--navy);font-weight:700;font-size:13.5px;transition:.15s;display:inline-flex;align-items:center;gap:6px;
}
.chip:hover{border-color:var(--mid)}
.chip.active{background:var(--navy);color:#fff;border-color:var(--navy);box-shadow:var(--shadow-sm)}
.chip .dot{width:8px;height:8px;border-radius:50%;flex:none}

/* ---------- Layout ---------- */
.layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:26px;padding:28px 0 56px}
.sidebar{position:sticky;top:calc(var(--header-h) + 18px);height:max-content;background:#fff;border:1px solid var(--line);border-radius:19px;padding:14px}
.sidebar h2{font-size:11.5px;text-transform:uppercase;letter-spacing:.1em;color:var(--muted-soft);margin:8px 10px 10px;font-weight:800}
.side-link{display:flex;align-items:center;gap:10px;text-decoration:none;padding:11px 11px;border-radius:12px;color:var(--navy);font-size:14px;font-weight:700;transition:background .15s}
.side-link .dot{width:9px;height:9px;border-radius:50%;flex:none}
.side-link:hover{background:var(--pale-soft)}
.sidebar-note{margin:12px 6px 4px;padding:12px;background:var(--paper);border-radius:13px;font-size:12px;color:var(--muted);line-height:1.55}

.catalog-content{min-width:0}

/* ---------- Help / Panduan panel ---------- */
.help{
  margin:0 0 20px;border:1px solid var(--pale);background:linear-gradient(135deg,#EDF7FF,#F5FBFF);
  border-radius:20px;padding:18px 20px;color:var(--navy);
  display:flex;gap:16px;align-items:flex-start;
}
.help[hidden]{display:none}
.help-illus{width:76px;height:auto;flex:none;filter:drop-shadow(0 8px 12px rgba(14,63,138,.15))}
.help-body{min-width:0}
.help h2{font-size:16px;margin:0 0 10px;display:flex;align-items:center;gap:9px;font-weight:800}
.help h2 svg{width:19px;height:19px}
.help ol{margin:0;padding-left:0;list-style:none;display:grid;gap:9px}
.help li{display:flex;gap:11px;font-size:14px;line-height:1.55;color:#1c3a63}
.help li .num{flex:none;width:24px;height:24px;border-radius:50%;background:var(--navy);color:#fff;font-size:12px;font-weight:800;display:grid;place-items:center;margin-top:1px}

.empty{
  border:1px dashed #b8cce2;border-radius:18px;padding:30px 20px;text-align:center;color:var(--muted);
  background:#fff;display:flex;flex-direction:column;align-items:center;gap:10px;
}
.empty img{width:88px;height:auto;opacity:.9}
.empty strong{color:var(--navy);font-size:14px}

/* ---------- Program ---------- */
.program{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius-lg);margin-bottom:18px;
  overflow:hidden;box-shadow:var(--shadow-sm);transition:box-shadow .2s;
}
.program[hidden]{display:none}
.program.is-open{box-shadow:var(--shadow-md)}
.program-toggle,.node-toggle{width:100%;border:0;background:#fff;display:flex;align-items:center;text-align:left}
.program-toggle{padding:20px 22px;gap:16px}
.program-toggle:hover{background:#fbfdff}
.program-icon{width:52px;height:52px;border-radius:15px;display:grid;place-items:center;flex:none;padding:6px;position:relative;overflow:visible}
.program-icon img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 4px 6px rgba(0,0,0,.12))}
.program-icon.tka{background:linear-gradient(160deg,#DCEBFF,#C7E0FF)}
.program-icon.utbk{background:linear-gradient(160deg,#FFF1CE,#FCE6A8)}
.program-icon.reg{background:linear-gradient(160deg,#FFE3D6,#FFD0BA)}
.program-icon.mec{background:linear-gradient(160deg,#E0F3E1,#CBEACD)}
.program-title-wrap{min-width:0}
.program-title{font-size:19px;font-weight:800;color:var(--navy);margin:0;line-height:1.25}
.program-sub{font-size:12.5px;color:var(--muted);margin-top:3px;font-weight:600}
.program-count{font-size:11px;color:var(--muted-soft);margin-top:3px;font-weight:600}
.program-chevron{margin-left:auto;color:var(--navy);transition:transform .2s;width:20px;height:20px;flex:none}
.is-open>.program-toggle .program-chevron,.is-open>.node-toggle .node-chevron{transform:rotate(180deg)}

.program-body{padding:0 22px 22px;border-top:1px solid var(--line-soft)}
.program-desc{color:var(--muted);font-size:13.5px;margin:16px 0 15px;line-height:1.6}

.node{border:1px solid var(--line-soft);border-radius:15px;background:#fff;margin-top:9px;overflow:hidden}
.node-toggle{padding:14px 15px;gap:11px;color:var(--navy);font-weight:700;font-size:14px}
.node-toggle:hover{background:#f7fbff}
.node-toggle .node-dot{width:8px;height:8px;border-radius:50%;background:var(--mid);flex:none}
.node-meta{font-size:11.5px;font-weight:700;color:var(--muted-soft);margin-left:auto;background:var(--paper);padding:4px 9px;border-radius:999px}
.node-chevron{width:17px;height:17px;transition:.2s;flex:none;color:var(--muted-soft)}
.node-body{padding:0 12px 12px 26px}
.node-body[hidden]{display:none}

.package-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding-top:8px}
.package{
  border:1px solid var(--line-soft);border-radius:14px;padding:11px;background:#fcfdff;min-width:0;
  display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;transition:.15s;
}
.package:hover{border-color:var(--pale);box-shadow:var(--shadow-sm)}
.code{font-weight:800;font-size:11.5px;color:var(--navy);background:var(--pale-soft);border-radius:8px;padding:5px 7px;white-space:nowrap}
.package-title{font-size:13px;font-weight:700;line-height:1.3;min-width:0;color:#26344d}
.pkg-detail{font-size:11px;color:var(--muted);display:block;margin-top:3px;font-weight:600}
.pkg-side{display:flex;flex-direction:column;align-items:flex-end;gap:6px;flex:none}
.status{font-size:10px;letter-spacing:.03em;font-weight:800;padding:5px 8px;border-radius:999px;white-space:nowrap;display:inline-flex;align-items:center;gap:5px}
.status::before{content:"";width:6px;height:6px;border-radius:50%}
.available{color:var(--green-ink);background:var(--green-bg)}
.available::before{background:var(--green)}
.soon{color:var(--amber-ink);background:var(--amber-bg)}
.soon::before{background:var(--gold)}
.open-link{
  border:0;background:var(--blue);color:#fff;border-radius:10px;padding:8px 12px;font-size:12px;font-weight:800;
  text-decoration:none;white-space:nowrap;transition:.15s;box-shadow:0 3px 8px rgba(27,95,191,.25);
}
.open-link:hover{background:var(--navy);transform:translateY(-1px)}
.open-link[aria-disabled="true"]{background:#c3cbd6;pointer-events:none;box-shadow:none}
.pkg-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}

.mec-tools{display:flex;gap:9px;flex-wrap:wrap;margin:2px 0 16px}
.stage-chip{border:1.5px solid #bcd9c4;color:#27733b;background:#fff;border-radius:999px;padding:8px 13px;font-size:12.5px;font-weight:700;transition:.15s}
.stage-chip:hover{border-color:var(--green)}
.stage-chip.active{background:var(--green);color:#fff;border-color:var(--green)}

/* ---------- Footer ---------- */
footer{border-top:1px solid var(--line);background:#fff;color:var(--muted);margin-top:8px}
.footer-inner{max-width:1320px;margin:auto;padding:26px 24px;display:flex;flex-wrap:wrap;gap:16px;align-items:center;justify-content:space-between}
.footer-brand{display:flex;align-items:center;gap:10px;font-weight:800;color:var(--navy);font-size:14px}
.footer-brand img{width:30px;height:30px;border-radius:9px}
.footer-note{font-size:13px;max-width:520px;line-height:1.6}

/* ---------- Back to top ---------- */
.back-top{
  position:fixed;right:18px;bottom:18px;width:48px;height:48px;border-radius:50%;background:var(--navy);
  color:#fff;display:none;align-items:center;justify-content:center;box-shadow:var(--shadow-lg);z-index:30;
  opacity:0;transform:translateY(8px);transition:opacity .2s,transform .2s;
}
.back-top.show{display:flex;opacity:1;transform:translateY(0)}
.back-top svg{width:20px;height:20px}
.back-top:hover{background:var(--blue)}

/* ---------- Responsive ---------- */
@media(max-width:980px){
  .layout{grid-template-columns:1fr}
  .sidebar{display:none}
  .hero-art{min-height:230px}
}
@media(max-width:860px){
  .header-nav a:not(.back-link),.header-nav .nav-btn{display:none}
  .hamburger{display:flex}
  .back-link span{display:none}
  .back-link{padding:10px}
  .hero-grid{grid-template-columns:1fr}
  .hero-art{
    order:-1;margin:4px 0 8px;min-height:0;height:auto;
    display:flex;align-items:flex-end;justify-content:center;gap:6%;
    position:relative;padding-top:18px;
  }
  .hero-art .ring{display:none}
  .hero-art .char{position:static;width:auto;filter:drop-shadow(0 10px 16px rgba(14,63,138,.18));transform:none!important}
  .hero-art .char-primary{height:210px}
  .hero-art .char-secondary{height:175px}
}
@media(max-width:600px){
  .wrap{padding-left:16px;padding-right:16px}
  .header-inner{height:62px}
  :root{--header-h:62px}
  .logo{width:38px;height:38px;border-radius:11px}
  .brand-name{font-size:13px}
  .brand-sub{font-size:10px}
  .hero{padding-top:22px}
  h1{margin-top:14px}
  .lead{font-size:15px}
  .description{font-size:14.5px}
  .layout{padding-top:18px}
  .program-toggle{padding:16px}
  .program-icon{width:44px;height:44px;border-radius:13px}
  .program-title{font-size:16.5px}
  .program-body{padding:0 13px 15px}
  .package-list{grid-template-columns:1fr}
  .package{
    grid-template-columns:auto minmax(0,1fr);
    grid-template-areas:"code title" "side side";
    row-gap:9px;
  }
  .package .code{grid-area:code}
  .package .package-title{grid-area:title}
  .package .pkg-side{grid-area:side;flex-direction:row;align-items:center;justify-content:space-between;width:100%}
  .node-body{padding-left:12px}
  .node-toggle{padding:13px 11px}
  .node-meta{display:none}
  .hero-art .char-primary{height:150px}
  .hero-art .char-secondary{height:128px}
  .footer-inner{padding:20px 16px;flex-direction:column;align-items:flex-start}
  .help{padding:15px}
  .help-illus{width:56px}
}
@media(max-width:420px){
  .help-illus{display:none}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;transition:none!important}
}
