:root{
  --primary:#0D3B66;
  --accent:#FFD166;
  --bg:#FAFAFA;
  --text:#111827;
  --wa:#25D366;
  --muted:#64748b;
  --radius:16px;
  --shadow:0 8px 30px rgba(0,0,0,.06);
  --font:'Inter','Poppins',system-ui,Arial,sans-serif;
}
html, body{
  width:100%;
  overflow-x:hidden;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family:var(--font);
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block;border-radius:12px}

.container{
  width:min(1100px,92%);
  margin:auto;
  padding-left:8px;
  padding-right:8px;
}

.section{padding:48px 0}
.section.alt{background:#fff}
.section-title{font-size:1.6rem;margin:0 0 18px}

.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
@media(max-width:900px){
  .grid-3,.grid-4{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:560px){
  .grid-2,.grid-3,.grid-4{grid-template-columns:1fr}
}

.card{
  background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);
  padding:18px;
}
.card-body{padding-top:10px}
.muted{color:var(--muted)}
.center{text-align:center}
.mt-20{margin-top:20px}
.w-100{width:100%}
.flex-between{display:flex;gap:10px;align-items:center;justify-content:space-between}

/* NAVBAR */
.nav{
  position:sticky;top:0;z-index:50;
  background:#fff;border-bottom:1px solid #eee;
}
.nav-wrap{display:flex;align-items:center;justify-content:space-between;padding:12px 0;gap:12px}
.brand{font-weight:800;color:var(--primary);font-size:1.2rem}
.nav-links{display:flex;gap:16px;flex-wrap:wrap}
.nav-links a{color:#0f172a;font-weight:600;opacity:.8}
.nav-links a:hover{opacity:1}

/* BUTTONS */
.btn-wa,.btn-primary,.btn-outline{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:12px 16px;border-radius:12px;font-weight:700;border:2px solid transparent;
  transition:.2s;
}
.btn-wa{background:var(--wa);color:#fff}
.btn-wa:hover{filter:brightness(.95)}
.btn-wa.big{padding:14px 20px;font-size:1.05rem}

.btn-primary{background:var(--primary);color:#fff}
.btn-primary:hover{filter:brightness(.95)}
.btn-outline{border-color:var(--primary);color:var(--primary);background:#fff}
.btn-outline:hover{background:#f0f6ff}

/* HERO */
.hero{background:#fff;padding:56px 0}
.hero-grid{display:grid;grid-template-columns:1.3fr .7fr;gap:22px;align-items:center}
.hero h1{
  font-size: clamp(1.6rem, 4.6vw, 2.2rem);
  line-height:1.25;
  margin:0 0 10px;
  word-break: break-word;
}

.lead{font-size:1.05rem;color:#334155}
.hero-cta{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.hero-cta a{ width:100%; }

@media (min-width:560px){
  .hero-cta a{ width:auto; }
}

.hero-card ul{margin:0 0 12px}
.thumb-placeholder{height:160px;background:#f1f5f9;border-radius:12px}

/* CTA BIG */
.cta-big{
  background:linear-gradient(90deg,var(--primary),#0b2f52);
  color:#fff;padding:60px 0;text-align:center;
}
.cta-wrap p{opacity:.9}

/* CONTENT */
.content h1{font-size:2rem;margin:0 0 8px}
.content h2{margin-top:20px}
/* cover image di detail artikel */
.cover{
  display:block;
  width:100%;        /* tetap responsif */
  max-width:520px;   /* batas lebar biar nggak kegedean */
  height:auto;
  margin:12px auto 18px; /* center + jarak bawah */
  border-radius:12px;    /* biar konsisten sama img global */
}
.table{width:100%;border-collapse:collapse;background:#fff;border-radius:12px;overflow:hidden}
.table th,.table td{padding:12px;border-bottom:1px solid #eee;text-align:left}
.table th{background:#f8fafc}

/* FOOTER */
.footer{background:#0b1520;color:#dbeafe;padding:36px 0}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:18px}
.footer a{color:#dbeafe;opacity:.9}
.footer a:hover{opacity:1}
.copy{border-top:1px solid rgba(255,255,255,.08);margin-top:20px;padding-top:12px;font-size:.9rem;opacity:.8}
@media(max-width:700px){
  .hero-grid,.footer-grid{grid-template-columns:1fr}
}

/* ADMIN */
.admin-bg{background:#0b1520}
.login-box{
  width:min(360px,92%);margin:70px auto;background:#fff;padding:22px;border-radius:16px;box-shadow:var(--shadow)
}
.alert{background:#fff3cd;padding:10px;border-radius:10px;margin:8px 0}
.alert.success{background:#dcfce7}
.input{
  width:100%;padding:10px;border:1px solid #e2e8f0;border-radius:10px;margin-bottom:10px
}

.admin .admin-wrap{display:flex;min-height:100vh}
.admin-sidebar{
  width:230px;background:#0b1520;color:#e2e8f0;padding:18px;display:flex;flex-direction:column;gap:8px
}
.admin-sidebar a{padding:8px;border-radius:8px}
.admin-sidebar a:hover{background:#111827}
.admin-sidebar .danger{color:#fecaca}
.admin-brand{font-weight:800;margin-bottom:10px}
.admin-content{flex:1;padding:20px}
.form{max-width:760px}
.logo{
  height:48px;
  width:auto;
  display:block;
}
.brand-flex{
  display:flex;
  align-items:center;
  gap:10px;
}

.brand-text{
  font-weight:800;
  color:var(--primary);
  font-size:1.15rem;
  letter-spacing:.2px;
}

.logo{
  height:34px;
  width:auto;
  display:block;
}
@media(max-width:560px){
  .brand-text{font-size:1.02rem;}
  .logo{height:30px;}
}
/* ===== NAVBAR RESPONSIVE SAHABAT TUKANG (FINAL) ===== */
.nav{
  position:sticky; top:0; z-index:50;
  background:#fff; border-bottom:1px solid #e5e7eb;
}
.nav-wrap{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; padding:12px 0;
}

.brand-flex{
  display:flex; align-items:center; gap:10px;
  text-decoration:none; color:inherit;
}
.logo{ height:34px; width:auto; display:block; }
.brand-text{
  font-weight:800; color:var(--primary);
  font-size:18px; white-space:nowrap;
}

/* menu desktop */
.nav-links{ display:flex; align-items:center; gap:18px; }
.nav-links a{
  text-decoration:none; color:#0f172a;
  font-weight:600; font-size:15px; opacity:.9;
}
.nav-links a:hover{ opacity:1; }

/* tombol hamburger default hidden */
.nav-toggle{
  display:none; background:transparent; border:0; padding:6px; cursor:pointer;
}
.nav-toggle span{
  display:block; width:26px; height:3px; margin:5px 0;
  background:#0f172a; border-radius:2px; transition:.2s ease;
}

/* helper show/hide WA */
.desktop-only{ display:inline-flex; }
.mobile-only{ display:none; }

/* ===== MOBILE ===== */
@media (max-width:768px){
  .nav-toggle{ display:block; }

  .desktop-only{ display:none; }
  .mobile-only{ display:flex; width:100%; justify-content:center; margin-top:6px; }

  .nav-links{
    position:fixed; left:0; right:0; top:64px;
    background:#fff; border-top:1px solid #e5e7eb;
    display:flex; flex-direction:column; align-items:flex-start; gap:0;
    padding:10px 18px;
    transform:translateY(-120%); opacity:0; pointer-events:none;
    transition:.25s ease;
  }
  .nav-links a{
    width:100%; padding:12px 4px;
    border-bottom:1px dashed #f1f5f9; font-size:16px;
  }
  .nav-links.open{
    transform:translateY(0); opacity:1; pointer-events:auto;
  }

  .nav-toggle.open span:nth-child(1){ transform:translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2){ opacity:0; }
  .nav-toggle.open span:nth-child(3){ transform:translateY(-8px) rotate(-45deg); }
}

@media(max-width:560px){
  .brand-text{font-size:1.02rem;}
  .logo{height:30px;}
}
.layanan-thumb-wrap{
  width:100%;
  aspect-ratio:16/9;
  overflow:hidden;
  border-radius:12px;
  margin-bottom:10px;
  background:#f1f5f9;
}
.layanan-thumb{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.artikel-card{
  display:block;
  padding:14px;
  border-radius:16px;
  background:#fff;
  box-shadow: var(--shadow);
  transition:.2s ease;
}
.artikel-card:hover{ transform: translateY(-3px); }

.artikel-thumb-wrap{
  width:100%;
  aspect-ratio:16/9;
  overflow:hidden;
  border-radius:12px;
  margin-bottom:10px;
  background:#f1f5f9;
}
.artikel-thumb{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
