@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Light.ttf") format("ttf");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Regular.ttf") format("ttf");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-SemiBold.ttf") format("ttf");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Bold.ttf") format("ttf");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-ExtraBold.ttf") format("ttf");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ===============================
   🌐 DASAR HALAMAN
   =============================== */
body {
  font-family: Poppins, sans-serif; /* Gunakan font Poppins untuk tampilan modern */
  margin: 0; /* Hilangkan jarak default body */
  padding: 0; /* Hilangkan padding default body */
  background: #fff; /* Warna latar belakang putih bersih */
}

/* ===============================
   🧭 HEADER (Bagian atas situs)
   =============================== */
.site-header {
  background: linear-gradient(90deg, #2fc0ff, #2b6bff); /* Gradasi biru cerah */
  padding: 10px 0; /* Ruang vertikal dalam header */
  color: white; /* Teks putih agar kontras */
  position: relative; /* Default, bisa diganti sticky/fixed */
  z-index: 100; /* Pastikan di atas elemen lain */
}

/* ===============================
   📏 STRUKTUR FLEX DI DALAM HEADER
   =============================== */
.topbar {
  max-width: 1200px; /* Lebar maksimal */
  margin: 0 auto; /* Tengah secara horizontal */
  display: flex; /* Susunan horizontal */
  align-items: center; /* Vertikal rata tengah */
  justify-content: space-between; /* Logo di kiri, menu di kanan */
  padding: 0 16px; /* Jarak kanan kiri */
  gap: 30px; /* Jarak antar elemen di dalam */
}

/* ===============================
   🪪 LOGO / BRAND TEXT
   =============================== */
.brand {
  font-family: "Horizon", "Poppins", sans-serif; /* Font khusus */
  font-size: 28px;
  font-weight: 700; /* Tebal */
  color: white;
  letter-spacing: 1px; /* Sedikit jarak antar huruf */
}

/* ===============================
   📚 MENU NAVIGASI UTAMA
   =============================== */
.main-nav {
  display: flex; /* Susun menu horizontal */
  align-items: center;
  margin-left: auto; /* Geser menu ke kanan */
  margin-right: 20px; /* Tambah jarak ke tepi kanan */
}

/* Tiap item menu */
.nav-item {
  color: white;
  text-decoration: none; /* Hilangkan garis bawah */
  padding: 10px 18px; /* Ruang dalam tombol */
  border-radius: 6px; /* Sudut membulat */
  font-weight: 600; /* Teks agak tebal */
  transition: background 0.3s ease; /* Efek hover halus */
}

/* Efek hover atau aktif */
.nav-item:hover,
.nav-active {
  background: rgba(255, 255, 255, 0.25); /* Warna putih transparan */
}

/* ===============================
   🔽 DROPDOWN MENU
   =============================== */
.dropdown {
  position: relative; /* Agar konten dropdown bisa diatur absolut di bawahnya */
  z-index: 1000;
}

.dropbtn {
  background: none;
  color: white;
  border: none;
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.dropbtn:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Kotak dropdown yang muncul */
.dropdown-content {
  display: none; /* Disembunyikan default */
  position: absolute; /* Posisi di bawah tombol */
  background-color: white;
  color: #333;
  min-width: 290px; /* Lebar minimum */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* Bayangan */
  border-radius: 6px;
  overflow: hidden;
  top: 100%; /* Tepat di bawah tombol */
  left: 0;
  z-index: 2000;
  pointer-events: auto; /* Agar bisa diklik */
}

/* Saat aktif (via JavaScript class .show) */
.dropdown-content.show {
  display: block;
}

/* Tiap item dalam dropdown */
.dropdown-content a {
  color: #222;
  padding: 10px 16px;
  text-decoration: none;
  display: block;
  font-weight: 500;
  transition: background 0.2s ease;
}
.dropdown-content a:hover {
  background-color: #f3f3f3; /* Efek hover abu terang */
}

/* Aktifkan dropdown juga saat hover */
.dropdown:hover .dropdown-content {
  display: block;
}

/* ===============================
   🔍 SEARCH BAR
   =============================== */
.search-wrap {
  margin-left: 0;
}

/* Kotak input pencarian */
.search-wrap input {
  padding: 10px 14px;
  border-radius: 20px; /* Bentuk oval */
  border: none;
  outline: none;
  width: 200px;
  transition: width 0.3s ease; /* Efek animasi saat diperbesar */
}

/* Saat fokus */
.search-wrap input:focus {
  width: 260px; /* Membesar */
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.15); /* Efek cahaya */
}

/* ===============================
   🧱 KONTAINER UTAMA
   =============================== */
.container {
  max-width: 1200px;
  margin: 20px auto; /* Tengah di halaman */
  display: grid; /* Layout grid */
  grid-template-columns: 120px 1fr 260px; /* Banner kiri, konten, sidebar kanan */
  gap: 20px;
  padding: 0 16px;
}

/* ===============================
   🖼️ LEFT BANNER / KOLOM KIRI
   =============================== */
.left-banner {
  background: #fafafa; /* Abu muda */
  padding: 10px;
  border-radius: 8px; /* Sudut membulat */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); /* Bayangan lembut */
  display: flex;
  flex-direction: column; /* Susunan vertikal */
  gap: 12px; /* Jarak antar banner */
}

/* Wrapper agar banner-item tersusun rapi */
.banner-wrapper {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Gaya tiap banner */
.banner-item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

/* Efek zoom halus saat hover */
.banner-item:hover {
  transform: scale(1.03);
}

/* Gambar banner */
.banner-item img {
  width: 100%;
  border-radius: 6px;
  display: block;
}

/* Keterangan di bawah gambar banner */
.banner-caption {
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 13px;
  padding: 6px 8px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  line-height: 1.3em;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
}

/* ===============================
   📦 KONTEN TENGAH (DAFTAR TOOLS)
   =============================== */

/* .content {
  background: #fff;
  border-radius: 6px;
} */
/* === Responsive Global untuk .content === */
.content {
  background: #fff;
  border-radius: 6px;
  padding: 16px;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden; 
}

/* Pastikan semua elemen di dalam .content mengikuti lebar parent */
.content * {
  max-width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
}

/* Responsive gambar di dalam content */
.content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}

/* Responsive grid di dalam content */
/* .content .tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
} */

/* Responsive teks agar tetap proporsional */
/* .content h1, 
.content h2, 
.content h3, 
.content p {
  line-height: 1.6;
  font-size: clamp(14px, 2vw, 18px);
} */

/* Responsive tombol atau link */
/* .content a,
.content button {
  max-width: 100%;
  display: inline-block;
  text-align: center;
  white-space: normal;
} */


/* Susunan kartu tools */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* Kartu masing-masing tool */
.tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f9f9f9;
  border-radius: 10px;
  text-decoration: none;
  color: #222;
  font-size: 14px;
  padding: 14px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* Animasi saat muncul */
.tool-card[style*="display: flex"] {
  animation: fadeIn 0.25s ease;
}

/* Keyframe untuk efek fade in */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Efek hover kartu tool */
.tool-card:hover {
  background: #e6f3ff;
  transform: translateY(-3px);
}

/* Ikon besar pada tool */
.tool-icon {
  font-size: 36px;
  margin-bottom: 8px;
}

/* Nama tool */
.tool-name {
  text-align: center;
  font-weight: 600;
}

/* ===============================
   🧱 SIDEBAR KANAN
   =============================== */
.right-sidebar {
  background: #f9f9f9;
  padding: 16px;
  border-radius: 6px;
  font-size: 14px;
}

/* Bagian dalam sidebar */
.sidebar-section {
  margin-bottom: 20px;
}

/* Judul kecil di sidebar */
.sidebar-section h3 {
  font-size: 15px;
  font-weight: 700;
  color: #222;
  margin-bottom: 10px;
  border-bottom: 2px solid #2fc0ff; /* Garis bawah biru */
  padding-bottom: 4px;
}

/* List link di sidebar */
.sidebar-list {
  list-style: none; /* Hilangkan bullet */
  padding: 0;
  margin: 0;
}
.sidebar-list li {
  padding: 6px 0;
}
.sidebar-list a {
  text-decoration: none;
  color: #333;
  transition: color 0.2s;
}
.sidebar-list a:hover {
  color: #2b6bff;
  text-decoration: underline;
}

/* ===============================
   💗 FLOATING BUTTON (FAB)
   =============================== */
.fab-donate {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #e91e63;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  font-size: 28px;
  cursor: pointer;
  transition: 0.3s;
  z-index: 1000;
}
.fab-donate:hover {
  background: #c2185b;
  transform: scale(1.05);
}

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1001;
}

.popup-box {
  background: #fff;
  max-width: 400px;
  width: 90%;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.3s ease;
}

.popup-box h2 {
  color: #e91e63;
  margin-bottom: 10px;
}

.popup-box p {
  font-size: 16px;
  color: #444;
  margin-bottom: 20px;
  line-height: 1.5;
}

.popup-box .bank-info {
  background: #f9f9f9;
  padding: 12px;
  border-radius: 8px;
  text-align: left;
  font-family: monospace;
  border: 1px solid #ddd;
  margin-bottom: 20px;
}

.popup-box button {
  background: #e91e63;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.popup-box button:hover {
  background: #c2185b;
}

@keyframes fadeIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ===============================
   ⚙️ FOOTER (Bagian bawah)
   =============================== */
.site-footer {
  background: #2fc0ff;
  color: #fff;
  text-align: center;
  padding: 12px;
  font-size: 14px;
}

/* ===============================
   📱 RESPONSIVE MOBILE (≤760px)
   =============================== */
@media (max-width: 760px) {
  .container {
    grid-template-columns: 1fr; /* Hanya 1 kolom */
  }
  .left-banner {
    display: none; /* Sembunyikan banner kiri */
  }
  .tools-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 kolom tool di layar kecil */
  }
}

/* ===============================
   🍔 HAMBURGER MENU (≤768px)
   =============================== */
.menu-toggle {
  display: none; /* Default disembunyikan */
  background: none;
  border: none;
  font-size: 26px;
  color: white;
  cursor: pointer;
}

/* Aktifkan di layar kecil */
@media (max-width: 768px) {
  .menu-toggle {
    display: block; /* Tampilkan tombol burger */
    margin-left: auto;
  }

  /* Menu nav muncul vertikal di bawah header */
  .main-nav {
    position: absolute;
    top: 60px;
    left: 0;
    background: linear-gradient(180deg, #2fc0ff, #2b6bff);
    flex-direction: column;
    text-align: left;
    padding: 10px 0 0 10px;
    display: none; /* Disembunyikan default */
    border-bottom: 2px solid rgba(255, 255, 255, 0.25);
    z-index: 999;
  }

  /* Saat menu dibuka */
  .main-nav.show {
    display: flex;
    animation: fadeDown 0.3s ease;
  }

  @keyframes fadeDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Ubah tampilan item menu */
  .nav-item {
    width: 100%;
    display: block;
    padding: 14px 20px;
    font-weight: 600;
  }

  /* Dropdown di mode mobile */
  .dropdown-content {
    position: relative;
    background: rgba(255, 255, 255, 0.98);
    width: calc(100% - 20px);
    margin-left: -10px;
    border-radius: 8px;
    margin-top: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  .dropdown-content a {
    color: #222;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #eee;
  }

  .dropdown-content a:last-child {
    border-bottom: none;
  }

  /* Sembunyikan search di mobile */
  .search-wrap {
    display: none;
  }

  /* FAB disembunyikan saat menu terbuka */
  .hide-fab {
    display: none !important;
  }
}
