/* =====================================================================
   BERANDA MODULAR — desktop & ponsel
   Urutan seksi: CSS order dari --om (ponsel) / --od (desktop).
   ===================================================================== */
.hm-flow {
    --hm-ink: #1e2340;
    --hm-muted: #6b7189;
    --hm-line: #e8eaf3;
    --hm-card: #fff;
    --hm-soft: #f5f6fb;
    --hm-primary: #5b4fe9;
    --hm-primary-2: #8b7dfc;
    --hm-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 44px;
    color: var(--hm-ink);
}
.hm-sec { order: var(--om); min-width: 0; }
@media (max-width: 991.98px) { .hm-off-m { display: none !important; } }
@media (min-width: 992px) {
    .hm-sec { order: var(--od); }
    .hm-off-d { display: none !important; }
}
.hm-flow a { text-decoration: none; color: inherit; }
.hm-flow h2, .hm-flow h3 { color: var(--hm-ink); }

/* Judul seksi */
.hm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.hm-head h2 { font-size: 1.45rem; font-weight: 800; margin: 0; letter-spacing: -.01em; }
.hm-head p { margin: 2px 0 0; color: var(--hm-muted); font-size: .9rem; }
.hm-more { flex-shrink: 0; font-weight: 700; font-size: .86rem; color: var(--hm-primary) !important; padding: 7px 14px; border-radius: 30px; background: rgba(91, 79, 233, .08); }
.hm-more:hover { background: rgba(91, 79, 233, .15); }
.hm-tag { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .02em; padding: 3px 9px; border-radius: 20px; background: rgba(91, 79, 233, .1); color: var(--c, var(--hm-primary)); }
.hm-tag[style*="--c"] { background: color-mix(in srgb, var(--c) 14%, transparent); }
.hm-empty { color: var(--hm-muted); font-size: .9rem; padding: 18px; background: var(--hm-soft); border-radius: 14px; margin: 0; }
.hm-card { background: var(--hm-card); border: 1px solid var(--hm-line); border-radius: var(--hm-radius); padding: 20px; box-shadow: 0 1px 2px rgba(20, 24, 60, .03); }
.hm-card h3 { font-size: 1rem; font-weight: 800; margin: 0 0 14px; display: flex; gap: 8px; align-items: center; }
.hm-card h3 .bi { color: var(--hm-primary); }
.hm-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 14px; font-weight: 700; background: #fff; color: var(--hm-primary) !important; box-shadow: 0 6px 18px rgba(20, 24, 60, .12); transition: transform .15s; }
.hm-btn:hover { transform: translateY(-2px); }
.hm-btn.is-ghost { background: rgba(255, 255, 255, .14); color: #fff !important; box-shadow: none; border: 1px solid rgba(255, 255, 255, .35); }
.ok { color: #16a34a; font-weight: 700; }

/* ---------- HERO ---------- */
.hm-hero-card {
    position: relative; overflow: hidden; display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: center;
    padding: 44px 44px; border-radius: 28px; color: #fff;
    background:
        radial-gradient(1200px 400px at 110% -20%, rgba(255, 255, 255, .18), transparent 60%),
        radial-gradient(600px 300px at -10% 120%, rgba(14, 165, 233, .45), transparent 60%),
        linear-gradient(135deg, #2b2a7a 0%, #5b4fe9 55%, #8b5cf6 100%);
}
.hm-hero-card.has-image::before { content: ""; position: absolute; inset: 0; background: var(--hero-img) center/cover no-repeat; opacity: .22; mix-blend-mode: luminosity; }
.hm-hero-card::after { content: ""; position: absolute; width: 380px; height: 380px; right: -120px; bottom: -160px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .06); }
.hm-hero-main, .hm-hero-side { position: relative; z-index: 1; min-width: 0; }
.hm-eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: .8rem; font-weight: 600; padding: 6px 12px; border-radius: 30px; background: rgba(255, 255, 255, .14); }
.hm-hero-main h1 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.7rem); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; margin: 16px 0 10px; }
.hm-lead { font-size: 1.05rem; opacity: .9; max-width: 560px; margin-bottom: 22px; }
.hm-search { display: flex; align-items: center; background: #fff; border-radius: 16px; padding: 6px 6px 6px 16px; max-width: 560px; box-shadow: 0 14px 34px rgba(17, 12, 80, .28); }
.hm-search .bi { color: #8a8fa3; font-size: 1.05rem; }
.hm-search input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 10px 12px; font-size: 1rem; color: #1e2340; background: transparent; }
.hm-search button { border: 0; border-radius: 12px; padding: 10px 20px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #5b4fe9, #8b5cf6); }
.hm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hm-chips a { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 20px; font-size: .82rem; font-weight: 600; color: #fff !important; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); }
.hm-chips a:hover { background: rgba(255, 255, 255, .22); }

.hm-today { background: rgba(255, 255, 255, .97); color: #1e2340; border-radius: 20px; padding: 18px; box-shadow: 0 20px 40px rgba(17, 12, 80, .25); }
.hm-today-head { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: .9rem; margin-bottom: 10px; }
.hm-today-head .bi { color: #e5484d; }
.hm-today-head a { font-size: .78rem; font-weight: 700; color: #5b4fe9 !important; }
.hm-today ul { list-style: none; margin: 0; padding: 0; }
.hm-today li { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-top: 1px solid #eef0f6; }
.hm-today li:first-child { border-top: 0; }
.hm-today li a { flex: 1; min-width: 0; color: #1e2340 !important; }
.hm-today li b { display: block; font-size: .9rem; line-height: 1.3; }
.hm-today li small, .hm-next small { display: block; color: #6b7189; font-size: .76rem; }
.hm-dot { flex: 0 0 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 18%, transparent); }
.hm-live, .hm-done { flex-shrink: 0; font-size: .66rem; font-weight: 800; padding: 3px 8px; border-radius: 10px; text-transform: uppercase; letter-spacing: .03em; }
.hm-live { background: #fde8e8; color: #c9353a; animation: hmPulse 1.6s infinite; }
.hm-done { background: #eef0f6; color: #6b7189; }
@keyframes hmPulse { 50% { opacity: .55; } }
.hm-today-more { display: block; font-size: .78rem; font-weight: 700; color: #5b4fe9 !important; margin-top: 4px; }
.hm-next { display: flex; gap: 14px; align-items: center; }
.hm-next-count { flex: 0 0 74px; height: 74px; border-radius: 18px; background: linear-gradient(135deg, #5b4fe9, #8b5cf6); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hm-next-count b { font-size: 1.7rem; line-height: 1; }
.hm-next-count small { color: rgba(255, 255, 255, .85) !important; }
.hm-next a { color: #1e2340 !important; min-width: 0; }
.hm-next a b { display: block; line-height: 1.3; margin: 2px 0; }
.hm-today .hm-empty { background: #f5f6fb; padding: 12px; }
.hm-period { display: block; margin-top: 12px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); color: #fff !important; font-size: .84rem; font-weight: 600; }
.hm-period small { display: block; opacity: .85; margin-top: 4px; font-weight: 500; }
.hm-progress { display: block; height: 8px; margin-top: 8px; border-radius: 8px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.hm-progress i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, #fde68a, #f59e0b); }

/* ---------- LAYANAN CEPAT ---------- */
.hm-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.hm-quick-item { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; background: var(--hm-card); border: 1px solid var(--hm-line); transition: transform .15s, box-shadow .15s, border-color .15s; }
.hm-quick-item:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 40%, transparent); box-shadow: 0 12px 26px color-mix(in srgb, var(--c) 18%, transparent); }
.hm-quick-item .ico { position: relative; flex: 0 0 50px; height: 50px; border-radius: 15px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.35rem; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); }
.hm-quick-item .ico em { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #e5484d; color: #fff; font-style: normal; font-size: .68rem; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 2px solid var(--hm-card); }
.hm-quick-item b { display: block; font-size: .95rem; }
.hm-quick-item small { display: block; color: var(--hm-muted); font-size: .78rem; }

/* ---------- ANGKA ---------- */
.hm-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.hm-stat { position: relative; overflow: hidden; padding: 18px 16px; border-radius: 18px; background: var(--hm-card); border: 1px solid var(--hm-line); display: flex; flex-direction: column; gap: 2px; transition: transform .15s; }
.hm-stat:hover { transform: translateY(-3px); }
.hm-stat::after { content: ""; position: absolute; right: -24px; top: -24px; width: 86px; height: 86px; border-radius: 50%; background: color-mix(in srgb, var(--c) 10%, transparent); }
.hm-stat .bi { color: var(--c); font-size: 1.3rem; margin-bottom: 6px; position: relative; z-index: 1; }
.hm-stat b { font-size: 1.8rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.hm-stat span { color: var(--hm-muted); font-size: .8rem; font-weight: 600; }

/* ---------- AGENDA ---------- */
.hm-agenda { display: grid; grid-template-columns: 1fr; gap: 16px; }
.hm-days { display: grid; grid-template-columns: repeat(14, minmax(60px, 1fr)); gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; }
.hm-days::-webkit-scrollbar { display: none; }
.hm-day { border: 1px solid var(--hm-line); background: var(--hm-card); border-radius: 16px; padding: 10px 4px 8px; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--hm-ink); transition: all .15s; }
.hm-day small { font-size: .7rem; font-weight: 700; color: var(--hm-muted); white-space: nowrap; }
.hm-day b { font-size: 1.25rem; font-weight: 800; line-height: 1.1; }
.hm-day.is-weekend b { color: #e5484d; }
.hm-day.is-today { border-color: var(--hm-primary); }
.hm-day.active { background: linear-gradient(135deg, #5b4fe9, #8b5cf6); border-color: transparent; color: #fff; box-shadow: 0 10px 22px rgba(91, 79, 233, .3); }
.hm-day.active small, .hm-day.active b { color: #fff; }
.hm-day-dots { display: flex; gap: 3px; height: 6px; }
.hm-day-dots i { width: 6px; height: 6px; border-radius: 50%; }
.hm-day.active .hm-day-dots i { background: #fff !important; }
.hm-day-panel h3 { font-size: .95rem; font-weight: 800; color: var(--hm-muted); margin: 0 0 10px; }
.hm-events { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.hm-events a { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--hm-card); border: 1px solid var(--hm-line); border-left: 4px solid var(--c); height: 100%; }
.hm-events a:hover { box-shadow: 0 10px 24px rgba(20, 24, 60, .07); }
.hm-events .time { flex: 0 0 52px; font-weight: 800; font-size: 1rem; font-variant-numeric: tabular-nums; }
.hm-events .time small { display: block; font-size: .72rem; color: var(--hm-muted); font-weight: 600; }
.hm-events .body { flex: 1; min-width: 0; }
.hm-events .cat { display: block; font-size: .72rem; font-weight: 700; color: var(--c); }
.hm-events .cat em { color: #d97706; font-style: normal; }
.hm-events b { display: block; line-height: 1.35; margin: 2px 0; }
.hm-events small { color: var(--hm-muted); font-size: .78rem; }
.hm-events .go { color: var(--hm-muted); }

/* ---------- BERITA ---------- */
.hm-news { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; }
.hm-news-feature { position: relative; display: block; min-height: 420px; border-radius: var(--hm-radius); overflow: hidden; background: #1e2340; color: #fff !important; }
.hm-news-feature .media, .hm-news-feature .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hm-news-feature .media { display: flex; align-items: center; justify-content: center; font-size: 4rem; color: rgba(255, 255, 255, .2); background: linear-gradient(135deg, #2b2a7a, #5b4fe9); }
.hm-news-feature .media img { transition: transform .5s; }
.hm-news-feature:hover .media img { transform: scale(1.04); }
.hm-news-feature .body { position: absolute; inset: auto 0 0 0; padding: 26px; background: linear-gradient(transparent, rgba(10, 12, 40, .88) 45%); display: flex; flex-direction: column; gap: 8px; }
.hm-news-feature .hm-tag { background: rgba(255, 255, 255, .2); color: #fff; align-self: flex-start; }
.hm-news-feature b { font-size: 1.45rem; line-height: 1.25; }
.hm-news-feature .excerpt { opacity: .85; font-size: .9rem; }
.hm-news-feature small { opacity: .8; font-size: .78rem; }
.hm-news-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: start; }
.hm-news-item { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--hm-card); border: 1px solid var(--hm-line); transition: transform .15s, box-shadow .15s; }
.hm-news-item:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(20, 24, 60, .08); }
.hm-news-item .media { aspect-ratio: 16 / 10; background: var(--hm-soft); display: flex; align-items: center; justify-content: center; color: #c1c5d6; font-size: 2rem; overflow: hidden; }
.hm-news-item .media img { width: 100%; height: 100%; object-fit: cover; }
.hm-news-item .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 5px; }
.hm-news-item b { font-size: .92rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hm-news-item small { color: var(--hm-muted); font-size: .75rem; }
.hm-news-item .hm-tag { align-self: flex-start; }

/* ---------- INFOGRAFIS ---------- */
.hm-info { display: grid; grid-template-columns: 5fr 7fr; gap: 18px; }
.hm-donut-wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center; }
.svgc-donut { flex-shrink: 0; color: var(--hm-ink); max-width: 100%; height: auto; }
.svgc-donut .svgc-seg { transition: stroke-width .2s; cursor: default; }
.svgc-donut .svgc-seg:hover { stroke-width: 32; }
.svgc-big { font-size: 34px; font-weight: 800; fill: currentColor; }
.svgc-small { font-size: 12px; fill: currentColor; opacity: .6; }
.svgc-bars { width: 100%; height: auto; color: var(--hm-ink); display: block; }
.svgc-bars .svgc-seg:hover { opacity: .8; }
.svgc-axis { font-size: 11px; fill: currentColor; opacity: .55; }
.svgc-axis.is-hl { opacity: 1; font-weight: 800; fill: var(--hm-primary); }
.svgc-val { font-size: 11px; font-weight: 700; fill: currentColor; opacity: .8; }
.svgc-legend { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .8rem; color: var(--hm-muted); }
.svgc-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.svgc-legend b { color: var(--hm-ink); }
.hm-donut-wrap .svgc-legend { flex-direction: column; flex: 1; min-width: 130px; margin: 0; gap: 8px; }
.svgc-hbars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.svgc-hbars li { display: grid; grid-template-columns: minmax(90px, 38%) 1fr auto; align-items: center; gap: 10px; font-size: .84rem; }
.svgc-hbars .lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.svgc-hbars .track { height: 10px; border-radius: 6px; background: var(--hm-soft); overflow: hidden; }
.svgc-hbars .track span { display: block; height: 100%; border-radius: 6px; }
.svgc-hbars b { font-variant-numeric: tabular-nums; font-size: .8rem; }
.hm-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hm-facts li { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: var(--hm-soft); font-size: .86rem; line-height: 1.35; }
.hm-facts .ico { flex: 0 0 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); font-size: 1.1rem; }
.hm-swipe-dots { display: none; }

/* ---------- PIMPINAN & FRAKSI ---------- */
.hm-leaders { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.hm-leader { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 22px 14px 18px; border-radius: var(--hm-radius); background: var(--hm-card); border: 1px solid var(--hm-line); position: relative; overflow: hidden; transition: transform .15s; }
.hm-leader::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 64px; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 30%, transparent), color-mix(in srgb, var(--c) 8%, transparent)); }
.hm-leader:hover { transform: translateY(-3px); }
.hm-leader .photo { position: relative; width: 92px; height: 92px; border-radius: 50%; border: 4px solid var(--hm-card); background: color-mix(in srgb, var(--c) 25%, #fff); overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 800; color: var(--c); box-shadow: 0 8px 20px rgba(20, 24, 60, .12); }
.hm-leader .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hm-leader .role { margin-top: 6px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--c); }
.hm-leader b { line-height: 1.3; font-size: .95rem; }
.hm-leader small { color: var(--hm-muted); font-weight: 600; font-size: .78rem; }
.hm-factions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.hm-faction { display: inline-flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; border-radius: 30px; background: var(--hm-card); border: 1px solid var(--hm-line); font-weight: 700; font-size: .84rem; }
.hm-faction i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.hm-faction b { min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--c) 15%, transparent); color: var(--c); font-size: .78rem; }

/* ---------- HASIL RAPAT ---------- */
.hm-list-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.hm-meeting { display: flex; gap: 16px; align-items: center; padding: 16px; transition: transform .15s; }
.hm-meeting:hover { transform: translateY(-2px); }
.hm-meeting .date { flex: 0 0 66px; height: 66px; border-radius: 16px; background: var(--hm-soft); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hm-meeting .date b { font-size: 1.5rem; line-height: 1; color: var(--hm-primary); }
.hm-meeting .date small { font-size: .68rem; color: var(--hm-muted); font-weight: 700; }
.hm-meeting .body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.hm-meeting .body b { line-height: 1.35; }
.hm-meeting .body small { color: var(--hm-muted); font-size: .78rem; }
.hm-meeting .hm-tag { align-self: flex-start; }

/* ---------- FORUM ---------- */
.hm-split { display: grid; grid-template-columns: 5fr 7fr; gap: 22px; align-items: start; }
.hm-cta-aspirasi { padding: 30px; border-radius: 24px; color: #fff; background: radial-gradient(400px 200px at 100% 0, rgba(255, 255, 255, .2), transparent), linear-gradient(135deg, #db2777, #f97316); }
.hm-cta-aspirasi .ico { width: 54px; height: 54px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .2); font-size: 1.5rem; }
.hm-cta-aspirasi h2 { color: #fff; font-weight: 800; margin: 16px 0 8px; font-size: 1.5rem; }
.hm-cta-aspirasi p { opacity: .92; margin-bottom: 20px; }
.hm-cta-aspirasi .hm-btn { color: #db2777 !important; }
.hm-topics { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hm-topics li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--hm-card); border: 1px solid var(--hm-line); }
.hm-topics li a { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hm-topics li b { line-height: 1.35; }
.hm-topics li small { color: var(--hm-muted); font-size: .76rem; }
.hm-topics .hm-tag { align-self: flex-start; }
.hm-topics .meta { display: flex; flex-direction: column; gap: 2px; font-size: .78rem; color: var(--hm-muted); font-weight: 600; white-space: nowrap; }

/* ---------- JDIH ---------- */
.hm-docs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 12px; }
.hm-docs a { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--hm-card); border: 1px solid var(--hm-line); height: 100%; }
.hm-docs a:hover { border-color: rgba(15, 118, 110, .4); }
.hm-docs .ico { flex: 0 0 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: rgba(15, 118, 110, .1); color: #0f766e; font-size: 1.2rem; }
.hm-docs .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hm-docs .hm-tag { align-self: flex-start; --c: #0f766e; background: rgba(15, 118, 110, .1); }
.hm-docs b { font-size: .88rem; line-height: 1.35; }
.hm-docs small { color: var(--hm-muted); font-size: .75rem; }
.hm-docs .go { color: var(--hm-muted); }

/* ---------- GALERI ---------- */
.hm-gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 170px; gap: 12px; }
.hm-album { position: relative; border-radius: 18px; overflow: hidden; background: var(--hm-soft); }
.hm-gallery .hm-album:first-child { grid-column: span 2; grid-row: span 2; }
.hm-album img, .hm-album .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.hm-album .ph { display: flex; align-items: center; justify-content: center; font-size: 2.4rem; color: #c1c5d6; }
.hm-album:hover img { transform: scale(1.06); }
.hm-album .cap { position: absolute; inset: auto 0 0 0; padding: 30px 14px 12px; color: #fff; background: linear-gradient(transparent, rgba(10, 12, 40, .85)); }
.hm-album .cap b { display: block; font-size: .9rem; line-height: 1.3; }
.hm-album .cap small { opacity: .85; font-size: .74rem; }

/* ---------- KUNJUNGAN ---------- */
.hm-visit { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: center; padding: 36px; border-radius: 28px; color: #fff; background: radial-gradient(500px 260px at 100% 100%, rgba(255, 255, 255, .14), transparent), linear-gradient(135deg, #0f766e, #0ea5e9); }
.hm-visit h2 { color: #fff; font-weight: 800; font-size: 1.7rem; margin: 14px 0 8px; }
.hm-visit p { opacity: .92; max-width: 560px; }
.hm-steps { list-style: none; padding: 0; margin: 18px 0 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.hm-steps li { display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 30px; background: rgba(255, 255, 255, .14); font-size: .84rem; font-weight: 600; }
.hm-steps b { width: 26px; height: 26px; border-radius: 50%; background: #fff; color: #0f766e; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; }
.hm-visit .hm-btn:not(.is-ghost) { color: #0f766e !important; }
.hm-visit-side { padding: 18px; border-radius: 20px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); }
.hm-visit-side > small { display: block; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; font-size: .7rem; opacity: .85; margin-bottom: 6px; }
.hm-visit-side .row-v { padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, .15); }
.hm-visit-side .row-v:first-of-type { border-top: 0; }
.hm-visit-side .row-v b { display: block; }
.hm-visit-side .row-v span { font-size: .8rem; opacity: .85; }

/* =====================================================================
   TABLET
   ===================================================================== */
@media (max-width: 1199.98px) {
    .hm-stats { grid-template-columns: repeat(3, 1fr); }
    .hm-quick { grid-template-columns: repeat(4, 1fr); }
    .hm-quick-item { flex-direction: column; text-align: center; gap: 8px; }
    .hm-quick-item small { display: none; }
}

/* =====================================================================
   PONSEL — gaya aplikasi
   ===================================================================== */
@media (max-width: 991.98px) {
    .hm-flow { gap: 30px; }
    .hm-head { margin-bottom: 12px; }
    .hm-head h2 { font-size: 1.15rem; }
    .hm-head p { font-size: .8rem; }
    .hm-more { padding: 5px 10px; font-size: .78rem; }
    .hm-card { padding: 16px; border-radius: 18px; }

    /* Baris geser horizontal dengan snap */
    .hs-row { display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -12px; padding: 2px 12px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .hs-row::-webkit-scrollbar { display: none; }
    .hs-row > * { scroll-snap-align: start; flex: 0 0 auto; }

    .hm-hero-card { grid-template-columns: 1fr; padding: 22px 18px 18px; border-radius: 24px; gap: 16px; margin: 0 -4px; }
    .hm-hero-card::after { display: none; }
    .hm-eyebrow { font-size: .72rem; }
    .hm-hero-main h1 { font-size: 1.55rem; margin: 12px 0 6px; }
    .hm-lead { font-size: .9rem; margin-bottom: 16px; }
    .hm-search { padding: 4px 4px 4px 12px; border-radius: 14px; }
    .hm-search input { padding: 9px 8px; font-size: 16px; }
    .hm-search button { padding: 9px 14px; }
    .hm-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -18px; padding-right: 18px; }
    .hm-chips::-webkit-scrollbar { display: none; }
    .hm-chips a { flex-shrink: 0; }
    .hm-today { padding: 14px; border-radius: 18px; }

    .hm-quick { grid-template-columns: repeat(4, 1fr); gap: 6px 4px; background: var(--hm-card); border: 1px solid var(--hm-line); border-radius: 22px; padding: 14px 6px; }
    .hm-quick-item { padding: 6px 2px; border: 0; background: none; gap: 6px; border-radius: 14px; }
    .hm-quick-item:hover { transform: none; box-shadow: none; }
    .hm-quick-item:active { background: var(--hm-soft); }
    .hm-quick-item .ico { flex-basis: auto; width: 52px; height: 52px; border-radius: 18px; font-size: 1.4rem; }
    .hm-quick-item b { font-size: .74rem; font-weight: 700; }

    .hm-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .hm-stat { padding: 12px 10px; border-radius: 16px; }
    .hm-stat .bi { font-size: 1.05rem; margin-bottom: 2px; }
    .hm-stat b { font-size: 1.3rem; }
    .hm-stat span { font-size: .7rem; line-height: 1.25; }
    .hm-stat::after { width: 60px; height: 60px; right: -20px; top: -20px; }

    .hm-days { display: flex; margin: 0 -12px; padding: 2px 12px 6px; scroll-snap-type: x proximity; }
    .hm-day { flex: 0 0 58px; scroll-snap-align: start; border-radius: 14px; }
    .hm-events { grid-template-columns: 1fr; gap: 8px; }
    .hm-events a { padding: 12px; border-radius: 14px; gap: 10px; }
    .hm-events .time { flex-basis: 44px; font-size: .9rem; }
    .hm-events b { font-size: .9rem; }

    .hm-news { grid-template-columns: 1fr; gap: 12px; }
    .hm-news-feature { min-height: 250px; border-radius: 20px; }
    .hm-news-feature .body { padding: 16px; }
    .hm-news-feature b { font-size: 1.1rem; }
    .hm-news-feature .excerpt { display: none; }
    .hm-news-list > * { width: 72%; max-width: 280px; }

    .hm-info > * { width: 86%; max-width: 380px; }
    .hm-swipe-dots { display: flex; justify-content: center; gap: 6px; margin-top: 6px; }
    .hm-swipe-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 4px; background: #cdd1e0; transition: width .2s, background .2s; }
    .hm-swipe-dots button.active { width: 20px; background: var(--hm-primary); }
    .hm-facts { grid-template-columns: 1fr; gap: 8px; }
    .hm-facts li { padding: 10px; }

    .hm-leader { width: 150px; padding: 16px 10px 14px; }
    .hm-leader .photo { width: 72px; height: 72px; }
    .hm-leader b { font-size: .84rem; }
    .hm-factions { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 12px -12px 0; padding: 0 12px 4px; }
    .hm-factions::-webkit-scrollbar { display: none; }
    .hm-faction { flex-shrink: 0; }

    .hm-list-grid { grid-template-columns: 1fr; gap: 10px; }
    .hm-meeting { padding: 12px; }
    .hm-meeting .date { flex-basis: 56px; height: 56px; }

    .hm-split { grid-template-columns: 1fr; gap: 18px; }
    .hm-cta-aspirasi { padding: 22px; border-radius: 22px; }
    .hm-cta-aspirasi h2 { font-size: 1.25rem; }
    .hm-topics li { padding: 12px; }

    .hm-docs { grid-template-columns: 1fr; gap: 8px; }

    .hm-gallery > * { width: 70%; max-width: 280px; height: 200px; }
    .hm-gallery .hm-album:first-child { width: 80%; }

    .hm-visit { grid-template-columns: 1fr; padding: 24px 20px; border-radius: 24px; }
    .hm-visit h2 { font-size: 1.3rem; }
    .hm-steps { flex-direction: column; align-items: stretch; }
}

@media (max-width: 380px) {
    .hm-stats { grid-template-columns: repeat(2, 1fr); }
    .hm-quick-item .ico { width: 46px; height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
    .hm-flow *, .hm-flow *::before { transition: none !important; animation: none !important; }
}

/* =====================================================================
   MODE GELAP
   ===================================================================== */
body.dark-mode .hm-flow {
    --hm-ink: #e7e9f3;
    --hm-muted: #a3a8be;
    --hm-line: #333a52;
    --hm-card: #232838;
    --hm-soft: #2b3144;
    --hm-primary: #a197ff;
}
body.dark-mode .hm-today { background: #232838; color: #e7e9f3; }
body.dark-mode .hm-today li { border-color: #333a52; }
body.dark-mode .hm-today li a, body.dark-mode .hm-next a { color: #e7e9f3 !important; }
body.dark-mode .hm-today .hm-empty { background: #2b3144; }
body.dark-mode .hm-search { background: #232838; }
body.dark-mode .hm-search input { color: #e7e9f3; }
body.dark-mode .hm-done { background: #2b3144; color: #a3a8be; }
body.dark-mode .hm-swipe-dots button { background: #4a5170; }

/* =====================================================================
   SLIDER BERANDA — animasi ringan (opacity/transform, GPU)
   ===================================================================== */
.hs-slider { --hs-h: 460px; position: relative; height: var(--hs-h); border-radius: 28px; overflow: hidden; background: #1e2340; isolation: isolate; color: #fff; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.hs-slider.h-compact { --hs-h: 360px; }
.hs-slider.h-tall { --hs-h: 560px; }
.hs-track { position: absolute; inset: 0; }
.hs-slide { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 clamp(28px, 7vw, 88px); background: var(--bg); opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility 0s linear .8s; }
.hs-slide.is-active { opacity: 1; visibility: visible; transition: opacity .8s ease, visibility 0s; z-index: 1; }
.hs-slide.al-center { justify-content: center; text-align: center; }
.hs-slide.al-right { justify-content: flex-end; text-align: right; }

/* Gambar + lapisan gelap agar teks terbaca */
.hs-media, .hs-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hs-media img { object-fit: cover; transform: scale(1.001); will-change: transform; }
.hs-slide.has-img::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(10, 12, 40, var(--ov)) 0%, rgba(10, 12, 40, calc(var(--ov) * .55)) 55%, rgba(10, 12, 40, calc(var(--ov) * .15)) 100%); }
.hs-slide.has-img.al-center::after { background: rgba(10, 12, 40, calc(var(--ov) * .8)); }
.hs-slide.has-img.al-right::after { background: linear-gradient(270deg, rgba(10, 12, 40, var(--ov)) 0%, rgba(10, 12, 40, calc(var(--ov) * .55)) 55%, rgba(10, 12, 40, calc(var(--ov) * .15)) 100%); }

/* Hiasan untuk slide tanpa gambar */
.hs-deco i { position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); }
.hs-deco i:nth-child(1) { width: 520px; height: 520px; right: -140px; top: -180px; background: radial-gradient(circle, rgba(255, 255, 255, .12), transparent 65%); }
.hs-deco i:nth-child(2) { width: 300px; height: 300px; right: 12%; bottom: -170px; border-width: 46px; border-color: rgba(255, 255, 255, .06); }
.hs-deco i:nth-child(3) { width: 90px; height: 90px; right: 30%; top: 16%; background: rgba(255, 255, 255, .08); border: 0; }
.hs-slide.is-active .hs-deco i { animation: hsFloat 9s ease-in-out infinite alternate; }
.hs-slide.is-active .hs-deco i:nth-child(2) { animation-duration: 12s; }
@keyframes hsFloat { to { transform: translate3d(-18px, 14px, 0); } }

/* Teks: muncul bertahap */
.hs-content { position: relative; z-index: 2; max-width: 620px; }
.hs-slide.al-center .hs-content { max-width: 760px; }
.hs-content > * { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.hs-slide.is-active .hs-content > * { opacity: 1; transform: none; }
.hs-slide.is-active .hs-content > :nth-child(1) { transition-delay: .25s; }
.hs-slide.is-active .hs-content > :nth-child(2) { transition-delay: .38s; }
.hs-slide.is-active .hs-content > :nth-child(3) { transition-delay: .5s; }
.hs-slide.is-active .hs-content > :nth-child(4) { transition-delay: .62s; }
.hs-eyebrow { display: inline-block; padding: 6px 14px; border-radius: 30px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: rgba(255, 255, 255, .16); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hs-title { color: #fff !important; font-size: clamp(1.8rem, 4vw, 3.2rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; margin: 14px 0 12px; text-wrap: balance; }
.hs-sub { font-size: clamp(.95rem, 1.4vw, 1.15rem); opacity: .92; margin: 0 0 24px; line-height: 1.55; }
.hs-slide .hs-content > .hs-sub { opacity: 0; }
.hs-slide.is-active .hs-content > .hs-sub { opacity: .92; }
.hs-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.hs-slide.al-center .hs-btns { justify-content: center; }
.hs-slide.al-right .hs-btns { justify-content: flex-end; }
.hs-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 14px; background: #fff; color: #1e2340 !important; font-weight: 700; text-decoration: none; box-shadow: 0 10px 24px rgba(0, 0, 0, .18); transition: transform .2s; }
.hs-btn:hover { transform: translateY(-2px); }
.hs-btn .bi { transition: transform .2s; }
.hs-btn:hover .bi { transform: translateX(3px); }
.hs-btn.is-ghost { background: rgba(255, 255, 255, .12); color: #fff !important; border: 1px solid rgba(255, 255, 255, .35); box-shadow: none; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* Efek: zoom perlahan (Ken Burns) */
.hs-slider.fx-zoom .hs-slide .hs-media img { transform: scale(1.12); transition: transform 1.2s ease; }
.hs-slider.fx-zoom .hs-slide.is-active .hs-media img { transform: scale(1); transition: transform calc(var(--hs-dur) + 1.5s) linear; }

/* Efek: geser */
.hs-slider.fx-slide .hs-track { display: flex; position: absolute; inset: 0; transition: transform .7s cubic-bezier(.65, 0, .35, 1); will-change: transform; }
.hs-slider.fx-slide .hs-slide { position: relative; flex: 0 0 100%; opacity: 1; visibility: visible; transition: none; }
.hs-slider.fx-slide.is-dragging .hs-track { transition: none; }

/* Navigasi */
.hs-nav { position: absolute; top: 50%; z-index: 5; width: 48px; height: 48px; margin-top: -24px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.2rem; display: inline-flex; align-items: center; justify-content: center; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity .25s, background .2s, transform .2s; }
.hs-nav.is-prev { left: 18px; }
.hs-nav.is-next { right: 18px; }
.hs-slider:hover .hs-nav, .hs-nav:focus-visible { opacity: 1; }
.hs-nav:hover { background: rgba(255, 255, 255, .25); }
.hs-nav:active { transform: scale(.92); }
.hs-bar { position: absolute; left: clamp(28px, 7vw, 88px); right: 24px; bottom: 22px; z-index: 5; display: flex; align-items: center; gap: 14px; }
.hs-slide.al-center ~ .hs-bar { justify-content: center; }
.hs-dots { display: flex; gap: 8px; }
.hs-dots button { position: relative; width: 34px; height: 5px; padding: 0; border: 0; border-radius: 4px; background: rgba(255, 255, 255, .35); overflow: hidden; transition: width .3s; }
.hs-dots button.is-active { width: 56px; }
.hs-dots button::before { content: ""; position: absolute; inset: -10px 0; } /* area sentuh lebih besar */
.hs-dots button span { position: absolute; inset: 0; width: 0; background: #fff; border-radius: 4px; }
.hs-dots button.is-active span { animation: hsProgress var(--hs-dur) linear forwards; }
.hs-slider.is-paused .hs-dots button.is-active span { animation-play-state: paused; }
.hs-slider.no-autoplay .hs-dots button.is-active span { animation: none; width: 100%; }
@keyframes hsProgress { from { width: 0; } to { width: 100%; } }
.hs-count { font-size: .8rem; font-weight: 600; opacity: .85; font-variant-numeric: tabular-nums; }
.hs-count b { font-weight: 800; }
.hs-play { width: 32px; height: 32px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; display: inline-flex; align-items: center; justify-content: center; margin-left: auto; }
.hs-slider:focus-visible { outline: 3px solid #a197ff; outline-offset: 3px; }

/* Ponsel: kartu tinggi, teks di bawah, geser jari */
@media (max-width: 767.98px) {
    .hs-slider { --hs-h: 460px; border-radius: 24px; margin: 0 -4px; }
    .hs-slider.h-compact { --hs-h: 380px; }
    .hs-slider.h-tall { --hs-h: 540px; }
    .hs-slide, .hs-slide.al-center, .hs-slide.al-right { align-items: flex-end; justify-content: flex-start; text-align: left; padding: 0 20px 64px; }
    .hs-slide.has-img::after, .hs-slide.has-img.al-center::after, .hs-slide.has-img.al-right::after { background: linear-gradient(180deg, rgba(10, 12, 40, calc(var(--ov) * .1)) 0%, rgba(10, 12, 40, calc(var(--ov) * .5)) 45%, rgba(10, 12, 40, calc(var(--ov) + .15)) 100%); }
    .hs-slide.al-center .hs-btns, .hs-slide.al-right .hs-btns { justify-content: flex-start; }
    .hs-title { font-size: 1.6rem; margin: 10px 0 8px; }
    .hs-sub { font-size: .9rem; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    .hs-btn { padding: 10px 16px; font-size: .9rem; }
    .hs-eyebrow { font-size: .7rem; }
    .hs-nav { display: none; }
    .hs-bar { left: 20px; right: 16px; bottom: 22px; }
    .hs-slide.al-center ~ .hs-bar { justify-content: flex-start; }
    .hs-deco i:nth-child(1) { width: 340px; height: 340px; right: -120px; top: -120px; }
}

@media (prefers-reduced-motion: reduce) {
    .hs-slide, .hs-slide.is-active, .hs-content > *, .hs-slider.fx-slide .hs-track, .hs-media img { transition: none !important; }
    .hs-slider .hs-slide.is-active .hs-media img { transform: none !important; }
    .hs-deco i { animation: none !important; }
}
