/* =========================================================
   PPID Politeknik Negeri Sambas — Frontend Stylesheet
   Warna tema diatur via CSS variable dari panel admin.
   ========================================================= */
:root {
  --primary: #2e9384;
  --primary-dark: #12423c;
  --accent: #f2b134;
  --p-50: color-mix(in srgb, var(--primary) 7%, #fff);
  --p-100: color-mix(in srgb, var(--primary) 14%, #fff);
  --p-200: color-mix(in srgb, var(--primary) 28%, #fff);
  --p-700: color-mix(in srgb, var(--primary) 70%, var(--primary-dark));
  --ink: #17232a;
  --ink-2: #44535c;
  --ink-3: #6b7a83;
  --line: #e3e9ec;
  --bg: #ffffff;
  --bg-soft: #f5f8f8;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(16, 40, 40, .06), 0 2px 6px rgba(16, 40, 40, .05);
  --shadow: 0 10px 30px -12px rgba(16, 40, 40, .22);
  --shadow-lg: 0 24px 60px -20px rgba(16, 40, 40, .35);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif-condensed, 'Plus Jakarta Sans', sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.65; font-size: 16px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--p-700); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--ink); }
p { margin: 0 0 1em; }
.ic { flex-shrink: 0; }
.container { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 999; border-radius: 8px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: 2px; }

/* ── Buttons ─────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 15px; border: 2px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s, color .2s; font-family: inherit; line-height: 1.2; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--primary) 70%, transparent); }
.btn-primary:hover { background: var(--p-700); color: #fff; }
.btn-accent { background: var(--accent); color: var(--primary-dark); }
.btn-accent:hover { color: var(--primary-dark); filter: brightness(1.05); box-shadow: 0 10px 24px -10px var(--accent); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ghost-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-light { background: #fff; color: var(--primary-dark); }
.btn-block { width: 100%; }

/* ── Topbar & header ─────────────────────── */
.topbar { background: var(--primary-dark); color: rgba(255,255,255,.85); font-size: 13px; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 12px; }
.topbar a { color: inherit; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #fff; }
.topbar-info, .topbar-links { display: flex; gap: 20px; }
.announce { background: color-mix(in srgb, var(--accent) 22%, #fff); color: var(--primary-dark); font-size: 14px; font-weight: 600; }
.announce .container { display: flex; align-items: center; gap: 8px; padding-top: 9px; padding-bottom: 9px; }

.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s; }
.site-header.scrolled { box-shadow: 0 6px 24px -14px rgba(0,0,0,.25); border-color: var(--line); }
.header-in { display: flex; align-items: center; gap: 22px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); flex-shrink: 0; }
.brand-img { height: var(--logo-h, 54px); max-height: 96px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-family: var(--display); font-size: 30px; letter-spacing: .5px; color: var(--primary); }
.brand-text small { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .6px; text-transform: uppercase; color: var(--primary-dark); margin-top: 2px; }
.main-nav { margin-left: auto; }
.nav-head { display: none; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav-list li { position: relative; }
.nav-link { display: flex; align-items: center; gap: 4px; padding: 10px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: 14.5px; background: none; border: 0; font-family: inherit; cursor: pointer; white-space: nowrap; }
.nav-list > li > .nav-link .ic { transform: rotate(180deg); transition: transform .2s; opacity: .6; }
.nav-link:hover, .nav-list li:hover > .nav-link { color: var(--primary); background: var(--p-50); }
.sub { list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .18s ease; }
.sub::before { content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.sub .nav-link { padding: 9px 12px; font-size: 14px; font-weight: 500; justify-content: space-between; white-space: normal; width: 100%; text-align: left; }
.sub .sub { top: -9px; left: calc(100% + 8px); }
.sub .sub::before { left: -10px; top: 0; bottom: 0; width: 10px; height: auto; }
.nav-list li:hover > .sub, .nav-list li:focus-within > .sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-list > li:hover > .nav-link .ic { transform: rotate(0deg); }
/* Menu di sisi kanan: buka dropdown/flyout ke kiri agar tidak keluar layar */
.nav-list > li:nth-last-child(-n+2) > .sub { left: auto; right: 0; }
.nav-list > li:nth-last-child(-n+4) .sub .sub { left: auto; right: calc(100% + 8px); }
.nav-list > li:nth-last-child(-n+4) .sub .sub::before { left: auto; right: -10px; }
.site-header .container { max-width: 1360px; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--ink-2); background: var(--bg-soft); border: 0; cursor: pointer; }
.icon-btn:hover { color: var(--primary); background: var(--p-100); }
.nav-toggle { display: none; }
.nav-backdrop { display: none; }

/* ── Hero ─────────────────────────────────── */
.hero { position: relative; overflow: hidden; background: linear-gradient(115deg, var(--p-50) 0%, #fff 55%); padding: 72px 0 96px; }
.hero::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 42%; background: linear-gradient(160deg, color-mix(in srgb, var(--primary) 85%, #fff), var(--primary)); clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%); opacity: .95; }
.hero .dots { position: absolute; width: 90px; height: 60px; background-image: radial-gradient(currentColor 3.5px, transparent 4px); background-size: 30px 30px; }
.hero .dots.d1 { color: rgba(255,255,255,.75); left: 32px; bottom: 32px; }
.hero .dots.d2 { color: var(--primary); opacity: .55; right: 6%; top: 40px; }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
.hero-copy { background: #fff; border: 3px solid var(--ink); padding: 34px 38px; position: relative; box-shadow: 14px 14px 0 var(--primary-dark); border-radius: 4px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--primary-dark); background: var(--p-100); padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; text-transform: uppercase; letter-spacing: .6px; }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 5.6vw, 76px); line-height: .95; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 18px; color: var(--ink); }
.hero h1 span { color: var(--primary); }
.hero-lead { color: var(--ink-2); font-size: 17px; max-width: 560px; }
.hero-search { display: flex; gap: 8px; background: var(--bg-soft); border: 1.5px solid var(--line); border-radius: 999px; padding: 6px; margin: 22px 0 18px; max-width: 560px; transition: border-color .2s, box-shadow .2s; }
.hero-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--p-100); background: #fff; }
.hero-search .ic { margin: auto 4px auto 12px; color: var(--ink-3); }
.hero-search input { flex: 1; width: 100%; border: 0; background: transparent; font: inherit; font-size: 15px; outline: none; min-width: 0; color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-visual { position: relative; }
.hero-visual img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4/3.3; object-fit: cover; width: 100%; }
.doc-stack { position: relative; height: 400px; }
.doc-card { position: absolute; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); padding: 20px; border: 1px solid var(--line); }
.doc-card.c1 { width: 72%; left: 6%; top: 10px; transform: rotate(-5deg); }
.doc-card.c2 { width: 74%; right: 0; top: 90px; transform: rotate(4deg); }
.doc-card.c3 { width: 64%; left: 14%; bottom: 0; }
.doc-card .dc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.doc-card .dc-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--p-100); color: var(--primary); }
.doc-card .dc-title { font-weight: 700; font-size: 14px; }
.doc-card .dc-meta { font-size: 12px; color: var(--ink-3); }
.doc-card .bar { height: 8px; border-radius: 8px; background: var(--bg-soft); margin-bottom: 8px; }
.doc-card .bar.w70 { width: 70%; } .doc-card .bar.w50 { width: 50%; } .doc-card .bar.w85 { width: 85%; }
.doc-card .dc-stamp { position: absolute; right: 16px; top: 16px; font-size: 11px; font-weight: 800; color: var(--primary); border: 2px solid var(--primary); padding: 2px 8px; border-radius: 6px; transform: rotate(8deg); letter-spacing: .5px; }
.doc-card.c3 { display: flex; align-items: center; gap: 14px; background: var(--primary-dark); color: #fff; border: 0; }
.doc-card.c3 .dc-ico { background: var(--accent); color: var(--primary-dark); }
.doc-card.c3 .dc-meta { color: rgba(255,255,255,.7); }

/* ── Stats ───────────────────────────────── */
.stats { margin-top: -54px; position: relative; z-index: 2; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }
.stat { padding: 26px 24px; display: flex; gap: 16px; align-items: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-ico { width: 52px; height: 52px; border-radius: 16px; background: var(--p-100); color: var(--primary); display: grid; place-items: center; flex-shrink: 0; }
.stat strong { display: block; font-family: var(--display); font-size: 36px; line-height: 1; color: var(--ink); }
.stat span { font-size: 13.5px; color: var(--ink-3); font-weight: 500; }

/* ── Sections ─────────────────────────────── */
.section { padding: 88px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 38px; flex-wrap: wrap; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--primary); margin-bottom: 10px; }
.eyebrow::before { content: ''; width: 26px; height: 3px; border-radius: 3px; background: var(--accent); }
.section-title { font-family: var(--display); font-size: clamp(32px, 4vw, 48px); font-weight: 800; text-transform: uppercase; letter-spacing: .5px; margin: 0; line-height: 1; }
.section-sub { color: var(--ink-3); max-width: 620px; margin: 12px 0 0; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service { position: relative; display: flex; gap: 18px; padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); color: var(--ink); transition: transform .2s, box-shadow .2s, border-color .2s; overflow: hidden; }
.service::after { content: ''; position: absolute; right: -40px; bottom: -40px; width: 110px; height: 110px; border-radius: 50%; background: var(--p-50); transition: transform .3s; }
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--p-200); color: var(--ink); }
.service:hover::after { transform: scale(1.6); }
.service-ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--primary); color: #fff; flex-shrink: 0; position: relative; z-index: 1; }
.service h3 { font-size: 17.5px; margin-bottom: 6px; }
.service p { font-size: 14px; color: var(--ink-3); margin: 0; }
.service > div { position: relative; z-index: 1; }

/* Klasifikasi */
.klas-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.klas { border-radius: var(--radius-lg); padding: 28px 24px; color: #fff; position: relative; overflow: hidden; min-height: 230px; display: flex; flex-direction: column; background: var(--primary); transition: transform .2s; }
.klas:nth-child(2) { background: var(--p-700); }
.klas:nth-child(3) { background: color-mix(in srgb, var(--primary) 45%, var(--primary-dark)); }
.klas:nth-child(4) { background: var(--primary-dark); }
.klas:hover { transform: translateY(-4px); color: #fff; }
.klas .ic-wrap { width: 48px; height: 48px; border-radius: 14px; background: rgba(255,255,255,.16); display: grid; place-items: center; margin-bottom: 18px; }
.klas h3 { color: #fff; font-size: 19px; }
.klas p { color: rgba(255,255,255,.8); font-size: 14px; }
.klas .count { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 14px; }
.klas .count b { font-family: var(--display); font-size: 30px; color: var(--accent); }
.klas::after { content: ''; position: absolute; width: 140px; height: 140px; right: -50px; top: -50px; border: 22px solid rgba(255,255,255,.07); border-radius: 50%; }

/* Documents list */
.doc-list { display: grid; gap: 12px; }
.doc-item { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.doc-item:hover { border-color: var(--p-200); box-shadow: var(--shadow-sm); }
.ftype { width: 50px; height: 58px; border-radius: 10px; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; position: relative; letter-spacing: .4px; background: #64748b; }
.ftype::before { content: ''; position: absolute; right: 0; top: 0; width: 14px; height: 14px; background: rgba(255,255,255,.35); border-bottom-left-radius: 6px; }
.ftype.pdf { background: #d64541; } .ftype.word { background: #2b6cc4; } .ftype.excel { background: #1f8a4c; } .ftype.ppt { background: #d0632a; } .ftype.image { background: #8a4fd0; } .ftype.zip { background: #6b5b3e; } .ftype.link { background: var(--primary); }
.doc-info h3 { font-size: 16px; margin: 0 0 4px; }
.doc-info h3 a { color: var(--ink); }
.doc-info h3 a:hover { color: var(--primary); }
.doc-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink-3); }
.doc-meta span { display: inline-flex; align-items: center; gap: 5px; }
.doc-meta .tag { background: var(--p-50); color: var(--p-700); padding: 1px 10px; border-radius: 999px; font-weight: 600; }
.doc-actions { display: flex; gap: 8px; }
.doc-actions .btn { padding: 9px 14px; font-size: 13.5px; }

/* Flow */
.flow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; counter-reset: step; position: relative; }
.flow::before { content: ''; position: absolute; top: 31px; left: 8%; right: 8%; height: 3px; background: repeating-linear-gradient(90deg, var(--p-200) 0 10px, transparent 10px 18px); }
.flow-step { text-align: center; padding: 0 10px; position: relative; }
.flow-num { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); display: grid; place-items: center; font-family: var(--display); font-size: 28px; font-weight: 800; color: var(--primary); position: relative; z-index: 1; transition: background .2s, color .2s; }
.flow-step:hover .flow-num { background: var(--primary); color: #fff; }
.flow-step:nth-child(n+5) .flow-num { border-color: var(--accent); color: color-mix(in srgb, var(--accent) 60%, #000); }
.flow-step h3 { font-size: 16px; margin-bottom: 6px; }
.flow-step p { font-size: 13.5px; color: var(--ink-3); margin: 0; }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); display: grid; place-items: center; color: rgba(255,255,255,.5); overflow: hidden; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.news-date { font-size: 13px; color: var(--primary); font-weight: 700; display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.news-body h3 { font-size: 18px; }
.news-body h3 a { color: var(--ink); }
.news-body p { color: var(--ink-3); font-size: 14.5px; margin-bottom: 14px; }
.news-body .link-more { margin-top: auto; font-size: 14px; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; font-weight: 700; font-size: 16.5px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--p-100); color: var(--primary); font-size: 20px; font-weight: 600; transition: transform .2s; }
.faq[open] summary::after { content: '−'; background: var(--primary); color: #fff; }
.faq[open] summary { color: var(--primary); }
.faq .faq-a { padding: 0 44px 20px 0; color: var(--ink-2); }
.faq-aside { background: var(--primary-dark); color: #fff; border-radius: var(--radius-lg); padding: 34px; position: sticky; top: calc(var(--header-h) + 20px); }
.faq-aside h3 { color: #fff; font-family: var(--display); font-size: 32px; text-transform: uppercase; }
.faq-aside p { color: rgba(255,255,255,.8); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 26px; }
.contact-card { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); padding: 30px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; }
.contact-list .c-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--p-100); color: var(--primary); display: grid; place-items: center; flex-shrink: 0; }
.contact-list small { display: block; color: var(--ink-3); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.map-box { border-radius: var(--radius-lg); overflow: hidden; min-height: 340px; background: var(--p-50); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-3); }
.map-box iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* ── Inner page ──────────────────────────── */
.page-hero { background: linear-gradient(120deg, var(--primary-dark), var(--primary)); color: #fff; padding: 46px 0 52px; position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(255,255,255,.06); }
.page-hero h1 { color: #fff; font-family: var(--display); font-size: clamp(32px, 4.5vw, 52px); text-transform: uppercase; letter-spacing: .5px; margin: 6px 0 4px; }
.page-hero p { color: rgba(255,255,255,.82); margin: 0; max-width: 720px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: rgba(255,255,255,.7); align-items: center; }
.crumbs a { color: rgba(255,255,255,.9); }
.crumbs a:hover { color: #fff; }
.page-body { padding: 48px 0 80px; }
.layout-side { display: grid; grid-template-columns: 1fr 300px; gap: 36px; align-items: start; }
.layout-side.left { grid-template-columns: 280px 1fr; }
.side-nav { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: sticky; top: calc(var(--header-h) + 16px); }
.side-nav h3 { margin: 0; padding: 16px 20px; background: var(--primary); color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .6px; }
.side-nav ul { list-style: none; margin: 0; padding: 6px; }
.side-nav a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 10px; color: var(--ink-2); font-size: 14.5px; font-weight: 500; }
.side-nav a:hover { background: var(--p-50); color: var(--primary); }
.side-nav a.active { background: var(--p-100); color: var(--p-700); font-weight: 700; }
.side-nav .cnt { font-size: 12px; background: var(--bg-soft); padding: 1px 8px; border-radius: 999px; color: var(--ink-3); }
.prose { font-size: 16.5px; color: var(--ink-2); }
.prose h2, .prose h3, .prose h4 { color: var(--ink); margin-top: 1.4em; }
.prose img { border-radius: 12px; margin: 1em 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.2em 0; padding: 18px 22px; border-left: 5px solid var(--primary); background: var(--p-50); border-radius: 0 12px 12px 0; font-size: 17.5px; color: var(--ink); font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.prose th { background: var(--p-50); color: var(--ink); }
.prose iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 12px; }
.prose .ql-align-center { text-align: center; } .prose .ql-align-right { text-align: right; } .prose .ql-align-justify { text-align: justify; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; }
.page-meta { display: flex; gap: 18px; color: var(--ink-3); font-size: 13.5px; margin-bottom: 20px; flex-wrap: wrap; }
.page-meta span { display: inline-flex; align-items: center; gap: 6px; }

/* Filter bar */
.filter-bar { display: grid; grid-template-columns: 1fr 180px 140px auto; gap: 10px; margin-bottom: 22px; }
.result-info { color: var(--ink-3); font-size: 14px; margin-bottom: 14px; }
.empty { text-align: center; padding: 60px 20px; color: var(--ink-3); background: var(--bg-soft); border-radius: var(--radius-lg); border: 2px dashed var(--line); }
.empty .ic { margin: 0 auto 12px; color: var(--p-200); }

/* Viewer */
.viewer { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #525659; }
.viewer iframe { width: 100%; height: 78vh; min-height: 520px; border: 0; display: block; }
.viewer img { margin: 0 auto; }
.doc-detail-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 20px; }
.info-table { width: 100%; font-size: 14px; border-collapse: collapse; }
.info-table td { padding: 8px 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
.info-table td:first-child { color: var(--ink-3); width: 45%; }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--ink); }
.field label .req { color: #d64541; }
.field .hint { font-size: 12.5px; color: var(--ink-3); margin-top: 5px; }
.input, select.input, textarea.input { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; font-size: 15px; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s; }
textarea.input { min-height: 130px; resize: vertical; }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--p-100); }
.type-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 26px; }
.type-tab { display: flex; gap: 12px; align-items: center; padding: 16px; border-radius: var(--radius); border: 2px solid var(--line); color: var(--ink); background: #fff; font-weight: 700; transition: .2s; }
.type-tab .t-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-soft); color: var(--ink-3); }
.type-tab small { display: block; font-weight: 500; color: var(--ink-3); font-size: 12.5px; }
.type-tab:hover { border-color: var(--p-200); color: var(--ink); }
.type-tab.active { border-color: var(--primary); background: var(--p-50); }
.type-tab.active .t-ico { background: var(--primary); color: #fff; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.captcha-row { display: flex; align-items: center; gap: 12px; }
.captcha-q { font-family: var(--display); font-size: 24px; font-weight: 800; background: var(--p-100); color: var(--p-700); padding: 6px 16px; border-radius: 10px; letter-spacing: 1px; white-space: nowrap; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.check input { margin-top: 4px; accent-color: var(--primary); width: 17px; height: 17px; }
.alert { padding: 14px 18px; border-radius: 12px; margin: 18px 0; font-size: 14.5px; border: 1px solid; }
.alert-success { background: #ecfaf1; border-color: #b6e7c8; color: #17663a; }
.alert-danger, .alert-error { background: #fdf0ef; border-color: #f4c7c3; color: #9b2a24; }
.alert-warning { background: #fff8e8; border-color: #f6dfa5; color: #7a5600; }
.alert-info { background: var(--p-50); border-color: var(--p-200); color: var(--p-700); }
.alert ul { margin: 6px 0 0; padding-left: 18px; }

.ticket-box { text-align: center; padding: 40px 28px; }
.ticket-box .check-ico { width: 78px; height: 78px; border-radius: 50%; background: #e3f6ea; color: #1f8a4c; display: grid; place-items: center; margin: 0 auto 18px; }
.ticket-code { display: inline-block; font-family: var(--display); font-size: 40px; font-weight: 800; letter-spacing: 2px; padding: 10px 26px; border: 3px dashed var(--primary); border-radius: 14px; color: var(--primary-dark); margin: 12px 0 20px; background: var(--p-50); user-select: all; }

/* Status timeline */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.badge-info { background: #e8f1fd; color: #1d5fb0; } .badge-warning { background: #fff4dc; color: #8a5a00; } .badge-success { background: #e3f6ea; color: #17663a; } .badge-danger { background: #fde9e7; color: #a42c25; }
.timeline { list-style: none; padding: 0; margin: 20px 0 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 15px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 22px 48px; }
.timeline .dot { position: absolute; left: 4px; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--line); }
.timeline li.done .dot { background: var(--primary); border-color: var(--primary); }
.timeline li.current .dot { border-color: var(--primary); box-shadow: 0 0 0 5px var(--p-100); }
.timeline h4 { margin: 0 0 2px; font-size: 15.5px; }
.timeline p { margin: 0; font-size: 13.5px; color: var(--ink-3); }
.response-box { margin-top: 20px; background: var(--p-50); border: 1px solid var(--p-200); border-radius: 14px; padding: 20px; }

/* Statistik */
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.stat-card b { display: block; font-family: var(--display); font-size: 40px; line-height: 1; color: var(--primary-dark); }
.stat-card span { font-size: 13.5px; color: var(--ink-3); }
.bars { display: grid; gap: 14px; }
.bar-row { display: grid; grid-template-columns: 170px 1fr 50px; gap: 12px; align-items: center; font-size: 14px; }
.bar-track { height: 12px; background: var(--bg-soft); border-radius: 12px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--primary); border-radius: 12px; }

/* Pagination */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; font-size: 14px; }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .dots { border: 0; }

/* ── Footer ─────────────────────────────── */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,.75); margin-top: 0; }
.footer-cta { background: var(--primary); position: relative; overflow: hidden; }
.footer-cta::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.18) 2px, transparent 2.5px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent 40%, #000); }
.footer-cta-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 40px; padding-bottom: 40px; position: relative; flex-wrap: wrap; }
.footer-cta h2 { color: #fff; font-family: var(--display); font-size: clamp(26px, 3vw, 36px); text-transform: uppercase; margin: 0 0 4px; }
.footer-cta p { color: rgba(255,255,255,.85); margin: 0; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 36px; padding-top: 60px; padding-bottom: 46px; }
.site-footer h3 { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 18px; }
.f-brand { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 700; margin-bottom: 14px; }
.f-mark { font-family: var(--display); font-size: 22px; font-weight: 800; background: var(--accent); color: var(--primary-dark); padding: 4px 10px; border-radius: 8px; }
.f-about p { font-size: 14.5px; }
.f-links, .f-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14.5px; }
.f-links a, .f-contact a { color: rgba(255,255,255,.75); }
.f-links a:hover, .f-contact a:hover { color: var(--accent); }
.f-contact li { display: flex; gap: 10px; }
.f-contact .ic { color: var(--accent); margin-top: 3px; }
.socials { display: flex; gap: 8px; }
.socials a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.socials a:hover { background: var(--accent); color: var(--primary-dark); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); font-size: 13.5px; }
.fb-in { display: flex; justify-content: space-between; gap: 12px; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap; }
.to-top { position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 14px; background: var(--primary); color: #fff; border: 0; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(12px); transition: .25s; z-index: 50; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.wa-float { position: fixed; right: 20px; bottom: 78px; width: 52px; height: 52px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); z-index: 50; }
.wa-float:hover { color: #fff; transform: scale(1.06); }

/* Reveal animation */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ── Responsive ───────────────────────────── */
@media (max-width: 1440px) { .hide-md { display: none; } }
@media (max-width: 1180px) { .nav-link { padding: 10px 9px; font-size: 14px; } }
@media (max-width: 1080px) {
  .nav-toggle { display: inline-grid; }
  .main-nav { position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); background: #fff; z-index: 80; transform: translateX(100%); transition: transform .3s ease; overflow-y: auto; padding: 0 16px 30px; box-shadow: var(--shadow-lg); }
  .main-nav.open { transform: none; }
  .nav-head { display: flex; justify-content: space-between; align-items: center; height: 66px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
  .nav-close { background: var(--bg-soft); border: 0; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link { justify-content: space-between; width: 100%; padding: 12px 12px; font-size: 15px; white-space: normal; text-align: left; }
  .nav-list > li > .nav-link .ic, .sub .nav-link .ic { transform: rotate(90deg); }
  .has-sub.open > .nav-link .ic { transform: rotate(-90deg) !important; }
  .nav-list > li.has-sub.open > .nav-link .ic { transform: rotate(0) !important; }
  .sub, .sub .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-left: 2px solid var(--p-100); border-radius: 0; margin-left: 12px; padding: 0 0 0 6px; display: none; min-width: 0; }
  .has-sub.open > .sub { display: block; }
  .nav-list li:hover > .sub { display: none; }
  .nav-list li.open:hover > .sub { display: block; }
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(10, 25, 25, .45); z-index: 55; opacity: 0; visibility: hidden; transition: .3s; display: block; }
  .nav-backdrop.show { opacity: 1; visibility: visible; }
  .hero-in { grid-template-columns: minmax(0, 1fr); }
  .hero::before { width: 100%; height: 46%; clip-path: polygon(0 0, 100% 0, 100% 70%, 0 100%); }
  .doc-stack { height: 340px; max-width: 520px; margin: 0 auto; width: 100%; }
  .services-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .klas-grid { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(3, 1fr); gap: 34px 0; }
  .flow::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .faq-wrap, .contact-grid, .layout-side, .layout-side.left, .grid-2 { grid-template-columns: 1fr; }
  .side-nav, .faq-aside { position: static; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .hide-sm { display: none !important; }
  .section { padding: 64px 0; }
  .hero { padding: 40px 0 90px; }
  .hero-copy { padding: 24px 20px; box-shadow: 8px 8px 0 var(--primary-dark); margin-right: 8px; }
  .hero h1 { font-size: 36px; }
  .hero-search .btn { padding: 10px 14px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 18px 16px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .stat + .stat { border-left: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .services-grid, .news-grid, .klas-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .doc-item { grid-template-columns: auto 1fr; }
  .doc-actions { grid-column: 1 / -1; }
  .doc-actions .btn { flex: 1; }
  .filter-bar, .form-grid, .type-tabs { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .bar-row { grid-template-columns: 110px 1fr 40px; }
  .brand-text strong { font-size: 26px; }
  .brand-text small { font-size: 12px; }
  .card { padding: 22px; }
  .ticket-code { font-size: 28px; }
}

/* ── Opsi tampilan dari Pengaturan ───────────────────────── */
body.radius-soft { --radius: 8px; --radius-lg: 12px; }
body.radius-sharp { --radius: 2px; --radius-lg: 4px; }
body.radius-sharp .btn, body.radius-sharp .hero-search, body.radius-sharp .hero-badge, body.radius-sharp .tag,
body.radius-sharp .icon-btn, body.radius-sharp .input, body.radius-sharp .stat-ico, body.radius-sharp .service-ico { border-radius: 3px !important; }
body.radius-soft .btn, body.radius-soft .hero-search { border-radius: 10px; }
body.hd-normal .hero h1, body.hd-normal .section-title, body.hd-normal .page-hero h1, body.hd-normal .faq-aside h3,
body.hd-normal .footer-cta h2 { font-family: var(--font); text-transform: none; letter-spacing: -.5px; line-height: 1.12; }
body.hd-normal .hero h1 { font-size: clamp(34px, 4.4vw, 58px); }
body.hd-normal .stat strong, body.hd-normal .stat-card b, body.hd-normal .flow-num, body.hd-normal .klas .count b, body.hd-normal .ticket-code { font-family: var(--font); }
body.no-anim .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
body.no-sticky .site-header { position: relative; }
.top-social { display: flex; gap: 10px; }
.top-social a { opacity: .85; } .top-social a:hover { opacity: 1; }
.socials a .ic { width: 17px; height: 17px; }
.announce a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.nav-cta-mobile { display: none; }

/* Hero varian */
.hero-plain .hero-copy { background: transparent; border: 0; box-shadow: none; padding: 0; }
.hero-plain::before { display: none; }
.hero-plain { background: linear-gradient(120deg, var(--p-100), #fff 60%); }
.hero.no-visual .hero-in { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
.hero.no-visual.hero-plain .hero-in { text-align: center; }
.hero.no-visual.hero-plain .hero-lead, .hero.no-visual.hero-plain .hero-search { margin-left: auto; margin-right: auto; }
.hero.no-visual.hero-plain .hero-actions { justify-content: center; }

/* Statistik: jumlah kolom dinamis & posisi */
.stats.standalone { margin-top: 0; padding: 48px 0; }
.stats-grid.n-1 { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
.stats-grid.n-2 { grid-template-columns: repeat(2, 1fr); }
.stats-grid.n-3 { grid-template-columns: repeat(3, 1fr); }
.flow.n-3 { grid-template-columns: repeat(3, 1fr); } .flow.n-4 { grid-template-columns: repeat(4, 1fr); }
.flow.n-5 { grid-template-columns: repeat(5, 1fr); } .flow.n-7 { grid-template-columns: repeat(7, 1fr); } .flow.n-8 { grid-template-columns: repeat(8, 1fr); }
.flow.n-1, .flow.n-2 { grid-template-columns: repeat(2, 1fr); }
.footer-grid.cols-1 { grid-template-columns: 1fr; } .footer-grid.cols-2 { grid-template-columns: 1fr 1fr; } .footer-grid.cols-3 { grid-template-columns: 1.3fr 1fr 1.2fr; }
.type-tabs.n-1 { grid-template-columns: 1fr; max-width: 420px; } .type-tabs.n-2 { grid-template-columns: repeat(2, 1fr); }
.filter-bar.simple { grid-template-columns: 1fr auto; }

/* Popup pencarian */
.search-pop { position: fixed; inset: 0; z-index: 90; background: rgba(8, 24, 24, .55); backdrop-filter: blur(4px); display: flex; align-items: flex-start; padding-top: 12vh; animation: fadeIn .18s ease; }
.search-pop[hidden] { display: none; }
.search-pop-in { position: relative; max-width: 760px; background: #fff; border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-lg); }
.search-pop-form { display: flex; align-items: center; gap: 12px; border-bottom: 2px solid var(--line); padding: 4px 4px 14px; margin-right: 44px; }
.search-pop-form:focus-within { border-color: var(--primary); }
.search-pop-form .ic { color: var(--primary); }
.search-pop-form input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 20px; color: var(--ink); background: transparent; }
.search-pop-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; align-items: center; font-size: 13.5px; color: var(--ink-3); }
.search-pop-tags a { background: var(--p-50); color: var(--p-700); padding: 5px 12px; border-radius: 999px; font-weight: 600; }
.search-pop-tags a:hover { background: var(--primary); color: #fff; }
.search-close { position: absolute; right: 18px; top: 18px; width: 40px; height: 40px; border-radius: 10px; border: 0; background: var(--bg-soft); cursor: pointer; display: grid; place-items: center; color: var(--ink-2); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 1080px) {
  .nav-cta-mobile { display: flex; margin-top: 16px; }
  .flow[class*="n-"] { grid-template-columns: repeat(3, 1fr); }
  .footer-grid[class*="cols-"] { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .stats-grid.n-3 { grid-template-columns: 1fr 1fr; }
  .flow[class*="n-"] { grid-template-columns: 1fr 1fr; }
  .footer-grid[class*="cols-"], .type-tabs[class*="n-"] { grid-template-columns: 1fr; }
  .search-pop { padding-top: 0; }
  .search-pop-in { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
  .search-pop-form input { font-size: 17px; }
}
