:root{
  --navy:#0b1f3a;
  --accent:#2d7dd2;
  --bg:#f6f8fb;
  --text:#1c2733;
  --muted:#5b6b7c;
  --card:#ffffff;
  --radius:14px;
}
body.template-ev-green{
  --navy:#0e3b2e;
  --accent:#22c55e;
  --bg:#f3f9f4;
  --text:#12261d;
  --muted:#4a6357;
  --card:#ffffff;
}
*{box-sizing:border-box}
body{margin:0;font-family:'Segoe UI',Roboto,Arial,sans-serif;background:var(--bg);color:var(--text);line-height:1.6}
a{color:var(--accent);text-decoration:none}
img{max-width:100%}
.container{max-width:1140px;margin:0 auto;padding:0 20px}

/* Header */
.site-header{background:var(--navy);color:#fff;position:sticky;top:0;z-index:50}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;position:relative}
.brand{display:flex;align-items:center;gap:12px;color:#fff}
.brand img{height:42px;width:auto;border-radius:6px}
.brand-text strong{display:block;font-size:1.05rem}
.brand-text span{display:block;font-size:.78rem;color:#cfe0ff;opacity:.85}
.nav-links{display:flex;gap:22px}
.nav-links a{color:#e8eefc;font-weight:500}
.nav-links a:hover{color:#fff;text-decoration:underline}

/* Hamburger (mobile) */
.nav-toggle{display:none;flex-direction:column;justify-content:center;gap:5px;background:none;border:none;cursor:pointer;padding:8px;width:40px;height:40px}
.nav-toggle span{display:block;width:22px;height:2px;background:#fff;border-radius:2px;transition:.2s}
.nav-toggle.open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.nav-toggle.open span:nth-child(2){opacity:0}
.nav-toggle.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

@media(max-width:800px){
  .nav-toggle{display:flex}
  .nav-links{
    position:absolute;top:100%;left:0;right:0;
    background:var(--navy);
    flex-direction:column;gap:0;
    max-height:0;overflow:hidden;
    transition:max-height .25s ease;
  }
  .nav-links.open{max-height:320px}
  .nav-links a{padding:14px 20px;border-top:1px solid rgba(255,255,255,.08)}
  .brand-text span{display:none}
}

/* Hero */
.hero{background:linear-gradient(135deg,var(--navy),var(--accent));color:#fff;padding:70px 0}
.hero h1{font-size:2.2rem;margin:0 0 12px}
.hero p{max-width:640px;color:#eaf1ff;font-size:1.05rem}
.hero .btn{display:inline-block;margin-top:18px;background:#fff;color:var(--navy);padding:12px 26px;border-radius:999px;font-weight:600}
@media(max-width:600px){.hero{padding:44px 0}.hero h1{font-size:1.55rem}}

/* Banner image (opsional, tampil di atas hero jika diisi admin) */
.site-banner{width:100%;max-height:420px;object-fit:cover;display:block}

/* Sections */
section{padding:56px 0}
@media(max-width:600px){section{padding:34px 0}}
h2.section-title{font-size:1.7rem;margin-bottom:8px;color:var(--navy)}
p.section-sub{color:var(--muted);margin-bottom:32px}

.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:22px}
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
@media(max-width:800px){.grid-3,.grid-2,.grid-4{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.grid-3,.grid-2,.grid-4{grid-template-columns:1fr}}

.card{background:var(--card);border-radius:var(--radius);padding:26px;box-shadow:0 6px 18px rgba(15,30,60,.06)}
.card h3{margin-top:0;color:var(--navy)}
.card .feature-img{width:100%;height:140px;object-fit:cover;border-radius:10px;margin-bottom:16px;background:#e8edf3}

.article-card{background:var(--card);border-radius:var(--radius);overflow:hidden;box-shadow:0 6px 18px rgba(15,30,60,.06);display:flex;flex-direction:column}
.article-card img{width:100%;height:170px;object-fit:cover;background:#dfe7f0}
.article-card .body{padding:20px;flex:1;display:flex;flex-direction:column}
.article-card .cat{font-size:.72rem;text-transform:uppercase;letter-spacing:.04em;color:var(--accent);font-weight:700}
.article-card h3{font-size:1.1rem;margin:8px 0}
.article-card .excerpt{color:var(--muted);font-size:.92rem;flex:1}
.article-card .meta{font-size:.8rem;color:var(--muted);margin-top:12px}

.callout{background:var(--navy);color:#fff;border-radius:var(--radius);padding:34px}
.callout h3{margin-top:0}
.callout ul{padding-left:20px}
.callout li{margin-bottom:10px}

.article-detail{background:var(--card);border-radius:var(--radius);padding:34px;box-shadow:0 6px 18px rgba(15,30,60,.06)}
.article-detail .cat{color:var(--accent);font-weight:700;font-size:.8rem;text-transform:uppercase}
.article-detail h1{color:var(--navy);margin:10px 0}
.article-detail .meta{color:var(--muted);margin-bottom:20px;font-size:.9rem}

.contact-box{display:grid;grid-template-columns:1fr 1fr;gap:26px}
@media(max-width:800px){.contact-box{grid-template-columns:1fr}}

/* Galeri */
.gallery-item{border-radius:var(--radius);overflow:hidden;background:var(--card);box-shadow:0 6px 18px rgba(15,30,60,.06)}
.gallery-item img{width:100%;height:200px;object-fit:cover;display:block}
.gallery-item .cap{padding:12px 14px}
.gallery-item .cap strong{display:block;font-size:.95rem;color:var(--navy)}
.gallery-item .cap span{font-size:.82rem;color:var(--muted)}

/* Footer */
.site-footer{background:var(--navy);color:#cfe0ff;padding:36px 0 18px;margin-top:40px}
.footer-inner{display:flex;justify-content:space-between;flex-wrap:wrap;gap:30px;padding-bottom:18px}
.footer-col strong{display:block;color:#fff;margin-bottom:10px}
.footer-contact-item{display:flex;align-items:flex-start;gap:8px;margin:0 0 8px;font-size:.9rem;color:#cfe0ff}
.footer-contact-item .ic{width:16px;height:16px;flex-shrink:0;margin-top:3px;color:#9fb4d8}
.site-footer a{color:#fff}
.site-footer small{color:#9fb4d8}
.social-icons{display:flex;gap:10px}
.social-icons a{width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.1);display:flex;align-items:center;justify-content:center;color:#fff}
.social-icons a:hover{background:rgba(255,255,255,.22)}
.social-icons svg{width:18px;height:18px}

.badge{display:inline-block;background:rgba(255,255,255,.15);padding:4px 12px;border-radius:999px;font-size:.75rem;margin-bottom:14px}

/* WhatsApp floating widget */
.wa-widget{position:fixed;right:20px;bottom:20px;z-index:100;display:flex;flex-direction:column;align-items:flex-end;gap:14px}
.wa-bubble-btn{width:58px;height:58px;border-radius:50%;background:#25D366;border:none;box-shadow:0 6px 18px rgba(0,0,0,.25);cursor:pointer;display:flex;align-items:center;justify-content:center;color:#fff;animation:wa-pulse 2.4s infinite}
.wa-bubble-btn svg{width:30px;height:30px}
@keyframes wa-pulse{
  0%{box-shadow:0 6px 18px rgba(0,0,0,.25),0 0 0 0 rgba(37,211,102,.5)}
  70%{box-shadow:0 6px 18px rgba(0,0,0,.25),0 0 0 14px rgba(37,211,102,0)}
  100%{box-shadow:0 6px 18px rgba(0,0,0,.25),0 0 0 0 rgba(37,211,102,0)}
}
.wa-popup{
  width:300px;max-width:calc(100vw - 40px);
  background:#fff;border-radius:16px;overflow:hidden;
  box-shadow:0 16px 40px rgba(0,0,0,.2);
  display:none;flex-direction:column;
}
.wa-widget.open .wa-popup{display:flex}
.wa-widget.open .wa-bubble-btn{display:none}
.wa-popup-header{background:#075E54;color:#fff;padding:16px;display:flex;align-items:center;gap:10px;position:relative}
.wa-popup-header img{width:38px;height:38px;border-radius:50%;object-fit:cover;background:#fff}
.wa-popup-avatar{width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.15);display:flex;align-items:center;justify-content:center}
.wa-popup-avatar svg{width:22px;height:22px;color:#fff}
.wa-popup-header strong{display:block;font-size:.92rem}
.wa-popup-header span{display:block;font-size:.72rem;color:#cfe9e2}
.wa-popup-close{position:absolute;top:10px;right:12px;background:none;border:none;color:#fff;font-size:1.4rem;line-height:1;cursor:pointer;opacity:.8}
.wa-popup-close:hover{opacity:1}
.wa-popup-body{background:#ECE5DD;padding:16px}
.wa-bubble{background:#fff;border-radius:10px;padding:12px 14px;font-size:.86rem;color:#1c2733;box-shadow:0 1px 2px rgba(0,0,0,.08);line-height:1.5}
.wa-popup-btn{display:flex;align-items:center;justify-content:center;gap:8px;background:#25D366;color:#fff;font-weight:600;padding:13px;font-size:.9rem}
.wa-popup-btn svg{width:18px;height:18px}
.wa-popup-btn:hover{background:#1fb958}
@media(max-width:480px){.wa-widget{right:14px;bottom:14px}}

/* Slideshow generik (artikel & galeri) */
.slideshow{position:relative;overflow:hidden;background:#dfe7f0}
.slideshow-track{display:flex;height:100%;transition:transform .35s ease}
.slideshow-slide{flex:0 0 100%;width:100%;height:100%}
.slideshow-slide img{width:100%;height:100%;object-fit:cover;display:block}
.slideshow-arrow{position:absolute;top:50%;transform:translateY(-50%);background:rgba(0,0,0,.45);color:#fff;border:none;width:32px;height:32px;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:1rem;z-index:2;line-height:1}
.slideshow-arrow:hover{background:rgba(0,0,0,.65)}
.slideshow-arrow.prev{left:8px}
.slideshow-arrow.next{right:8px}
.slideshow-dots{position:absolute;bottom:10px;left:0;right:0;display:flex;justify-content:center;gap:6px;z-index:2}
.slideshow-dot{width:7px;height:7px;border-radius:50%;background:rgba(255,255,255,.6);cursor:pointer;border:none;padding:0}
.slideshow-dot.active{background:#fff}
.slideshow-count{position:absolute;top:10px;right:10px;background:rgba(0,0,0,.5);color:#fff;font-size:.72rem;padding:2px 8px;border-radius:999px;z-index:2}

.article-detail .slideshow{height:340px;border-radius:12px;margin-bottom:24px}
@media(max-width:600px){.article-detail .slideshow{height:220px}}

.gallery-item .slideshow{height:200px}
