/* ========================================
   WEBSITE DESA GUMINGSIR
   Kecamatan Wanadadi, Kab. Banjarnegara
   ======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #f5f7fa;
  color: #333;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.section {
  padding: 80px 0;
}

.bg {
  background: #edf2f7;
}

/* ---- HEADER ---- */

.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #0b1f3a;
  color: white;
  padding: 14px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.logo {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 18px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #f4b400;
}

.menu-btn {
  display: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ---- RUNNING TEXT ---- */

.running-text {
  margin-top: 58px;
  background: #f4b400;
  padding: 9px 0;
  font-weight: 600;
  font-size: 0.92rem;
  color: #0b1f3a;
}

/* ---- HERO ---- */

.hero {
  height: 100vh;
  background:
    url('https://images.unsplash.com/photo-1592987234564-85e5a2d57754?q=80&w=1600&auto=format&fit=crop')
    center / cover;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.overlay {
  position: absolute;
  inset: 0;
  background-image:url(gumingsir.png) ;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 20px;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.hero-content > p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 36px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 36px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-stat-num {
  font-size: 1.7rem;
  font-weight: 700;
  color: #f4b400;
}

.hero-stat-label {
  font-size: 0.78rem;
  opacity: 0.8;
  margin-top: 2px;
}

.btn {
  display: inline-block;
  padding: 13px 32px;
  background: #f4b400;
  color: #0b1f3a;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(244,180,0,0.4);
}

/* ---- SECTION HEADINGS ---- */

h2 {
  text-align: center;
  margin-bottom: 10px;
  color: #0b1f3a;
  font-size: 2rem;
  font-weight: 700;
}

h3 {
  color: #0b1f3a;
  margin: 20px 0 10px;
  font-size: 1.1rem;
}

p {
  line-height: 1.75;
  color: #555;
  margin-bottom: 10px;
}

ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

ul li {
  line-height: 1.9;
  color: #555;
}

.section-sub {
  text-align: center;
  color: #777;
  margin-bottom: 40px !important;
  font-size: 0.95rem;
}

/* ---- GRID & CARDS ---- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  align-items: start;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.card {
  background: white;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  transition: transform 0.3s, box-shadow 0.3s;
  opacity: 0;
  transform: translateY(20px);
}

.card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.card-featured {
  background: linear-gradient(135deg, #0b1f3a 0%, #1a3a6a 100%);
  color: white;
  text-align: center;
}

.card-featured h3 {
  color: white;
  font-size: 1.2rem;
}

.card-featured p {
  color: rgba(255,255,255,0.8);
}

.card-badge {
  display: inline-block;
  background: #f4b400;
  color: #0b1f3a;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-featured .card-badge {
  background: rgba(244,180,0,0.9);
}

.card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 14px;
  height: 180px;
  object-fit: cover;
}

/* ---- ORG CHART ---- */

.org-top {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.org-top .card {
  width: 280px;
}

/* ---- STATISTIK ---- */

.chart-box {
  background: white;
  padding: 28px;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  margin-bottom: 30px;
}

.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.stat-card {
  background: white;
  border-radius: 14px;
  padding: 22px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  border-top: 4px solid #f4b400;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stat-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.82rem;
  color: #777;
  margin-bottom: 6px;
}

.stat-value {
  font-size: 1rem;
  font-weight: 700;
  color: #0b1f3a;
}

/* ---- BERITA ---- */

.berita-meta {
  font-size: 0.78rem;
  color: #f4b400;
  font-weight: 600;
  margin-bottom: 8px;
}

/* ---- GALERI ---- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.gallery img {
  width: 100%;
  border-radius: 12px;
  height: 220px;
  object-fit: cover;
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.gallery img.visible {
  opacity: 1;
  transform: scale(1);
}

.gallery img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* ---- MAP ---- */

.map {
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: 12px;
  margin-bottom: 20px;
}

/* ---- INFO BOX ---- */

.info-box {
  background: white;
  border-radius: 12px;
  padding: 18px 22px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.info-item:last-child {
  border-bottom: none;
}

.info-label {
  font-size: 0.85rem;
  color: #888;
}

.info-value {
  font-size: 0.88rem;
  font-weight: 600;
  color: #0b1f3a;
}

/* ---- KONTAK ---- */

.kontak-info {
  background: white;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}

.kontak-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.kontak-item:last-child {
  border-bottom: none;
}

.kontak-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.kontak-item strong {
  display: block;
  font-size: 0.82rem;
  color: #0b1f3a;
  margin-bottom: 2px;
}

.kontak-item p {
  font-size: 0.9rem;
  color: #555;
  margin: 0;
}

/* ---- FORM ---- */

form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: white;
  padding: 28px;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}

form input,
form textarea {
  padding: 13px 16px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.2s;
}

form input:focus,
form textarea:focus {
  outline: none;
  border-color: #0b1f3a;
}

form textarea {
  min-height: 130px;
  resize: vertical;
}

form button {
  padding: 14px;
  border: none;
  background: #0b1f3a;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}

form button:hover {
  background: #1a3a6a;
  transform: translateY(-1px);
}

#success {
  color: #1f8a70;
  font-size: 0.88rem;
  font-weight: 500;
  text-align: center;
  min-height: 20px;
}

/* ---- FOOTER ---- */

.footer {
  background: #09111f;
  color: white;
  text-align: center;
  padding: 48px 20px 32px;
}

.footer-logo {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.footer p {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  margin-bottom: 4px;
}

.footer-website {
  color: #f4b400 !important;
  font-weight: 600;
  font-size: 0.85rem !important;
}

.footer-divider {
  width: 60px;
  height: 2px;
  background: rgba(244,180,0,0.5);
  margin: 20px auto;
  border-radius: 2px;
}

/* ---- SEJARAH / TIMELINE ---- */

.timeline {
  position: relative;
  padding-left: 36px;
  margin-bottom: 50px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, #f4b400, #0b1f3a);
  border-radius: 3px;
}

.timeline-item {
  position: relative;
  margin-bottom: 42px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -32px;
  top: 6px;
  width: 16px;
  height: 16px;
  background: #f4b400;
  border: 3px solid #0b1f3a;
  border-radius: 50%;
  z-index: 1;
  box-shadow: 0 0 0 4px rgba(244,180,0,0.2);
}

.timeline-content {
  background: white;
  border-radius: 14px;
  padding: 24px 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  border-left: 4px solid #f4b400;
  transition: transform 0.3s, box-shadow 0.3s;
}

.timeline-content:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.11);
}

.timeline-year {
  display: inline-block;
  background: #0b1f3a;
  color: #f4b400;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.timeline-content h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: #0b1f3a;
}

/* ---- KUTIPAN TOKOH ---- */

.sejarah-quote {
  background: linear-gradient(135deg, #0b1f3a 0%, #1a3a6a 100%);
  border-radius: 16px;
  padding: 36px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.sejarah-quote::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: rgba(244,180,0,0.08);
  border-radius: 50%;
}

.quote-icon {
  font-size: 3rem;
  color: #f4b400;
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.7;
}

.quote-text {
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(255,255,255,0.9);
  font-style: italic;
  margin-bottom: 16px;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.quote-source {
  font-size: 0.85rem;
  color: #f4b400;
  font-weight: 600;
  margin: 0;
}

/* ---- RESPONSIVE ---- */

@media (max-width: 768px) {

  .nav-links {
    position: fixed;
    top: 58px;
    right: -100%;
    width: 240px;
    height: 100vh;
    background: #0b1f3a;
    flex-direction: column;
    padding: 40px 25px;
    transition: right 0.3s;
    z-index: 999;
  }

  .nav-links.show {
    right: 0;
  }

  .menu-btn {
    display: block;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-stats {
    gap: 24px;
  }

  .hero-stat-num {
    font-size: 1.3rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .org-top .card {
    width: 100%;
  }

}
