/* =========================
   GLOBAL
========================= */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #f6f3fb;
  color: #333;
  padding-top: 80px;
}

h2 {
  color: #5b2c83;
  margin-bottom: 10px;
}

img {
  max-width: 100%;
  height: auto;
}

/* =========================
   DROPDOWN (BASE)
========================= */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  display: block;
  background: #fff;
  list-style: none;
  padding: 10px 0;
  min-width: 180px;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 9999;
}

.dropdown-menu li a {
  display: block;
  padding: 8px 15px;
  color: #4b006e;
}

.dropdown-menu li a:hover {
  background: rgba(75,0,110,.08);
}

/* =========================
   HERO
========================= */
.hero {
  background: linear-gradient(135deg, #5b2c83, #7d3fc7);
  color: #fff;
  padding: 90px 20px;
  text-align: center;
}

.hero h2 {
  color: #fff;
  font-size: 36px;
}

/* =========================
   SECTION
========================= */
.section {
  padding: 60px 10%;
  background: #fff;
  margin-bottom: 30px;
  border-radius: 18px;
  box-shadow: 0 15px 35px rgba(0,0,0,.08);
}

/* =========================
   PROFILE / STATISTIK
========================= */
.profile {
  background: #f7f2fb;
  text-align: center;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: auto;
}

.card {
  background: #fff;
  border-radius: 16px;
  padding: 30px 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  transition: .3s;
}

.card:hover {
  transform: translateY(-6px);
}

.card h3 {
  font-size: 36px;
  color: #6a1b9a;
  margin-bottom: 8px;
}

.card p {
  color: #555;
}

/* =========================
   GALLERY
========================= */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.gallery .item {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(91,44,131,.2);
  transition: .3s;
}

.gallery .item:hover {
  transform: translateY(-8px);
}

.gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.gallery p {
  padding: 15px;
  font-weight: 600;
  color: #5b2c83;
  text-align: center;
}

/* =========================
   FOOTER
========================= */
.kwarran-footer {
  background: #3c005f;
  color: #fff;
  padding: 60px 10% 20px;
  margin-top: 60px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 40px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li a {
  color: #ffd6ff;
  text-decoration: none;
}

.footer-col ul li a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  padding: 15px;
  border-top: 1px solid rgba(255,255,255,.2);
  margin-top: 30px;
}

/* =========================
   NAVBAR (FIX FINAL)
========================= */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 99999;
  background: linear-gradient(135deg, #4b006e, #6a1b9a);
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
  pointer-events: auto;
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  padding: 15px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: bold;
}

.logo-img {
  height: 40px;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: .3s;
}

.nav-menu a:hover {
  opacity: 0.8;
}

.nav-menu li.dropdown:hover .dropdown-menu,
.nav-menu li.dropdown .dropdown-menu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-menu li.dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 15px;
}

.hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: #fff;
}

/* =========================
   MOBILE NAVBAR
========================= */
@media (max-width: 992px) {
  .hamburger {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 260px;
    height: calc(100vh - 70px);
    background: #4b006e;
    flex-direction: column;
    padding: 25px;
    gap: 15px;
    transition: .3s ease-in-out;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu li {
    margin-bottom: 10px;
  }

  .dropdown-menu {
    position: static;
    background: #5b2c83;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }
}

/* =========================
   HERO SLIDER (FIX KLIK)
========================= */
.hero-slider,
.slider,
.slide {
  position: relative;
  z-index: 1;
}

.hero-slider {
  width: 100%;
  height: 90vh;
  overflow: hidden;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none; /* FIX KLIK */
}

/* =========================
   IMAGE SECTION (GIF FIX)
========================= */
.profile-gif {
  text-align: center;
  padding: 80px 0;
  background: #f8f9fa;
}

.gif-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.gif-wrapper img {
  max-width: 1000px;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
  .profile-gif {
    padding: 30px 10px;
  }

  .gif-wrapper img {
    max-width: 100%;
    max-height: 260px;
    object-fit: contain;
  }
}

/* =========================
   WARTA GRID
========================= */
.warta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 30px;
}

.warta-item {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  transition: 0.3s;
  display: flex;
  flex-direction: column;
}

.warta-item:hover {
  transform: translateY(-6px);
}

.warta-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.warta-item a {
  display: block;
  margin: 15px;
  padding: 8px;
  text-align: center;
  background: #6a1b9a;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 992px) {
  .warta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .warta-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   FIX HERO SLIDER DESKTOP
========================= */

/* Pastikan container terlihat */
.hero-slider {
  width: 100%;
  height: 90vh;
  min-height: 300px; /* tambahan supaya tidak 0 di desktop */
  position: relative;
  overflow: hidden;
}

/* Pastikan slider isi penuh */
.slider {
  width: 100%;
  height: 100%;
  position: relative;
}

/* Default semua slide disembunyikan */
.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 0;
}

/* Slide aktif */
.slide.active {
  opacity: 1;
  z-index: 2;
}

/* Fallback kalau JS gagal */
.slide:first-child {
  opacity: 1;
}

/* Gambar full */
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* FIX: supaya tidak ketutup elemen lain */
.hero-slider {
  z-index: 1;
}
/* =========================
   FIX FINAL HERO SLIDER
========================= */

.hero-slider {
  width: 100%;
  height: 90vh;
  min-height: 350px;
  position: relative;
  overflow: hidden;
}

.slider {
  width: 100%;
  height: 100%;
  position: relative;
}

/* penting: pakai top-left */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

/* aktif */
.slide.active {
  opacity: 1;
  z-index: 2;
}

/* fallback kalau JS gagal */
.slide:first-child {
  opacity: 1;
}

/* gambar */
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block; /* 🔥 ini penting untuk desktop */
}
/* =========================
   FINAL OVERRIDE SLIDER (FIX TOTAL)
========================= */

.hero-slider {
  position: relative !important;
  width: 100% !important;
  height: 90vh !important;
  min-height: 350px !important;
  overflow: hidden !important;
  z-index: 1 !important;
}

.slider {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
}

/* RESET semua konflik */
.slide {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  z-index: 0 !important;
  transition: opacity 1s ease-in-out !important;
}

/* slide aktif */
.slide.active {
  opacity: 1 !important;
  z-index: 2 !important;
}

/* fallback kalau JS gagal */
.slide:first-child {
  opacity: 1 !important;
}

/* FIX gambar (ini kunci utama desktop) */
.hero-slider .slide img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}
/* =========================
   VIDEO SECTION
========================= */
.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 20px auto;
  aspect-ratio: 16 / 9;
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border-radius: 12px;
}
/* =========================
   VIDEO FULL LEBAR
========================= */
.video-section {
  padding: 0; /* hilangkan padding default */
}

.video-wrapper {
  width: 100%;
  height: 80vh; /* tinggi besar seperti banner */
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border-radius: 0; /* biar full clean */
}