/* Semarang Kota CSIRT — tema merah #B91C1C + navy #0a1230 */
:root {
  --red: #B91C1C;
  --red-dark: #7f1d1d;
  --red-soft: #fef2f2;
  --navy: #0a1230;
  --navy-2: #141d45;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg-soft: #f8fafc;
  --radius: 12px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* Mode gelap — diaktifkan lewat [data-theme="dark"] pada <html> */
[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e8ebf4;
  --muted: #9aa3b8;
  --line: #263049;
  --bg-soft: #101832;
  --red-soft: #2b1418;
}
[data-theme="dark"] body { background: #0b1128; }
[data-theme="dark"] a { color: #f87171; }
[data-theme="dark"] a:hover { color: #fca5a5; }
/* Teks tombol harus tetap kontras — jangan ikut warna link */
[data-theme="dark"] .btn-red,
[data-theme="dark"] .btn-navy { color: #fff; }
[data-theme="dark"] .btn-red:hover,
[data-theme="dark"] .btn-navy:hover { color: #fff; }
[data-theme="dark"] .btn-white { color: var(--red); }
[data-theme="dark"] .btn-white:hover { color: var(--red-dark); }
[data-theme="dark"] .site-header { background: #0e1530; box-shadow: 0 2px 12px rgba(0,0,0,.35); }
[data-theme="dark"] .main-nav { background: #0e1530; }
[data-theme="dark"] .brand-name,
[data-theme="dark"] .section-title,
[data-theme="dark"] .card-title,
[data-theme="dark"] .link-badge,
[data-theme="dark"] .layanan-card h3,
[data-theme="dark"] .doc-item .doc-info strong,
[data-theme="dark"] .contact-card h3,
[data-theme="dark"] .page-title,
[data-theme="dark"] .article-title,
[data-theme="dark"] .article-body h2,
[data-theme="dark"] .article-body h3,
[data-theme="dark"] .page-body h2,
[data-theme="dark"] .page-body h3,
[data-theme="dark"] .gallery-title,
[data-theme="dark"] .contact-row strong { color: #edf0fa; }
[data-theme="dark"] .card,
[data-theme="dark"] .card-h,
[data-theme="dark"] .layanan-card,
[data-theme="dark"] .link-badge,
[data-theme="dark"] .contact-card,
[data-theme="dark"] .doc-item,
[data-theme="dark"] .gallery-item,
[data-theme="dark"] .share-btn,
[data-theme="dark"] .pagination a,
[data-theme="dark"] .pagination span,
[data-theme="dark"] .search-form input,
[data-theme="dark"] .main-nav .drop-menu { background: #141c3a; }
[data-theme="dark"] .profil-text p,
[data-theme="dark"] .article-body,
[data-theme="dark"] .page-body { color: #c6ccdd; }
[data-theme="dark"] .card-cat { color: #fca5a5; }
[data-theme="dark"] .form-note { color: #fca5a5; border-color: #7f1d1d; }
[data-theme="dark"] .hamburger { border-color: var(--line); }
[data-theme="dark"] .hamburger span { background: #edf0fa; }
[data-theme="dark"] .btn-outline { color: #f87171; border-color: #f87171; }
[data-theme="dark"] .btn-outline:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* Tombol ganti tema gelap/terang */
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; flex-shrink: 0; margin-left: 8px; transition: .2s; }
.theme-toggle:hover { border-color: var(--red); color: var(--red); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: #fff; line-height: 1.65; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section-soft { background: var(--bg-soft); }
.section-title { font-size: 1.7rem; font-weight: 800; margin-bottom: 6px; color: var(--navy); }
.section-title::after { content: ''; display: block; width: 56px; height: 4px; background: var(--red); border-radius: 2px; margin-top: 8px; }
.section-sub { color: var(--muted); margin-bottom: 28px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }

/* Tombol */
.btn { display: inline-block; padding: 11px 24px; border-radius: 8px; font-weight: 700; font-size: .95rem; border: 1px solid transparent; cursor: pointer; transition: .2s; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--red); border-color: var(--red); }
.btn-outline:hover { background: var(--red); color: #fff; }
.btn-white { background: #fff; color: var(--red); }
.btn-white:hover { background: var(--red-soft); color: var(--red-dark); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); color: #fff; }

/* Topbar */
.topbar { background: var(--navy); color: #cbd5e1; font-size: .8rem; border-bottom: 3px solid var(--red); }
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: #fff; }
.topbar svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 6px; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 12px rgba(10,18,48,.06); }
.header-main { display: flex; align-items: center; gap: 10px; padding: 12px 0; }
.header-accent { height: 4px; background: linear-gradient(90deg, var(--red) 0%, #dc2626 50%, var(--red-dark) 100%); }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; flex-shrink: 0; }
.brand img { height: 48px; width: auto; }
.brand-name { font-weight: 800; font-size: 1.05rem; color: var(--navy); line-height: 1.2; white-space: nowrap; }
.brand-sub { font-size: .7rem; color: var(--muted); font-weight: 500; white-space: nowrap; }
.main-nav { display: flex; align-items: center; gap: 0; flex-shrink: 1; min-width: 0; }
.main-nav > a, .main-nav .drop > button { padding: 10px 9px; font-weight: 600; font-size: .88rem; color: var(--ink); background: none; border: none; font-family: inherit; cursor: pointer; white-space: nowrap; }
.main-nav > a:hover, .main-nav .drop > button:hover, .main-nav > a.active, .main-nav .drop > button.active { color: var(--red); }
.main-nav .drop { position: relative; }
.main-nav .drop-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 250px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px rgba(10,18,48,.12); padding: 8px; z-index: 200; }
.main-nav .drop:hover .drop-menu, .main-nav .drop:focus-within .drop-menu { display: block; }
.main-nav .drop-menu a { display: block; padding: 10px 14px; border-radius: 8px; color: var(--ink); font-size: .9rem; font-weight: 500; }
.main-nav .drop-menu a:hover { background: var(--red-soft); color: var(--red); }
.header-cta { margin-left: 8px; padding: 10px 18px; font-size: .88rem; font-weight: 600; white-space: nowrap; border-radius: 8px; flex-shrink: 0; }
.hamburger { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; }

/* Hero */
.hero { position: relative; border-radius: 24px; margin: 24px 0 0; overflow: hidden; background: linear-gradient(120deg, var(--red-dark) 0%, var(--red) 65%, var(--navy) 175%); color: #fff; }
.hero::before { content: ''; position: absolute; inset: 0; background:
  radial-gradient(circle at 85% 20%, rgba(255,255,255,.08), transparent 40%),
  radial-gradient(circle at 10% 90%, rgba(0,0,0,.25), transparent 45%); }
.hero-inner { position: relative; padding: 64px 48px 64px 88px; max-width: 820px; }
/* Carousel hero */
.hero-carousel { padding: 0; }
.hero-slides { position: relative; }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; border-radius: 24px; overflow: hidden; background: linear-gradient(120deg, var(--red-dark) 0%, var(--red) 65%, var(--navy) 175%); }
.hero-slide.active { position: relative; opacity: 1; visibility: visible; }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.45); background: rgba(0,0,0,.28); color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; z-index: 5; transition: .2s; }
.hero-arrow:hover { background: rgba(0,0,0,.55); }
.hero-prev { left: 20px; }
.hero-next { right: 20px; }
.hero-dots { position: absolute; bottom: 22px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 5; }
.hero-dot { width: 10px; height: 10px; border-radius: 999px; border: none; background: rgba(255,255,255,.45); cursor: pointer; padding: 0; transition: .25s; }
.hero-dot.active { width: 28px; background: #fff; }
.hero-badge { display: inline-block; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .08em; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; text-transform: uppercase; }
.hero h1 { font-size: 2.4rem; line-height: 1.25; font-weight: 800; margin-bottom: 14px; }
.hero p { color: #e5e7eb; margin-bottom: 26px; font-size: 1.05rem; }
.hero-meta { font-size: .85rem; color: #cbd5e1; margin-bottom: 20px; }

/* Kartu */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(185,28,28,.12); }
.card-cover { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--red), var(--red-dark)); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.85); font-weight: 800; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-cat { display: inline-block; align-self: flex-start; background: var(--red-soft); color: var(--red); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; }
.card-title { font-size: 1.05rem; font-weight: 700; color: var(--navy); line-height: 1.45; }
.card-title a { color: inherit; }
.card-title a:hover { color: var(--red); }
.card-meta { font-size: .8rem; color: var(--muted); }
.card-excerpt { font-size: .9rem; color: var(--muted); flex: 1; }
.card-h { display: flex; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; padding: 14px; align-items: center; transition: .2s; }
.card-h:hover { box-shadow: 0 10px 26px rgba(10,18,48,.09); }
.card-h .thumb { width: 150px; height: 100px; flex-shrink: 0; border-radius: 8px; background: linear-gradient(135deg, var(--red), var(--red-dark)); overflow: hidden; }
.card-h .thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Layanan */
.layanan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.layanan-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 26px; text-align: center; transition: .2s; }
.layanan-card:hover { border-color: var(--red); box-shadow: 0 14px 34px rgba(185,28,28,.1); transform: translateY(-4px); }
.layanan-icon { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 16px; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; }
.layanan-icon svg { width: 30px; height: 30px; }
.layanan-card h3 { color: var(--navy); margin-bottom: 8px; font-size: 1.1rem; }
.layanan-card p { color: var(--muted); font-size: .9rem; margin-bottom: 16px; }

/* Profil */
.profil-split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: stretch; }
.profil-text p { margin-bottom: 14px; color: #374151; }
.sk-panel { background: var(--navy); color: #e5e7eb; border-radius: var(--radius); padding: 30px; border-top: 4px solid var(--red); }
.sk-panel h3 { color: #fff; margin-bottom: 12px; font-size: 1.1rem; }
.sk-logos { display: flex; align-items: center; justify-content: center; gap: 22px; margin-bottom: 18px; }
.sk-logos img { height: 76px; width: auto; }
.sk-panel .sk-no { font-size: .85rem; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 8px; padding: 12px 16px; margin: 14px 0; }

/* Link terkait */
.links-row { display: flex; gap: 16px; flex-wrap: wrap; }
.link-badge { border: 1px solid var(--line); border-radius: 10px; padding: 14px 26px; font-weight: 700; color: var(--navy); background: #fff; transition: .2s; }
.link-badge:hover { border-color: var(--red); color: var(--red); }

/* Footer */
.site-footer { background: var(--navy); color: #cbd5e1; margin-top: 0; border-top: 4px solid var(--red); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 32px; padding: 56px 0 36px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; padding-left: 12px; border-left: 3px solid var(--red); }
.site-footer p, .site-footer li { font-size: .88rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fca5a5; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { height: 46px; }
.footer-brand span { color: #fff; font-weight: 800; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; font-size: .8rem; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Breadcrumb */
.breadcrumb { font-size: .85rem; color: var(--muted); margin: 24px 0; }
.breadcrumb a { color: var(--red); }
.breadcrumb span.sep { margin: 0 8px; }

/* Artikel */
.article-wrap { max-width: 800px; margin: 0 auto; }
.article-cat { margin-bottom: 12px; }
.article-title { font-size: 2rem; color: var(--navy); line-height: 1.35; margin-bottom: 12px; font-weight: 800; }
.article-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.article-cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 28px; aspect-ratio: 16/8; background: linear-gradient(135deg, var(--navy), var(--red-dark)); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-body { font-size: 1.02rem; color: #374151; }
.article-body p { margin-bottom: 18px; }
.article-body h2, .article-body h3 { color: var(--navy); margin: 28px 0 12px; }
.article-body ul, .article-body ol { margin: 0 0 18px 22px; }
.share-row { display: flex; gap: 10px; align-items: center; margin: 32px 0; padding: 18px; background: var(--bg-soft); border-radius: var(--radius); flex-wrap: wrap; }
.share-row strong { margin-right: 6px; }
.share-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: .85rem; font-weight: 600; cursor: pointer; }
.share-btn:hover { border-color: var(--red); color: var(--red); }

/* Arsip */
.archive-head { background: linear-gradient(120deg, var(--red-dark) 0%, var(--red) 130%); color: #fff; padding: 48px 0; margin-bottom: 40px; }
.archive-head h1 { font-size: 2rem; font-weight: 800; }
.archive-head p { color: #e5e7eb; }
.search-form { display: flex; gap: 10px; margin: 0 0 32px; max-width: 520px; }
.search-form input { flex: 1; padding: 11px 16px; border: 1px solid var(--line); border-radius: 8px; font-family: inherit; font-size: .95rem; }
.search-form input:focus { outline: 2px solid var(--red); border-color: var(--red); }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.pagination a, .pagination span { padding: 9px 15px; border: 1px solid var(--line); border-radius: 8px; font-size: .9rem; color: var(--ink); background: #fff; }
.pagination span.current { background: var(--red); border-color: var(--red); color: #fff; font-weight: 700; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }

/* Halaman statis */
.page-wrap { max-width: 860px; margin: 0 auto; }
.page-title { font-size: 2rem; color: var(--navy); font-weight: 800; margin-bottom: 20px; }
.page-body { color: #374151; }
.page-body p { margin-bottom: 16px; }
.page-body h2, .page-body h3 { color: var(--navy); margin: 26px 0 12px; }
.page-body ul, .page-body ol { margin: 0 0 16px 22px; }
.page-body table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.page-body th, .page-body td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.page-body thead th { background: #f2f2f2; }
[data-theme="dark"] .page-body thead th { background: #1a2340; }
.doc-list { display: grid; gap: 16px; margin-top: 24px; }
.doc-item { display: flex; align-items: center; gap: 16px; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.doc-item .doc-icon { width: 48px; height: 48px; border-radius: 10px; background: var(--red-soft); color: var(--red); display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }
.doc-item .doc-info { flex: 1; }
.doc-item .doc-info strong { display: block; color: var(--navy); }
.doc-item .doc-info small { color: var(--muted); }

/* Galeri */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0 8px; }
.gallery-item { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.gallery-item img { width: 100%; height: 200px; object-fit: cover; display: block; transition: transform .25s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-title { font-size: 1.25rem; color: var(--navy); font-weight: 700; margin: 32px 0 4px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 8px; }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-card h3 { color: var(--navy); margin-bottom: 16px; }
.contact-row { display: flex; gap: 12px; margin-bottom: 14px; font-size: .93rem; }
.contact-row strong { min-width: 90px; color: var(--navy); }
.form-note { background: var(--red-soft); border: 1px solid #fecaca; color: var(--red-dark); border-radius: 8px; padding: 14px 18px; font-size: .9rem; margin-top: 20px; }

/* Back to top */
#toTop { position: fixed; right: 24px; bottom: 24px; width: 46px; height: 46px; border-radius: 50%; background: var(--red); color: #fff; border: none; font-size: 1.2rem; cursor: pointer; display: none; box-shadow: 0 8px 20px rgba(185,28,28,.35); z-index: 90; }
#toTop.show { display: block; }

/* Responsif */
@media (max-width: 960px) {
  .grid-3, .layanan-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .profil-split, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hamburger { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(10,18,48,.12); padding: 10px 20px 20px; }
  .main-nav.open { display: flex; }
  .main-nav .drop-menu { position: static; box-shadow: none; border: none; padding: 0 0 0 12px; }
  .site-header .container { position: relative; }
  .header-cta { display: none; }
  .hero h1 { font-size: 1.8rem; }
  .hero-inner { padding: 40px 24px 40px 36px; }
  .hero-arrow { width: 36px; height: 36px; font-size: 1.4rem; }
  .hero-prev { left: 10px; }
  .hero-next { right: 10px; }
}
@media (max-width: 620px) {
  .grid-3, .layanan-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar .topbar-date { display: none; }
  .article-title { font-size: 1.5rem; }
  .card-h .thumb { width: 110px; height: 80px; }
}

/* Sorotan Siber Nasional */
.sorotan-list { display: flex; flex-direction: column; gap: 8px; }
.sorotan-item { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.sorotan-item:hover { border-color: var(--red); box-shadow: 0 6px 18px rgba(10,18,48,.08); }
.sorotan-date { flex: 0 0 88px; font-size: .76rem; font-weight: 600; color: var(--muted); }
.sorotan-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sorotan-title-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.sorotan-cve { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .7rem; font-weight: 700; color: var(--red); border: 1px solid currentColor; border-radius: 6px; padding: 1px 7px; white-space: nowrap; }
.sorotan-title { font-size: .94rem; font-weight: 600; color: var(--navy); line-height: 1.4; }
.sorotan-item:hover .sorotan-title { color: var(--red); }
.sorotan-meta { font-size: .74rem; color: var(--muted); }
.sorotan-go { flex: 0 0 auto; font-size: 1.4rem; line-height: 1; color: var(--line); transition: color .2s, transform .2s; }
.sorotan-item:hover .sorotan-go { color: var(--red); transform: translateX(3px); }

/* Kampanye: galeri visual flyer/poster */
.kampanye-grid { columns: 260px; column-gap: 20px; }
.kampanye-card { margin: 0 0 20px; break-inside: avoid; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: 14px; overflow: hidden; transition: border-color .2s, box-shadow .2s; display: flex; flex-direction: column; }
.kampanye-card:hover { border-color: var(--red); box-shadow: 0 8px 22px rgba(185,28,28,.14); }
.kampanye-img { display: block; width: 100%; border: 0; padding: 0; cursor: zoom-in; background: #0f1b3d; }
.kampanye-img img { width: 100%; height: auto; display: block; }
.kampanye-card figcaption { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.kampanye-card figcaption strong { font-size: .92rem; color: var(--navy); line-height: 1.6; transition: color .2s; }
.kampanye-card:hover figcaption strong { color: var(--red); }
.kampanye-card figcaption .muted { font-size: .8rem; line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
[data-theme="dark"] .kampanye-card { background: #141c3a; }
[data-theme="dark"] .kampanye-card figcaption strong { color: #e5e7eb; }

/* Lightbox kampanye — fullscreen di atas header (header z-index 100) */
.kampanye-lightbox[hidden] { display: none; }
.kampanye-lightbox { position: fixed; inset: 0; z-index: 300; padding: 28px 16px 90px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.45) transparent; }
.kampanye-lightbox::-webkit-scrollbar { width: 10px; }
.kampanye-lightbox::-webkit-scrollbar-track { background: transparent; }
.kampanye-lightbox::-webkit-scrollbar-thumb { background: rgba(255,255,255,.35); border-radius: 8px; border: 2px solid rgba(10,18,48,.9); }
.kampanye-lightbox-backdrop { position: fixed; inset: 0; background: rgba(10,18,48,.94); }
.kampanye-lightbox-box { position: relative; margin: 0 auto; max-width: min(560px, 94vw); }
.kampanye-lightbox-box img { width: 100%; height: auto; display: block; border-radius: 12px; background: #fff; }
.kampanye-lightbox-box figcaption { color: #fff; text-align: center; padding: 14px 8px 8px; line-height: 1.6; }
.kampanye-lightbox-box figcaption strong { display: block; font-size: 1.05rem; }
.kampanye-lightbox-box figcaption span { display: block; font-weight: 400; font-size: .85rem; opacity: .75; margin-top: 6px; line-height: 1.6; }
.kampanye-lightbox-close { position: fixed; top: 16px; right: 20px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--red); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; z-index: 302; box-shadow: 0 6px 18px rgba(0,0,0,.4); }
/* Navigasi sebelum/berikutnya di lightbox */
.kampanye-lightbox-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(10,18,48,.6); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; z-index: 302; display: flex; align-items: center; justify-content: center; padding: 0 0 4px; }
.kampanye-lightbox-nav:hover { background: var(--red); border-color: var(--red); }
.kampanye-lightbox-nav.prev { left: 18px; }
.kampanye-lightbox-nav.next { right: 18px; }
@media (max-width: 640px) {
    .kampanye-lightbox-nav { width: 40px; height: 40px; font-size: 1.4rem; }
    .kampanye-lightbox-nav.prev { left: 8px; }
    .kampanye-lightbox-nav.next { right: 8px; }
}
/* Petunjuk scroll — muncul hanya jika gambar lebih tinggi dari layar */
.kampanye-scroll-hint { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 302; background: rgba(255,255,255,.95); color: #0f1b3d; font-size: .82rem; font-weight: 700; padding: 10px 20px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.4); display: flex; align-items: center; gap: 8px; pointer-events: none; transition: opacity .35s; animation: kampanyeHintBob 1.6s ease-in-out infinite; white-space: nowrap; }
.kampanye-scroll-hint.hide { opacity: 0; }
.kampanye-scroll-hint .arr { font-size: 1rem; }
@keyframes kampanyeHintBob { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(7px); } }
[data-theme="dark"] .sorotan-item { background: #141c3a; }
[data-theme="dark"] .sorotan-title { color: #e5e7eb; }
[data-theme="dark"] .sorotan-item:hover .sorotan-title { color: #fca5a5; }
@media (max-width: 620px) {
  .sorotan-item { gap: 10px; padding: 10px 12px; }
  .sorotan-date { flex-basis: 74px; font-size: .7rem; }
  .sorotan-go { display: none; }
}

/* ===== Halaman Profil ===== */
.tag { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .14em; color: var(--red); background: var(--red-soft); border-radius: 6px; padding: 5px 12px; margin-bottom: 10px; }
.profil-badge-card { padding: 22px; gap: 12px; }
.profil-badge-card:hover { transform: translateY(-4px); }
.profil-badge-head { display: flex; align-items: center; gap: 14px; }
.profil-badge-img { width: 56px; height: 56px; object-fit: contain; flex-shrink: 0; }
.badge-monogram { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, var(--navy), var(--red-dark)); color: #fff; font-weight: 800; font-size: .85rem; letter-spacing: .05em; flex-shrink: 0; }
.badge-monogram-lg { width: 56px; height: 56px; font-size: 1.05rem; border-radius: 14px; }
.profil-badge-title { font-size: 1rem; font-weight: 800; color: var(--navy); line-height: 1.35; margin: 0; }
.profil-badge-sub { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.profil-badge-value { font-size: 2rem; font-weight: 800; color: var(--red); line-height: 1; }
.profil-badge-desc { font-size: .88rem; color: var(--muted); margin: 0; line-height: 1.6; }
.profil-map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.profil-map iframe { display: block; width: 100%; height: 420px; border: 0; }
.profil-data { margin: 0; padding: 22px; display: flex; flex-direction: column; gap: 0; }
.profil-data-row { display: grid; grid-template-columns: 180px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.profil-data-row:last-child { border-bottom: 0; }
.profil-data dt { font-weight: 700; color: var(--navy); font-size: .9rem; }
.profil-data dd { margin: 0; font-size: .9rem; }
.profil-data dd a { color: var(--red); }
[data-theme="dark"] .profil-badge-title,
[data-theme="dark"] .profil-data dt { color: #e8ebf5; }
[data-theme="dark"] .profil-badge-desc,
[data-theme="dark"] .profil-badge-sub { color: #aab0c5; }
@media (max-width: 960px) {
  .profil-data-row { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 620px) {
  .profil-map iframe { height: 300px; }
}

/* ===== Profil: peta + data sampingan ===== */
.profil-split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; margin-bottom: 8px; }
.profil-card-label { font-size: .72rem; font-weight: 800; letter-spacing: .14em; color: var(--muted); padding: 18px 22px 0; }
.profil-map-card { overflow: hidden; }
.profil-map-img { display: block; width: 100%; height: auto; padding: 14px 22px 22px; }
.profil-map-frame { display: block; width: calc(100% - 44px); aspect-ratio: 4 / 3; border: 0; border-radius: 10px; margin: 14px 22px 22px; background: #0f1b3d; }
.profil-org { display: flex; align-items: center; gap: 14px; padding: 14px 22px 4px; }
.profil-org-logo { width: 52px; height: 52px; object-fit: contain; flex-shrink: 0; }
.profil-org-name { font-size: 1.15rem; font-weight: 800; color: var(--navy); }
.profil-org-sub { font-size: .82rem; color: var(--muted); }
[data-theme="dark"] .profil-org-name { color: #e8ebf5; }
@media (max-width: 960px) {
  .profil-split-grid { grid-template-columns: 1fr; }
}
