@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap");
* {
  box-sizing: border-box;
  font-family: "Outfit", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
/* =================== HERO SECTION =================== */
.hero-section {
  height: 100vh;
  background-image: url("../assets/halaman-utama-web.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}
.what-text h4 {
  font-weight: bold;
  background-color: transparent;
  padding: 10px 20px;
  font-size: 1rem;
}

.infaq-section ul {
  padding-left: 1.5rem;
}

.infaq-section li {
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .hero-section {
    height: auto;
    padding: 100px 0;
  }
}

/* =================== WHAT SECTION =================== */
.what-section {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.img-wrapper {
  position: relative;
  width: 100%;
  height: auto;
}

.img-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

/* =================== INFO BUTTON =================== */
.info-toggle {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  padding: 8px 12px;
  font-size: 20px;
  cursor: pointer;
}

/* =================== OVERLAY =================== */
.deskripsi-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 40px;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 20;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

/* Responsive untuk Overlay */
@media (max-width: 768px) {
  .deskripsi-overlay {
    padding: 20px;
    font-size: 14px;
  }

  .info-toggle {
    top: 10px;
    left: 10px;
    font-size: 16px;
    padding: 6px 10px;
  }

  .close-btn {
    font-size: 20px;
    top: 10px;
    right: 10px;
  }
}

/* =================== NAVBAR =================== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: #fff;
  position: relative;
  z-index: 1001;
}

.navbar-logo img {
  height: 50px;
}

.navbar-toggle {
  font-size: 2rem;
  cursor: pointer;
  display: none;
}

/* ==== DESKTOP MENU ==== */
.navbar-menu a {
  color: #333;
  margin-left: 1.5rem;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: color 0.3s ease;
}

.navbar-menu a:hover {
  color: green;
}

.navbar-menu a::after {
  content: "";
  display: block;
  width: 0%;
  height: 2px;
  background-color: green;
  position: absolute;
  bottom: -4px;
  left: 0;
  transition: width 0.3s;
}

.navbar-menu a:hover::after {
  width: 100%;
}

/* ==== MOBILE SIDEBAR MENU ==== */
.sidebar {
  height: 100%;
  width: 250px;
  background-color: #fff;
  position: fixed;
  top: 0;
  left: -250px;
  z-index: 1002;
  padding-top: 60px;
  transition: left 0.3s ease;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
}

.sidebar a {
  display: block;
  padding: 15px 25px;
  color: #333;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  border-bottom: 1px solid #eee;
  transition: background-color 0.3s ease;
}

.sidebar a:hover {
  background-color: #f0f0f0;
  color: green;
}

.sidebar .close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  background: none;
  border: none;
  color: #333;
  text-align: right;
  margin-left: auto;
  margin-bottom: 1rem;
  display: block;
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1000;
  display: none;
}

.sidebar.active {
  left: 0;
}

.overlay.active {
  display: block;
}

/* Tombol WhatsApp di menu desktop */
.navbar-menu .btn-success {
  display: inline-block;
  padding: 8px 16px;
  margin-left: 1.5rem;
  background-color: #25d366;
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  font-size: 0.95rem;
  line-height: 1.2;
}

.navbar-menu .btn-success:hover {
  background-color: #1ebe5d;
  color: #fff;
  border-bottom: none;
}

/* Tambahan styling untuk tombol WhatsApp di sidebar */
.sidebar .btn-success {
  margin: 15px 25px;
  display: inline-block;
  text-align: center;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 8px;
  background-color: #25d366;
  color: white;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.sidebar .btn-success:hover {
  background-color: #1ebe5d;
}

/* === Mobile Navigation === */
@media (max-width: 768px) {
  .navbar-toggle {
    display: block;
  }

  .navbar-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #f8f9fa;
    width: 100%;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .navbar-menu.active {
    display: flex;
  }
}

/* Sembunyikan sidebar dan overlay di desktop */
@media (min-width: 769px) {
  .sidebar,
  .overlay {
    display: none !important;
  }
}

/* =================== FLOATING DONASI =================== */
.donasi-floating {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
}

.donasi-btn {
  color: white;
  background: green;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 30px;
  font-weight: bold;
  min-width: 140px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: background-color 0.2s ease;
}

.donasi-btn:hover {
  opacity: 0.7;
}

@media (max-width: 576px) {
  .donasi-btn {
    font-size: 14px;
    padding: 8px 12px;
    min-width: 120px;
  }
}

/* =================== VIDEO SECTION =================== */
.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.landscape-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

@media (max-width: 576px) {
  .video-wrapper {
    max-width: 100%;
    border-radius: 8px;
  }

  .landscape-video {
    border-radius: 8px;
  }
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* Rasio 16:9 */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  border-radius: 0.5rem; /* Opsional: bulatkan sudut */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Opsional: bayangan */
}

.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 0.5rem;
}
