/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  margin: 0;
}

/* supaya anchor tidak ketutup header */
.section {
  scroll-margin-top: 90px;
}

/* ================= LOGO ================= */

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.logo span {
  font-size: 20px;
  font-weight: 700;
  color: #186dff;
}

/* ================= HEADER ================= */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  padding: 0 10%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav {
  display: flex;
  align-items: center;
}

.nav a {
  margin-left: 25px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #186dff;
  transition: 0.3s;
}

.nav a:hover::after {
  width: 100%;
}

.lang-switch {
  display: flex;
  align-items: center;
}

.lang-switch a {
  margin-left: 12px;
  text-decoration: none;
  font-weight: 600;
  color: #186dff;
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

/* ================= MOBILE header ================= */

@media (max-width: 768px) {
  .header {
    padding: 0 6%;
  }

  .nav {
    position: absolute;
    top: 70px;
    right: -100%;
    background: #fff;
    width: 220px;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: 0.3s;
  }

  .nav a {
    margin: 12px 0;
  }

  .nav.active {
    right: 0;
  }

  .menu-toggle {
    display: block;
  }
}

/* ================= HERO ================= */

.hero {
  position: relative;
  height: 100vh;
  margin-top: 70px;
  overflow: hidden;
  scroll-margin-top: 90px;
}

.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 100%;
  min-width: 100%;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
}

.hero-text h1 {
  font-size: 3rem;
  text-shadow: 0 5px 20px rgba(0, 0, 0, 0.6);
}
@media (max-width: 600px) {
  .hero-text h1 {
    font-size: 2rem;
  }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}
.hero-text {
  position: relative;
  z-index: 2;
}

/* ================= PROFIL ================= */

.profil-section {
  background: #fff;
}

.profil-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profil-card {
  padding: 26px 30px;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
}

.profil-card:hover {
  transform: translateY(-5px);
}

.profil-icon {
  font-size: 42px;
}

.profil-card h3 {
  margin: 4px 0;
  font-size: 22px;
}

.profil-card p {
  margin: 0;
  line-height: 1.7;
  color: #1e88e5;
  text-align: justify;
}
@media (min-width: 900px) {
  .profil-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ================= PETA DESA ================= */

.peta-desa {
  background: #f6faf6;
  padding: 80px 20px;
}

.peta-title {
  font-size: 34px;
  margin-bottom: 40px;
  text-align: center;
  color: #186dff;
}

.peta-layout {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 30px;
  align-items: stretch;
}

.peta-info {
  background: #fff;
  padding: 32px;
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.peta-info h3 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.batas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.batas-grid strong {
  display: block;
  margin-bottom: 4px;
  color: #186dff;
}

.batas-grid p {
  margin: 0;
  color: #555;
}

.peta-info hr {
  border: none;
  height: 1px;
  background: #e5e7eb;
  margin: 24px 0;
}

.data-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed #e5e7eb;
  font-weight: 500;
}

.data-row span:last-child {
  color: #186dff;
}

.data-row:last-child {
  border-bottom: none;
}

.peta-map {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.peta-map iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: none;
}

/* ================= RESPONSIVE PETA================= */

@media (max-width: 900px) {
  .peta-layout {
    grid-template-columns: 1fr;
  }

  .peta-title {
    font-size: 28px;
  }

  .peta-info {
    padding: 26px;
  }
}
/* ================= ORGANISASI ================= */

.organisasi {
  background: #fff;
}

/* grid sudah ada, kita perhalus */
.grid {
  display: grid;
  gap: 25px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid-3 {
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* ================= CARD organisasi ================= */

.card {
  background: #fff;
  border-radius: 22px;
  padding: 28px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: 0.3s ease;
}

.card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

/* ================= ORG CARD organisasi ================= */

.org-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 14px;
  border: 4px solid #186dff20;
}

.org-card h3 {
  margin: 8px 0 4px;
  font-size: 1.15rem;
}

.org-card p {
  margin: 0;
  color: #186dff;
  font-weight: 500;
}

/* ================= SECTION organisasi ================= */

.section {
  padding: 80px 10%;
  text-align: center;
}

.section h2 {
  font-size: 2.3rem;
  color: #186dff;
  margin-bottom: 40px;
}

/* ================= MOBILE organisasi ================= */

@media (max-width: 600px) {
  .section {
    padding: 60px 6%;
  }

  .org-card img {
    width: 100px;
    height: 100px;
  }
}

/* ================= DESTINASI ================= */

.destinasi {
  padding: 80px 20px;
  background: #f9fafb;
}

.destinasi-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.3rem;
  color: #186dff;
}
.destinasi-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 26px;

  grid-template-columns: repeat(auto-fill, minmax(280px, 320px));
  justify-content: center;
}

.destinasi-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.destinasi-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.destinasi-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.destinasi-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.destinasi-body h3 {
  color: #1e88e5;
  font-size: 18px;
  margin-bottom: 6px;
}

.destinasi-body p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-map {
  margin-top: auto;
  padding: 10px 14px;
  background: #1e88e5;
  color: #fff;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  transition: 0.3s;
}

.btn-map:hover {
  background: #1565c0;
}
.destinasi-card {
  cursor: pointer;
}

/* ================= MOBILE destinasi================= */

@media (max-width: 600px) {
  .destinasi {
    padding: 60px 15px;
  }

  .destinasi-img img {
    height: 180px;
  }
}
/* ================= MAP POPUP ================= */
.map-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.map-box {
  background: #fff;
  width: 90%;
  max-width: 800px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.map-box iframe {
  width: 100%;
  height: 450px;
  border: 0;
}

.close-map {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 26px;
  cursor: pointer;
}

/* ================= PRODUK ================= */

.produk {
  background: #fff;
}
.produk-subtitle {
  margin-top: -20px;
  margin-bottom: 35px;
  font-size: 15px;
  color: #555;
  text-align: center;
}

.produk-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 260px));
  justify-content: center;
}

.product-card {
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: 0.3s ease;
  display: flex;
  flex-direction: column;
  max-width: 260px;
  width: 100%;
}

.product-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: #f6f6f6;
  padding: 10px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.product-card h3 {
  margin: 6px 0;
  font-size: 1.05rem;
}

.product-card p {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  margin-top: auto;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card img {
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

/* ================= MOBILE product================= */

@media (max-width: 600px) {
  .product-card img {
    height: 160px;
  }
}
/* ================= GALERI ================= */

.galeri {
  background: #f9fafb;
}

.galeri-ui {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 280px));
  justify-content: center;
}

.galeri-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  transition: 0.4s ease;
}

.galeri-card:hover {
  transform: translateY(-6px) scale(1.02);
}

.galeri-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: 0.5s;
}

.galeri-card:hover img {
  transform: scale(1.08);
}

.galeri-info {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  color: #fff;
  opacity: 0;
  transition: 0.4s;
}

.galeri-card:hover .galeri-info {
  opacity: 1;
}

.galeri-info h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.galeri-info p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.4;
}

/* ================= MOBILE galeri================= */

@media (max-width: 600px) {
  .galeri-card img {
    height: 180px;
  }
}

/* ================= FOOTER ================= */

a.danger {
  color: #e53935;
  font-weight: 600;
}

.footer-desa {
  background: linear-gradient(135deg, #1e88e5, #1565c0);
  color: #fff;
  padding: 70px 30px 25px;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 40px;
  align-items: flex-start;
}

.footer-col {
  font-size: 14px;
}

.footer-logo {
  width: 90px;
  height: auto;
  margin-bottom: 12px;
}

.footer-col h3 {
  margin-bottom: 14px;
  font-size: 18px;
}

.footer-col p,
.footer-col a {
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
  opacity: 0.9;
  transition: 0.3s;
}

.footer-col a:hover {
  opacity: 1;
  transform: translateX(4px);
}

.social {
  margin-top: 10px;
}

.social a {
  display: inline-block;
  margin-right: 8px;
  margin-bottom: 6px;
  padding: 7px 14px;
  background: #fff;
  color: #1e88e5;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  transition: 0.3s;
}

.social a:hover {
  background: #0d47a1;
  color: #fff;
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  margin-top: 45px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding-top: 18px;
  font-size: 13px;
  opacity: 0.9;
}

/* ================= RESPONSIVE footer================= */

@media (max-width: 768px) {
  .footer-desa {
    padding: 50px 20px 20px;
  }

  .footer-container {
    gap: 30px;
  }

  .footer-col h3 {
    font-size: 16px;
  }
}
