/* ===============================
   ✅ RESET & FONTS
================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #222; /* Teks elegan */
  background-color: #f8f9fa; /* Background abu muda */
  line-height: 1.6;
}

/* ===============================
   ✅ CONTAINER & BOXED LAYOUT
================================= */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ===============================
   ✅ HEADER
================================= */
.main-header {
  background-color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.main-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: #005A89;
}

.menu {
  display: flex;
  gap: 20px;
}

.menu a {
  text-decoration: none;
  color: #444;
  font-weight: 500;
  transition: 0.3s ease;
}

.menu a:hover {
  color: #005A89;
}

/* ===============================
   ✅ BUTTONS
================================= */
.submit-btn,
.account-btn {
  padding: 8px 18px;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 90, 137, 0.15);
}

.submit-btn {
  background-color: #005A89;
  color: white;
}

.account-btn {
  background-color: #e9ecef;
  color: #333;
}

.submit-btn:hover {
  background-color: #0075ad;
}

.account-btn:hover {
  background-color: #d6d6d6;
}

/* ===============================
   ✅ HERO SECTION
================================= */
.hero-section {
  position: relative;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.video-bg iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100vw;
  min-height: 56.25vw; /* 16:9 aspect ratio (9 / 16 = 0.5625) */
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
}

.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.hero-text {
  position: relative;
  z-index: 3;
  text-align: center;
  color: white;
  padding: 0 20px;
}

.hero-text h1 {
  font-size: 36px;
  font-weight: 700;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

/* Kelas tambahan untuk kontrol animasi */
.show-text {
  opacity: 1;
}
.hide-text {
  opacity: 0;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===============================
   ✅ CENTER SECTION
================================= */
.center-section {
  padding: 60px 0;
}

.info-box {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  margin-bottom: 40px;
}

.info-box h2 {
  font-size: 24px;
  color: #005A89;
  margin-bottom: 10px;
}

.info-box p {
  font-size: 16px;
  color: #444;
}

/* ===============================
   ✅ FOOTER
================================= */
.main-footer {
  background-color: #1b1f22;
  color: #ddd;
  padding: 40px 0;
  text-align: center;
  margin-top: 0;
}

.footer-links {
  margin-bottom: 10px;
}

.footer-links a {
  color: #ccc;
  margin: 0 10px;
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover {
  color: #ffffff;
}

.main-footer p {
  font-size: 13px;
  color: #aaa;
}

/* ===============================
   ✅ RESPONSIVE
================================= */
@media (max-width: 768px) {
  .main-header .container {
    flex-direction: column;
    gap: 10px;
  }

  .menu {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-text h1 {
    font-size: 26px;
  }

  .submit-btn,
  .account-btn {
    margin: 5px 0;
  }
}

/* Animasi Fade In & Out untuk Hero Teks */
.fade-in {
  opacity: 1;
  transition: opacity 0.6s ease-in;
}

.fade-out {
  opacity: 0;
  transition: opacity 0.4s ease-out;
}

#hero-slide-text {
  opacity: 1;
}

/* ========================
   ✅ Logo dengan border
========================= */
.logo-box {
  border: 2px solid #005A89;
  padding: 5px 15px;
  border-radius: 8px;
}

.logo-text {
  font-size: 22px;
  font-weight: 700;
  color: #005A89;
  letter-spacing: 1px;
}

/* ========================
   ✅ Tombol dengan Icon
========================= */
.submit-btn,
.account-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(0, 90, 137, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.submit-btn i,
.account-btn i {
  font-size: 18px;
}

.submit-btn {
  background-color: #005A89;
  color: white;
}

.account-btn {
  background-color: #e9ecef;
  color: #333;
}

.submit-btn:hover {
  background-color: #0075ad;
}

.account-btn:hover {
  background-color: #d6d6d6;
}

/* =====================
   ✅ Eksplorasi Section
======================= */
.section-title {
  text-align: center;
  margin-bottom: 20px;
}

.section-title h2 {
  font-size: 28px;
  color: #005A89;
  margin-bottom: 10px;
}

.section-title p {
  color: #555;
  font-size: 16px;
}

/* Statistik Grid */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-bottom: 50px;
}

.stat-box {
  background: white;
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transition: 0.3s ease;
}

.stat-box:hover {
  transform: translateY(-5px);
}

.stat-box i {
  font-size: 28px;
  color: #005A89;
  margin-bottom: 10px;
}

.stat-box h3 {
  font-size: 28px;
  color: #222;
  margin-bottom: 5px;
}

.stat-box p {
  font-size: 14px;
  color: #666;
}

/* Dusun Grid */
.dusun-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

.dusun-box {
  background: #e6f2f8;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 90, 137, 0.1);
  transition: 0.3s ease;
  cursor: pointer;
}

.dusun-box:hover {
  background: #d0ecf8;
  transform: translateY(-4px);
}

.dusun-box i {
  font-size: 22px;
  color: #005A89;
  margin-bottom: 8px;
}

.dusun-box h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.dusun-box p {
  font-size: 13px;
  color: #555;
}

/* Responsive */
@media (max-width: 1024px) {
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dusun-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .stat-grid, .dusun-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ✅ Search Form Style */
.search-row {
  margin-bottom: 40px;
}

.search-form {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.search-form input,
.search-form select {
  padding: 12px 16px;
  font-size: 15px;
  border-radius: 30px;
  border: 1px solid #ccc;
  flex: 1;
  outline: none;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
  transition: 0.3s ease;
}

.search-form input:focus,
.search-form select:focus {
  border-color: #005A89;
  box-shadow: 0 0 0 3px rgba(0, 90, 137, 0.15);
}

.search-form button {
  background-color: #005A89;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 30px;
  font-size: 15px;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 4px 12px rgba(0, 90, 137, 0.15);
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-form button:hover {
  background-color: #0075ad;
}

@media (max-width: 768px) {
  .search-form {
    flex-direction: column;
    align-items: stretch;
  }

.search-form input,
.search-form select,
.search-form button {
  font-family: 'Poppins', sans-serif; /* Gunakan font Poppins */
}
}

/* ✅ Banner Kontributor */
.kontributor-banner {
  width: 100%;
  margin-bottom: 50px;
}

.kontributor-banner img {
  width: 100%;
  max-width: 100%;
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kontributor-banner img:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

/* ✅ Produk Unggulan / Usaha */
.produk-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-bottom: 60px;
}

.produk-box {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.produk-box:hover {
  transform: translateY(-5px);
}

.produk-box img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.produk-box h4 {
  font-size: 18px;
  font-weight: 600;
  padding: 16px 16px 0;
  color: #222;
}

.produk-labels {
  display: flex;
  gap: 8px;
  padding: 8px 16px 0;
}

.label {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 30px;
  color: white;
}

.label.jenis {
  background-color: #005A89;
}

.label.dusun {
  background-color: #6c757d;
}

.produk-desc {
  font-size: 14px;
  color: #555;
  padding: 10px 16px 0;
  flex-grow: 1;
}

.produk-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
}

.social-icons i {
  font-size: 18px;
  margin-right: 10px;
  color: #666;
  transition: 0.3s;
}

.social-icons i:hover {
  color: #005A89;
}

.detail-btn {
  background-color: #005A89;
  color: white;
  padding: 8px 18px;
  font-size: 13px;
  border-radius: 30px;
  text-decoration: none;
  transition: 0.3s;
}

.detail-btn:hover {
  background-color: #0075ad;
}

@media (max-width: 1024px) {
  .produk-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .produk-grid {
    grid-template-columns: 1fr;
  }
}

/* ✅ Section Pelayanan Publik */
.pelayanan-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.layanan-box {
  background-color: rgba(255, 255, 255, 0.6);
  border: 3px solid;
  border-radius: 16px;
  padding: 20px;
  backdrop-filter: blur(4px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: 0.3s ease;
}

.layanan-box:hover {
  transform: translateY(-5px);
}

.layanan-header {
  text-align: center;
  margin-bottom: 15px;
}

.layanan-header i {
  font-size: 28px;
}

.layanan-header h3 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 5px;
}

.garis-bawah {
  width: 60px;
  height: 4px;
  margin: 10px auto;
  border-radius: 3px;
  background-color: currentColor;
}

.layanan-items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.layanan-item {
  background: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #444;
  transition: 0.3s;
}

.layanan-item i {
  font-size: 16px;
  color: #005A89;
}

.layanan-item:hover {
  background-color: #f0f9ff;
  color: #005A89;
}

.layanan-button {
  text-align: center;
  display: block;
  color: white;
  text-decoration: none;
  padding: 10px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  transition: 0.3s;
}

.layanan-button:hover {
  opacity: 0.9;
}

@media (max-width: 1024px) {
  .pelayanan-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .pelayanan-grid {
    grid-template-columns: 1fr;
  }
}

/* ✅ Wisata Grid */
.wisata-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 60px;
}

.wisata-box {
  background: #fff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.wisata-box:hover {
  transform: translateY(-5px);
}

.wisata-box img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.wisata-content {
  padding: 16px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.wisata-content h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #222;
}

.wisata-labels {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.label.kategori {
  background-color: #005A89;
  color: white;
  font-size: 12px;
  padding: 5px 10px;
  text-transform: uppercase;
}

.label.dusun {
  background-color: #6c757d;
  color: white;
  font-size: 12px;
  padding: 5px 10px;
}

.wisata-btn {
  margin-top: auto;
  align-self: flex-start;
  background-color: #0075ad;
  color: white;
  padding: 8px 16px;
  font-size: 13px;
  text-decoration: none;
  text-transform: uppercase;
  transition: 0.3s ease;
}

.wisata-btn:hover {
  background-color: #005a89;
}

@media (max-width: 1024px) {
  .wisata-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .wisata-grid {
    grid-template-columns: 1fr;
  }
}

/* ✅ Layout 2 kolom */
.berita-event-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  margin-bottom: 20px;
}

/* ✅ Berita Grid */
.berita-column {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.berita-box {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.berita-box:hover {
  transform: translateY(-5px);
}

.berita-box img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.berita-box h4 {
  font-size: 16px;
  padding: 10px 14px 4px;
  font-weight: 600;
  color: #222;
}

.berita-meta {
  display: flex;
  gap: 10px;
  padding: 0 14px 8px;
  font-size: 12px;
}

.meta.dark {
  background-color: #333;
  color: #fff;
  padding: 3px 10px;
  border-radius: 20px;
}

.berita-excerpt {
  padding: 0 14px;
  font-size: 14px;
  color: #444;
  margin-bottom: 8px;
}

.berita-bottom {
  padding: 0 14px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.meta.kategori {
  background-color: #005A89;
  color: #fff;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 20px;
}

.read-more {
  font-size: 13px;
  text-decoration: none;
  color: #0075ad;
  font-weight: 600;
}

.btn-wrapper {
  grid-column: span 2;
  text-align: center;
  margin-top: 20px;
}

.btn-full {
  padding: 10px 24px;
  background-color: #005A89;
  color: white;
  text-decoration: none;
  border-radius: 30px;
  display: inline-block;
  font-size: 14px;
  transition: 0.3s;
}

.btn-full:hover {
  background-color: #0075ad;
}

.btn-full.dark {
  background-color: #333;
}

.btn-full.dark:hover {
  background-color: #111;
}

/* ✅ Event Column */
.event-column {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.event-header {
  font-size: 18px;
  font-weight: 700;
  color: #005A89;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.garis-bawah-event {
  width: 60px;
  height: 4px;
  background-color: #005A89;
  margin-top: 6px;
}

.event-list {
  margin-top: 20px;
}

.event-item {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
  transition: 0.3s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  background: #fff;
  padding: 10px 14px;
}

.event-item:hover {
  background-color: #eef6fa;
}

.event-date {
  background-color: #333;
  color: white;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 6px;
  min-width: 70px;
  text-align: center;
}

.event-name {
  font-size: 15px;
  color: #222;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 1024px) {
  .berita-event-row {
    grid-template-columns: 1fr;
  }
  .berita-column {
    grid-template-columns: 1fr;
  }
}

/* ✅ Top Contributor */
.contributor-header {
  font-size: 18px;
  font-weight: 700;
  color: #005A89;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contributor-table {
  margin-bottom: 30px;
}

.contributor-row {
  display: grid;
  grid-template-columns: 1fr 3fr 1fr;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid #e0e0e0;
  font-size: 14px;
  gap: 10px;
}

.contributor-row.header {
  font-weight: 600;
  background-color: #eef6fa;
  border-radius: 4px;
  margin-bottom: 6px;
}

.contributor-row i {
  margin-right: 6px;
  color: #0075ad;
}

/* ✅ Section Partner Kami */
.partner-section {
  width: 100vw; /* full browser width */
  margin: 0;
  padding: 30px 0 30px;
  background-color: #f1f3f5;
  box-sizing: border-box;
}


.partner-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.partner-box {
  background: #ffffff;
  padding: 20px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.partner-box:hover {
  transform: translateY(-4px);
}

.partner-box img {
  max-width: 100%;
  max-height: 60px;
  object-fit: contain;
}

@media (max-width: 1024px) {
  .partner-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .partner-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
