/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BODY */
body {
  font-family: 'Inter', sans-serif;
  background: #f8fafc;
  color: #0f172a;
}

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

/* NAVBAR */
header {
  background: #003b73;
  border-bottom: 1px solid #e5e7eb;
  padding: 14px 0;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo {
  width: 52px;
}

.logo-area h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  color: #ffffff;
}

.logo-area p {
  font-size: 13px;
  color: #fff;
}

/* MENU */
nav a {
  margin-left: 26px;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  color: #ffffff;
  font-weight: 500;
}

nav a.active {
  color: #ffffff;
}

.login-btn {
  background: #ffffff;
  font-family: 'Poppins', sans-serif;
  color: #003b73;
  padding: 7px 18px;
  border-radius: 4px;
}

/* =====================
HERO FULL IMAGE
===================== */
.hero {
  height: 90vh;
  background-image: url("/komunikasi/IMG_7355.jpg");
  background-size: cover;
  background-position: center 55%;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* overlay gelap */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

/* isi hero */
.hero-wrap {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 900px;
}

/* judul */
.hero h1 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 10px;
}

/* subjudul */
.hero .desa {
  font-size: 18px;
  opacity: 0.9;
}

/* tagline */
.hero .tagline {
  font-size: 20px;
  margin-top: 10px;
  opacity: 0.85;
}

/* responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 32px;
  }
}

/* ========================================
TENTANG KAMI SECTION
======================================== */
.tentang-section {
  padding: 70px 20px 80px;
  background: #003b73;
  width: 100%;
  max-width: 100%;
}

.tentang-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;
  max-width: 1200px;
  margin: auto;
  flex-wrap: wrap;
}

.tentang-img {
  flex: 0 0 auto;
  animation: fadeIn 0.8s ease-out;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

.tentang-img img {
  width: 100%;
  max-width: 380px;
  height: auto;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  filter: none;
  display: block;
  margin: 0 auto;
}

.tentang-img img:hover {
  transform: scale(1.03);
  filter: none;
}

.tentang-text {
  flex: 1;
  max-width: 600px;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  animation: fadeIn 0.8s ease-out 0.2s both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.tentang-text h2 {
  font-size: 42px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
  letter-spacing: -1px;
}

.tentang-text h2::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 100%;
  height: 4px;
  background: var(--color-bg);
  transform: translateX(-50%);
}

.tentang-text p {
  font-size: 17px;
  line-height: 1.9;
  color: #ffffff;
  margin-bottom: 30px;
}

.btn-biru {
  background: #2563eb;
  padding: 14px 32px;
  border-radius: 50px;
  display: inline-block;
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.btn-biru:hover {
  background: #486e92;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* =====================
STATISTIK MODERN
===================== */
.statistik {
  padding: 50px 0;
  background: #f5f5f5;
}

.stat-wrap {
  display: flex;
  gap: 25px;
  justify-content: center;
  flex-wrap: wrap;
}

/* card */
.stat-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: white;
  padding: 20px 35px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  min-width: 220px;
}

/* icon kotak */
.icon {
  width: 60px;
  height: 60px;
  background: #f1f1f1;
  border-radius: 12px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.icon img {
  width: 35px;
  height: 35px;
  object-fit: contain;
}

/* angka */
.stat-card h3 {
  font-size: 24px;
  margin: 0;
  color: #333;
}

/* teks */
.stat-card p {
  margin: 0;
  color: #777;
  font-size: 14px;
}

/* responsive */
@media (max-width: 768px) {
  .stat-wrap {
    flex-direction: column;
    align-items: center;
  }

  .stat-card {
    width: 90%;
  }
}

/* KEGIATAN */
/* ===== SECTION ===== */
.kegiatan-section {
  padding: 80px 20px;
  background: #f5f7fb;
  text-align: center;
}

.kegiatan-section h2 {
  font-size: 32px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 10px;
}

.kegiatan-section .sub {
  color: #7f8c8d;
  margin-bottom: 50px;
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  max-width: 900px;
  margin: auto;
}

/* garis tengah */
.timeline::before {
  content: "";
  position: absolute;
  left: 120px;
  top: 0;
  width: 3px;
  height: 100%;
  background: #3b5d8f;
}

/* item per bulan */
.timeline-item {
  display: flex;
  margin-bottom: 50px;
  align-items: flex-start;
}

/* tanggal kiri */
.timeline-date {
  width: 120px;
  text-align: right;
  font-weight: 600;
  color: #3b5d8f;
  padding-right: 20px;
}

/* isi kanan */
.timeline-content {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding-left: 30px;
  position: relative;
}

/* titik */
.timeline-content::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 10px;
  width: 12px;
  height: 12px;
  background: #3b5d8f;
  border-radius: 50%;
}

/* ===== CARD ===== */
.card {
  background: #dfe7f1;
  padding: 18px;
  border-radius: 16px;
  width: 260px;
  text-align: left;
  position: relative;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
  margin-bottom: 20px;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.card h4 {
  margin-top: 45px;
  margin-bottom: 10px;
  font-size: 16px;
  color: #2c3e50;
}

/* ===== BADGE ===== */
.badge-belum,
.badge-sudah {
  display: inline-block;
  position: absolute;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: white;
}

/* merah = belum */
.badge-belum {
  background: #e74c3c;
}

/* hijau = sudah */
.badge-sudah {
  background: #2ecc71;
}

/* ===== ICON TEXT ===== */
.card p {
  font-size: 13px;
  color: #34495e;
  margin: 4px 0;
}

/* FOTO */
.kegiatan-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 15px;
}

.kegiatan-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* JUDUL */
.judul-kegiatan {
  font-size: 20px;
  margin-bottom: 10px;
  color: #123d6b;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    flex-direction: column;
  }

  .timeline-date {
    text-align: left;
    padding-left: 40px;
    margin-bottom: 10px;
  }

  .timeline-content {
    padding-left: 40px;
  }
}

/* =====================
GALERI MODERN
===================== */
.galeri-home {
  background: #ffffff;
  padding: 60px 20px;
  color: #003b73;
  text-align: center;
}

.galeri-home h2 {
  font-size: 28px;
  margin-bottom: 5px;
}

.sub-title {
  margin-bottom: 40px;
  opacity: 0.9;
}

/* GRID */
.galeri-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

/* CARD */
.galeri-card {
  background: #dfe6ee;
  border-radius: 4px;
  overflow: hidden;
  text-align: left;
}

.galeri-card.show {
  opacity: 1;
  transform: translateY(0);
}

/* IMAGE */
.img-wrap {
  position: relative;
  display: block;
  height: 140px;
  overflow: hidden;
}

.img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.3s;
}

/* OVERLAY */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0;
  transition: 0.3s;
}

/* HOVER */
.img-wrap:hover img {
  transform: scale(1.1);
}

.img-wrap:hover .overlay {
  opacity: 1;
}

/* BODY */
.card-body {
  padding: 12px;
}

.card-body h3 {
  font-size: 14px;
  color: #0d3f6b;
  margin-bottom: 6px;
}

.card-body p {
  font-size: 12px;
  color: #555;
}

/* BUTTON */
.btn-wrap {
  margin-top: 40px;
}

.btn-galeri {
  background: #003b73;
  padding: 10px 25px;
  color: #ffffff;
  text-decoration: none;
  border-radius: 3px;
  font-size: 14px;
}

.btn-galeri:hover {
  background: #41668b;
}

.more-card {
  display: none;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .galeri-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .galeri-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================
STRUKTUR ORGANISASI
===================== */
.struktur-container {
  width: 100%;
  padding: 50px 20px;
  background: #ffffff;
  text-align: center;
}

.judul-struktur {
  font-size: 38px;
  color: #003b73;
  margin-bottom: 50px;
  font-weight: bold;
}

.level {
  display: flex;
  justify-content: center;
  gap: 40px;
  position: relative;
}

.card-struktur {
  width: 180px;
  background: white;
  border-radius: 15px;
  padding: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}

.card-struktur:hover {
  transform: translateY(-5px);
}

.card-struktur img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

.card-struktur h3 {
  font-size: 18px;
  margin-bottom: 5px;
  color: #222;
}

.card-struktur p {
  color: #0A3D78;
  font-weight: bold;
}

/* Garis */

.wakil {
  position: relative;
  margin-bottom: 40px;
}

.wakil::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 100%;
  width: 3px;
  height: 50px;
  background: #777;
}

.garis-vertikal {
  width: 3px;
  height: 40px;
  background: #999;
  margin: auto;
}

.line-down {
  width: 3px;
  height: 50px;
  background: #777;
  margin: auto;
}

.group-top {
  position: relative;
  margin-top: 0;
}

.main-line {
  width: 3px;
  height: 320px;
  background: #777;
  position: absolute;
  left: 50%;
  top: 3px;
  /* mulai setelah garis horizontal */
  transform: translateX(-50%);
  z-index: 1;
}

.line-horizontal {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 718px;
  height: 3px;
  background: #777;
}

.row-4 {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 50px;
}

.item-atas {
  position: relative;
}

.line-vertical {
  width: 3px;
  height: 38px;
  background: #777;
  margin: auto;
}

.group-bottom {
  position: relative;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.line-center {
  width: 3px;
  height: 10px;
  background: #777;
  margin: auto;
}

.line-horizontal-bottom {
  width: 502px;
  height: 3px;
  background: #777;
  position: relative;
  z-index: 2;
}

.row-3 {
  display: flex;
  justify-content: center;
  gap: 70px;
  margin-top: 0;
  position: relative;
}

.item-bawah {
  position: relative;
}

.item-bawah .line-vertical {
  width: 3px;
  height: 40px;
  background: #777;
  margin: auto;
}


/* =====================
CONTACT MODERN
===================== */

.contact-hero {

  padding: 120px 20px 140px;

  background:
    linear-gradient(rgba(0, 51, 102, .60),
      rgba(0, 51, 102, .60)),
    url("IMG_7646.jpg");

  background-size: cover;
  background-position: center;

  color: white;

  position: relative;

  overflow: hidden;

}

.contact-hero::after {

  content: '';

  position: absolute;

  left: 0;
  bottom: 0px;

  width: 100%;
  height: 10px;

  background: white;

  border-radius: 100% 100% 0 0;

}

.hero-contact-wrap {

  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 50px;

  position: relative;

  z-index: 2;

}

.hero-contact-text {

  max-width: 700px;

}

.badge-contact {

  background: #1d4ed8;

  padding: 10px 20px;

  border-radius: 30px;

  font-size: 14px;

  display: inline-block;

  margin-bottom: 25px;

}

.hero-contact-text h1 {

  font-size: 64px;

  line-height: 1.1;

  margin-bottom: 20px;

}

.hero-contact-text p {

  font-size: 20px;

  opacity: .95;

}

.hero-contact-logo img {

  width: 280px;

  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .3));

}

/* CONTENT */

.contact-modern {

  padding: 80px 20px;

  background: #f8fafc;

  margin-top: -80px;

  position: relative;

  z-index: 5;

}

.modern-grid {

  display: grid !important;

  grid-template-columns: 420px 1fr !important;

  gap: 40px;
  align-items: start;

}

/* LEFT */

.contact-left h2,
.contact-right h2 {

  font-size: 36px;

  color: #003b73;

  margin-bottom: 30px;
  width: 100%;

}

.contact-card {

  background: white;

  padding: 22px;

  border-radius: 18px;

  display: flex;

  align-items: flex-start;

  gap: 18px;

  margin-bottom: 18px;

  box-shadow: 0 5px 20px rgba(0, 0, 0, .06);

}

.icon-contact {

  width: 55px;
  height: 55px;

  background: #003b73;

  color: white;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 50%;

  font-size: 22px;

}

.contact-card h4 {

  color: #003b73;

  margin-bottom: 5px;

}

.contact-card p {

  color: #555;

  line-height: 1.6;

}

.icon-contact {
  width: 70px;
  height: 70px;
  background: #003b73;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.icon-contact img {
  width: 35px;
  height: 35px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* MAP */

.map-modern {
  max-width: 1200px;
  margin: 40px auto 0;
  margin-top: 40px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, .08);
}

.map-modern iframe {
  width: 100%;
  height: 500px;
  border: none;
}

/* FORM */

.contact-right {

  background: white;

  padding: 40px;

  border-radius: 25px;

  box-shadow: 0 5px 25px rgba(0, 0, 0, .06);
  width: 100%;

}

.input-row {

  display: flex;

  gap: 20px;

}

.contact-right input,
.contact-right textarea,
.contact-right select {

  width: 100%;

  padding: 16px;

  border: 1px solid #dbe2ea;

  border-radius: 12px;

  margin-bottom: 20px;

  font-size: 15px;

  background: #fff;

}

.contact-right textarea {

  height: 160px;

  resize: none;

}

.btn-kirim {

  background: #003b73;

  color: white;

  padding: 15px 35px;

  border: none;

  border-radius: 12px;

  cursor: pointer;

  font-size: 16px;

  font-weight: 600;

  transition: .3s;

}

.btn-kirim:hover {

  background: #0b4d91;

}

/* KERJASAMA */

.kerjasama-box {

  margin-top: 40px;

  border: 2px solid #dbeafe;

  padding: 30px;

  border-radius: 20px;

  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 20px;

}

.kerjasama-box h3 {

  color: #003b73;

  margin-bottom: 10px;

}

.btn-kerjasama {

  padding: 14px 28px;

  border: 2px solid #2563eb;

  border-radius: 12px;

  text-decoration: none;

  color: #2563eb;

  font-weight: 600;

}

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

/* RESPONSIVE */

@media(max-width:993px) {

  .modern-grid {

    grid-template-columns: 420px 1fr !important;

  }

  .hero-contact-wrap {

    flex-direction: column;

    text-align: center;

  }

  .hero-contact-text h1 {

    font-size: 42px;

  }

  .hero-contact-logo img {

    width: 200px;

  }

  .input-row {

    flex-direction: column;

    gap: 0;

  }

  .kerjasama-box {

    flex-direction: column;

    text-align: center;

  }

}

/* =====================
FOOTER
===================== */

footer {
  background: #003b73;
  padding: 60px 20px 30px;
  color: white;
}

.footer-simple {
  max-width: 700px;
  margin: auto;
  text-align: center;
}

.footer-simple img {
  width: 90px;
  margin-bottom: 20px;
}

.footer-simple h2 {
  font-size: 32px;
  margin-bottom: 10px;
  font-family: 'Poppins', sans-serif;
}

.alamat {
  font-size: 17px;
  opacity: .9;
  margin-bottom: 25px;
}

/* SOCIAL */

.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}

.footer-social a {
  color: white;
  text-decoration: none;
}

.footer-social a:hover {
  color: #cfe3ff;
}

/* MENU */

.footer-menu {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
  margin-bottom: 30px;
}

.footer-menu a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

.footer-menu a:hover {
  color: #cfe3ff;
}

/* COPYRIGHT */

.copyright {
  border-top: 1px solid rgba(255, 255, 255, .2);
  padding-top: 20px;
  font-size: 14px;
}


/* =====================
CHAT
===================== */
.chat-box {
  max-width: 500px;
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bubble {
  padding: 10px 14px;
  border-radius: 12px;
  max-width: 70%;
}

.user {
  background: #e6f0f7;
  align-self: flex-start;
}

.admin {
  background: #2f5587;
  color: white;
  align-self: flex-end;
}

html {
  scroll-behavior: smooth;
}

.contact-right {
  transition: all .4s ease;
}

.contact-right:target {
  animation: highlightForm 2s ease;
}

@keyframes highlightForm {

  0% {
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  }

  50% {
    box-shadow: 0 0 25px rgba(10, 61, 120, .4);
    transform: translateY(-5px);
  }

  100% {
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    transform: translateY(0);
  }
}

.badge-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #2563eb;
  color: white;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
}

.badge-contact:hover {
  color: white;
}

.instagram-link {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

.instagram-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .1);
  cursor: pointer;
}

/* HAMBURGER MODERN */
.menu-toggle {
  display: none;
  width: 35px;
  height: 30px;
  cursor: pointer;
  position: relative;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 4px;
  background: #fff;
  margin: 6px 0;
  border-radius: 10px;
  transition: .3s;
}

/* ANIMASI MENJADI X */
.menu-toggle.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}