:root {
  --navy: #0a2540;
  --navy-light: #123a63;
  --biru: #1e6fd9;
  --hijau: #1e8f5e;
  --orange: #f5860e;
  --abu-bg: #f4f6f9;
  --abu-border: #e1e6ec;
  --teks: #1c2733;
  --putih: #ffffff;
  --maxw: 1140px;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: 'Segoe UI', Roboto, Arial, sans-serif; color: var(--teks); line-height: 1.6; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
img { max-width: 100%; display: block; }
a { color: var(--biru); }

.btn { display: inline-block; padding: .6rem 1.2rem; border-radius: 8px; font-weight: 600; font-size: .88rem; text-decoration: none; border: none; cursor: pointer; }
.btn-cta { background: var(--orange); color: #fff; }
.btn-cta:hover { background: #d9740a; }
.btn-outline-navbar { background: transparent; border: 1px solid rgba(255,255,255,.35); color: #fff; }
.btn-outline-navbar:hover { background: rgba(255,255,255,.1); }

/* ================= NAVBAR ================= */
.site-navbar { background: var(--navy); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.navbar-inner { max-width: var(--maxw); margin: 0 auto; padding: .75rem 1.25rem; display: flex; align-items: center; gap: 1.5rem; }
.navbar-brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; flex-shrink: 0; }
.navbar-logo { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.25); }
.navbar-title { color: #fff; font-weight: 700; font-size: 1.05rem; }
.navbar-hamburger { display: none; background: none; border: none; color: #fff; font-size: 1.4rem; cursor: pointer; }

.navbar-menu { display: flex; align-items: center; gap: 1.5rem; flex: 1; }
.navbar-menu > a { color: #d7e2ee; text-decoration: none; font-size: .9rem; font-weight: 500; }
.navbar-menu > a:hover { color: #fff; }

.nav-dropdown { position: relative; }
.dropdown-toggle { background: none; border: none; color: #d7e2ee; font-size: .9rem; font-weight: 500; cursor: pointer; font-family: inherit; display: flex; align-items: center; gap: .25rem; padding: 0; }
.dropdown-toggle:hover { color: #fff; }
.dropdown-content { display: none; position: absolute; top: 130%; left: 0; background: #fff; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.18); min-width: 200px; padding: .5rem 0; z-index: 50; }
.dropdown-content a { display: block; padding: .55rem 1rem; color: var(--teks); text-decoration: none; font-size: .88rem; }
.dropdown-content a:hover { background: var(--abu-bg); color: var(--biru); }
.nav-dropdown.open .dropdown-content,
.nav-dropdown:hover .dropdown-content { display: block; }

.navbar-actions { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.navbar-actions-mobile { display: none; }

@media (max-width: 860px) {
  .navbar-hamburger { display: block; }
  .navbar-menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy);
    flex-direction: column; align-items: flex-start; padding: 1rem 1.25rem; gap: .25rem;
  }
  .navbar-menu.open { display: flex; }
  .navbar-menu > a, .dropdown-toggle { padding: .6rem 0; width: 100%; }
  .dropdown-content { position: static; box-shadow: none; background: rgba(255,255,255,.05); margin-left: .5rem; }
  .dropdown-content a { color: #d7e2ee; }
  .navbar-actions { display: none; }
  .navbar-actions-mobile { display: flex; flex-direction: column; gap: .5rem; width: 100%; margin-top: .75rem; }
}

/* ================= HERO SLIDER ================= */
.hero-slider { position: relative; height: 62vh; min-height: 380px; overflow: hidden; }
.slider-track { position: relative; width: 100%; height: 100%; }
.slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity .6s ease; }
.slide.active { opacity: 1; }
.slide-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,37,64,.85) 0%, rgba(10,37,64,.35) 60%, rgba(10,37,64,.1) 100%); display: flex; align-items: center; }
.slide-content { max-width: var(--maxw); width: 100%; margin: 0 auto; padding: 0 1.25rem; color: #fff; }
.slide-content h2 { font-size: 2.1rem; margin: 0 0 .5rem; max-width: 560px; }
.slide-content p { font-size: 1.05rem; max-width: 500px; margin: 0 0 1.25rem; color: #dce6f2; }

.slider-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.15); border: none; color: #fff; width: 42px; height: 42px; border-radius: 50%; font-size: 1.1rem; cursor: pointer; }
.slider-nav:hover { background: rgba(255,255,255,.3); }
.slider-prev { left: 1.25rem; }
.slider-next { right: 1.25rem; }
.slider-dots { position: absolute; bottom: 1.25rem; left: 50%; transform: translateX(-50%); display: flex; gap: .5rem; }
.slider-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.4); border: none; cursor: pointer; }
.slider-dot.active { background: #fff; }

/* ================= SECTIONS ================= */
.section { padding: 3rem 0; }
.section-stats { background: var(--navy); padding: 2rem 0; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.5rem; }
.section-heading h2 { margin: 0; color: var(--navy); }
.link-more { font-size: .85rem; font-weight: 600; text-decoration: none; }
h2 { color: var(--navy); }
.page-title { color: var(--navy); font-size: 1.8rem; margin-bottom: 1.25rem; }

/* Stat cards (beranda) */
.stat-grid-public { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.stat-card-public { background: rgba(255,255,255,.06); border-radius: 10px; padding: 1.25rem; text-align: center; border-top: 3px solid var(--biru); }
.stat-card-public .num { display: block; font-size: 2rem; font-weight: 700; color: #fff; }
.stat-card-public .label { font-size: .82rem; color: #b9c8dc; }
.stat-navy { border-top-color: var(--navy-light); }
.stat-blue { border-top-color: var(--biru); }
.stat-green { border-top-color: var(--hijau); }
.stat-orange { border-top-color: var(--orange); }

/* About */
.about-grid { display: grid; grid-template-columns: 220px 1fr; gap: 2.5rem; align-items: start; }
.about-photo { width: 220px; height: 220px; object-fit: cover; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.about-content h2 { margin-top: 0; }
.about-content h3 { margin: 0 0 .25rem; font-size: 1.3rem; }
.about-jabatan { color: #5c6b7e; font-weight: 600; margin: 0 0 1rem; }
.about-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.badge-link { background: var(--abu-bg); border: 1px solid var(--abu-border); padding: .35rem .8rem; border-radius: 20px; font-size: .8rem; text-decoration: none; color: var(--navy); font-weight: 600; }
.badge-link:hover { background: #e8eef5; }

@media (max-width: 700px) {
  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .about-photo { margin: 0 auto; }
  .about-links { justify-content: center; }
}

/* Progress timeline */
.section-progress { background: var(--abu-bg); }
.progress-timeline { display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0 .5rem; }
.progress-point { flex-shrink: 0; }
.point-label { font-weight: 700; color: var(--navy); font-size: .95rem; }
.progress-bar-track { flex: 1; height: 10px; background: var(--abu-border); border-radius: 6px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, var(--biru), var(--hijau)); border-radius: 6px; }
.progress-percent-text { color: #5c6b7e; font-size: .85rem; margin: 0; }

/* Publikasi list */
.publikasi-list { display: flex; flex-direction: column; gap: 1rem; }
.publikasi-item { border: 1px solid var(--abu-border); border-radius: 10px; padding: 1.1rem 1.25rem; }
.publikasi-item h4 { margin: .5rem 0 .25rem; font-size: 1.02rem; }
.publikasi-meta { color: #5c6b7e; font-size: .85rem; margin: 0; }
.tag-list { margin: .5rem 0 0; }
.tag { background: var(--abu-bg); color: #5c6b7e; padding: .15rem .55rem; border-radius: 20px; font-size: .72rem; margin-right: .3rem; display: inline-block; margin-bottom: .3rem; }

.filter-bar-public { display: flex; gap: .6rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.filter-bar-public select { padding: .5rem .7rem; border: 1px solid var(--abu-border); border-radius: 6px; font-size: .85rem; }
.filter-note { font-size: .85rem; color: #5c6b7e; margin-bottom: 1rem; }

/* Badges */
.badge { display: inline-block; padding: .2rem .65rem; border-radius: 20px; font-size: .72rem; font-weight: 700; margin-bottom: .4rem; }
.badge-blue { background: #eaf1fb; color: var(--biru); }
.badge-green { background: #e8f6ef; color: var(--hijau); }
.badge-orange { background: #fff1e2; color: var(--orange); }
.badge-navy { background: #e6ecf3; color: var(--navy); }
.badge-outline { background: transparent; border: 1px solid var(--abu-border); color: #5c6b7e; }

/* Card grid */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.card { background: #fff; border: 1px solid var(--abu-border); border-radius: 10px; padding: 1.25rem; text-decoration: none; color: inherit; display: block; }
.card h4 { margin: .3rem 0 .3rem; color: var(--navy); }
.card-meta { color: #5c6b7e; font-size: .82rem; margin: 0 0 .5rem; }
.card-accent-orange { border-top: 3px solid var(--orange); }

.card-article { padding: 0; overflow: hidden; }
.card-article img { width: 100%; height: 140px; object-fit: cover; }
.card-article-body { padding: 1rem; }

/* Public tables */
.public-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.public-table th { text-align: left; padding: .65rem .5rem; border-bottom: 2px solid var(--abu-border); color: #5c6b7e; font-size: .78rem; text-transform: uppercase; }
.public-table td { padding: .7rem .5rem; border-bottom: 1px solid var(--abu-border); }

/* Education timeline */
.edu-timeline { display: flex; flex-direction: column; gap: 1rem; }
.edu-item { border-left: 3px solid var(--biru); padding: .25rem 0 .25rem 1.25rem; }
.edu-item h4 { margin: .3rem 0 .2rem; }
.edu-years { font-size: .85rem; color: #5c6b7e; }

/* Two-column (artikel + sidebar) */
.two-col-layout { display: grid; grid-template-columns: 1fr 300px; gap: 2rem; align-items: start; }
@media (max-width: 860px) { .two-col-layout { grid-template-columns: 1fr; } }

/* Sidebar */
.site-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-widget { background: #fff; border: 1px solid var(--abu-border); border-radius: 10px; padding: 1.1rem; }
.sidebar-widget h3 { margin: 0 0 .75rem; font-size: 1rem; color: var(--navy); }
.sidebar-category-list { list-style: none; margin: 0; padding: 0; }
.sidebar-category-list li { padding: .4rem 0; border-bottom: 1px solid var(--abu-border); }
.sidebar-category-list li:last-child { border-bottom: none; }
.sidebar-category-list a { text-decoration: none; color: var(--teks); font-size: .88rem; }
.sidebar-category-list .count { color: #8996a5; font-size: .8rem; }
.sidebar-widget-image img { border-radius: 8px; }
.empty-note { color: #8996a5; font-size: .85rem; }

/* Article detail */
.article-cover { width: 100%; max-height: 380px; object-fit: cover; border-radius: 10px; margin: 1rem 0; }
.article-content { font-size: 1rem; line-height: 1.8; }
.article-content p { margin-bottom: 1.1rem; }

/* ================= FOOTER ================= */
.site-footer { background: var(--navy); color: #cdd8e6; margin-top: 3rem; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 2.5rem 1.25rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-col h4 { color: #fff; margin: 0 0 .75rem; font-size: .95rem; }
.footer-col p { font-size: .85rem; margin: 0 0 .5rem; color: #b9c8dc; }
.footer-link, .footer-social-link { display: block; color: #b9c8dc; text-decoration: none; font-size: .85rem; margin-bottom: .5rem; }
.footer-link:hover, .footer-social-link:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); text-align: center; padding: 1rem; font-size: .78rem; color: #8ea0ba; }

@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr; }
}
