/* =========================================================
   Website Profil Politisi — Rico Alviano, S.T.
   Palet: hijau (identitas PKB) + aksen emas + putih bersih
   ========================================================= */

:root {
  --green-900: #0A3320;
  --green-800: #0B6E3F;
  --green-700: #128C4F;
  --green-600: #17A35D;
  --green-050: #EAF6EE;
  --gold-600: #B8892E;
  --gold-500: #D4A72C;
  --gold-300: #F4C74A;
  --gold-100: #FCF1D6;
  --ink-900: #172119;
  --ink-700: #3E4C44;
  --ink-500: #6B7A72;
  --paper: #FFFFFF;
  --bg-soft: #F6F9F6;
  --border-soft: #E4EBE5;
  --shadow-sm: 0 2px 10px rgba(10, 51, 32, .06);
  --shadow-md: 0 12px 32px rgba(10, 51, 32, .10);
  --shadow-lg: 0 24px 60px rgba(10, 51, 32, .16);
  --radius: 16px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink-900);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 800;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}

a { text-decoration: none; color: inherit; transition: color .15s ease; }
img { max-width: 100%; display: block; }
.text-muted-light { color: rgba(255,255,255,.7); }

::selection { background: var(--gold-300); color: var(--green-900); }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--green-900);
  color: #DCEFE2;
  font-size: .82rem;
  padding: 8px 0;
}
.topbar-info span { margin-right: 22px; }
.topbar-info i { color: var(--gold-300); margin-right: 6px; }
.topbar-social a {
  color: #DCEFE2;
  margin-left: 14px;
  font-size: .95rem;
}
.topbar-social a:hover { color: var(--gold-300); }

/* ---------- Navbar ---------- */
.navbar-main {
  background: var(--paper);
  padding: 14px 0;
  box-shadow: var(--shadow-sm);
  z-index: 1030;
}
.navbar-brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: linear-gradient(155deg, var(--green-700), var(--green-900));
  color: var(--gold-300);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Plus Jakarta Sans', serif;
  font-weight: 800; font-size: 1.35rem;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.02rem; color: var(--ink-900); }
.brand-text small { color: var(--green-800); font-weight: 600; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; }

.navbar-nav .nav-link {
  color: var(--ink-700);
  font-weight: 600;
  font-size: .93rem;
  padding: 8px 14px !important;
  border-radius: 8px;
  position: relative;
}
.navbar-nav .nav-link:hover { color: var(--green-800); background: var(--green-050); }
.navbar-nav .nav-link.active { color: var(--green-800); background: var(--green-050); }

.btn-cta {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--green-900) !important;
  font-weight: 700;
  border: none;
  padding: 10px 20px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(212,167,44,.35);
  font-size: .88rem;
}
.btn-cta:hover { filter: brightness(1.05); transform: translateY(-1px); color: var(--green-900) !important; }

/* ---------- Generic building blocks ---------- */
.section { padding: 84px 0; }
.section-sm { padding: 56px 0; }
.bg-soft { background: var(--bg-soft); }
.bg-green { background: var(--green-900); color: #fff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--green-800);
  background: var(--green-050);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-500); }
.eyebrow.on-dark { color: var(--gold-300); background: rgba(255,255,255,.08); }

.section-title { font-size: clamp(1.7rem, 2.6vw, 2.4rem); margin-bottom: 14px; }
.section-lead { color: var(--ink-500); font-size: 1.05rem; max-width: 640px; }
.section-head { margin-bottom: 44px; }

.btn-brand {
  background: var(--green-800);
  border: none;
  color: #fff;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(11,110,63,.25);
}
.btn-brand:hover { background: var(--green-700); color: #fff; transform: translateY(-1px); }
.btn-outline-brand {
  border: 1.5px solid var(--green-800);
  color: var(--green-800);
  font-weight: 700;
  padding: 11px 24px;
  border-radius: 999px;
  background: transparent;
}
.btn-outline-brand:hover { background: var(--green-800); color: #fff; }
.btn-ghost-light {
  border: 1.5px solid rgba(255,255,255,.4);
  color: #fff;
  font-weight: 700;
  padding: 11px 24px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
}
.btn-ghost-light:hover { background: rgba(255,255,255,.16); color: #fff; }

/* ---------- Hero (Beranda) ---------- */
.hero {
  position: relative;
  background: radial-gradient(120% 140% at 85% -10%, #124a2c 0%, var(--green-900) 55%, #071f14 100%);
  color: #fff;
  padding: 70px 0 110px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 12% 20%, rgba(244,199,74,.10) 0, transparent 40%),
    radial-gradient(circle at 92% 80%, rgba(23,163,93,.25) 0, transparent 45%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(244,199,74,.14);
  border: 1px solid rgba(244,199,74,.35);
  color: var(--gold-300);
  font-weight: 700; font-size: .8rem;
  padding: 7px 16px; border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4vw, 3.2rem); line-height: 1.12; margin-bottom: 18px; }
.hero h1 .accent { color: var(--gold-300); }
.hero-lead { font-size: 1.12rem; color: rgba(255,255,255,.82); max-width: 540px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 46px; }

.hero-stats { display: flex; gap: 30px; flex-wrap: wrap; }
.hero-stat strong { display: block; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.7rem; color: #fff; }
.hero-stat span { color: rgba(255,255,255,.65); font-size: .82rem; }

.hero-portrait {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(255,255,255,.10), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.14);
  padding: 10px;
  box-shadow: var(--shadow-lg);
}
.hero-portrait .img-placeholder,
.hero-portrait img {
  border-radius: 20px;
  aspect-ratio: 4/5;
  width: 100%;
  object-fit: cover;
}
.hero-portrait-card {
  position: absolute;
  left: -18px; bottom: -18px;
  background: #fff;
  color: var(--ink-900);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px;
  max-width: 260px;
}
.hero-portrait-card i { color: var(--green-800); font-size: 1.4rem; }
.hero-portrait-card strong { display: block; font-size: .88rem; }
.hero-portrait-card span { font-size: .76rem; color: var(--ink-500); }

/* ---------- Image placeholders ---------- */
.img-placeholder {
  width: 100%; height: 100%; min-height: 160px;
  background: linear-gradient(135deg, var(--green-050), #dff0e3);
  border: 1px dashed #bfe0c9;
  display: flex; align-items: center; justify-content: center;
  color: var(--green-700);
  font-size: 1.9rem;
  border-radius: inherit;
}

/* ---------- Program cards ---------- */
.program-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 30px 26px;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}
.program-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.program-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--green-050);
  color: var(--green-800);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.program-card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.program-card p { color: var(--ink-500); font-size: .92rem; margin-bottom: 0; }
.program-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--green-800); font-size: .86rem; margin-top: 16px; }
.program-link i { transition: transform .15s ease; }
.program-card:hover .program-link i { transform: translateX(4px); }

/* ---------- Stat strip ---------- */
.stat-strip { background: var(--green-800); color: #fff; padding: 34px 0; }
.stat-item { text-align: center; }
.stat-item strong { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.9rem; display: block; }
.stat-item span { font-size: .82rem; color: rgba(255,255,255,.75); }

/* ---------- Posbakum banner ---------- */
.posbakum-banner {
  background: linear-gradient(120deg, var(--green-900), #0f4d2f 60%, var(--green-800));
  border-radius: 24px;
  color: #fff;
  padding: 46px;
  position: relative;
  overflow: hidden;
}
.posbakum-banner::after {
  content: '';
  position: absolute; right: -60px; top: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(244,199,74,.22), transparent 70%);
}
.badge-soon {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold-300); color: var(--green-900);
  font-weight: 800; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
.badge-soon .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-900); animation: pulse-dot 1.6s infinite; }
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

/* ---------- News cards ---------- */
.news-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.news-thumb { aspect-ratio: 16/10; overflow: hidden; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.news-card:hover .news-thumb img { transform: scale(1.06); }
.news-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.news-cat {
  display: inline-block; align-self: flex-start;
  background: var(--green-050); color: var(--green-800);
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: 4px 11px; border-radius: 999px; margin-bottom: 12px;
}
.news-body h3 { font-size: 1.04rem; line-height: 1.4; margin-bottom: 10px; }
.news-body h3 a { color: var(--ink-900); }
.news-body h3 a:hover { color: var(--green-800); }
.news-excerpt { color: var(--ink-500); font-size: .89rem; margin-bottom: 14px; flex: 1; }
.news-meta { font-size: .78rem; color: var(--ink-500); display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--border-soft); padding-top: 14px; }
.news-meta i { color: var(--gold-600); margin-right: 4px; }

/* ---------- Timeline (Profil) ---------- */
.timeline { position: relative; padding-left: 34px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--border-soft); }
.timeline-item { position: relative; padding-bottom: 30px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ''; position: absolute; left: -34px; top: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid var(--green-800);
}
.timeline-year { font-weight: 800; color: var(--green-800); font-size: .86rem; margin-bottom: 4px; }
.timeline-item h4 { font-size: 1rem; margin-bottom: 4px; }
.timeline-item p { color: var(--ink-500); font-size: .9rem; margin-bottom: 0; }

.info-card {
  background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 26px;
}
.bio-table th { color: var(--ink-500); font-weight: 600; width: 40%; padding: 10px 0; font-size: .9rem; vertical-align: top; }
.bio-table td { padding: 10px 0; font-weight: 600; font-size: .92rem; }
.bio-table tr { border-bottom: 1px solid var(--border-soft); }
.bio-table tr:last-child { border-bottom: none; }

/* ---------- Gallery ---------- */
.gallery-item {
  position: relative; border-radius: var(--radius-sm); overflow: hidden;
  aspect-ratio: 4/3; cursor: pointer; border: 1px solid var(--border-soft);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,51,32,.88), rgba(10,51,32,0) 60%);
  color: #fff; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 16px; opacity: 0; transition: opacity .25s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay strong { font-size: .88rem; }
.gallery-overlay span { font-size: .74rem; color: rgba(255,255,255,.7); }
.gallery-filter .btn { border-radius: 999px; font-size: .84rem; font-weight: 600; padding: 7px 16px; }

/* ---------- Contact page ---------- */
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--border-soft); }
.contact-info-item:last-child { border-bottom: none; }
.contact-info-item i { width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; background: var(--green-050); color: var(--green-800); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.contact-info-item strong { display: block; font-size: .92rem; }
.contact-info-item span, .contact-info-item a { color: var(--ink-500); font-size: .88rem; }

.form-control, .form-select {
  border-radius: 10px; border: 1px solid var(--border-soft);
  padding: 11px 14px; font-size: .92rem;
}
.form-control:focus, .form-select:focus { border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(11,110,63,.12); }
.form-label { font-weight: 600; font-size: .87rem; margin-bottom: 6px; }

.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-soft); }
.map-frame iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }

/* ---------- Page hero (halaman dalam) ---------- */
.page-hero {
  background: linear-gradient(150deg, var(--green-900), var(--green-800));
  color: #fff; padding: 56px 0 60px; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; right: -80px; bottom: -100px;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(244,199,74,.18), transparent 70%);
}
.page-hero h1 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,.78); max-width: 620px; margin-bottom: 0; }
.breadcrumb-mini { font-size: .82rem; color: rgba(255,255,255,.65); margin-bottom: 14px; }
.breadcrumb-mini a { color: rgba(255,255,255,.85); }
.breadcrumb-mini a:hover { color: var(--gold-300); }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: #cfe4d5; padding: 64px 0 26px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; color: #fff; }
.footer-desc { font-size: .88rem; color: rgba(255,255,255,.62); margin-bottom: 18px; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,.06); color: #fff; margin-right: 8px; font-size: .95rem;
}
.footer-social a:hover { background: var(--gold-500); color: var(--green-900); }
.footer-title { color: var(--gold-300); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; margin-bottom: 18px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: .88rem; color: rgba(255,255,255,.68); }
.footer-links a:hover { color: var(--gold-300); }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; gap: 10px; font-size: .86rem; color: rgba(255,255,255,.68); margin-bottom: 12px; }
.footer-contact i { color: var(--gold-300); margin-top: 3px; }
.footer-divider { border-color: rgba(255,255,255,.12); margin: 30px 0 20px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .8rem; color: rgba(255,255,255,.55); }
.footer-bottom-links a { margin-left: 16px; color: rgba(255,255,255,.55); }
.footer-bottom-links a:hover { color: var(--gold-300); }

/* ---------- Floating buttons ---------- */
.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; box-shadow: 0 10px 24px rgba(37,211,102,.4);
  z-index: 1040;
}
.whatsapp-float:hover { color: #fff; transform: scale(1.06); }
.back-to-top {
  position: fixed; right: 22px; bottom: 88px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--green-900); color: #fff; border: none;
  display: none; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); z-index: 1040;
}
.back-to-top.show { display: flex; }

/* ---------- Misc ---------- */
.badge-status-draft { background: #fde68a; color: #92400e; }
.badge-status-terbit { background: #bbf7d0; color: #065f46; }
.pagination .page-link { color: var(--green-800); border-radius: 8px !important; margin: 0 3px; border-color: var(--border-soft); }
.pagination .page-item.active .page-link { background: var(--green-800); border-color: var(--green-800); }

.divider-gold { width: 60px; height: 4px; background: var(--gold-500); border-radius: 999px; margin-bottom: 20px; }

@media (max-width: 991.98px) {
  .hero { padding: 40px 0 70px; text-align: center; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero-portrait { margin-top: 40px; max-width: 340px; margin-left: auto; margin-right: auto; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 575.98px) {
  .section { padding: 56px 0; }
  .posbakum-banner { padding: 30px 22px; }
}
