:root {
  --primary: #1e8636;
  --primary-dark: #3c823c;
  --accent: #10632a;
  --text: #2c3e50;
  --text-light: #5a6a7a;
  --bg: #ffffff;
  --bg-light: #f8faf9;
  --border: #e2e8f0;
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --radius: 8px;
  --transition: all 0.3s ease;
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }

/* Skip Link */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--primary); color: #fff;
  padding: 0.5rem 1rem; z-index: 9999;
}
.skip-link:focus { left: 1rem; }

/* Header */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  transition: var(--transition);
}
header.scrolled { box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.nav-container { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; }
.logo { display: flex; align-items: center; gap: 0.6rem; font-size: 1.25rem; font-weight: 700; color: var(--primary-dark); }
.logo-text strong { color: var(--accent); }

.menu-toggle {
  display: none; background: none; border: none; cursor: pointer; padding: 0.5rem;
}
.bar { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: var(--transition); }
.menu-toggle.active .bar:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.active .bar:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

.nav-menu ul { display: flex; gap: 1.5rem; }
.nav-menu a { font-weight: 500; padding: 0.5rem 0; position: relative; }
.nav-menu a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--accent); transition: var(--transition);
}
.nav-menu a:hover::after { width: 100%; } 

/* Hero */
.hero {
  position: relative; background: linear-gradient(135deg, #1a5f2a 2%);
  color: #fff; text-align: center; padding: 5rem 1rem;
}
.hero-overlay {
  position: absolute; inset: 0; background: url('aset/image/kantor\ lurah.jpeg') center/cover;
  opacity: 0,2.2; mix-blend-mode: multiply;
}
.hero-content { position: relative; max-width: 750px; margin: 0 auto; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 1rem; line-height: 1.2; }
.hero .highlight { color: #a3e6a1; }
.hero p { font-size: clamp(1rem, 2.5vw, 1.2rem); opacity: 0.9; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.6rem; border-radius: var(--radius); font-weight: 600;
  border: 2px solid transparent; cursor: pointer; transition: var(--transition);
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; border-color: #fff; color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.1); }

/* Sections */
.section { padding: 4rem 0; }
.bg-light { background: var(--bg-light); }
.section-title { font-size: clamp(1.5rem, 4vw, 2rem); text-align: center; margin-bottom: 0.5rem; color: var(--primary-dark); }
.section-desc { text-align: center; max-width: 650px; margin: 0 auto 2rem; color: var(--text-light); }

/* Grid & Cards */
.grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: #fff; padding: 1.5rem; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); }
.service-card h3 { margin-bottom: 0.5rem; color: var(--primary-dark); }
.link-arrow { color: var(--primary); font-weight: 600; display: inline-block; margin-top: 0.8rem; }
.link-arrow::after { content: ' →'; transition: transform 0.2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin: -2rem auto 3rem; position: relative; z-index: 2; }
.stat-card { background: #fff; padding: 1.5rem; border-radius: var(--radius); text-align: center; box-shadow: var(--shadow); border-top: 4px solid var(--accent); }
.stat-icon { font-size: 2rem; display: block; margin-bottom: 0.5rem; }
.stat-number { font-size: 2rem; font-weight: 700; color: var(--primary); display: block; }
.stat-label { font-size: 0.9rem; color: var(--text-light); }

/* Transparansi */
.transparansi-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.apbdes-highlight { background: var(--primary); color: #fff; padding: 2rem; border-radius: var(--radius); }
.apbdes-highlight h3 { margin-bottom: 1rem; }
.apbdes-list li { display: flex; justify-content: space-between; padding: 0.6rem 0; border-bottom: 1px solid rgba(255,255,255,0.2); }
.apbdes-notes { padding: 0 1rem; }
.apbdes-notes h4 { color: var(--primary-dark); margin-bottom: 0.5rem; }

/* News */
.news-card { position: relative; }
.badge { background: var(--accent); color: #fff; padding: 0.2rem 0.6rem; border-radius: 20px; font-size: 0.75rem; font-weight: 600; display: inline-block; margin-bottom: 0.5rem; }
.news-meta { color: var(--text-light); font-size: 0.85rem; margin: 0.5rem 0; }

/* Potensi */
.potensi-card { overflow: hidden; padding: 0; }
.potensi-card img { width: 100%; height: 220px; object-fit: cover; transition: transform 0.4s; }
.potensi-card:hover img { transform: scale(1.05); }
.potensi-card figcaption { padding: 1.2rem; }
.potensi-card h3 { margin-bottom: 0.3rem; }

/* Contact */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.contact-info h3 { margin-bottom: 1rem; }
.contact-list li { margin: 0.5rem 0; }
.contact-list a { color: var(--primary); font-weight: 500; }
.legal-note { margin-top: 1.5rem; font-size: 0.85rem; color: var(--text-light); background: #f0f7f2; padding: 0.8rem; border-radius: var(--radius); }

.contact-form .form-group { margin-bottom: 1rem; }
.contact-form label { display: block; margin-bottom: 0.4rem; font-weight: 500; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 0.8rem; border: 1px solid var(--border); border-radius: var(--radius);
  font-family: inherit; transition: var(--transition);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(77,168,106,0.2);
}
.section-header{
    text-align:center;
    margin-bottom:60px;
}

.section-subtitle{
    color:#2e8b57;
    font-weight:600;
    letter-spacing:2px;
    text-transform:uppercase;
}

.profile-card{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:40px;
    align-items:center;
    margin-bottom:70px;
}

.profile-image img{
    width:100%;
    border-radius:20px;
    box-shadow:0 10px 30px rgba(0,0,0,.12);
}

.profile-content h3{
    margin-bottom:20px;
    font-size:30px;
}

.profile-content p{
    line-height:1.9;
    margin-bottom:15px;
    color:#555;
}
#more{
    display:none;
}

#readMoreBtn{
    margin-top:20px;
}

.profile-content p{
    text-align:justify;
    line-height:1.9;
}

.visi-misi{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:30px;
    margin-bottom:70px;
}

.visi-card,
.misi-card{
    background:#fff;
    padding:35px;
    border-radius:18px;
    box-shadow:0 8px 25px rgba(0,0,0,.08);
    transition:.3s;
}

.visi-card:hover,
.misi-card:hover{
    transform:translateY(-8px);
}

.icon-box{
    width:70px;
    height:70px;
    background:#1a5f2a;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    font-size:30px;
    margin-bottom:20px;
}
/* ===== STRUKTUR SLIDER ===== */

.struktur-slider{
    position:relative;
    display:flex;
    align-items:center;
    margin-top:40px;
}

.slider-track{

    display:flex;
    gap:25px;

    overflow-x:auto;
    scroll-behavior:smooth;

    scrollbar-width:none;

    width:100%;
    padding:10px;

}

.slider-track::-webkit-scrollbar{
    display:none;
}

.slider-track .potensi-card{

    min-width:300px;
    flex:0 0 300px;

}

.slide-btn{

    width:50px;
    height:50px;

    border:none;
    border-radius:50%;

    background:#1e8636;
    color:white;

    font-size:22px;
    cursor:pointer;

    box-shadow:0 8px 18px rgba(0,0,0,.15);

    transition:.3s;

    z-index:5;

}

.slide-btn:hover{

    background:#166a2a;
    transform:scale(1.08);

}

.prev{
    margin-right:15px;
}

.next{
    margin-left:15px;
}

@media(max-width:768px){

.slide-btn{
display:none;
}

.slider-track .potensi-card{

min-width:260px;
flex:0 0 260px;

}

}
.potensi-grid{

display:grid;

grid-template-columns:repeat(auto-fit,minmax(280px,1fr));

gap:30px;

}

.potensi-item{

background:#fff;

border-radius:18px;

overflow:hidden;

box-shadow:0 8px 25px rgba(0,0,0,.08);

transition:.3s;

}
/* =========================
   PETA LOKASI
========================= */

.map-box{

    margin-top:30px;

    background:#fff;

    border-radius:18px;

    overflow:hidden;

    box-shadow:0 10px 25px rgba(0,0,0,.08);

}

.map-box h3{

    padding:18px 20px;

    color:#1e8636;

    font-size:20px;

    border-bottom:1px solid #eee;

}

.map-box iframe{

    width:100%;

    height:350px;

    border:none;

}

.potensi-item:hover{

transform:translateY(-10px);

}

.potensi-item img{

width:100%;

height:220px;

object-fit:cover;

}

.potensi-content{

padding:25px;

}

.potensi-content h3{

margin-bottom:15px;

color:#1e8636;

}

.potensi-content p{

color:#666;

line-height:1.7;

margin-bottom:18px;

}

.potensi-content a{

font-weight:bold;

color:#1e8636;

}
.gallery-grid{

display:grid;

grid-template-columns:repeat(auto-fit,minmax(260px,1fr));

gap:20px;

}

.gallery-item{

overflow:hidden;

border-radius:18px;

box-shadow:0 10px 25px rgba(0,0,0,.1);

cursor:pointer;

}

.gallery-item img{

width:100%;

height:260px;

object-fit:cover;

transition:.4s;

}

.gallery-item:hover img{

transform:scale(1.12);

}

.misi-card ul{
    margin-left:18px;
}

.misi-card li{
    margin-bottom:12px;
    line-height:1.8;
}

.struktur-section{
    margin-bottom:70px;
}

.struktur-img{
    width:100%;
    border-radius:15px;
    box-shadow:0 8px 25px rgba(0,0,0,.12);
}

.map-section iframe{
    width:100%;
    height:450px;
    border:none;
    border-radius:15px;
}

@media(max-width:768px){

.profile-card{
grid-template-columns:1fr;
}

.profile-content{
text-align:center;
}

}

/* Footer */
footer { background: var(--primary-dark); color: #cbd5e1; padding: 3rem 0 1.5rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-about h4, .footer-links h4, .footer-contact h4 { color: #fff; margin-bottom: 1rem; }
.footer-links ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { color: #cbd5e1; }
.footer-links a:hover { color: #fff; }
.footer-bottom { text-align: center; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.85rem; }

/* Back to Top */
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem; background: var(--accent); color: #fff;
  width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden;
  transition: var(--transition); z-index: 99;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* Animations */
.animate-on-scroll { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    padding: 1rem; box-shadow: var(--shadow); display: none;
  }
  .nav-menu.active { display: block; }
  .nav-menu ul { flex-direction: column; gap: 0.8rem; }
  .transparansi-wrapper, .contact-wrapper { grid-template-columns: 1fr; }
  .hero { padding: 4rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}