/* ===============================
   ROOT
=================================*/
:root{
  --primary:#388E3C;
  --accent:#F4F0A8;
  --success:#388E3C;
  --dark:#1F2937;
  --light:#ffffff;
  --card:#FFF8EE;
  --text:#1F2937;
}

/* ===============================
   RESET
=================================*/
*{box-sizing:border-box}
html,body{
  margin:0;
  padding:0;
  width:100%;
  overflow-x:hidden;
  font-family:system-ui,-apple-system,sans-serif;
}

/* ===============================
   CONTAINER SYSTEM (BARU & STABIL)
=================================*/
.container,
.header-inner,
.footer-wrap{
  max-width:1200px;
  margin:0 auto;
  padding:0 24px;
}

/* ===============================
   HEADER
=================================*/
.site-header{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  z-index:9999;
  background:transparent;
  transition:all .3s ease;
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
}

.brand{
  display:flex;
  gap:10px;
  align-items:center;
  text-decoration:none;
  color:#fff;
}

.brand img{
  width:38px;
  height:44px;
  object-fit:cover;
}

.brand-text strong{display:block;font-size:16px}
.brand-text span{font-size:12px;opacity:.85}

.top-nav a{
  margin:0 12px;
  text-decoration:none;
  font-weight:600;
  color:#fff;
  transition:.3s;
}

.top-nav a:hover{opacity:.8}

.site-header.scrolled{
  background:linear-gradient(180deg,#F4F0A8,#F4F0A8);
  box-shadow:0 10px 30px rgba(0,0,0,.15);
}

.site-header.scrolled .brand,
.site-header.scrolled .top-nav a{
  color:#111;
}

/* ===============================
   HERO FULLSCREEN (BERSIH)
=================================*/
.hero{
  position:relative;
  width:100%;
  height:100vh;
  overflow:hidden;
}

.hero .slider,
.hero .slide{
  position:absolute;
  inset:0;
}

.hero img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.hero .slide::after{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.45);
}

.hero h1{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:#fff;
  z-index:2;
  font-size:clamp(32px,5vw,56px);
  font-weight:900;
  text-shadow:0 6px 24px rgba(0,0,0,.7);
}

.hero h1 span{
  font-size:clamp(18px,2vw,24px);
  font-weight:600;
}

/* ===============================
   SECTION
=================================*/
.section{
  padding:80px 0;
}

.section h2{
  margin:0 0 16px;
  font-size:28px;
}

.section h2::after{
  content:'';
  display:block;
  width:72px;
  height:4px;
  margin-top:8px;
  border-radius:6px;
  background:linear-gradient(90deg,#388E3C,#14532D);
}

/* ===============================
   GRID SYSTEM
=================================*/
.grid-3{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
}

@media(max-width:980px){
  .grid-3{grid-template-columns:1fr}
}

/* ===============================
   CARDS
=================================*/
.cards{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
}

@media(max-width:980px){
  .cards{grid-template-columns:1fr}
}

.card{
  background:var(--accent);
  border-radius:16px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  border:1px solid #e5e7eb;
}

.card img{
  width:100%;
  height:200px;
  object-fit:cover;
}

.berita-body{
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:12px;
  flex:1;
}

.berita-title{
  margin:0;
  line-height:1.3;
  font-weight:700;
  display:-webkit-box;
  -webkit-line-clamp:4;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.berita-excerpt{
  line-height:1.6;
  display:-webkit-box;
  -webkit-line-clamp:4;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.berita-btn{margin-top:auto}

/* ===============================
   FOOTER (PROFESIONAL)
=================================*/
/* ===== FOOTER BARU ===== */
.site-footer{
  margin-top:40px;
  padding:38px 0 26px;
  background: linear-gradient(180deg, #F4F0A8, #fff);
  border-top: 1px solid rgba(0,0,0,.06);
}

.footer-wrap{
  display:grid;
  grid-template-columns: 1.2fr 0.9fr 1.2fr;
  gap:24px;
  align-items:start;
}

.footer-col{
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 18px;
  padding:18px;
  box-shadow: 0 10px 28px rgba(2,6,23,.06);
}

.footer-brand{
  display:flex;
  gap:12px;
  align-items:center;
  text-decoration:none;
  color:inherit;
  margin-bottom:10px;
}

.footer-logo{
  width:44px;
  height:44px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
}

.footer-logo i{ font-size:22px; color: var(--success); }

.footer-brand strong{ display:block; font-size:18px; }
.footer-brand span{ display:block; font-size:12px; opacity:.75; margin-top:2px; }

.footer-desc{
  margin:8px 0 14px;
  opacity:.85;
  line-height:1.6;
}

.footer-title{
  margin:0 0 12px;
  font-size:16px;
  font-weight:800;
  color:#0b1220;
}

.footer-title::after{
  content:'';
  display:block;
  width:60px;
  height:4px;
  border-radius:999px;
  margin-top:8px;
  background: linear-gradient(90deg, var(--primary), var(--success));
}

.footer-contact{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.footer-contact-item{
  display:flex;
  gap:10px;
  align-items:center;
  padding:10px 12px;
  border-radius:14px;
  text-decoration:none;
  color:inherit;
  background:#fff;
  border:1px solid rgba(0,0,0,.06);
}

.footer-contact-item i{ color:#334155; font-size:18px; }
.footer-contact-item:hover{ box-shadow:0 10px 22px rgba(2,6,23,.08); transform:translateY(-1px); }

.footer-wa{
  margin-top:6px;
  display:inline-flex;
  gap:8px;
  align-items:center;
  justify-content:center;
  padding:12px 14px;
  border-radius:14px;
  text-decoration:none;
  color:#fff;
  background: linear-gradient(90deg, #16a34a, #14532d);
  border:0;
  font-weight:700;
}
.footer-wa i{ font-size:18px; }

.footer-links{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.footer-links a{
  display:flex;
  align-items:center;
  gap:8px;
  text-decoration:none;
  color:#0b1220;
  padding:10px 12px;
  border-radius:14px;
  background:#fff;
  border:1px solid rgba(0,0,0,.06);
  font-weight:600;
}
.footer-links a i{ opacity:.7; }
.footer-links a:hover{
  box-shadow:0 10px 22px rgba(2,6,23,.08);
  transform:translateY(-1px);
}

.map-footer{
  height:180px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.08);
  overflow:hidden;
  background:#fff;
}

.footer-bottom{
  margin-top:12px;
  opacity:.8;
}

/* RESPONSIVE */
@media (max-width:980px){
  .footer-wrap{ grid-template-columns: 1fr; }
  .map-footer{ height:200px; }
}

.sambutan-wrap{
  display:flex;
  gap:auto;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
}

/* FOTO AREA */
.sambutan-foto{
  flex:0 0 420px;
  display:flex;
  justify-content:center;
  align-items:center;
}

.foto-ring{
  width:420px;
  height:420px;
  border-radius:50%;
  background:radial-gradient(circle at center);
  display:flex;
  align-items:center;
  justify-content:center;
}

.foto-ring img{
  width:330px;
  height:330px;
  border-radius:50%;
  object-fit:cover;
  box-shadow:0 10px 25px rgba(0,0,0,0.15);
}

/* TEKS */
.sambutan-text{
  flex:1;
  min-width:320px;
  max-width:760px;
}

.judul-sambutan{
  font-size:44px;
  font-weight:900;
  color:#388E3C;
  margin:0 0 10px;
  line-height:1.05;
}

.nama-wrap{margin-bottom:14px}

.nama-kades{
  font-size:22px;
  font-weight:800;
  margin:0;
  color:#1F2937;
}

.jabatan{
  margin:2px 0 0;
  font-size:14px;
  font-weight:600;
  color:#4B5563;
}

/* SCROLL ISI */
.sambutan-scroll{
  max-height:210px;
  overflow-y:auto;
  padding-right:18px;
}

.sambutan-scroll p{
  margin:0 0 14px;
  line-height:1.8;
  font-size:15px;
  color:#1F2937;
}

.sambutan-scroll::-webkit-scrollbar{width:6px}
.sambutan-scroll::-webkit-scrollbar-track{background:transparent}
.sambutan-scroll::-webkit-scrollbar-thumb{
  background:#9CA3AF;
  border-radius:10px
}
.sambutan-scroll::-webkit-scrollbar-thumb:hover{background:#6B7280}

/* RESPONSIVE */
@media(max-width:900px){
  .sambutan-wrap{gap:28px}
  .sambutan-foto{flex:1 1 100%}
  .foto-ring{width:340px;height:340px}
  .foto-ring img{width:260px;height:260px}
  .judul-sambutan{font-size:34px}
  .sambutan-scroll{max-height:260px}
}

/* ===============================
   HIDE HEADER DI MOBILE (ANDROID)
=================================*/
@media (max-width:768px){

  .site-header{
    display:none !important;
  }

  /* supaya hero tetap full tanpa tertutup header */
  .hero{
    margin-top:0;
  }

}

