/* =====================================================================
   Tampilan website PERUMDA Tirta Pakuan Kota Bogor
   Bootstrap 5.3 + token warna di bawah. Warna utama diambil dari logo.
   ===================================================================== */

:root {
  --tp-blue: #2052a3;        /* biru logo */
  --tp-blue-600: #1a4589;
  --tp-navy: #0d2550;        /* header gelap, footer */
  --tp-navy-900: #081a3a;
  --tp-sky: #1fa4dc;         /* aksen air */
  --tp-sky-50: #e9f6fc;
  --tp-ink: #16213a;         /* teks utama */
  --tp-muted: #5b6780;
  --tp-line: #e3e8f0;
  --tp-bg: #f5f8fc;
  --tp-warn: #e8a317;
  --tp-radius: 14px;
  --tp-shadow: 0 10px 30px rgba(13, 37, 80, .08);
  --tp-shadow-lg: 0 24px 60px rgba(13, 37, 80, .16);

  --bs-primary: var(--tp-blue);
  --bs-primary-rgb: 32, 82, 163;
  /* Nunito: sans-serif membulat, paling dekat dengan huruf logo "Tirta Pakuan" */
  --bs-body-font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fw-light: 300;     /* judul besar: hero, angka statistik */
  --fw-regular: 400;   /* teks & judul section */
  --fw-medium: 500;    /* menu, judul kartu */
  --fw-semi: 600;      /* tombol, label kecil */
  --fw-bold: 700;      /* aksen sangat kecil saja */
  --bs-body-color: var(--tp-ink);
  --bs-link-color: var(--tp-blue);
  --bs-link-hover-color: var(--tp-blue-600);
}

html { scroll-behavior: smooth; }
body { font-size: 1rem; line-height: 1.65; background: #fff; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5 { font-weight: var(--fw-medium); letter-spacing: -.01em; color: var(--tp-ink); }
a { text-decoration: none; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--tp-sky); outline-offset: 2px; }

.btn { font-weight: var(--fw-semi); border-radius: 999px; padding: .7rem 1.4rem; display: inline-flex; align-items: center; justify-content: center; gap: .1rem; line-height: 1.2; }
/* Nunito punya ruang atas lebih besar dari ruang bawah: geser teks sedikit ke bawah agar tampak di tengah */
.btn-lg { padding: .85rem 1.6rem .75rem; line-height: 1.2; }
.btn-primary { --bs-btn-bg: var(--tp-blue); --bs-btn-border-color: var(--tp-blue); --bs-btn-hover-bg: var(--tp-blue-600); --bs-btn-hover-border-color: var(--tp-blue-600); --bs-btn-active-bg: var(--tp-navy); }
.btn-sky { background: var(--tp-sky); color: #fff; border: 0; }
.btn-sky:hover { background: #148cc0; color: #fff; }
.btn-outline-light:hover { color: var(--tp-navy); }

.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.bg-soft { background: var(--tp-bg); }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: var(--fw-bold); letter-spacing: .14em; text-transform: uppercase; color: var(--tp-sky); }
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: currentColor; }
.section-title { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: var(--fw-regular); margin: .4rem 0 .6rem; }
.section-lead { color: var(--tp-muted); max-width: 620px; }
.link-more { font-weight: var(--fw-semi); display: inline-flex; align-items: center; gap: .35rem; }
.link-more i { transition: transform .2s; }
.link-more:hover i { transform: translateX(4px); }

/* ---------------------------------------------------------------- top bar */
.topbar { background: var(--tp-navy-900); color: #c7d3ea; font-size: .82rem; }
.topbar a { color: #c7d3ea; }
.topbar a:hover { color: #fff; }
.topbar .sep { width: 1px; height: 14px; background: rgba(255,255,255,.18); }

/* ---------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(255,255,255,.97); backdrop-filter: blur(10px); border-bottom: 1px solid var(--tp-line); transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(13,37,80,.08); }
.site-header .navbar { padding: .55rem 0; }
.brand img { height: 64px; width: auto; display: block; }
.main-nav .nav-link { font-weight: var(--fw-medium); color: var(--tp-ink); padding: 1.3rem .95rem !important; position: relative; }
.main-nav .nav-link::after { content: ""; position: absolute; left: .95rem; right: .95rem; bottom: .9rem; height: 3px; border-radius: 3px; background: var(--tp-sky); transform: scaleX(0); transition: transform .2s; }
.main-nav .nav-link:hover, .main-nav .show > .nav-link, .main-nav .nav-link.active { color: var(--tp-blue); }
.main-nav .nav-link:hover::after, .main-nav .show > .nav-link::after, .main-nav .nav-link.active::after { transform: scaleX(1); }
.main-nav .dropdown-toggle::before { display: none; }
.main-nav .dropdown-toggle { display: flex; align-items: center; gap: .3rem; }
.main-nav .dropdown-toggle::after { display: none; }
.main-nav .chev { font-size: .7rem; transition: transform .2s; }
.main-nav .show .chev { transform: rotate(180deg); }

/* mega menu */
.mega { position: static; }
.mega .dropdown-menu { left: 0; right: 0; top: 100%; width: 100%; margin: 0; border: 0; border-top: 1px solid var(--tp-line); border-radius: 0 0 var(--tp-radius) var(--tp-radius); box-shadow: var(--tp-shadow-lg); padding: 2rem 0; }
.mega-intro h5 { font-size: 1.45rem; font-weight: var(--fw-regular); }
.mega-intro p { color: var(--tp-muted); font-size: .92rem; }
.mega-link { display: flex; gap: .8rem; align-items: flex-start; padding: .7rem .8rem; border-radius: 10px; color: var(--tp-ink); }
.mega-link i { font-size: 1.25rem; color: var(--tp-blue); background: var(--tp-sky-50); width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border-radius: 10px; }
.mega-link strong { display: block; font-size: .95rem; font-weight: var(--fw-semi); }
.mega-link span { font-size: .8rem; color: var(--tp-muted); line-height: 1.35; display: block; }
.mega-link:hover { background: var(--tp-bg); color: var(--tp-blue); }
.mega-link .bi-box-arrow-up-right { font-size: .7rem; background: none; width: auto; height: auto; flex: none; display: inline; color: var(--tp-muted); }

.btn-cta { padding: .6rem 1.15rem; font-size: .92rem; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; color: #fff; }
.hero .carousel-item { height: min(86vh, 760px); min-height: 560px; }
.hero .carousel-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .carousel-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,26,58,.88) 0%, rgba(8,26,58,.62) 45%, rgba(8,26,58,.15) 100%); }
.hero-content { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; padding-bottom: 90px; }
.hero-tag { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); padding: .4rem .9rem; border-radius: 999px; font-size: .82rem; font-weight: var(--fw-semi); backdrop-filter: blur(6px); }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5.4vw, 4.2rem); font-weight: var(--fw-light); line-height: 1.1; margin: 1.1rem 0 1rem; max-width: 760px; }
.hero h1 em { font-style: normal; font-weight: var(--fw-semi); color: #7fd3f5; }
.hero p.lead { color: #dbe6f7; max-width: 560px; font-size: 1.1rem; }
.hero .carousel-indicators { justify-content: flex-start; margin: 0; left: 0; right: 0; bottom: 130px; z-index: 3; }
.hero .carousel-indicators [data-bs-target] { width: 34px; height: 4px; border-radius: 4px; border: 0; opacity: .45; }
.hero .carousel-indicators .active { opacity: 1; background: var(--tp-sky); }
.hero-caption { position: absolute; right: 24px; bottom: 132px; z-index: 3; font-size: .78rem; color: rgba(255,255,255,.75); }

/* ---------------------------------------------------------------- layanan cepat */
.quick { position: relative; z-index: 5; margin-top: -92px; }
.quick-card { background: #fff; border-radius: 18px; box-shadow: var(--tp-shadow-lg); padding: 1.1rem; }
.quick-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .65rem; padding: 1.1rem .5rem; border-radius: 14px; color: var(--tp-ink); font-weight: var(--fw-semi); font-size: .92rem; height: 100%; transition: background .2s, transform .2s; }
.quick-item i { font-size: 1.6rem; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 16px; background: var(--tp-sky-50); color: var(--tp-blue); transition: background .2s, color .2s; }
.quick-item:hover { background: var(--tp-bg); transform: translateY(-3px); color: var(--tp-blue); }
.quick-item:hover i { background: var(--tp-blue); color: #fff; }
.quick-item.is-alert i { background: #fff4e0; color: #b9780a; }

/* ---------------------------------------------------------------- ticker */
.ticker { display: flex; align-items: stretch; border-radius: 12px; overflow: hidden; border: 1px solid var(--tp-line); background: #fff; }
.ticker-label { flex: 0 0 auto; background: var(--tp-blue); color: #fff; font-weight: var(--fw-bold); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; display: flex; align-items: center; gap: .5rem; padding: .75rem 1rem; }
.ticker-track { flex: 1; overflow: hidden; position: relative; display: flex; align-items: center; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-move { display: inline-flex; gap: 3rem; white-space: nowrap; padding-left: 100%; animation: ticker 45s linear infinite; font-weight: 600; font-size: .92rem; }
.ticker-move span::before { content: "●"; color: var(--tp-sky); margin-right: .7rem; font-size: .6rem; vertical-align: middle; }
.ticker:hover .ticker-move { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .ticker-move { animation: none; padding-left: 1rem; } }

/* ---------------------------------------------------------------- info list (gangguan / pengumuman) */
.info-panel { background: #fff; border: 1px solid var(--tp-line); border-radius: var(--tp-radius); height: 100%; display: flex; flex-direction: column; }
.info-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--tp-line); }
.info-panel-head h3 { font-size: 1.1rem; margin: 0; display: flex; align-items: center; gap: .6rem; }
.info-panel-head h3 i { color: var(--tp-blue); }
.info-list { list-style: none; margin: 0; padding: .4rem 0; flex: 1; }
.info-list a { display: flex; gap: 1rem; align-items: flex-start; padding: .85rem 1.3rem; color: var(--tp-ink); }
.info-list a:hover { background: var(--tp-bg); color: var(--tp-blue); }
.info-date { flex: 0 0 52px; text-align: center; background: var(--tp-sky-50); color: var(--tp-blue); border-radius: 10px; padding: .35rem 0; line-height: 1.1; }
.info-date b { display: block; font-size: 1.15rem; }
.info-date small { font-size: .68rem; font-weight: var(--fw-bold); text-transform: uppercase; }
.info-title { font-weight: var(--fw-medium); font-size: .94rem; line-height: 1.45; }
.alert-panel .info-date { background: #fff4e0; color: #9a6408; }

/* ---------------------------------------------------------------- statistik */
.stats { position: relative; background: var(--tp-navy); color: #fff; overflow: hidden; }
.stats::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 15% 20%, rgba(31,164,220,.35), transparent 45%), radial-gradient(circle at 85% 90%, rgba(32,82,163,.6), transparent 50%); }
.stats .container { position: relative; }
.stats h2 { color: #fff; }
.stat { border-left: 3px solid var(--tp-sky); padding: .2rem 0 .2rem 1.2rem; }
.stat-num { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: var(--fw-light); line-height: 1; letter-spacing: -.02em; }
.stat-num small { font-size: .45em; font-weight: var(--fw-regular); margin-left: .2rem; color: #9fdcf5; }
.stat-label { color: #b9c8e4; font-size: .92rem; margin-top: .45rem; }

/* ---------------------------------------------------------------- berita */
.news-card { background: #fff; border-radius: var(--tp-radius); overflow: hidden; border: 1px solid var(--tp-line); height: 100%; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; color: var(--tp-ink); }
.news-card:hover { box-shadow: var(--tp-shadow); transform: translateY(-4px); color: var(--tp-ink); }
.news-thumb { aspect-ratio: 16 / 10; background: var(--tp-bg) center / cover no-repeat; position: relative; }
.news-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.news-meta { font-size: .8rem; color: var(--tp-muted); font-weight: var(--fw-medium); display: flex; gap: .4rem; align-items: center; }
.news-title { font-size: 1.05rem; font-weight: var(--fw-semi); line-height: 1.4; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-excerpt { font-size: .9rem; color: var(--tp-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.news-card.featured .news-thumb { aspect-ratio: auto; flex: 1; min-height: 300px; }
.news-card.featured .news-title { font-size: 1.35rem; }
.skeleton { background: linear-gradient(90deg, #eef2f7 25%, #f7f9fc 50%, #eef2f7 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 6px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------------------------------------------------------------- tentang */
.about-img { position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--tp-shadow-lg); }
.about-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.about-badge { position: absolute; left: 20px; bottom: 20px; background: #fff; border-radius: 16px; padding: 1rem 1.2rem; box-shadow: var(--tp-shadow); display: flex; gap: .9rem; align-items: center; }
.about-badge b { font-size: 2.2rem; font-weight: var(--fw-light); line-height: 1; color: var(--tp-blue); letter-spacing: -.03em; }
.about-badge span { font-size: .82rem; color: var(--tp-muted); line-height: 1.3; font-weight: 600; }
.check-list { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; display: grid; gap: .7rem; }
.check-list li { display: flex; gap: .7rem; }
.check-list i { color: var(--tp-sky); font-size: 1.15rem; }

/* ---------------------------------------------------------------- CSR */
.csr-card { position: relative; border-radius: var(--tp-radius); overflow: hidden; display: block; aspect-ratio: 4 / 3; }
.csr-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.csr-card:hover img { transform: scale(1.05); }
.csr-card figcaption { position: absolute; inset: auto 0 0 0; padding: 2.5rem 1.2rem 1.1rem; background: linear-gradient(transparent, rgba(8,26,58,.9)); color: #fff; font-weight: var(--fw-semi); }
.csr-card figcaption small { display: block; font-weight: 600; color: #9fdcf5; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }

/* ---------------------------------------------------------------- aplikasi & pembayaran */
.app-band { background: linear-gradient(120deg, var(--tp-blue) 0%, var(--tp-sky) 100%); border-radius: 24px; color: #fff; padding: 3rem; position: relative; overflow: hidden; }
.app-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 50px solid rgba(255,255,255,.08); }
.app-band h2 { color: #fff; }
.partner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 1rem; }
.partner-grid div { background: #fff; border: 1px solid var(--tp-line); border-radius: 12px; height: 64px; display: grid; place-items: center; padding: .6rem; }
.partner-grid img { max-height: 36px; width: auto; filter: grayscale(1); opacity: .75; transition: .2s; }
.partner-grid div:hover img { filter: none; opacity: 1; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--tp-navy-900); color: #aebcd6; font-size: .92rem; }
.site-footer h6 { color: #fff; font-weight: var(--fw-semi); font-size: .95rem; margin-bottom: 1rem; }
.site-footer a { color: #aebcd6; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-contact li { display: flex; gap: .7rem; }
.footer-contact i { color: var(--tp-sky); }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; font-size: 1.05rem; }
.social a:hover { background: var(--tp-sky); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); font-size: .82rem; }



/* ---------------------------------------------------------------- halaman dalam */
.page-hero { position: relative; color: #fff; padding: 110px 0 70px; background: var(--tp-navy) center / cover no-repeat; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,26,58,.92), rgba(8,26,58,.55)); }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.2vw, 3.2rem); font-weight: var(--fw-light); margin: .6rem 0 .4rem; }
.page-hero p { color: #cfdcf1; max-width: 640px; margin: 0; }
.crumb { font-size: .85rem; display: flex; gap: .5rem; align-items: center; color: #9fb3d6; flex-wrap: wrap; }
.crumb a { color: #cfdcf1; }
.crumb a:hover { color: #fff; }
.side-nav { position: sticky; top: 100px; border: 1px solid var(--tp-line); border-radius: var(--tp-radius); overflow: hidden; }
.side-nav h6 { margin: 0; padding: 1rem 1.2rem; background: var(--tp-bg); font-weight: var(--fw-semi); border-bottom: 1px solid var(--tp-line); }
.side-nav a { display: flex; justify-content: space-between; align-items: center; padding: .7rem 1.2rem; color: var(--tp-ink); font-weight: 600; font-size: .92rem; border-left: 3px solid transparent; }
.side-nav a:hover { background: var(--tp-bg); color: var(--tp-blue); }
.side-nav a.active { border-left-color: var(--tp-sky); color: var(--tp-blue); background: var(--tp-sky-50); }
.prose { font-size: 1.04rem; color: #2d3953; }
.prose p { margin-bottom: 1.15rem; }
.prose .lead-p { font-size: 1.2rem; color: var(--tp-ink); font-weight: 500; }
.timeline { position: relative; margin: 2.2rem 0; padding-left: 2rem; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--tp-line); }
.tl-item { position: relative; padding-bottom: 1.8rem; }
.tl-item::before { content: ""; position: absolute; left: calc(-2rem + 1px); top: 6px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--tp-sky); }
.tl-year { font-weight: var(--fw-semi); color: var(--tp-blue); font-size: 1.1rem; }
.tl-item p { margin: .2rem 0 0; color: var(--tp-muted); }
.fact-card { background: var(--tp-bg); border-radius: var(--tp-radius); padding: 1.4rem; }
.fact-card h6 { font-weight: var(--fw-semi); }
.fact-row { display: flex; justify-content: space-between; padding: .6rem 0; border-bottom: 1px dashed var(--tp-line); font-size: .92rem; }
.fact-row:last-child { border: 0; }
.fact-row b { color: var(--tp-blue); }
.figure-round { border-radius: var(--tp-radius); overflow: hidden; }

/* ---------------------------------------------------------------- responsif */
@media (max-width: 1199.98px) {
  .main-nav .nav-link { padding: 1.3rem .65rem !important; }
}
@media (max-width: 991.98px) {
  .section { padding: 64px 0; }
  .brand img { height: 48px; }
  .hero .carousel-item { height: min(78vh, 680px); min-height: 520px; }
  .hero .carousel-item::after { background: linear-gradient(180deg, rgba(8,26,58,.55) 0%, rgba(8,26,58,.85) 75%); }
  .hero-content { align-items: flex-end; padding-bottom: 130px; }
  .hero .carousel-indicators { bottom: 108px; }
  .hero-caption { display: none; }
  .quick { margin-top: -70px; }
  .app-band { padding: 2rem 1.5rem; }
  .side-nav { position: static; }
}
@media (max-width: 575.98px) {
  .quick-item { font-size: .8rem; padding: .8rem .2rem; }
  .quick-item i { width: 50px; height: 50px; font-size: 1.35rem; }
  .ticker-label span { display: none; }
}

/* menu mobile (offcanvas) */
.offcanvas .accordion-button { font-weight: var(--fw-semi); }
.offcanvas .accordion-button:not(.collapsed) { background: var(--tp-sky-50); color: var(--tp-blue); box-shadow: none; }
.offcanvas .m-links a { display: block; padding: .55rem 0; color: var(--tp-ink); font-weight: 600; }
.offcanvas .m-links a:hover { color: var(--tp-blue); }

/* ---------------------------------------------------------------- popup informasi */
.tp-popup .modal-dialog { max-width: 520px; }
.tp-popup .modal-content { border: 0; border-radius: 20px; overflow: hidden; box-shadow: var(--tp-shadow-lg); }
.tp-popup-img { width: 100%; max-height: 52vh; object-fit: contain; background: var(--tp-bg); display: block; }
.tp-popup .modal-body { padding: 1.6rem 1.7rem .6rem; }
.tp-popup-title { font-size: 1.45rem; font-weight: var(--fw-regular); margin: .4rem 0 .8rem; line-height: 1.3; }
.tp-popup-content { color: #3a4560; }
.tp-popup-content img { max-width: 100%; height: auto; border-radius: 10px; }
.tp-popup .modal-footer { border: 0; padding: .6rem 1.7rem 1.5rem; }
.tp-popup-close { position: absolute; top: 14px; right: 14px; z-index: 2; background-color: #fff; border-radius: 50%; padding: .6rem; opacity: .9; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.modal-backdrop.show { opacity: .6; background: var(--tp-navy-900); }

/* ---------------------------------------------------------------- isi halaman dari admin */
.prose h3 { font-size: 1.35rem; font-weight: var(--fw-regular); color: var(--tp-blue); margin: 2rem 0 .8rem; }
.prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.2rem; margin-bottom: 1.2rem; }
.prose li { margin-bottom: .35rem; }
.prose li::marker { color: var(--tp-sky); }
.prose img { max-width: 100%; height: auto; border-radius: 12px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose .table { font-size: .95rem; margin-bottom: 1.5rem; }
.prose .table th { background: var(--tp-bg); font-weight: var(--fw-semi); color: var(--tp-ink); white-space: nowrap; }
.prose .table td, .prose .table th { padding: .7rem .9rem; vertical-align: top; border-color: var(--tp-line); }
.prose blockquote { border-left: 3px solid var(--tp-sky); padding: .4rem 0 .4rem 1.2rem; color: var(--tp-ink); font-size: 1.1rem; }
.prose:empty::before { content: ""; display: block; height: 220px; border-radius: 12px; background: linear-gradient(90deg, #eef2f7 25%, #f7f9fc 50%, #eef2f7 75%); background-size: 200% 100%; animation: sk 1.2s infinite; }
.updated-note { font-size: .82rem; color: var(--tp-muted); margin-top: 2rem; padding-top: 1rem; border-top: 1px dashed var(--tp-line); }

/* ---------------------------------------------------------------- kartu angka di halaman dalam */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: var(--tp-bg); border-radius: var(--tp-radius); padding: 1.3rem 1.4rem; border-left: 4px solid var(--tp-sky); }
.stat-card .v { font-size: 2.2rem; font-weight: var(--fw-light); color: var(--tp-blue); line-height: 1.1; letter-spacing: -.02em; }
.stat-card .v small { font-size: .9rem; font-weight: var(--fw-regular); color: var(--tp-muted); margin-left: .3rem; letter-spacing: 0; }
.stat-card .l { font-weight: var(--fw-semi); margin-top: .3rem; }
.stat-card .p { font-size: .8rem; color: var(--tp-muted); }
.stat-card.big { background: linear-gradient(120deg, var(--tp-navy), var(--tp-blue)); color: #fff; border: 0; padding: 2rem; }
.stat-card.big .v { color: #fff; font-size: clamp(2.6rem, 6vw, 3.6rem); }
.stat-card.big .v small, .stat-card.big .p { color: #b9d4f2; }

/* grafik batang sederhana (riwayat statistik) */
.bar-chart { display: flex; align-items: flex-end; gap: .8rem; height: 240px; padding: 1.5rem 1rem .5rem; background: #fff; border: 1px solid var(--tp-line); border-radius: var(--tp-radius); margin-bottom: 2rem; overflow-x: auto; }
.bar { flex: 1 0 48px; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: .3rem; }
.bar-fill { width: 100%; max-width: 64px; background: linear-gradient(180deg, var(--tp-sky), var(--tp-blue)); border-radius: 8px 8px 2px 2px; }
.bar-val { font-size: .72rem; color: var(--tp-muted); white-space: nowrap; }
.bar-label { font-size: .8rem; font-weight: var(--fw-semi); }

/* ---------------------------------------------------------------- koleksi */
.kol-card { display: flex; flex-direction: column; width: 100%; padding: 0; text-align: left; background: #fff; border: 1px solid var(--tp-line); border-radius: var(--tp-radius); overflow: hidden; height: 100%; transition: box-shadow .2s, transform .2s; color: var(--tp-ink); }
.kol-card:hover { box-shadow: var(--tp-shadow); transform: translateY(-3px); }
.kol-img { display: block; position: relative; background: var(--tp-bg) center / cover no-repeat; aspect-ratio: 16 / 9; }
.kol-card.cert .kol-img { aspect-ratio: 3 / 4; background-size: contain; background-color: #f3f5f9; }
.kol-img em { position: absolute; right: 10px; bottom: 10px; font-style: normal; font-size: .72rem; font-weight: var(--fw-semi); background: rgba(13,37,80,.8); color: #fff; padding: .15rem .5rem; border-radius: 999px; }
.kol-body { display: block; padding: 1rem 1.15rem 1.2rem; }
.kol-body strong { display: block; font-weight: var(--fw-semi); line-height: 1.35; }
.kol-body small { display: block; color: var(--tp-muted); margin-top: .2rem; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--tp-muted); background: var(--tp-bg); border-radius: var(--tp-radius); }
.empty-state i { font-size: 2.2rem; color: #b7c3d8; }
.empty-state p { margin: .6rem 0 0; }
.doc-main { margin: 0; }
.doc-main button { border: 1px solid var(--tp-line); border-radius: var(--tp-radius); padding: .5rem; background: #fff; width: 100%; cursor: zoom-in; }
.doc-main img { width: 100%; height: auto; display: block; border-radius: 8px; }
.doc-main figcaption { margin-top: .8rem; }
.doc-arsip { list-style: none; padding: 0; display: grid; gap: .4rem; }
.doc-arsip button { background: none; border: 0; padding: 0; color: var(--tp-blue); }

/* lightbox */
.tp-lightbox .modal-content { border: 0; border-radius: 18px; }
.tp-lightbox .modal-body { background: #f3f5f9; display: grid; gap: 1rem; justify-items: center; }
.tp-lightbox .modal-body img { max-width: 100%; height: auto; border-radius: 8px; box-shadow: var(--tp-shadow); background: #fff; }

/* ---------------------------------------------------------------- halaman indeks bagian (mis. /profil) */
.section-card { display: flex; gap: 1rem; align-items: flex-start; padding: 1.4rem; background: #fff; border: 1px solid var(--tp-line); border-radius: var(--tp-radius); height: 100%; color: var(--tp-ink); transition: box-shadow .2s, transform .2s; }
.section-card:hover { box-shadow: var(--tp-shadow); transform: translateY(-3px); color: var(--tp-ink); }
.section-card i { font-size: 1.4rem; color: var(--tp-blue); background: var(--tp-sky-50); width: 52px; height: 52px; flex: 0 0 52px; display: grid; place-items: center; border-radius: 14px; }
.section-card strong { display: block; font-weight: var(--fw-semi); font-size: 1.05rem; }
.section-card span { display: block; color: var(--tp-muted); font-size: .9rem; margin-top: .2rem; }

/* formulir */
.form-card { background: var(--tp-bg); border-radius: var(--tp-radius); padding: 1.6rem; }
.form-card .form-control { border-color: var(--tp-line); padding: .7rem .9rem; }
.captcha-img { height: 44px; border-radius: 8px; cursor: pointer; border: 1px solid var(--tp-line); background: #fff; }

/* ---------------------------------------------------------------- kartu ajakan (CTA) */
.cta-card { display: flex; gap: 1rem; align-items: flex-start; padding: 1.4rem; border-radius: var(--tp-radius); background: var(--tp-bg); color: var(--tp-ink); height: 100%; border: 1px solid var(--tp-line); }
.cta-card i { font-size: 1.5rem; color: var(--tp-blue); background: #fff; width: 52px; height: 52px; flex: 0 0 52px; display: grid; place-items: center; border-radius: 14px; }
.cta-card strong { display: block; font-weight: var(--fw-semi); font-size: 1.05rem; }
.cta-card span { display: block; color: var(--tp-muted); font-size: .92rem; margin-top: .15rem; }
.cta-card.primary { background: linear-gradient(120deg, var(--tp-blue), var(--tp-sky)); color: #fff; border: 0; }
.cta-card.primary span { color: #dceffa; }
.cta-card.primary i { background: rgba(255,255,255,.15); color: #fff; }
.cta-card.mini { padding: 1rem; align-items: center; transition: box-shadow .2s, transform .2s; }
.cta-card.mini:hover { box-shadow: var(--tp-shadow); transform: translateY(-2px); color: var(--tp-ink); }
.cta-card.mini i { width: 44px; height: 44px; flex-basis: 44px; font-size: 1.2rem; }
.cta-card.mini strong { font-size: .95rem; }
.cta-card.mini span { font-size: .85rem; }
.tiket-tabel th { width: 200px; font-weight: var(--fw-semi); background: var(--tp-bg); }

/* ---------------------------------------------------------------- publikasi */
.pub-title { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: var(--fw-regular); line-height: 1.3; margin: .4rem 0 .6rem; }
.pub-list { border: 1px solid var(--tp-line); border-radius: var(--tp-radius); background: #fff; padding: .3rem 0; }
.pub-list li + li { border-top: 1px solid var(--tp-line); }
.pub-isi { margin-top: 1rem; }
.berita-foto { margin: 0 0 1.5rem; border-radius: var(--tp-radius); overflow: hidden; background: var(--tp-bg); }
.berita-foto img { width: 100%; max-height: 520px; object-fit: cover; display: block; }
.share-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--tp-bg); color: var(--tp-blue); margin-right: .3rem; }
.share-btn:hover { background: var(--tp-blue); color: #fff; }
.side-box { border: 1px solid var(--tp-line); border-radius: var(--tp-radius); padding: 1.1rem 1.2rem; margin-bottom: 1.5rem; background: #fff; }
.side-box h6 { font-weight: var(--fw-semi); margin-bottom: .8rem; }
.mini-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.mini-list a { display: flex; gap: .8rem; color: var(--tp-ink); }
.mini-list a:hover .info-title { color: var(--tp-blue); }
.mini-list .info-title { font-size: .9rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mini-thumb { flex: 0 0 72px; height: 56px; border-radius: 8px; background: var(--tp-bg) center / cover no-repeat; }
/* sampul e-magazine; bila gambar Drive gagal dimuat, tampil kartu pengganti */
.emagz-cover { position: relative; overflow: hidden; }
.emagz-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.emagz-ganti { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; padding: 1rem; text-align: center; background: linear-gradient(150deg, var(--tp-blue), var(--tp-navy)); color: #fff; font-weight: var(--fw-semi); font-size: .9rem; }
.emagz-ganti i { font-size: 2rem; color: #7fd3f5; }

/* tombol video profil: kecil, menempel di sisi kanan hero */
.video-pill { position: absolute; right: 0; top: 36px; /* kanan atas: tidak tertutup panel live chat di kanan bawah */ z-index: 4; display: inline-flex; align-items: center; gap: .55rem; padding: .45rem 1.1rem .45rem .45rem; border: 1px solid rgba(255,255,255,.35); border-right: 0; border-radius: 999px 0 0 999px; background: rgba(8,26,58,.45); backdrop-filter: blur(6px); color: #fff; font-size: .88rem; font-weight: var(--fw-semi); transition: background .2s, padding .2s; }
.video-pill .play { width: 32px; height: 32px; border-radius: 50%; background: var(--tp-sky); display: grid; place-items: center; font-size: 1.1rem; }
.video-pill:hover { background: rgba(8,26,58,.75); padding-right: 1.4rem; }
@media (max-width: 991.98px) { .video-pill { top: 16px; padding-right: .45rem; } .video-pill .lbl { display: none; } }
.video-modal .modal-content { background: #000; border: 0; border-radius: 16px; overflow: hidden; }
.video-modal .btn-close { position: absolute; top: 12px; right: 12px; z-index: 2; }
.video-modal video { background: #000; }

/* ---------------------------------------------------------------- data dari admin (situs.js) */
/* pita peringatan gangguan aktif */
.pita-gangguan { background: #b23a2e; color: #fff; font-size: .92rem; }
.pita-gangguan .container { display: flex; align-items: center; gap: .75rem; padding-top: .6rem; padding-bottom: .6rem; }
.pita-gangguan > .container > i { font-size: 1.1rem; flex: 0 0 auto; }
.pita-gangguan a { color: #fff; flex: 1; min-width: 0; }
.pita-gangguan a:hover { text-decoration: underline; }
.pita-gangguan .pita-wilayah { opacity: .85; }
.pita-gangguan .pita-lain { background: rgba(255,255,255,.2); border-radius: 999px; padding: .05rem .5rem; font-size: .8rem; white-space: nowrap; }
.pita-gangguan .btn-close { flex: 0 0 auto; font-size: .7rem; }
@media (max-width: 575.98px) { .pita-gangguan .pita-wilayah { display: none; } }

/* lencana status / kategori */
.lencana { display: inline-flex; align-items: center; font-size: .75rem; font-weight: var(--fw-semi); padding: .15rem .6rem; border-radius: 999px; background: var(--tp-bg); color: var(--tp-muted); white-space: nowrap; vertical-align: middle; line-height: 1.5; }
.lencana.hijau { background: #e7f6ec; color: #1e7b3c; }
.lencana.kuning { background: #fff4e0; color: #8a5a06; }
.lencana.merah { background: #fdecec; color: #b23a2e; }
.lencana.biru { background: var(--tp-sky-50); color: var(--tp-blue); }
.lencana.abu { background: #eef1f5; color: #5b6780; }

/* tahapan penanganan gangguan */
.gangguan-info { border: 1px solid var(--tp-line); border-radius: var(--tp-radius); padding: 1.2rem 1.3rem; background: var(--tp-bg); }
.gangguan-info dt { font-weight: var(--fw-semi); color: var(--tp-muted); font-size: .9rem; padding: .35rem 0; }
.gangguan-info dd { margin: 0; padding: .35rem 0; }
.tahap { display: flex; list-style: none; padding: 0; margin: 0; counter-reset: tahap; }
.tahap li { flex: 1; position: relative; text-align: center; font-size: .78rem; color: var(--tp-muted); padding-top: 1.6rem; }
.tahap li::before { content: ""; position: absolute; top: .45rem; left: 50%; width: .9rem; height: .9rem; margin-left: -.45rem; border-radius: 50%; background: #fff; border: 2px solid var(--tp-line); z-index: 1; }
.tahap li::after { content: ""; position: absolute; top: .8rem; left: -50%; width: 100%; height: 2px; background: var(--tp-line); }
.tahap li:first-child::after { display: none; }
.tahap li.lewat::before { background: var(--tp-sky); border-color: var(--tp-sky); }
.tahap li.lewat::after, .tahap li.kini::after { background: var(--tp-sky); }
.tahap li.kini { color: var(--tp-ink); font-weight: var(--fw-semi); }
.tahap li.kini::before { background: var(--tp-blue); border-color: var(--tp-blue); box-shadow: 0 0 0 4px rgba(32,82,163,.18); }
@media (max-width: 575.98px) { .tahap li { font-size: .68rem; } }

/* tabel tarif & simulasi */
.tabel-tarif th { font-size: .8rem; color: var(--tp-muted); font-weight: var(--fw-semi); white-space: nowrap; background: var(--tp-bg); }
.tabel-tarif td { white-space: nowrap; }
.tabel-tarif tbody tr:hover { background: #fafcff; }
.sim-total { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1rem; background: var(--tp-blue); color: #fff; border-radius: 12px; padding: 1rem 1.2rem; }
.sim-total span { font-size: .9rem; opacity: .9; }
.sim-total b { font-size: 1.6rem; font-weight: var(--fw-light); }
