/* =====================================================================
   PGM — Persatuan Guru Madrasah  ·  Public site + app (PWA) styles
   Desktop: website modern   |   ≤768px: tampilan aplikasi HP
   Ganti warna cukup lewat variabel di :root
   ===================================================================== */
:root {
    --primary: #27632b;
    --primary-2: #2f7934;
    --primary-light: #5eac4e;
    --primary-dark: #1e4d21;
    --gold: #e4b81c;
    --gold-soft: #fbf3c9;
    --ink: #0b1f1a;
    --muted: #5b6f68;
    --line: #e3ebe7;
    --bg: #f4f8f5;
    --surface: #ffffff;
    --tint: #eef7ee;
    --accent: #488835;
    --accent-dark: #2d5421;
    --primary-soft: #daf1dc;
    --primary-rgb: 39,99,43;
    --primary-light-rgb: 94,172,78;
    --primary-dark-rgb: 30,77,33;

    --gradient: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-2) 55%, var(--accent) 100%);
    --gradient-gold: linear-gradient(135deg, #f0cf3a 0%, #d9a914 100%);
    --shadow-sm: 0 1px 2px rgba(6,40,30,.06), 0 2px 8px rgba(6,40,30,.05);
    --shadow: 0 6px 24px rgba(6,40,30,.08);
    --shadow-lg: 0 18px 50px rgba(6,40,30,.16);
    --radius: 20px;

    --nav-h: 72px;
    --tab-h: 64px;
    --safe-t: env(safe-area-inset-top, 0px);
    --safe-b: env(safe-area-inset-bottom, 0px);

    --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===================== NAVBAR (desktop) ===================== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,.82);
    backdrop-filter: saturate(160%) blur(16px);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    border-bottom: 1px solid rgba(var(--primary-rgb),.08);
    transition: box-shadow .3s, background .3s;
    padding-top: var(--safe-t);
}
.navbar.scrolled { box-shadow: 0 6px 30px rgba(6,40,30,.08); background: rgba(255,255,255,.94); }
.nav-container {
    max-width: 1240px; margin: 0 auto; padding: 0 28px;
    height: var(--nav-h);
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon, .logo-img {
    width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0;
}
.logo-icon {
    background: var(--gradient); color: #fff; font-size: 20px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 16px rgba(var(--primary-rgb),.35);
}
.logo-img { object-fit: contain; background: #fff; padding: 3px; }
.logo-text { display: flex; flex-direction: column; gap: 3px; }
.logo-title { display: block; font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--primary); line-height: 1; letter-spacing: .5px; }
.logo-sub { font-size: 11px; color: var(--muted); font-weight: 500; }

.nav-menu { display: flex; list-style: none; align-items: center; gap: 2px; }
.nav-link {
    color: var(--ink); text-decoration: none; padding: 10px 16px; border-radius: 12px;
    font-weight: 600; font-size: 14px; position: relative;
    display: flex; align-items: center; gap: 6px; transition: color .2s, background .2s;
}
.nav-link .caret { font-size: 10px; transition: transform .25s; }
.nav-link:hover { color: var(--primary); background: var(--tint); }
.nav-link.active { color: var(--primary); }
.nav-link.active::after {
    content: ''; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 3px;
    border-radius: 3px; background: var(--gradient-gold);
}
.dropdown { position: relative; }
.dropdown:hover .caret { transform: rotate(180deg); }
.dropdown-menu {
    position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px; list-style: none;
    background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 8px;
    box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .22s;
}
.dropdown::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a {
    display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px;
    color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; transition: .2s;
}
.dropdown-menu a i { width: 18px; color: var(--primary-2); }
.dropdown-menu a:hover { background: var(--tint); color: var(--primary); }

.btn-register {
    margin-left: 8px; background: var(--gradient); color: #fff !important; padding: 11px 22px; border-radius: 999px;
    text-decoration: none; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 8px;
    box-shadow: 0 8px 20px rgba(var(--primary-rgb),.28); transition: transform .25s, box-shadow .25s;
}
.btn-register:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(var(--primary-rgb),.38); }

/* elemen khusus mobile — disembunyikan di desktop */
.app-back, .app-title, .app-bar-action, .tabbar, .sheet, .sheet-backdrop, .quick-menu { display: none; }

/* ===================== BUTTONS ===================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 13px 28px; border-radius: 999px; font-weight: 700; font-size: 14px; letter-spacing: .1px;
    text-decoration: none; border: 2px solid transparent; cursor: pointer;
    transition: transform .25s, box-shadow .25s, background .25s, color .25s, border-color .25s;
    touch-action: manipulation;
}
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 8px 22px rgba(var(--primary-rgb),.28); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(var(--primary-rgb),.38); }
.btn-outline { background: #fff; color: var(--primary); border-color: var(--line); }
.btn-outline:hover { border-color: var(--primary); background: var(--tint); transform: translateY(-2px); }
.btn-ghost { background: rgba(var(--primary-rgb),.07); color: var(--primary); }
.btn-ghost:hover { background: rgba(var(--primary-rgb),.14); }
.btn-gold { background: var(--gradient-gold); color: #3b2a00; box-shadow: 0 10px 26px rgba(228,184,28,.4); }
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(228,184,28,.5); }
.btn-lg { padding: 16px 34px; font-size: 15px; }
.btn-sm { padding: 10px 18px; font-size: 13px; }

/* ===================== HERO ===================== */
.hero {
    position: relative; overflow: hidden;
    min-height: 100vh; padding: calc(var(--nav-h) + 56px) 6% 70px;
    display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 48px;
    background: linear-gradient(160deg, #f4faf7 0%, #e6f3ec 55%, #fdf6dd 130%);
}
.hero-bg {
    position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23065f46' stroke-opacity='.09' stroke-width='1.2'%3E%3Cpath d='M40 6l9.6 14.4L66 14l-6.4 16.4L74 40l-14.4 9.6L66 66l-16.4-6.4L40 74l-9.6-14.4L14 66l6.4-16.4L6 40l14.4-9.6L14 14l16.4 6.4z'/%3E%3C/g%3E%3C/svg%3E");
    -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%);
            mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%);
}
.hero::before, .hero::after { content: ''; position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; }
.hero::before { width: 460px; height: 460px; right: -80px; top: -60px; background: rgba(var(--primary-light-rgb),.28); animation: drift 12s ease-in-out infinite; }
.hero::after  { width: 340px; height: 340px; left: -90px; bottom: -80px; background: rgba(228,184,28,.22); animation: drift 14s ease-in-out infinite reverse; }
@keyframes drift { 50% { transform: translate(30px, -26px) scale(1.08); } }

.hero-content, .hero-visual { position: relative; z-index: 2; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
    background: #fff; color: var(--primary); border: 1px solid rgba(var(--primary-rgb),.14);
    padding: 8px 16px; border-radius: 999px; font-size: 12.5px; font-weight: 700; box-shadow: var(--shadow-sm);
}
.hero-badge i { color: var(--gold); }
.hero h1 {
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(2.2rem, 4.6vw, 3.8rem); line-height: 1.08; letter-spacing: -.02em; margin-bottom: 22px;
}
.gradient-text {
    background: linear-gradient(120deg, var(--primary-2) 10%, var(--accent) 55%, #c9a010 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p { font-size: 1.08rem; color: var(--muted); margin-bottom: 32px; max-width: 540px; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-stats {
    display: inline-flex; gap: 0; background: rgba(255,255,255,.75); backdrop-filter: blur(8px);
    border: 1px solid #fff; border-radius: 20px; box-shadow: var(--shadow); overflow: hidden;
}
.stat { padding: 16px 28px; text-align: left; position: relative; }
.stat + .stat::before { content: ''; position: absolute; left: 0; top: 18%; bottom: 18%; width: 1px; background: var(--line); }
.stat h3 { font-family: var(--font-display); font-size: 1.9rem; line-height: 1.1; color: var(--primary); }
.stat p { margin: 0; font-size: 12px; color: var(--muted); font-weight: 600; }

/* kartu KTA ilustrasi */
.hero-visual { height: 520px; display: flex; align-items: center; justify-content: center; }
.mock-card {
    width: min(100%, 440px); border-radius: 26px; padding: 22px;
    background: linear-gradient(145deg, var(--primary) 0%, var(--primary-2) 60%, var(--accent-dark) 100%);
    color: #fff; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.12) inset;
    transform: rotate(-6deg); animation: cardFloat 7s ease-in-out infinite; position: relative; overflow: hidden;
}
.mock-card::before {
    content: ''; position: absolute; inset: 0; opacity: .5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.12' stroke-width='1.2'%3E%3Cpath d='M40 6l9.6 14.4L66 14l-6.4 16.4L74 40l-14.4 9.6L66 66l-16.4-6.4L40 74l-9.6-14.4L14 66l6.4-16.4L6 40l14.4-9.6L14 14l16.4 6.4z'/%3E%3C/g%3E%3C/svg%3E");
}
.mock-card::after { content: ''; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: rgba(228,184,28,.22); }
@keyframes cardFloat { 50% { transform: rotate(-3deg) translateY(-14px); } }
.mc-top, .mc-body, .mc-foot { position: relative; z-index: 1; }
.mc-top { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.2); }
.mc-logo { width: 44px; height: 44px; border-radius: 12px; background: var(--gradient-gold); color: #3b2a00; display: grid; place-items: center; font-size: 19px; }
.mc-top b { display: block; font-size: 13px; letter-spacing: .5px; }
.mc-top small { font-size: 10px; letter-spacing: 2px; opacity: .8; }
.mc-body { display: grid; grid-template-columns: 90px 1fr 54px; gap: 16px; align-items: center; padding: 22px 0; }
.mc-photo { height: 116px; border-radius: 14px; background: rgba(255,255,255,.15); border: 2px solid rgba(255,255,255,.35); display: grid; place-items: center; font-size: 40px; color: rgba(255,255,255,.7); }
.mc-lines { display: flex; flex-direction: column; gap: 12px; }
.mc-lines i { height: 10px; border-radius: 6px; background: rgba(255,255,255,.32); }
.mc-lines i.short { width: 60%; }
.mc-qr { width: 54px; height: 54px; border-radius: 10px; background: #fff; color: var(--ink); display: grid; place-items: center; font-size: 30px; }
.mc-foot { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; letter-spacing: 1px; }
.mc-chip { background: rgba(255,255,255,.16); padding: 5px 12px; border-radius: 999px; font-size: 11px; letter-spacing: .3px; }
.mc-chip i { color: var(--gold); margin-right: 4px; }

.float-chip {
    position: absolute; z-index: 3; background: #fff; border-radius: 16px; padding: 11px 16px;
    font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 8px; box-shadow: var(--shadow-lg);
    animation: chipFloat 6s ease-in-out infinite;
}
.float-chip i { color: var(--primary-light); }
.fc-1 { top: 8%; left: 2%; }
.fc-2 { bottom: 14%; right: 0; animation-delay: -2s; }
.fc-2 i { color: var(--gold); }
.fc-3 { bottom: 4%; left: 8%; animation-delay: -4s; }
@keyframes chipFloat { 50% { transform: translateY(-12px); } }

/* ===================== SECTIONS ===================== */
.features, .news-section, .articles-section, .content-section { padding: 90px 6%; }
.features { background: var(--surface); }
.news-section { background: var(--bg); }
.articles-section { background: var(--surface); }
.content-section.pull-up { margin-top: -50px; position: relative; z-index: 3; padding-top: 0; }

.eyebrow {
    display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
    color: var(--primary-2); margin-bottom: 10px;
}
.eyebrow.light { color: var(--gold); }
.section-header { text-align: center; max-width: 1200px; margin: 0 auto 52px; }
.section-header h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.15; margin-bottom: 10px; letter-spacing: -.01em; }
.section-header p { color: var(--muted); }
.section-header.row { display: flex; justify-content: space-between; align-items: flex-end; text-align: left; gap: 16px; }
.see-all { color: var(--primary); font-weight: 700; font-size: 14px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 10px 16px; border-radius: 999px; background: var(--tint); transition: gap .25s, background .25s; }
.see-all:hover { gap: 14px; background: #dcefe5; }

.features-grid, .card-grid, .docs-grid, .gallery-grid {
    max-width: 1200px; margin: 0 auto; display: grid; gap: 26px;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}
.features-grid { grid-template-columns: repeat(4, 1fr); }

.feature-card {
    background: var(--bg); border: 1px solid transparent; border-radius: 24px; padding: 34px 26px;
    transition: transform .35s, box-shadow .35s, background .35s, border-color .35s; position: relative; overflow: hidden;
}
.feature-card::after {
    content: ''; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%;
    background: radial-gradient(circle, rgba(228,184,28,.22), transparent 70%); transition: transform .5s;
}
.feature-card:hover { transform: translateY(-8px); background: #fff; border-color: var(--line); box-shadow: var(--shadow-lg); }
.feature-card:hover::after { transform: scale(2); }
.feature-icon {
    width: 62px; height: 62px; border-radius: 20px; margin-bottom: 22px; background: var(--gradient); color: #fff;
    display: grid; place-items: center; font-size: 25px; box-shadow: 0 10px 22px rgba(var(--primary-rgb),.3);
}
.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 14px; }

/* cards */
.card {
    background: #fff; border-radius: 24px; overflow: hidden; text-decoration: none; color: inherit;
    border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
    transition: transform .35s, box-shadow .35s;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.card-image {
    position: relative; height: 190px; overflow: hidden; background: var(--gradient);
    display: flex; align-items: center; justify-content: center; font-size: 54px; color: rgba(255,255,255,.45);
}
.card-image.article { background: linear-gradient(135deg, #b45309, #f59e0b); }
.card-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card-image img { transform: scale(1.07); }
.card-chip {
    position: absolute; left: 14px; bottom: 14px; z-index: 2; font-size: 11.5px; font-weight: 700; color: var(--ink);
    background: rgba(255,255,255,.92); backdrop-filter: blur(6px); padding: 6px 12px; border-radius: 999px;
    display: inline-flex; align-items: center; gap: 6px;
}
.card-chip i { color: var(--primary-2); }
.card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.08rem; line-height: 1.4; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-body p { color: var(--muted); font-size: 14px; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.read-more { margin-top: auto; color: var(--primary); font-weight: 700; font-size: 13.5px; display: inline-flex; align-items: center; gap: 8px; transition: gap .25s; }
.card:hover .read-more { gap: 14px; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--tint); color: var(--primary); }
.badge-gold, .badge-purple { background: var(--gold-soft); color: #92400e; }

/* list rows (artikel di beranda) */
.list-stack { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; }
.list-item {
    display: flex; align-items: center; gap: 18px; padding: 16px; background: var(--bg); border-radius: 22px;
    text-decoration: none; color: inherit; border: 1px solid transparent; transition: .3s;
}
.list-item:hover { background: #fff; border-color: var(--line); box-shadow: var(--shadow); transform: translateY(-3px); }
.li-thumb { width: 96px; height: 96px; border-radius: 16px; overflow: hidden; flex-shrink: 0; background: var(--gradient-gold); display: grid; place-items: center; color: rgba(255,255,255,.8); font-size: 30px; }
.li-thumb img { width: 100%; height: 100%; object-fit: cover; }
.li-body { flex: 1; min-width: 0; }
.li-body h3 { font-size: 1rem; line-height: 1.4; margin: 6px 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.li-body p { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.li-go { color: var(--muted); font-size: 13px; }

.cta-section { margin: 0 6% 90px; padding: 70px 30px; border-radius: 36px; background: var(--gradient); color: #fff; text-align: center; position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.cta-section::before { content: ''; position: absolute; width: 380px; height: 380px; right: -100px; top: -140px; border-radius: 50%; background: rgba(228,184,28,.25); }
.cta-section::after  { content: ''; position: absolute; width: 280px; height: 280px; left: -80px; bottom: -120px; border-radius: 50%; background: rgba(255,255,255,.08); }
.cta-content { position: relative; z-index: 2; }
.cta-content h2 { font-family: var(--font-display); font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 12px; }
.cta-content p { margin-bottom: 30px; opacity: .92; max-width: 520px; margin-inline: auto; }

.empty-note, .empty-block { text-align: center; color: var(--muted); }
.empty-block { padding: 70px 20px; background: #fff; border-radius: 24px; border: 1px dashed var(--line); }
.empty-block i { font-size: 54px; color: var(--primary-light); opacity: .35; margin-bottom: 14px; display: block; }
.empty-note { grid-column: 1 / -1; padding: 20px; }

/* ===================== PAGE HEADER ===================== */
.page-header {
    position: relative; overflow: hidden; text-align: center; color: #fff;
    padding: calc(var(--nav-h) + 64px) 6% 100px; background: var(--gradient);
}
.page-header::before {
    content: ''; position: absolute; inset: 0; opacity: .6;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.1' stroke-width='1.2'%3E%3Cpath d='M40 6l9.6 14.4L66 14l-6.4 16.4L74 40l-14.4 9.6L66 66l-16.4-6.4L40 74l-9.6-14.4L14 66l6.4-16.4L6 40l14.4-9.6L14 14l16.4 6.4z'/%3E%3C/g%3E%3C/svg%3E");
}
.page-header::after { content: ''; position: absolute; width: 360px; height: 360px; right: -90px; top: -150px; border-radius: 50%; background: rgba(228,184,28,.22); }
.page-header-content { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; }
.page-header h1 { font-family: var(--font-display); font-size: clamp(1.9rem, 4.4vw, 3.1rem); line-height: 1.15; margin-bottom: 10px; }
.page-header p { opacity: .92; }
.meta-line { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: 13.5px; margin-top: 14px; }
.meta-line i { margin-right: 6px; color: var(--gold); }
.detail-header { padding-bottom: 110px; }

.container { max-width: 1200px; margin: 0 auto; }
.content-section { padding-top: 60px; }
.content-section.pull-up { padding-top: 0; }

/* search */
.search-bar { position: relative; max-width: 560px; margin: -90px auto 36px; z-index: 5; }
.search-bar i { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-bar input {
    width: 100%; padding: 17px 22px 17px 52px; border-radius: 999px; border: 1px solid var(--line);
    font: 500 15px var(--font); background: #fff; box-shadow: var(--shadow); transition: .25s; -webkit-appearance: none;
}
.search-bar input:focus { outline: none; border-color: var(--primary-light); box-shadow: 0 0 0 5px rgba(var(--primary-light-rgb),.15), var(--shadow); }

/* ===================== ABOUT ===================== */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; margin-bottom: 70px; }
.about-text h2 { font-family: var(--font-display); font-size: 2rem; margin-bottom: 20px; color: var(--primary); }
.about-text h3 { margin: 22px 0 8px; }
.about-text p { color: var(--muted); margin-bottom: 14px; }
.image-placeholder {
    height: 380px; border-radius: 32px; background: var(--gradient); position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center; font-size: 130px; color: rgba(255,255,255,.28);
    box-shadow: var(--shadow-lg);
}
.image-placeholder::after { content: ''; position: absolute; right: -50px; bottom: -50px; width: 200px; height: 200px; border-radius: 50%; background: rgba(228,184,28,.3); }
.about-photo { position: relative; border-radius: 32px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--tint); aspect-ratio: 4 / 3; }
.about-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-widgets { display: grid; gap: 16px; margin-top: 20px; }
.aw-sub { color: var(--muted); font-size: 13px; margin: -2px 0 12px; }
.aw-sub b { color: var(--primary); font-family: var(--font-display); font-size: 1.3rem; }
.aw-cols { display: flex; gap: 12px; align-items: flex-end; height: 150px; padding-top: 4px; }
.aw-col { flex: 1; display: grid; grid-template-rows: auto 1fr auto auto; justify-items: center; height: 100%; --c: var(--primary-2); }
.aw-col.j-mi { --c: #2f7934; } .aw-col.j-mts { --c: #e4b81c; } .aw-col.j-ma { --c: #0f766e; } .aw-col.j-lainnya { --c: #94a3b8; }
.aw-col b { font-size: 13.5px; margin-bottom: 4px; }
.aw-colbar { width: 100%; max-width: 54px; display: flex; align-items: flex-end; background: var(--tint); border-radius: 10px 10px 4px 4px; overflow: hidden; }
.aw-colbar i { display: block; width: 100%; background: var(--c); border-radius: 10px 10px 0 0; transform-origin: bottom; animation: awRise .9s cubic-bezier(.2,.7,.2,1) both; }
@keyframes awRise { from { transform: scaleY(0); } }
@media (prefers-reduced-motion: reduce) { .aw-colbar i { animation: none; } }
.aw-col span { font-weight: 700; font-size: 13px; margin-top: 6px; }
.aw-col small { color: var(--muted); font-size: 11.5px; }
.about-caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 38px 22px 18px; color: #fff; background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0)); display: grid; gap: 1px; }
.about-caption small { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-soft); }
.about-caption b { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.2; }
.aw-bar { margin-top: 12px; --c: var(--primary-2); }
.aw-bar.j-mi { --c: #2f7934; } .aw-bar.j-mts { --c: #e4b81c; } .aw-bar.j-ma { --c: #0f766e; } .aw-bar.j-lainnya { --c: #94a3b8; }
.aw-bar-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 13.5px; font-weight: 600; margin-bottom: 5px; }
.aw-bar-head small { color: var(--muted); font-weight: 500; }
.aw-track { height: 12px; border-radius: 999px; background: var(--tint); overflow: hidden; }
.aw-track i { display: block; height: 100%; border-radius: 999px; background: var(--c); transform-origin: left; animation: awGrow .9s cubic-bezier(.2,.7,.2,1) both; }
@keyframes awGrow { from { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .aw-track i { animation: none; } }
.aw-more { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--primary-2); text-decoration: none; }
.aw-info .aw-chair { margin: 4px 0 12px; }
.aw-list { list-style: none; display: grid; gap: 9px; padding: 0; margin: 0; font-size: 13.5px; color: var(--muted); }
.aw-list li { display: flex; gap: 10px; align-items: flex-start; }
.aw-list i { width: 28px; height: 28px; flex: none; border-radius: 9px; background: var(--tint); color: var(--primary-2); display: grid; place-items: center; font-size: 12px; }
.aw-list span, .aw-list a { padding-top: 4px; color: inherit; text-decoration: none; word-break: break-word; }
.aw-list b { color: var(--ink); }
.aw-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.aw-stat { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 16px 18px; box-shadow: var(--shadow-sm); display: grid; gap: 2px; }
.aw-stat i { width: 36px; height: 36px; border-radius: 12px; background: var(--tint); color: var(--primary-2); display: grid; place-items: center; font-size: 15px; margin-bottom: 6px; }
.aw-stat b { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.1; color: var(--primary); }
.aw-stat span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.aw-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; box-shadow: var(--shadow-sm); }
.aw-card h4 { font-size: 1rem; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.aw-card h4 i { color: #b45309; }
.aw-chair { display: flex; align-items: center; gap: 14px; }
.aw-chair img, .aw-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.aw-avatar { background: var(--gradient); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1.3rem; }
.aw-chair small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.aw-chair b { font-size: 1.05rem; }
.aw-news { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.aw-news:first-of-type { border-top: 0; }
.aw-news span { font-weight: 600; font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.aw-news small { color: var(--muted); font-size: 12px; }
.aw-news:hover span { color: var(--primary-2); }
.aw-cta { border-radius: 22px; padding: 22px; background: var(--gradient); color: #fff; display: grid; gap: 14px; }
.aw-cta b { display: block; font-family: var(--font-display); font-size: 1.15rem; }
.aw-cta span { opacity: .9; font-size: 13.5px; }
.aw-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.aw-cta .btn-outline { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.55); }
.ip-badge { position: absolute; left: 18px; top: 18px; z-index: 2; background: #fff; color: var(--ink); border-radius: 18px; padding: 12px 20px; text-align: center; font-size: 12px; box-shadow: var(--shadow); }
.ip-badge b { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--primary); line-height: 1.1; }
.ip-badge span { color: var(--muted); font-weight: 600; }

.vision-mission { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.vm-card { background: #fff; border-radius: 26px; padding: 36px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: .3s; }
.vm-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.vm-ic { width: 56px; height: 56px; border-radius: 18px; background: var(--gold-soft); color: #b45309; display: grid; place-items: center; font-size: 24px; margin-bottom: 18px; }
.vm-card h3 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 14px; }
.vm-card p, .vm-card li { color: var(--muted); }
.vm-card ul { list-style: none; }
.vm-card li { padding: 8px 0 8px 30px; position: relative; }
.vm-card li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; top: 9px; width: 20px; height: 20px; border-radius: 50%; background: var(--tint); color: var(--primary-2); font-size: 10px; display: grid; place-items: center; }

/* ===================== DOCS ===================== */
.docs-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.doc-card {
    background: #fff; border-radius: 22px; padding: 24px; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column; gap: 16px; transition: .3s;
}
.doc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.doc-icon { width: 58px; height: 58px; border-radius: 18px; background: #fee2e2; color: #dc2626; display: grid; place-items: center; font-size: 26px; }
.doc-card h3 { font-size: 1.05rem; margin-bottom: 6px; line-height: 1.35; }
.doc-card p { color: var(--muted); font-size: 14px; }
.doc-card .btn { align-self: flex-start; }
.badge-warning { align-self: flex-start; background: #fef3c7; color: #92400e; padding: 7px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; }

/* ===================== ARTICLE DETAIL ===================== */
.article-content { background: #fff; border-radius: 30px; padding: 44px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); max-width: 860px; margin: 0 auto; }
.article-image { border-radius: 22px; overflow: hidden; margin-bottom: 32px; max-height: 420px; }
.article-image img { width: 100%; height: 100%; object-fit: cover; }
.article-body { font-size: 1.06rem; line-height: 1.95; color: #2b3f39; margin-bottom: 36px; }
.article-actions { display: flex; gap: 12px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid var(--line); }

/* ===================== FORMS ===================== */
.step-pills { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; max-width: 900px; margin: -90px auto 26px; position: relative; z-index: 5; }
.step-pills span { background: #fff; border-radius: 999px; padding: 9px 18px; font-size: 13px; font-weight: 700; color: var(--muted); box-shadow: var(--shadow-sm); display: inline-flex; gap: 8px; align-items: center; }
.step-pills span.on, .step-pills span.done { color: var(--primary); background: #fff; }
.step-pills span i { color: var(--primary-light); }
.form-register { background: #fff; border-radius: 30px; padding: 44px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); max-width: 900px; margin: 0 auto; }
.form-section { margin-bottom: 38px; scroll-margin-top: 100px; }
.form-section h3 { color: var(--primary); font-size: 1.1rem; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.form-section h3 i { width: 36px; height: 36px; border-radius: 12px; background: var(--tint); display: grid; place-items: center; font-size: 15px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.form-group label span { color: #dc2626; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; font: 500 15px var(--font);
    background: #fbfdfc; color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s; -webkit-appearance: none; appearance: none;
}
.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235b6f68' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary-light); background: #fff; box-shadow: 0 0 0 4px rgba(var(--primary-light-rgb),.16); }
.form-group input.invalid, .form-group select.invalid, .form-group textarea.invalid { border-color: #dc2626; background: #fff7f7; }
.form-group .upload-drop {
    display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 28px 16px; margin-bottom: 0 !important;
    border: 2px dashed #b9d6c9; border-radius: 18px; background: var(--tint); cursor: pointer; transition: .25s;
}
.form-group .upload-drop:hover { background: #e0f0e8; border-color: var(--primary-light); }
.upload-drop i { font-size: 30px; color: var(--primary-2); }
.upload-drop b { font-size: 14px; }
.upload-drop small { color: var(--muted); font-weight: 500; }
input:focus-visible ~ .upload-drop, .visually-hidden:focus-visible + .photo-preview { outline: 3px solid var(--primary-light); }
.photo-preview { margin-top: 14px; }
.photo-preview img { width: 130px; height: 170px; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow); border: 3px solid #fff; outline: 2px solid var(--primary-light); }
.form-actions { text-align: center; padding-top: 12px; }

.alert { max-width: 900px; margin: 0 auto 22px; padding: 15px 20px; border-radius: 16px; font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 12px; }
.alert-success { background: #d1fae5; color: #065f46; }
.alert-error { background: #fee2e2; color: #991b1b; }

/* ===================== KTA ===================== */
.kta-wrapper { max-width: 700px; margin: 0 auto 30px; perspective: 1200px; }
.kta-card {
    background: linear-gradient(135deg, #ffffff 0%, #effaf4 100%); border-radius: 24px; padding: 26px;
    box-shadow: 0 24px 60px rgba(var(--primary-rgb),.28); border: 3px solid var(--primary); position: relative; overflow: hidden; transition: transform .5s;
}
.kta-card::before { content: ''; position: absolute; top: -60px; right: -60px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(228,184,28,.28), transparent 70%); }
.kta-card:hover { transform: rotateY(3deg) rotateX(-3deg) scale(1.01); }
.kta-header { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 2px solid rgba(var(--primary-rgb),.15); position: relative; z-index: 2; }
.kta-logo { width: 54px; height: 54px; border-radius: 16px; background: var(--gradient); color: #fff; display: grid; place-items: center; font-size: 23px; flex-shrink: 0; }
.kta-org { flex: 1; min-width: 0; }
.kta-org h2 { font-size: 15px; font-weight: 800; color: var(--primary); letter-spacing: .5px; }
.kta-org p { font-size: 11px; color: var(--muted); letter-spacing: 2px; }
.kta-emblem { width: 40px; height: 40px; border-radius: 50%; background: var(--gradient-gold); color: #fff; display: grid; place-items: center; font-size: 17px; flex-shrink: 0; }
.kta-body { display: grid; grid-template-columns: 100px 1fr 90px; gap: 20px; padding: 20px 0; position: relative; z-index: 2; }
.kta-photo { width: 100px; height: 132px; border-radius: 14px; background: var(--tint); display: grid; place-items: center; font-size: 44px; color: var(--primary); border: 2px solid var(--primary-light); overflow: hidden; }
.kta-photo img { width: 100%; height: 100%; object-fit: cover; }
.kta-info { font-size: 12px; min-width: 0; }
.info-row { display: grid; grid-template-columns: 88px 1fr; gap: 8px; padding: 5px 0; border-bottom: 1px dashed rgba(0,0,0,.08); }
.info-row span { color: var(--muted); font-size: 11px; }
.info-row strong { color: var(--ink); font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
.kta-qr { text-align: center; }
.qr-box { width: 80px; height: 80px; background: #fff; border: 2px solid var(--primary); border-radius: 12px; display: grid; place-items: center; font-size: 46px; margin-bottom: 5px; padding: 3px; overflow: hidden; }
.qr-box canvas { width: 100%; height: 100%; display: block; }
.kta-qr p { font-size: 9px; color: var(--muted); }
.kta-footer { display: flex; justify-content: space-between; align-items: flex-end; padding-top: 14px; border-top: 2px solid rgba(var(--primary-rgb),.15); position: relative; z-index: 2; }
.kta-signature p { font-size: 11px; color: var(--muted); margin-bottom: 24px; }
.signature-line { width: 120px; height: 1px; background: var(--ink); margin-bottom: 5px; }
.kta-signature strong { font-size: 12px; }
.kta-watermark { display: flex; align-items: center; gap: 6px; color: var(--primary); opacity: .65; font-size: 11px; font-weight: 800; letter-spacing: 1px; }
.kta-watermark i { font-size: 18px; }
.kta-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

/* ===================== GALLERY ===================== */
.gallery-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.gallery-item {
    position: relative; height: 260px; border-radius: 22px; overflow: hidden; border: 0; padding: 0; background: var(--tint);
    box-shadow: var(--shadow-sm); cursor: zoom-in; transition: transform .35s, box-shadow .35s; text-align: left; display: block; width: 100%;
}
.gallery-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-placeholder { width: 100%; height: 100%; background: var(--gradient); display: grid; place-items: center; font-size: 56px; color: rgba(255,255,255,.4); }
.gallery-overlay { position: absolute; inset: auto 0 0 0; padding: 40px 18px 16px; color: #fff; background: linear-gradient(transparent, rgba(4,30,22,.85)); transform: translateY(40%); opacity: 0; transition: .4s; }
.gallery-item:hover .gallery-overlay, .gallery-item:focus-visible .gallery-overlay { transform: none; opacity: 1; }
.gallery-overlay h3 { font-size: .98rem; }
.lightbox { position: fixed; inset: 0; z-index: 3000; background: rgba(3,20,15,.94); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; animation: fadeIn .25s; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 80vh; border-radius: 16px; box-shadow: var(--shadow-lg); object-fit: contain; }
.lightbox p { color: #fff; margin-top: 16px; font-weight: 600; text-align: center; }
.lb-close { position: absolute; top: calc(16px + var(--safe-t)); right: 16px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 20px; cursor: pointer; }
@keyframes fadeIn { from { opacity: 0; } }

/* ===================== CONTACT ===================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; max-width: 1040px; margin: 0 auto; align-items: start; }
.contact-info, .contact-form { background: #fff; border-radius: 28px; padding: 36px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.contact-info h2, .contact-form h2 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 26px; color: var(--primary); }
.contact-item { display: flex; gap: 16px; margin-bottom: 24px; align-items: flex-start; }
.contact-item > i { width: 48px; height: 48px; border-radius: 16px; background: var(--tint); color: var(--primary-2); display: grid; place-items: center; font-size: 18px; flex-shrink: 0; }
.contact-item h4 { font-size: 14px; margin-bottom: 2px; }
.contact-item p, .contact-item a { color: var(--muted); font-size: 14px; text-decoration: none; }
.contact-item a:hover { color: var(--primary); }
.contact-form .form-group { margin-bottom: 14px; }
.contact-form button { width: 100%; }

/* ===================== FOOTER ===================== */
.footer { background: #06231b; color: #b8cdc5; padding: 0 6%; position: relative; }
.footer-wave { height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .6; }
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.8fr 1fr 1.3fr; gap: 50px; padding: 64px 0 44px; }
.footer-col h3 { color: #fff; font-size: 1.02rem; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.f-logo { width: 34px; height: 34px; border-radius: 10px; background: var(--gradient); display: grid; place-items: center; font-size: 15px; }
.footer-col p { font-size: 14px; margin-bottom: 12px; line-height: 1.7; }
.footer-col p i { width: 20px; color: var(--gold); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 11px; }
.footer-col ul a { color: #b8cdc5; text-decoration: none; font-size: 14px; transition: .25s; }
.footer-col ul a:hover { color: var(--gold); padding-left: 5px; }
.social { display: flex; gap: 10px; margin-top: 20px; }
.social a { width: 42px; height: 42px; border-radius: 14px; background: rgba(255,255,255,.07); display: grid; place-items: center; color: #fff; text-decoration: none; transition: .3s; }
.social a:hover { background: var(--gold); color: #3b2a00; transform: translateY(-4px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; text-align: center; font-size: 13px; color: #7f9a90; }

.scroll-top { position: fixed; right: 26px; bottom: 26px; width: 50px; height: 50px; border-radius: 16px; border: 0; background: var(--gradient); color: #fff; font-size: 17px; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s; box-shadow: var(--shadow-lg); z-index: 999; }
.scroll-top.show { opacity: 1; visibility: visible; transform: none; }
.scroll-top:hover { transform: translateY(-4px); }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + var(--safe-b) + 18px); transform: translate(-50%, 20px); background: #0b1f1a; color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 13.5px; font-weight: 600; opacity: 0; pointer-events: none; transition: .3s; z-index: 4000; max-width: 90vw; box-shadow: var(--shadow-lg); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

[data-aos] { transition-duration: .7s !important; }
.text-center { text-align: center; }

/* ===================== RESPONSIVE: tablet ===================== */
@media (max-width: 1080px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .hero { grid-template-columns: 1fr; text-align: center; min-height: 0; padding-bottom: 60px; gap: 24px; }
    .hero p { margin-inline: auto; }
    .hero-buttons { justify-content: center; }
    .hero-visual { height: 440px; }
    .hero-stats { margin-inline: auto; }
    .about-grid, .vision-mission, .contact-grid { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr 1fr; }
    .footer-about { grid-column: 1 / -1; }
    .nav-link { padding: 10px 11px; }
}

/* =====================================================================
   MOBILE — tampilan aplikasi (≤768px)
   ===================================================================== */
@media (max-width: 768px) {
    :root { --nav-h: 56px; }
    html { scroll-padding-top: calc(var(--nav-h) + var(--safe-t)); }
    body { padding-bottom: calc(var(--tab-h) + var(--safe-b)); overscroll-behavior-y: none; user-select: none; -webkit-user-select: none; }
    .article-body, input, textarea, .info-row strong, .contact-item p { user-select: text; -webkit-user-select: text; }

    /* ---- App bar ---- */
    .navbar { background: rgba(255,255,255,.9); }
    .nav-container { padding: 0 14px; height: var(--nav-h); gap: 10px; }
    .nav-menu { display: none; }
    .logo-icon, .logo-img { width: 36px; height: 36px; border-radius: 11px; font-size: 16px; }
    .logo-title { font-size: 19px; }
    .logo-sub { font-size: 10px; }
    /* beranda: logo | halaman lain: tombol kembali + judul */
    body:not(.page-home) .logo { display: none; }
    .app-back, .app-title { display: block; }
    body.page-home .app-back, body.page-home .app-title { display: none; }
    .app-back { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--tint); color: var(--primary); font-size: 15px; flex-shrink: 0; cursor: pointer; }
    .app-back:active { background: #d9eee3; }
    .app-title { flex: 1; font-weight: 800; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    body.page-home .logo { margin-right: auto; }
    .app-bar-action { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--gradient); color: #fff; cursor: pointer; }
    .app-bar-action:not([hidden]) { display: block; }

    /* ---- Tab bar ---- */
    .tabbar {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100;
        height: calc(var(--tab-h) + var(--safe-b)); padding: 6px 6px var(--safe-b);
        background: rgba(255,255,255,.94); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
        border-top: 1px solid var(--line); box-shadow: 0 -8px 30px rgba(6,40,30,.07);
    }
    .tab { flex: 1; border: 0; background: none; text-decoration: none; color: #7b8d86; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10.5px; font-weight: 700; position: relative; cursor: pointer; transition: color .2s, transform .15s; touch-action: manipulation; }
    .tab i { font-size: 19px; transition: transform .25s; }
    .tab:active { transform: scale(.92); }
    .tab.active { color: var(--primary); }
    .tab.active i { transform: translateY(-1px) scale(1.08); }
    .tab.active:not(.tab-fab)::before { content: ''; position: absolute; top: -7px; width: 26px; height: 4px; border-radius: 0 0 4px 4px; background: var(--gold); }
    .tab-fab { color: var(--primary); }
    .fab-circle { width: 54px; height: 54px; border-radius: 50%; margin-top: -26px; background: var(--gradient); color: #fff; display: grid; place-items: center; border: 4px solid #fff; box-shadow: 0 8px 20px rgba(var(--primary-rgb),.4); }
    .tab-fab i { font-size: 20px; }
    .tab-fab > span:last-child { margin-top: -1px; }
    .tab-fab.active i { transform: none; }

    /* ---- Bottom sheet ---- */
    .sheet-backdrop { display: block; position: fixed; inset: 0; z-index: 1200; background: rgba(3,20,15,.5); opacity: 0; visibility: hidden; transition: .3s; }
    .sheet-backdrop.show { opacity: 1; visibility: visible; }
    .sheet {
        display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1300; background: #fff;
        border-radius: 28px 28px 0 0; padding: 10px 20px calc(24px + var(--safe-b));
        transform: translateY(105%); transition: transform .38s cubic-bezier(.2,.9,.25,1); box-shadow: 0 -14px 50px rgba(0,0,0,.2);
    }
    .sheet.show { transform: none; }
    .sheet-handle { width: 42px; height: 5px; border-radius: 5px; background: #d6e2dc; margin: 0 auto 18px; }
    .sheet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 10px; }
    .sheet-grid a { text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; padding: 10px 0; border-radius: 16px; transition: background .2s; }
    .sheet-grid a:active { background: var(--tint); }
    .sg-ic { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; font-size: 22px; color: #fff; }
    .c1 { background: linear-gradient(135deg,var(--primary-2),var(--primary-light)); } .c2 { background: linear-gradient(135deg,#dc2626,#f87171); }
    .c3 { background: linear-gradient(135deg,#d97706,#fbbf24); } .c4 { background: linear-gradient(135deg,var(--accent-dark),#2dd4bf); }
    .c5 { background: linear-gradient(135deg,#334155,#64748b); } .c6 { background: linear-gradient(135deg,#16a34a,#4ade80); }
    .sheet-install { width: 100%; margin-top: 16px; padding: 14px; border: 0; border-radius: 16px; background: var(--tint); color: var(--primary); font-weight: 800; font-size: 14px; cursor: pointer; }
    .sheet-install:not([hidden]) { display: block; }
    body.sheet-open { overflow: hidden; }

    /* ---- Hero jadi kartu sambutan ---- */
    .hero { padding: calc(var(--nav-h) + var(--safe-t) + 14px) 16px 26px; text-align: left; display: block; background: var(--bg); }
    .hero::before, .hero::after, .hero-bg, .hero-visual { display: none; }
    .hero-content {
        padding: 26px 22px 22px; border-radius: 28px; color: #fff; background: var(--gradient); position: relative; overflow: hidden; box-shadow: 0 16px 36px rgba(var(--primary-rgb),.3);
    }
    .hero-content::before { content: ''; position: absolute; width: 220px; height: 220px; right: -70px; top: -80px; border-radius: 50%; background: rgba(228,184,28,.28); }
    .hero-content::after { content: ''; position: absolute; inset: 0; opacity: .6; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.09' stroke-width='1.2'%3E%3Cpath d='M40 6l9.6 14.4L66 14l-6.4 16.4L74 40l-14.4 9.6L66 66l-16.4-6.4L40 74l-9.6-14.4L14 66l6.4-16.4L6 40l14.4-9.6L14 14l16.4 6.4z'/%3E%3C/g%3E%3C/svg%3E"); }
    .hero-content > * { position: relative; z-index: 2; }
    .hero-badge { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.25); box-shadow: none; font-size: 11px; padding: 6px 12px; margin-bottom: 14px; }
    .hero h1 { font-size: 1.75rem; margin-bottom: 10px; }
    .gradient-text { background: none; -webkit-text-fill-color: #fcd34d; color: #fcd34d; }
    .hero p { font-size: .92rem; color: rgba(255,255,255,.88); margin: 0 0 20px; }
    .hero-buttons { margin-bottom: 20px; gap: 10px; flex-wrap: nowrap; }
    .hero-buttons .btn { flex: 1; padding: 13px 8px; font-size: 13px; gap: 7px; white-space: nowrap; }
    .hero-buttons .btn-primary { background: var(--gradient-gold); color: #3b2a00; box-shadow: none; }
    .hero-buttons .btn-ghost { background: rgba(255,255,255,.16); color: #fff; }
    .hero-buttons .btn-ghost i { display: none; }
    .hero-stats { display: flex; background: rgba(0,0,0,.18); border: 0; box-shadow: none; border-radius: 18px; width: 100%; }
    .stat { flex: 1; padding: 12px 6px; text-align: center; }
    .stat + .stat::before { background: rgba(255,255,255,.2); }
    .stat h3 { font-size: 1.3rem; color: #fff; }
    .stat p { color: rgba(255,255,255,.8); font-size: 10.5px; }

    /* ---- Quick menu launcher ---- */
    .quick-menu { display: block; padding: 6px 16px 4px; background: var(--bg); }
    .qm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; background: #fff; border-radius: 24px; padding: 16px 10px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
    .qm-item { text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 12px; padding: 6px 0; border-radius: 14px; transition: transform .15s, background .2s; }
    .qm-item:active { transform: scale(.94); background: var(--tint); }
    .qm-ic { width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; font-size: 21px; color: #fff; box-shadow: 0 6px 14px rgba(0,0,0,.12); }
    .g1 { background: linear-gradient(135deg,var(--primary-2),var(--primary-light)); } .g2 { background: linear-gradient(135deg,#0369a1,#38bdf8); }
    .g3 { background: linear-gradient(135deg,#d97706,#fbbf24); } .g4 { background: linear-gradient(135deg,#7c3aed,#c084fc); }
    .g5 { background: linear-gradient(135deg,#dc2626,#fb7185); } .g6 { background: linear-gradient(135deg,var(--accent-dark),#2dd4bf); }

    /* ---- Sections ---- */
    .features, .news-section, .articles-section, .content-section { padding: 28px 16px; }
    .features, .articles-section { background: var(--bg); }
    .section-header { margin-bottom: 16px; text-align: left; }
    .section-header .eyebrow { display: none; }
    .section-header h2 { font-size: 1.3rem; margin-bottom: 2px; font-family: var(--font); font-weight: 800; }
    .section-header p { font-size: 13px; }
    .section-header.row { align-items: center; }
    .see-all { padding: 7px 12px; font-size: 12px; }
    .see-all i { display: none; }

    /* fitur: carousel */
    .features-grid { display: flex; overflow-x: auto; gap: 12px; margin: 0 -16px; padding: 4px 16px 10px; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .features-grid::-webkit-scrollbar, .h-scroll::-webkit-scrollbar { display: none; }
    .feature-card { flex: 0 0 72%; scroll-snap-align: center; background: #fff; border: 1px solid var(--line); padding: 22px 20px; border-radius: 22px; }
    .feature-card:hover { transform: none; box-shadow: none; }
    .feature-icon { width: 50px; height: 50px; font-size: 20px; border-radius: 16px; margin-bottom: 14px; }

    /* berita: carousel di beranda, tumpuk di halaman lain */
    .card-grid.h-scroll { display: flex; overflow-x: auto; gap: 14px; margin: 0 -16px; padding: 4px 16px 12px; scroll-snap-type: x mandatory; scrollbar-width: none; }
    .card-grid.h-scroll .card { flex: 0 0 80%; scroll-snap-align: center; }
    .card-grid, .docs-grid { grid-template-columns: 1fr; gap: 14px; }
    .card { border-radius: 22px; }
    .card:hover { transform: none; box-shadow: var(--shadow-sm); }
    .card:active { transform: scale(.985); }
    .card-image { height: 160px; }
    .card-body { padding: 16px 18px 18px; }
    .card-body h3 { font-size: 1rem; }
    .card-body p { font-size: 13px; margin-bottom: 12px; }

    .list-stack { grid-template-columns: 1fr; gap: 10px; }
    .list-item { background: #fff; border: 1px solid var(--line); padding: 12px; gap: 14px; border-radius: 20px; }
    .list-item:active { transform: scale(.985); }
    .li-thumb { width: 82px; height: 82px; border-radius: 14px; }

    .cta-section { margin: 4px 16px 24px; padding: 34px 22px; border-radius: 28px; }
    .cta-content h2 { font-size: 1.4rem; }
    .cta-content p { font-size: 13.5px; margin-bottom: 20px; }

    /* ---- Page header mengecil ---- */
    .page-header { padding: calc(var(--nav-h) + var(--safe-t) + 22px) 20px 56px; margin: 0; text-align: left; border-radius: 0 0 30px 30px; }
    .page-header::after { width: 220px; height: 220px; right: -70px; top: -90px; }
    .page-header-content { max-width: none; }
    .page-header .eyebrow { font-size: 10.5px; margin-bottom: 4px; }
    .page-header h1 { font-size: 1.55rem; }
    .page-header:not(.detail-header) h1 { display: none; }
    .page-header:not(.detail-header) { padding-bottom: 50px; }
    .page-header:not(.detail-header) .eyebrow { font-size: 12px; }
    .page-header:not(.detail-header) p { font-size: 15px; font-weight: 600; opacity: 1; }
    .page-header p { font-size: 13px; }
    .meta-line { justify-content: flex-start; gap: 6px 14px; font-size: 12px; }
    .detail-header { padding-bottom: 70px; }
    .content-section { padding-top: 22px; }
    .content-section.pull-up { margin-top: -36px; padding-top: 0; }
    .search-bar { margin: -44px 0 20px; max-width: none; }
    .search-bar input { padding: 15px 20px 15px 48px; font-size: 16px; }
    .step-pills { margin: -40px -16px 18px; padding: 4px 16px; flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; max-width: none; scrollbar-width: none; }
    .step-pills::-webkit-scrollbar { display: none; }
    .step-pills span { white-space: nowrap; flex-shrink: 0; padding: 8px 14px; font-size: 12px; }

    /* ---- Detail / form ---- */
    .article-content { padding: 20px 18px; border-radius: 24px; }
    .article-body { font-size: 1rem; line-height: 1.85; margin-bottom: 22px; }
    .article-actions { padding-top: 18px; }
    .article-actions .btn { flex: 1; padding: 12px 10px; }
    .form-register { padding: 22px 18px; border-radius: 24px; }
    .form-grid { grid-template-columns: 1fr; gap: 16px; }
    .form-group input, .form-group select, .form-group textarea { font-size: 16px; padding: 14px; } /* cegah zoom iOS */
    .form-actions { padding-top: 6px; }
    .form-actions .btn { width: 100%; }
    .photo-preview img { width: 110px; height: 145px; }
    .contact-info, .contact-form { padding: 22px 18px; border-radius: 24px; }
    .contact-grid { gap: 16px; }
    .contact-item { margin-bottom: 18px; }
    .contact-item > i { width: 44px; height: 44px; }
    .alert { border-radius: 14px; }

    /* about */
    .about-grid { gap: 22px; margin-bottom: 26px; }
    .about-text h2 { font-size: 1.4rem; }
    .image-placeholder { height: 190px; font-size: 80px; border-radius: 24px; }
    .vision-mission { gap: 14px; }
    .vm-card { padding: 22px 20px; border-radius: 22px; }
    .vm-card:hover { transform: none; }

    /* dokumen */
    .doc-card { flex-direction: row; align-items: center; padding: 14px; gap: 14px; border-radius: 20px; }
    .doc-card:hover { transform: none; }
    .doc-icon { width: 48px; height: 48px; border-radius: 14px; font-size: 21px; flex-shrink: 0; }
    .doc-info { flex: 1; min-width: 0; }
    .doc-card h3 { font-size: .95rem; margin-bottom: 2px; }
    .doc-card p { font-size: 12.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .doc-card .btn { align-self: center; padding: 10px 14px; }
    .doc-card .btn span { display: none; }
    .badge-warning { align-self: center; font-size: 10.5px; padding: 6px 10px; }

    /* galeri 2 kolom */
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .gallery-item { height: 170px; border-radius: 18px; }
    .gallery-item:active { transform: scale(.97); }
    .gallery-overlay { transform: none; opacity: 1; padding: 28px 12px 10px; }
    .gallery-overlay h3 { font-size: .8rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

    /* KTA kompak */
    .kta-card { padding: 16px; border-radius: 20px; }
    .kta-card:hover { transform: none; }
    .kta-header { gap: 10px; padding-bottom: 12px; }
    .kta-logo { width: 40px; height: 40px; font-size: 17px; border-radius: 12px; }
    .kta-org h2 { font-size: 11.5px; }
    .kta-org p { font-size: 8.5px; letter-spacing: 1.2px; }
    .kta-emblem { width: 30px; height: 30px; font-size: 13px; }
    .kta-body { grid-template-columns: 78px 1fr; gap: 12px; padding: 14px 0; }
    .kta-photo { width: 78px; height: 104px; font-size: 32px; border-radius: 12px; }
    .kta-qr { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; text-align: left; }
    .qr-box { width: 64px; height: 64px; margin-bottom: 0; border-width: 1.5px; border-radius: 10px; flex-shrink: 0; }
    .kta-qr p { font-size: 9.5px; }
    .info-row { grid-template-columns: 66px 1fr; gap: 6px; padding: 3px 0; }
    .info-row span { font-size: 9.5px; }
    .info-row strong { font-size: 10.5px; }
    .kta-signature p { margin-bottom: 14px; font-size: 9.5px; }
    .signature-line { width: 90px; }
    .kta-signature strong { font-size: 10.5px; }
    .kta-watermark { font-size: 9.5px; }
    .kta-actions .btn { flex: 1 1 100%; }

    /* footer ringkas */
    .footer { padding: 0 16px; }
    .footer-container, .footer-wave { display: none; }
    .footer-bottom { border: 0; padding: 22px 0 28px; font-size: 12px; }
    .scroll-top { display: none; }

    /* tekan = umpan balik */
    .btn:active { transform: scale(.97); }
    .btn-primary:hover, .btn-gold:hover, .btn-outline:hover { transform: none; }
    [data-aos] { transition-duration: .5s !important; }
}

/* layar sangat kecil */
@media (max-width: 360px) {
    .hero h1 { font-size: 1.5rem; }
    .qm-ic { width: 46px; height: 46px; font-size: 18px; }
    .feature-card { flex-basis: 82%; }
}

/* aplikasi terpasang (standalone) */
@media (display-mode: standalone) {
    #installTop, #installSheet { display: none !important; }
    .navbar { padding-top: var(--safe-t); }
}

/* hormati preferensi kurangi gerakan */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

@media print {
    .navbar, .footer, .kta-actions, .scroll-top, .page-header, .tabbar, .sheet, .toast { display: none !important; }
    body { background: #fff; padding: 0; }
    .kta-card { box-shadow: none; border: 2px solid #000; }
}

/* ===== Status pendaftaran KTA ===== */
.reg-status-card { max-width: 520px; margin: 0 auto; background: #fff; border-radius: 22px; padding: 32px 24px; text-align: center; box-shadow: var(--shadow-lg); }
.reg-status-card h2 { margin: 14px 0 4px; font-size: 20px; }
.reg-status-card p { color: var(--gray); margin: 12px 0; line-height: 1.6; }
.reg-status-ref code { background: #f1f5f4; padding: 3px 8px; border-radius: 6px; font-weight: 700; color: inherit; }
.reg-status-icon { width: 84px; height: 84px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; font-size: 36px; }
.reg-status-icon.warning { background: #fef3c7; color: #b45309; }
.reg-status-icon.danger { background: #fee2e2; color: #b91c1c; }
.reg-status-icon.secondary { background: #e2e8f0; color: #475569; }
.reg-status-note { background: #fef2f2; border-radius: 12px; padding: 10px 14px; text-align: left; color: #991b1b !important; }
.reg-status-hint { font-size: 12.5px; }
.reg-status-card .badge { display: inline-block; padding: 5px 12px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.reg-status-card .badge-warning { background: #fef3c7; color: #92400e; }
.reg-status-card .badge-success { background: #d1fae5; color: #065f46; }
.reg-status-card .badge-danger { background: #fee2e2; color: #991b1b; }
.reg-status-card .badge-secondary { background: #e2e8f0; color: #475569; }
.reg-status-card .kta-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

/* ===================== BAGIKAN ===================== */
.share-box { margin: 8px 0 26px; padding: 20px; background: var(--tint); border: 1px solid var(--line); border-radius: 22px; }
.share-title { font-weight: 800; color: var(--primary); font-size: .95rem; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.share-row { display: flex; flex-wrap: wrap; gap: 10px; }
.share-btn {
    display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: 999px; border: 0; cursor: pointer;
    font: 700 13px/1 inherit; font-family: inherit; color: #fff; text-decoration: none; transition: transform .15s, box-shadow .15s, filter .15s;
}
.share-btn i { font-size: 16px; }
.share-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(6,40,30,.2); filter: brightness(1.06); }
.share-btn[hidden] { display: none; }
.share-wa { background: #25d366; } .share-fb { background: #1877f2; } .share-x { background: #111; }
.share-tg { background: #229ed9; } .share-in { background: #0a66c2; } .share-mail { background: #64748b; }
.share-ig { background: linear-gradient(45deg, #f09433 0%, #e6683c 28%, #dc2743 55%, #cc2366 78%, #bc1888 100%); }
.share-copy { background: var(--primary); } .share-more { background: #334155; }
.share-note { margin: 12px 0 0; min-height: 1.2em; font-size: .85rem; color: var(--primary); font-weight: 600; word-break: break-all; }
@media (max-width: 600px) {
    .share-box { padding: 16px; border-radius: 20px; }
    .share-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
    .share-btn { flex-direction: column; gap: 6px; padding: 12px 4px; border-radius: 16px; font-size: 11px; justify-content: center; }
    .share-btn i { font-size: 20px; }
}

/* ===================== DETAIL BERITA: LAYOUT + SIDEBAR ===================== */
.read-progress { position: fixed; left: 0; top: 0; height: 4px; width: 100%; z-index: 1200; transform-origin: 0 50%; transform: scaleX(0); background: var(--gradient-gold); pointer-events: none; }
.news-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.news-layout .article-content { max-width: none; margin: 0; min-width: 0; }
.news-aside { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.side-widget { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 22px; box-shadow: var(--shadow-sm); }
.side-title { display: flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: 800; color: var(--ink); margin: 0 0 16px; padding-bottom: 12px; border-bottom: 2px solid var(--tint); position: relative; }
.side-title::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 46px; height: 2px; background: var(--gold); }
.side-title i { width: 32px; height: 32px; border-radius: 10px; background: var(--tint); color: var(--primary); display: grid; place-items: center; font-size: 14px; }

/* daftar isi */
.toc-list { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc-list li { counter-increment: toc; }
.toc-list a { display: flex; gap: 10px; padding: 8px 10px; border-radius: 10px; color: #2b3f39; text-decoration: none; font-size: .92rem; line-height: 1.4; font-weight: 600; transition: background .2s, color .2s; }
.toc-list a::before { content: counter(toc) "."; color: var(--primary-light); font-weight: 800; flex: none; min-width: 1.4em; }
.toc-list li.lv3 a, .toc-list li.lv4 a { padding-left: 26px; font-weight: 500; font-size: .88rem; }
.toc-list a:hover, .toc-list a.on { background: var(--tint); color: var(--primary); }
.toc-list a.on { box-shadow: inset 3px 0 0 var(--primary-light); }

/* info */
.author-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.author-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--gradient); color: #fff; font-weight: 800; font-size: 18px; display: grid; place-items: center; flex: none; }
.author-row small { display: block; font-size: 11.5px; color: var(--muted); }
.author-row strong { color: var(--ink); }
.info-stats { list-style: none; margin: 0; padding: 0; }
.info-stats li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px dashed var(--line); font-size: .9rem; }
.info-stats i { width: 20px; text-align: center; color: var(--primary-light); }
.info-stats span { color: var(--muted); flex: 1; }
.info-stats b { color: var(--ink); font-weight: 700; text-align: right; }

/* daftar berita */
.side-list, .pop-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.side-list a, .pop-list a { display: flex; gap: 12px; text-decoration: none; color: inherit; align-items: center; }
.side-thumb { width: 74px; height: 62px; border-radius: 14px; background: var(--tint); color: var(--primary-light); display: grid; place-items: center; font-size: 20px; overflow: hidden; flex: none; }
.side-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.side-list a:hover .side-thumb img { transform: scale(1.08); }
.side-text { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.side-text strong { font-size: .92rem; line-height: 1.38; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s; }
.side-list a:hover strong, .pop-list a:hover strong { color: var(--primary); }
.side-text small { font-size: 11.5px; color: var(--muted); }
.side-text small i { color: var(--primary-light); margin-right: 4px; }
.pop-no { width: 34px; height: 34px; border-radius: 12px; background: var(--tint); color: var(--primary); font-weight: 800; display: grid; place-items: center; flex: none; }
.pop-list li:nth-child(1) .pop-no { background: var(--gradient-gold); color: #3b2a00; }
.pop-list li:nth-child(2) .pop-no, .pop-list li:nth-child(3) .pop-no { background: var(--primary); color: #fff; }

/* ajakan */
.side-cta { background: var(--gradient); border: 0; color: #fff; text-align: center; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.side-cta::before { content: ""; position: absolute; width: 180px; height: 180px; right: -60px; top: -60px; border-radius: 50%; background: rgba(255,255,255,.08); }
.side-cta h3 { margin: 10px 0 8px; font-size: 1.15rem; color: #fff; position: relative; }
.side-cta p { font-size: .9rem; line-height: 1.6; opacity: .9; margin: 0 0 16px; position: relative; }
.cta-icon { width: 54px; height: 54px; border-radius: 18px; background: rgba(255,255,255,.15); display: inline-grid; place-items: center; font-size: 24px; color: var(--gold); position: relative; }
.side-cta .btn { width: 100%; position: relative; }
.cta-link { display: inline-flex; gap: 8px; align-items: center; margin-top: 14px; color: #fff; font-weight: 700; font-size: .9rem; text-decoration: none; position: relative; opacity: .95; }
.cta-link:hover { text-decoration: underline; }

/* galeri + sosial */
.side-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.side-gallery a { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--tint); }
.side-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.side-gallery a:hover img { transform: scale(1.1); }
.side-more { display: inline-flex; gap: 8px; align-items: center; margin-top: 14px; font-weight: 700; font-size: .88rem; color: var(--primary); text-decoration: none; }
.side-more:hover { gap: 12px; }
.side-social { display: flex; gap: 10px; flex-wrap: wrap; }
.side-social a { width: 44px; height: 44px; border-radius: 14px; background: var(--tint); color: var(--primary); display: grid; place-items: center; font-size: 18px; text-decoration: none; transition: transform .2s, background .2s, color .2s; }
.side-social a:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }
.side-mail { margin: 14px 0 0; font-size: .88rem; color: var(--muted); word-break: break-all; }
.side-mail a { color: var(--primary); font-weight: 600; text-decoration: none; }

/* sebelumnya / berikutnya */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 26px; }
.post-nav-link { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px; text-decoration: none; background: #fff; transition: border-color .2s, background .2s, transform .2s; min-width: 0; }
.post-nav-link:hover { border-color: var(--primary-light); background: var(--tint); transform: translateY(-2px); }
.post-nav-link small { color: var(--primary); font-weight: 700; font-size: 12px; }
.post-nav-link strong { color: var(--ink); font-size: .95rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-nav-link.next { text-align: right; grid-column: 2; }
.post-nav-link.prev { grid-column: 1; }

@media (max-width: 1024px) {
    .news-layout { grid-template-columns: 1fr; }
    .news-aside { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    .side-cta, .side-toc { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
    .news-aside { grid-template-columns: 1fr; }
    .side-widget { border-radius: 22px; padding: 18px; }
    .post-nav { grid-template-columns: 1fr; }
    .post-nav-link.next, .post-nav-link.prev { grid-column: 1; text-align: left; }
}


/* ===== Kartu Ketua PGM (sidebar detail berita) — beranimasi penuh ===== */
.chair-card { position: relative; overflow: hidden; text-align: center; padding: 26px 22px 24px; border: 0; color: #fff;
    background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary-2) 50%, var(--accent) 100%); background-size: 220% 220%;
    box-shadow: var(--shadow-lg); isolation: isolate; animation: chairBg 12s ease-in-out infinite; }
.chair-card > * { position: relative; z-index: 1; }
@keyframes chairBg { 0%, 100% { background-position: 0% 0%; } 50% { background-position: 100% 100%; } }

/* bola cahaya mengambang */
.chair-orb { position: absolute !important; z-index: 0 !important; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.chair-orb.o1 { width: 170px; height: 170px; right: -60px; top: -60px; background: rgba(255,255,255,.10); animation: chairFloat 9s ease-in-out infinite; }
.chair-orb.o2 { width: 120px; height: 120px; left: -40px; bottom: 30px; background: rgba(228,184,28,.16); animation: chairFloat 11s ease-in-out -3s infinite reverse; }
.chair-orb.o3 { width: 70px; height: 70px; right: 18px; bottom: -22px; background: rgba(255,255,255,.08); animation: chairFloat 7s ease-in-out -5s infinite; }
@keyframes chairFloat { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(14px, -16px) scale(1.12); } 66% { transform: translate(-12px, 10px) scale(.94); } }

/* percikan berkedip */
.chair-spark { position: absolute !important; z-index: 0 !important; width: 8px; height: 8px; background: var(--gold); border-radius: 50%; opacity: 0; pointer-events: none;
    clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: chairTwinkle 3.4s ease-in-out infinite; }
.chair-spark.s1 { left: 16%; top: 26%; animation-delay: .2s; }
.chair-spark.s2 { right: 14%; top: 40%; width: 11px; height: 11px; animation-delay: 1.4s; }
.chair-spark.s3 { left: 22%; bottom: 20%; width: 6px; height: 6px; animation-delay: 2.4s; }
@keyframes chairTwinkle { 0%, 100% { opacity: 0; transform: scale(.2) rotate(0); } 50% { opacity: 1; transform: scale(1.5) rotate(90deg); } }

/* lencana */
.chair-badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase;
    color: #3b2a00; background: var(--gradient-gold); box-shadow: 0 6px 18px rgba(228,184,28,.35); margin-bottom: 20px; position: relative; overflow: hidden; animation: chairDrop .8s cubic-bezier(.2,.9,.3,1.3) both; }
.chair-badge::after { content: ""; position: absolute; top: 0; left: -80%; width: 60%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.7), transparent); transform: skewX(-20deg); animation: chairSweep 3.6s ease-in-out 1.2s infinite; }
.chair-badge i { animation: chairWobble 2.8s ease-in-out infinite; }
@keyframes chairDrop { from { opacity: 0; transform: translateY(-18px) scale(.8); } to { opacity: 1; transform: none; } }
@keyframes chairSweep { 0% { left: -80%; } 55%, 100% { left: 140%; } }
@keyframes chairWobble { 0%, 100% { transform: rotate(0) scale(1); } 20% { transform: rotate(-14deg) scale(1.15); } 40% { transform: rotate(10deg) scale(1.15); } 60% { transform: rotate(0) scale(1); } }

/* foto penuh (tanpa dipotong) + cahaya berputar di tepi + denyut */
.chair-photo-wrap { position: relative; width: 100%; margin: 0 auto 18px; padding: 4px; border-radius: 26px; overflow: hidden; background: rgba(255,255,255,.14);
    animation: chairPop 1s cubic-bezier(.2,.9,.3,1.25) .15s both, chairBob 6s ease-in-out 1.2s infinite, chairGlow 3s ease-in-out infinite; }
.chair-ring { position: absolute; inset: -60%; z-index: 0; border-radius: 0; background: conic-gradient(from 0deg, transparent 0 55%, var(--gold) 72%, #fff 80%, var(--gold) 88%, transparent 100%); animation: chairSpin 4.5s linear infinite; }
.chair-pulse { display: none; }
.chair-photo { position: relative; z-index: 1; width: 100%; margin: 0; border-radius: 22px; overflow: hidden; background: #0b1f1a; display: block; box-shadow: 0 14px 34px rgba(0,0,0,.32); transform: translateZ(0); }
.chair-photo img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: contain; background: #0b1f1a; transition: transform .6s; }
.chair-photo:not(.has-img) { aspect-ratio: 4 / 5; display: grid; place-items: center; background: #fff; }
.chair-initial { font-family: var(--font-display); font-weight: 800; font-size: 5rem; color: var(--primary); animation: chairBreath 3.2s ease-in-out infinite; }
.chair-shine { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.5) 50%, transparent 65%); transform: translateX(-120%); animation: chairShine 4.5s ease-in-out 1.6s infinite; pointer-events: none; }
@keyframes chairPop { from { opacity: 0; transform: scale(.7) rotate(-4deg); } to { opacity: 1; transform: none; } }
@keyframes chairBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes chairSpin { to { transform: rotate(360deg); } }
@keyframes chairGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(228,184,28,.0), 0 10px 30px rgba(0,0,0,.25); } 50% { box-shadow: 0 0 0 8px rgba(228,184,28,.18), 0 14px 36px rgba(0,0,0,.3); } }
@keyframes chairBreath { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
@keyframes chairShine { 0% { transform: translateX(-120%); } 45%, 100% { transform: translateX(120%); } }

/* teks muncul bertahap */
.chair-name { margin: 0 0 6px; font-family: var(--font-display); font-size: 1.3rem; line-height: 1.25; color: #fff; animation: chairRise .8s ease .55s both; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.chair-role { margin: 0 0 16px; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: .78rem; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold); animation: chairRise .8s ease .75s both; }
.chair-role span { display: block; height: 2px; width: 26px; border-radius: 2px; background: currentColor; transform-origin: center; animation: chairLine 2.6s ease-in-out 1.4s infinite; }
.chair-quote { margin: 0; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(4px);
    font-size: .86rem; line-height: 1.6; font-style: italic; color: rgba(255,255,255,.92); animation: chairRise .8s ease .95s both; }
.chair-quote i { color: var(--gold); margin-right: 4px; font-size: .75rem; animation: chairWobble 3.4s ease-in-out 2s infinite; display: inline-block; }
@keyframes chairRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes chairLine { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.35); opacity: .5; } }

/* interaksi: kartu sedikit terangkat saat disorot */
.chair-card { transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s; }
.chair-card:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: 0 26px 60px rgba(var(--primary-dark-rgb),.38); }
.chair-card:hover .chair-ring { animation-duration: 1.8s; }
.chair-card:hover .chair-photo img { transform: scale(1.04); }

@media (prefers-reduced-motion: reduce) {
    .chair-card, .chair-card * { animation: none !important; transition: none !important; }
    .chair-spark { opacity: .8; }
}

/* Hak cipta pembuat website (footer) */
.credit-link { color: var(--gold); font-weight: 700; text-decoration: none; transition: color .25s; }
.credit-link:hover { color: #fff; text-decoration: underline; }

/* Tautan kontak di footer (telepon & email dari pengaturan admin) */
.footer-col p a { color: inherit; text-decoration: none; transition: color .25s; }
.footer-col p a:hover { color: var(--gold); }
.contact-info .text-muted { color: var(--muted); }


/* ===================== JUMBOTRON (berita pilihan) ===================== */
/* Lebar penuh (edge-to-edge) tepat di bawah navbar; teks & kontrol sejajar dengan kontainer navbar */
.jumbo { padding: calc(var(--nav-h) + var(--safe-t)) 0 0; background: var(--primary-dark); }
.jumbo-stage {
    --px: 0; --py: 0;
    --gx: max(28px, calc((100% - 1240px) / 2 + 28px));
    position: relative; overflow: hidden; isolation: isolate; color: #fff; outline: none;
    width: 100%; height: clamp(480px, calc(100vh - var(--nav-h) - var(--safe-t)), 740px);
    background: var(--primary-dark);
    animation: jStage 1s ease both;
}
.jumbo-stage:focus-visible { box-shadow: inset 0 0 0 4px rgba(228,184,28,.6); }
.jumbo-stage::after {   /* garis aksen emas tipis di tepi bawah */
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 7;
    background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold) 80%, transparent); opacity: .85;
}
@keyframes jStage { from { opacity: 0; } }

/* lapisan efek: gumpalan cahaya + kilau yang melayang, bergeser halus mengikuti kursor */
.jumbo-fx { position: absolute; inset: -20px; z-index: 3; pointer-events: none; transform: translate(calc(var(--px) * 16px), calc(var(--py) * 10px)); transition: transform .5s ease-out; }
.jblob { position: absolute; border-radius: 50%; filter: blur(50px); mix-blend-mode: screen; }
.jb1 { width: 320px; height: 320px; right: -60px; top: -80px; background: rgba(228,184,28,.38); animation: drift 11s ease-in-out infinite; }
.jb2 { width: 280px; height: 280px; left: 22%; bottom: -120px; background: rgba(var(--primary-light-rgb),.45); animation: drift 13s ease-in-out infinite reverse; }
.jspark {
    position: absolute; left: var(--x); bottom: -14px; width: var(--s); height: var(--s); opacity: 0;
    background: #fff; border-radius: 50%; box-shadow: 0 0 12px 3px rgba(255,236,150,.85);
    animation: jFloatUp var(--t) linear var(--d) infinite;
}
.jspark:nth-child(3n) { background: #ffe58a; border-radius: 2px; transform: rotate(45deg); }
@keyframes jFloatUp {
    0% { transform: translateY(0) scale(.4); opacity: 0; }
    12% { opacity: .95; }
    70% { opacity: .6; }
    100% { transform: translateY(calc(-1 * clamp(380px, 70vh, 600px))) translateX(26px) scale(1.1); opacity: 0; }
}

/* slide */
.jslide { position: absolute; inset: 0; opacity: 0; visibility: hidden; z-index: 1; transition: opacity 1s ease, visibility 0s linear 1s; }
.jslide.is-active { opacity: 1; visibility: visible; z-index: 2; transition: opacity 1s ease, visibility 0s; }
.jslide-media, .jslide-media img, .jslide-ph { position: absolute; inset: 0; width: 100%; height: 100%; }
.jslide-media { overflow: hidden; }
.jslide-media img { object-fit: cover; transform: scale(1.02); will-change: transform; }
.jslide-ph {
    display: flex; align-items: center; justify-content: center; font-size: 12rem; color: rgba(255,255,255,.1);
    background: var(--gradient);
}
.jslide-ph::before {
    content: ''; position: absolute; inset: 0; opacity: .7;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.1' stroke-width='1.2'%3E%3Cpath d='M40 6l9.6 14.4L66 14l-6.4 16.4L74 40l-14.4 9.6L66 66l-16.4-6.4L40 74l-9.6-14.4L14 66l6.4-16.4L6 40l14.4-9.6L14 14l16.4 6.4z'/%3E%3C/g%3E%3C/svg%3E");
}
.jslide-ph i { position: relative; animation: jIcon 9s ease-in-out infinite; }
@keyframes jIcon { 50% { transform: rotate(-6deg) scale(1.08); } }
/* zoom pelan (efek Ken Burns) selama slide aktif; arah berbeda tiap slide */
.jslide.is-active .jslide-media img { animation: jKB0 calc(var(--iv) + 2s) ease-out forwards; }
.jslide.k1.is-active .jslide-media img { animation-name: jKB1; }
.jslide.k2.is-active .jslide-media img { animation-name: jKB2; }
@keyframes jKB0 { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.16) translate(-2.2%, -1.4%); } }
@keyframes jKB1 { from { transform: scale(1.16) translate(2%, 1%); } to { transform: scale(1.02) translate(0, 0); } }
@keyframes jKB2 { from { transform: scale(1.04) translate(1.6%, -1.6%); } to { transform: scale(1.15) translate(-1.6%, 1.2%); } }
.jslide-shade {
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(6,26,18,.92) 0%, rgba(6,26,18,.66) 38%, rgba(6,26,18,.1) 74%),
        linear-gradient(0deg, rgba(6,26,18,.78) 0%, transparent 46%);
}

/* isi teks, muncul bertahap saat slide aktif */
.jslide-body {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
    padding: 0 var(--gx) clamp(84px, 11vh, 108px);
}
.jslide-body > * { max-width: 760px; }
.jslide-body > .jactions, .jslide-body > .jmeta, .jslide-body > .jbadge { max-width: none; }
.jbadge, .jmeta, .jexcerpt, .jactions { opacity: 0; }
.jbadge {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; margin-bottom: 14px; border-radius: 999px;
    font-size: 12.5px; font-weight: 800; letter-spacing: .02em; color: #3b2a00; background: var(--gradient-gold);
    box-shadow: 0 8px 22px rgba(228,184,28,.45);
}
.jbadge i { animation: jTwinkle 2.2s ease-in-out infinite; }
@keyframes jTwinkle { 50% { transform: scale(1.35) rotate(72deg); } }
.jmeta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 12px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.88); }
.jmeta i { color: var(--gold); margin-right: 6px; }
.jtitle {
    font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 3.9vw, 3.1rem); line-height: 1.12; letter-spacing: -.02em;
    margin: 0 0 14px; text-shadow: 0 4px 24px rgba(0,0,0,.35);
    display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; padding-bottom: .12em;
}
.jtitle .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.jtitle .w > span { display: inline-block; opacity: 0; transform: translateY(115%) rotate(5deg); transform-origin: 0 100%; }
.jexcerpt {
    margin: 0 0 22px; max-width: 600px; font-size: 1.04rem; line-height: 1.6; color: rgba(255,255,255,.9);
    display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.jactions { display: flex; flex-wrap: wrap; gap: 12px; }
.jbtn { position: relative; overflow: hidden; }
.jbtn::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.65), transparent); transform: skewX(-20deg); animation: jShine 3.6s ease-in-out 2s infinite; }
@keyframes jShine { 0% { left: -60%; } 35%, 100% { left: 140%; } }
.jghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(8px); }
.jghost:hover { background: rgba(255,255,255,.26); transform: translateY(-3px); }

.jslide.is-active .jbadge   { animation: jDrop .7s cubic-bezier(.2,.8,.2,1) .15s both; }
.jslide.is-active .jmeta    { animation: jRise .7s ease .3s both; }
.jslide.is-active .jtitle .w > span { animation: jWord .85s cubic-bezier(.2,.8,.2,1) calc(.38s + var(--w) * .07s) both; }
.jslide.is-active .jexcerpt { animation: jRise .8s ease .95s both; }
.jslide.is-active .jactions { animation: jPop .7s cubic-bezier(.3,1.5,.5,1) 1.15s both; }
@keyframes jDrop { from { opacity: 0; transform: translateY(-18px) scale(.8); } to { opacity: 1; transform: none; } }
@keyframes jRise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes jWord { from { opacity: 0; transform: translateY(115%) rotate(5deg); } to { opacity: 1; transform: none; } }
@keyframes jPop  { from { opacity: 0; transform: translateY(16px) scale(.88); } to { opacity: 1; transform: none; } }

/* kontrol: segmen progres ala "story" + panah + penghitung */
.jumbo-ui { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; align-items: center; gap: 18px; padding: 0 var(--gx) 30px; }
.jsegs { display: flex; gap: 8px; flex: 1; max-width: 560px; }
.jseg { flex: 1; height: 22px; padding: 9px 0; border: 0; background: none; cursor: pointer; }
.jseg::before { content: ''; display: block; height: 4px; border-radius: 4px; background: rgba(255,255,255,.3); transition: background .25s, height .25s; }
.jseg:hover::before { background: rgba(255,255,255,.5); }
.jseg { position: relative; }
.jseg i { position: absolute; left: 0; top: 9px; height: 4px; width: 0; border-radius: 4px; background: var(--gold); box-shadow: 0 0 10px rgba(228,184,28,.8); }
.jseg.done i { width: 100%; box-shadow: none; opacity: .85; }
.jseg.on i { animation: jFill var(--iv) linear forwards; }
@keyframes jFill { to { width: 100%; } }
.jumbo-stage.paused .jseg.on i, .jumbo-stage.paused .jslide.is-active .jslide-media img { animation-play-state: paused; }
.jumbo-stage.manual .jseg.on i { animation: none; width: 100%; }
.jnav { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.jcount { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.75); letter-spacing: .06em; margin-right: 6px; font-variant-numeric: tabular-nums; }
.jcount b { color: #fff; font-size: 17px; display: inline-block; }
.jcount b.tick { animation: jTick .5s ease; }
@keyframes jTick { 0% { transform: translateY(-60%); opacity: 0; } 100% { transform: none; opacity: 1; } }
.jarrow {
    width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); cursor: pointer; color: #fff; font-size: 14px;
    background: rgba(255,255,255,.14); backdrop-filter: blur(10px); transition: transform .2s, background .2s, color .2s;
}
.jarrow:hover { background: var(--gold); color: #3b2a00; border-color: var(--gold); transform: scale(1.1); }
.jarrow:active { transform: scale(.94); }
.jumbo-stage.single .jslide-body { padding-bottom: clamp(36px, 6vh, 56px); }

@media (max-width: 1080px) {
    .jumbo-stage { height: clamp(460px, 70vh, 620px); }
}
@media (max-width: 768px) {
    .jumbo { padding: calc(var(--nav-h) + var(--safe-t)) 0 0; background: var(--bg); }
    .jumbo-stage { --gx: 20px; height: clamp(440px, 72vh, 580px); border-radius: 0 0 30px 30px; box-shadow: 0 16px 36px rgba(var(--primary-rgb), .28); }
    .jumbo-stage::after { display: none; }
    .jslide-shade { background: linear-gradient(0deg, rgba(6,26,18,.94) 0%, rgba(6,26,18,.62) 48%, rgba(6,26,18,.12) 100%); }
    .jslide-body { padding: 0 var(--gx) 62px; }
    .jbadge { font-size: 11px; padding: 6px 12px; margin-bottom: 10px; }
    .jmeta { font-size: 12px; margin-bottom: 8px; }
    .jtitle { font-size: 1.5rem; -webkit-line-clamp: 4; line-clamp: 4; margin-bottom: 10px; }
    .jexcerpt { font-size: .9rem; -webkit-line-clamp: 2; line-clamp: 2; margin-bottom: 16px; }
    .jactions { flex-wrap: nowrap; gap: 10px; }
    .jactions .btn { flex: 1; padding: 13px 8px; font-size: 13px; gap: 7px; white-space: nowrap; justify-content: center; }
    .jghost i { display: none; }
    .jumbo-ui { padding: 0 var(--gx) 22px; gap: 12px; }
    .jarrow, .jcount { display: none; }
    .jsegs { max-width: none; }
    .jslide-ph { font-size: 8rem; }
    .jb1 { width: 220px; height: 220px; }
}

/* Hormati preferensi "kurangi gerakan": tanpa animasi otomatis, semua teks langsung tampil */
@media (prefers-reduced-motion: reduce) {
    .jumbo-stage, .jumbo-stage * { animation: none !important; }
    .jslide { transition-duration: .01s !important; }
    .jslide.is-active .jbadge, .jslide.is-active .jmeta, .jslide.is-active .jexcerpt, .jslide.is-active .jactions,
    .jslide.is-active .jtitle .w > span { opacity: 1; transform: none; }
    .jspark, .jblob { display: none; }
    .jseg.on i { width: 100%; }
}

/* ---- Deskripsi dokumen berformat: tombol "Baca selengkapnya" ---- */
.doc-more { border-top: 1px dashed var(--line); padding-top: 12px; }
.doc-more summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 13.5px; color: var(--primary); display: inline-flex; align-items: center; gap: 8px; }
.doc-more summary::-webkit-details-marker { display: none; }
.doc-more summary::after { content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 10px; transition: transform .25s; }
.doc-more[open] summary::after { transform: rotate(180deg); }
.doc-more[open] summary { margin-bottom: 12px; }
.doc-more-body { font-size: 14.5px; line-height: 1.8; color: #2b3f39; animation: fadeIn .35s ease; }
.doc-more-body img, .doc-more-body video { max-width: 100%; height: auto; border-radius: 12px; }
@media (max-width: 768px) {
    .doc-card { flex-wrap: wrap; }
    .doc-more { flex: 0 0 100%; }
}


/* ===================== UKURAN FOTO PROFESIONAL =====================
   Rasio tetap per jenis foto (tidak bergantung ukuran file asli), selalu ter-crop rapi di tengah,
   dengan fokus sedikit ke atas agar wajah tidak terpotong. */
:root { --ph-focus: 50% 28%; }
.card-image { height: auto; aspect-ratio: 16 / 10; }
.card-image img, .li-thumb img, .side-thumb img, .gallery-item img, .about-photo img, .article-image img { object-position: var(--ph-focus); }
.li-thumb { width: 112px; height: auto; aspect-ratio: 4 / 3; border-radius: 14px; }
.side-thumb { width: 80px; height: auto; aspect-ratio: 4 / 3; }
.gallery-item { height: auto; aspect-ratio: 4 / 3; }
.gallery-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.article-image { max-height: none; aspect-ratio: 16 / 9; position: relative; background: var(--tint); }
.article-image img { position: absolute; inset: 0; width: 100%; height: 100%; }
.about-photo { aspect-ratio: 4 / 3; max-width: 520px; margin-inline: auto; width: 100%; border-radius: 26px; }
.image-placeholder { height: auto; aspect-ratio: 4 / 3; max-width: 520px; margin-inline: auto; width: 100%; border-radius: 26px; }
/* Foto di dalam isi tulisan: proporsional, tidak melebihi tinggi layar */
.rt-content figure.rt-fig img { max-height: min(70vh, 640px); object-fit: contain; margin-inline: auto; width: auto; max-width: 100%; height: auto; }
.rt-content figure.rt-fig { text-align: center; }
.rt-content figure.rt-fig img { background: transparent; box-shadow: 0 6px 22px rgba(15,50,35,.12); }
@media (max-width: 720px) {
    .li-thumb { width: 96px; }
    .about-photo, .image-placeholder { max-width: none; border-radius: 22px; }
    .article-image { border-radius: 16px; aspect-ratio: 16 / 10; }
}


/* ===================== INFO MASUK (halaman daftar KTA) ===================== */
.login-hint { max-width: 900px; margin: 0 auto 26px; display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: 22px;
    background: linear-gradient(135deg, var(--tint), #fff); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.lh-ic { width: 48px; height: 48px; flex: none; border-radius: 16px; background: var(--gradient); color: #fff; display: grid; place-items: center; font-size: 19px; }
.lh-text { flex: 1; display: grid; gap: 2px; min-width: 0; }
.lh-text b { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); }
.lh-text span { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.login-hint .btn { flex: none; white-space: nowrap; }
@media (max-width: 720px) {
    .login-hint { flex-wrap: wrap; padding: 16px; border-radius: 18px; }
    .lh-text { flex-basis: calc(100% - 64px); }
    .login-hint .btn { width: 100%; justify-content: center; }
}


/* ===== Foto Tentang: format potret (lebih tinggi) ===== */
.about-photo, .image-placeholder { aspect-ratio: 4 / 5; max-width: 480px; }
.about-photo img { object-position: 50% 22%; }
@media (max-width: 720px) {
    .about-photo, .image-placeholder { aspect-ratio: 5 / 6; max-width: none; }
}


/* ===================== HALAMAN REGISTRASI (tanpa elemen bertumpuk) ===================== */
.reg-wrap { max-width: 1100px; }
.reg-wrap .alert, .reg-wrap .login-hint { max-width: none; }
.reg-wrap .login-hint { margin-bottom: 28px; }
.reg-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 28px; align-items: start; }
.reg-side { position: sticky; top: 96px; display: grid; gap: 16px; }

/* langkah: daftar vertikal bernomor */
.reg-side .step-pills { position: static; z-index: auto; display: grid; gap: 8px; margin: 0; max-width: none; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-sm); counter-reset: st; }
.reg-side .step-pills span { counter-increment: st; display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 10px 12px; border-radius: 16px; box-shadow: none; background: transparent; cursor: pointer; transition: background .25s, transform .25s; position: relative; }
.reg-side .step-pills span i { grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 13px; background: var(--tint); color: var(--primary-2); display: grid; place-items: center; font-size: 15px; transition: .3s; }
.reg-side .step-pills span b { font-size: 14px; color: var(--ink); line-height: 1.2; align-self: end; }
.reg-side .step-pills span small { font-size: 12px; color: var(--muted); font-weight: 500; line-height: 1.3; align-self: start; }
.reg-side .step-pills span:hover { background: var(--tint); }
.reg-side .step-pills span.on { background: var(--tint); }
.reg-side .step-pills span.on i { background: var(--gradient); color: #fff; box-shadow: 0 6px 16px rgba(47,121,52,.28); }
.reg-side .step-pills span.done i { background: var(--primary-2); color: #fff; }
.reg-side .step-pills span.done i::before { content: "\f00c"; }

.reg-note { background: var(--gold-soft); border: 1px solid #f1e3a0; border-radius: 22px; padding: 18px 20px; display: grid; gap: 10px; font-size: 13.5px; color: #6b4a07; }
.reg-note b { display: flex; align-items: center; gap: 8px; color: #8a5a07; }
.reg-note ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.reg-note li { position: relative; padding-left: 20px; }
.reg-note li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; top: 1px; font-size: 11px; color: #b45309; }
.reg-note a { margin-top: 2px; font-weight: 700; color: var(--primary); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.reg-note a:hover { text-decoration: underline; }

/* form: tiap bagian jadi kartu sendiri, jarak teratur */
.reg-layout .form-register { background: transparent; border: 0; box-shadow: none; padding: 0; border-radius: 0; max-width: none; margin: 0; display: grid; gap: 22px; }
.reg-layout .form-section { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 28px 30px; box-shadow: var(--shadow-sm); scroll-margin-top: 100px; transition: box-shadow .3s, border-color .3s; }
.reg-layout .form-section:focus-within { box-shadow: var(--shadow); border-color: var(--primary-light); }
.reg-layout .form-actions { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 22px 30px; box-shadow: var(--shadow-sm); display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; margin: 0; }
.reg-layout .upload-drop { width: 100%; }

@media (max-width: 960px) {
    .reg-layout { grid-template-columns: 1fr; gap: 18px; }
    .reg-side { position: static; }
    /* langkah jadi baris geser horizontal, di atas form (tidak menimpa apa pun) */
    .reg-side .step-pills { display: flex; overflow-x: auto; gap: 6px; padding: 10px; border-radius: 20px; scrollbar-width: none; }
    .reg-side .step-pills::-webkit-scrollbar { display: none; }
    .reg-side .step-pills span { flex: 0 0 auto; display: inline-flex; gap: 8px; padding: 6px 12px 6px 6px; }
    .reg-side .step-pills span small { display: none; }
    .reg-side .step-pills span i { width: 30px; height: 30px; border-radius: 10px; font-size: 12px; }
    .reg-note { display: none; }
}
@media (max-width: 720px) {
    .reg-layout .form-section { padding: 20px 16px; border-radius: 20px; }
    .reg-layout .form-actions { padding: 16px; border-radius: 20px; }
    .reg-layout .form-actions .btn { width: 100%; justify-content: center; }
}


/* ===== Foto Tentang: presisi mengikuti lebar kolom, tampilan elegan ===== */
.about-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; }
.about-image { position: relative; isolation: isolate; }
.about-image::before { content: ""; position: absolute; z-index: -1; inset: 18px -14px -14px 18px; border-radius: 30px; border: 2px solid rgba(228,184,28,.55); }
.about-photo, .image-placeholder { width: 100%; max-width: none; margin: 0; aspect-ratio: 4 / 5; border-radius: 28px; box-shadow: 0 24px 54px -18px rgba(15,50,35,.45); }
.about-photo::after, .image-placeholder::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); pointer-events: none; z-index: 1; }
.about-photo img { object-position: 50% 20%; }
/* label Ketua: panel kaca melayang, rapi di dalam bingkai */
.about-caption { left: 14px; right: 14px; bottom: 14px; padding: 12px 18px 13px; border-radius: 18px; gap: 2px;
    background: rgba(7,26,19,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.18); }
.about-caption::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--accent, #e4b81c); margin-bottom: 6px; }
.about-photo:hover .about-caption { padding-bottom: 13px; }
.ip-badge { left: 14px; top: 14px; border-radius: 16px; padding: 10px 16px; }
.about-widgets { margin-top: 26px; }
@media (max-width: 960px) {
    .about-grid { grid-template-columns: 1fr; gap: 34px; }
    .about-image::before { inset: 14px -8px -8px 14px; }
    .about-photo, .image-placeholder { aspect-ratio: 5 / 6; }
}
@media (max-width: 720px) {
    .about-image { margin-right: 8px; }
    .about-photo, .image-placeholder { border-radius: 22px; }
    .about-image::before { border-radius: 24px; }
}


/* ===================== AJAKAN BERGABUNG (beranda) ===================== */
.join-section { margin: 0 6% 90px; padding: 64px 5% 44px; border-radius: 36px; background: var(--gradient); color: #fff; position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.join-section::before { content: ''; position: absolute; width: 380px; height: 380px; right: -110px; top: -150px; border-radius: 50%; background: rgba(228,184,28,.22); }
.join-section::after  { content: ''; position: absolute; width: 280px; height: 280px; left: -90px; bottom: -130px; border-radius: 50%; background: rgba(255,255,255,.07); }
.join-section > * { position: relative; z-index: 2; }
.join-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.join-head h2 { font-family: var(--font-display); font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.15; margin: 6px 0 12px; }
.join-head p { opacity: .92; }
.join-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; max-width: 1100px; margin: 0 auto; align-items: stretch; }
.join-steps { list-style: none; display: grid; gap: 12px; }
.join-steps li { display: flex; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 20px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(6px); }
.js-num { flex: 0 0 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; background: var(--gradient-gold); color: #3b2a00; box-shadow: 0 6px 16px rgba(228,184,28,.4); }
.join-steps b { display: block; line-height: 1.3; }
.join-steps small { display: block; opacity: .85; font-size: 13px; margin-top: 2px; }
.join-panel { background: #fff; color: var(--ink); border-radius: 26px; padding: 22px; display: grid; gap: 16px; box-shadow: var(--shadow); align-content: start; }
.jp-fee { text-align: center; padding: 16px; border-radius: 18px; background: var(--gold-soft); }
.jp-fee span { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #92400e; }
.jp-fee strong { display: block; font-family: var(--font-display); font-size: 2rem; line-height: 1.2; color: var(--primary-dark); }
.jp-fee small { color: var(--muted); font-size: 12.5px; }
.jp-block b { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: .95rem; color: var(--primary-dark); }
.jp-block b i { color: var(--primary-2); }
.jp-block ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.jp-block li { font-size: 13.5px; color: var(--muted); padding-left: 20px; position: relative; }
.jp-block li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free'; font-weight: 900; position: absolute; left: 0; top: 1px; font-size: 11px; color: var(--primary-light); }
.jp-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.jp-tags span { padding: 5px 12px; border-radius: 999px; background: var(--tint); color: var(--primary); font-size: 12.5px; font-weight: 600; }
.join-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }
.btn-light { background: rgba(255,255,255,.14); color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.btn-light:hover { background: rgba(255,255,255,.25); transform: translateY(-3px); }
.join-foot { display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: center; margin-top: 18px; font-size: 13.5px; }
.join-foot a { color: #fff; opacity: .9; text-decoration: none; }
.join-foot a:hover { opacity: 1; text-decoration: underline; }

@media (max-width: 900px) { .join-grid { grid-template-columns: 1fr; } }
@media (max-width: 768px) {
    .join-section { margin: 4px 16px 24px; padding: 30px 18px 26px; border-radius: 28px; }
    .join-head { margin-bottom: 22px; }
    .join-head h2 { font-size: 1.4rem; }
    .join-head p { font-size: 13.5px; }
    .join-steps li { padding: 12px 14px; border-radius: 16px; gap: 12px; }
    .js-num { flex-basis: 36px; height: 36px; border-radius: 12px; }
    .join-panel { padding: 16px; border-radius: 22px; }
    .jp-block ul { grid-template-columns: 1fr; }
    .join-actions { margin-top: 22px; }
    .join-actions .btn { width: 100%; justify-content: center; }
}
