/* 🎨 Dark Royal Purple Full Theme — Glossy Gold Edition */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --purple-dark: #2e1a47; /* A1 Selected */
  --purple: #5a2ea6;
  --purple-light: #8c63d3;
  --gold: #f4c542;
  --gold-gloss: linear-gradient(90deg, #e9b949, #f5d76e, #e4b440);
  --text-light: #f5f5f7;
  --text-muted: #c9c4d6;
  --card-bg: rgba(255,255,255,0.08);
  --radius: 14px;
}

/* GLOBAL */
* { box-sizing: border-box }
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  line-height: 1.6;
  background: var(--purple-dark);
  color: var(--text-light);
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  letter-spacing: .3px;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}
.section { margin: 50px 0; }

/* HEADER — SLIM REVISION */
.site-header {
  text-align: center;
  padding: 6px 0 2px;
  border-bottom: 2px solid var(--gold);
  background: rgba(30, 10, 50, 0.7);
  backdrop-filter: blur(10px);
  position: relative; /* remove sticky */
  top: auto;
  z-index: 99;
}

.site-logo {
  width: 70px; /* slimmer */
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.45));
}

.site-name h1 {
  margin: 0;
  font-size: 36px; /* slightly smaller */
}

.site-name .tagline {
  font-size: 30px; /* B selected */
  color: var(--cream);
  margin-top: -2px;
}

/* Navigation — reduced space */
.site-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 4px 0;
  margin: 2px 0 0;
}


/* NAVIGATION */
.site-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 26px;
  padding: 10px;
  margin: 8px 0 0;
}
.site-nav a {
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--text-light);
  padding: 8px 14px;
  border-radius: 8px;
  transition: .25s;
}
.site-nav a:hover,
.site-nav a.active {
  background: var(--gold-gloss);
  color: #2e1a47;
}

/* HERO */
.hero {
  background: radial-gradient(circle at top, #5f3a97, #2e1a47 65%);
  border-radius: 20px;
  padding: 90px 24px;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
  border: 1px solid rgba(244,197,66,0.25);
}
.hero h2 {
  color: var(--gold);
  font-size: 2.6rem;
}
.hero p { max-width: 650px; margin: 10px auto; }

/* CARD PREMIUM */
.card, .kades-card {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 26px;
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  transition: .25s;
}
.card:hover, .kades-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}
.photo-kades {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 3px solid var(--gold);
}

/* NEWS */
.news {
  background: rgba(255,255,255,0.08);
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.news:hover { border-color: var(--gold); }

/* STAT / SOTK / GALLERY */

.stat-card, .sotk-item, .gallery-grid img {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  transition: .25s;

}
.gallery-grid img:hover { transform: scale(1.05); border-color: var(--gold); }

/* BUTTONS */
.btn-primary, .btn-ghost {
  text-decoration: none;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 8px;
  transition: .25s;
}
.btn-primary {
  background: var(--gold-gloss);
  color: #2e1a47;
  border: none;
}
.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px #f4c542c5;
}
.btn-ghost {
  border: 2px solid var(--gold);
  color: var(--gold);
}
.btn-ghost:hover {
  background: var(--gold);
  color: #2e1a47;
}

/* FOOTER */
.site-footer {
  text-align: center;
  margin-top: 60px;
  padding: 30px 0;
  background: #240d38;
  border-top: 2px solid var(--gold);
  box-shadow: 0 -6px 20px rgba(0,0,0,0.45);
}
.site-footer p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* RESPONSIVE */
@media (max-width:880px){
  .site-nav ul { flex-wrap: wrap; gap: 12px; }
  .hero h2 { font-size: 2rem; }
}
@media (max-width:520px){
  .site-logo { width: 70px; }
  .hero { padding: 60px 18px; }
  .container { padding: 14px; }
}
/* === Bingkai Foto Bulat Warna Emas === */
.sotk-item img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #d4af37 !important; /* Gold */
    padding: 4px;
    background-color: #ffffff;
    box-shadow: 0 0 12px rgba(212,175,55,0.4);
}

/* === Warna Teks Menjadi Ungu Emas === */
.sotk-item h4,
.sotk-item p {
    color: #CBB7FF !important; /* Ungu lebih cerah */
    font-weight: 600;
}

/* === Agar Fade-in Lebih Smooth === */
.sotk-item.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Jabatan */
.sotk-item h4 {
    color: #d4af37 !important; /* Gold */
    font-size: 16px;
    font-weight: 700;
    margin-top: 12px;
}

/* Nama */
.sotk-item p {
    color: #6f2Da8 !important; /* Ungu Cerah */
    font-size: 15px;
    font-weight: 500;
    margin-top: 6px;
}

.slider-nav {
  background: #f6d679;
  color: #2e1a47;
  border: 3px solid #d9b451;
  border-radius: 12px;
  padding: 8px 18px;
  margin: 10px;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  transition: .25s;
  box-shadow: 0 0 8px rgba(255,215,0,.35);
}

.slider-nav:hover {
  background: #2e1a47;
  color: #f6d679;
  box-shadow: 0 0 12px rgba(255,215,0,.7);
  transform: scale(1.07);
}
.rating-box {
  display: flex;
  gap: 14px;
  font-size: 48px;
  justify-content: left;
  margin-top: 15px;
}

.star {
  cursor: pointer;
  color: #6f558b;
  transition: transform .3s, color .3s;
}

.star:hover {
  transform: scale(1.25);
}

.star.active {
  color: #f6d679;
  text-shadow: 0 0 10px rgba(255,215,0,.7);
}

.news a {
    color: #4da3ff !important; /* Biru terang */
    font-weight: 600;
    text-decoration: underline;
}

.news a:hover {
    color: #82c0ff !important; /* Biru lebih terang saat hover */
    text-shadow: 0 0 6px rgba(130, 192, 255, 0.7);
}
#beritaTerbaru .news {
  padding: 18px;
  background: rgba(255,255,255,0.05);
  border-radius: 14px;
  margin-bottom: 16px;
  transition: .3s;
}

#beritaTerbaru .news:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 12px rgba(255,255,255,0.1);
}

.read-more {
  color: #4da3ff !important;
  font-weight: 600;
  text-decoration: underline;
}

.read-more:hover {
  color: #82c0ff !important;
}
.data-wilayah {
  list-style: none;
  padding-left: 0;
  margin: 10px 0;
  font-weight: 600;
  color: var(--text-dark);
  display: grid;
  gap: 6px;
}

.data-wilayah li {
  display: grid;
  grid-template-columns: 220px 15px auto; /* 3 kolom: nama, titik dua, isi */
  align-items: start;
}

.data-wilayah .dusun {
  color: var(--white);
  font-weight: 600;
}

.data-wilayah .titikdua {
  text-align: center;
  font-weight: 700;
}
/* === Gabungkan Rating & Kontak Jadi Satu Baris === */
.rating-contact-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 40px;
  transform: scale(0.9); /* sedikit lebih kecil */
}

/*==== RATING & KONTAK====*/

.rating-contact-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  margin-top: 2px;
  margin-bottom: 2px;
  flex-wrap: wrap;
}

.rating-contact-wrapper section {
  flex: 1 1 45%;
  padding: 5px 10px;
  margin: 0;
}

.rating-contact-wrapper h2 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.rating-box {
  display: flex;
  gap: 8px;
  justify-content: flex-start;
  margin-top: 6px;
}

.star {
  cursor: pointer;
  font-size: 2.8rem;
  color: #6d4ebf;
  transition: transform 0.2s, color 0.3s;
}
.star:hover {
  transform: scale(1.2);
  color: #f6d679;
}
.star.active {
  color: #f6d679;
}

@media (max-width: 768px) {
  .rating-contact-wrapper {
    flex-direction: column;
    align-items: center;
  }
  .rating-contact-wrapper section {
    width: 100%;
    text-align: center;
  }
}
.info-desa {
  border-collapse: collapse;
  width: 100%;
  margin-top: 10px;
}

.info-desa td {
  padding: 4px 8px;
  vertical-align: top;
}

.info-desa .label {
  font-weight: 700;
  color: #f6d679;
  width: 180px; /* kolom kiri sejajar */
  white-space: nowrap;
}

.info-desa .value {
  color: #ffffff;
  line-height: 1.6;
}
/* Menyembunyikan bingkai (border) iframe Instagram */
.ig-wrapper iframe {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.berita-item h3, .berita-item p {
  text-align: left;
  margin-left: 20px; /* Memberikan sedikit ruang dari kiri */
}
/* RESPONSIVE PDF */
@media (max-width: 768px) {
  iframe {
    height: 450px;
  }
}
