/* ==== Global ==== */
body {
  padding-top: 96px; /* Topbar 40px + Navbar 56px */
}

/* ==== Topbar ==== */
.topbar {
  background-color: #304FFD;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: white;
  z-index: 1040;
  transition: transform 0.3s ease-in-out;
}
.topbar a {
  margin-right: 10px;
  color: #ffffff;
}
.topbar-toggle {
  border: none;
  background: none;
  color: white;
  font-size: 1.2rem;
}
.topbar-hidden {
  transform: translateY(-100%);
}

/* ==== Navbar ==== */
.navbar.fixed-top {
  top: 40px;
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1030;
  transition: top 0.3s ease-in-out;
}
.navbar.fixed-top.navbar-top {
  top: 0;
}
.navbar .nav-link {
  padding: 0.5rem 1rem;
  font-weight: 500;
  color: #000000;
}
.navbar .nav-link:hover {
  color: #0056b3;
}

/* ==== Mega Menu ==== */
.nav-item.dropdown.megamenu {
  position: static;
}
.nav-item.dropdown.megamenu .dropdown-menu {
  position: absolute;
  width: 100%;
  left: 0;
  top: 100%;
  display: none;
  background: #f8f9fa;
  padding: 2rem;
  border-top: 2px solid #304FFD;
  z-index: 1035;
}
.nav-item.dropdown.megamenu:hover .dropdown-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.nav-item.dropdown.megamenu .dropdown-menu .col {
  min-width: 200px;
}
.mega-menu-title {
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #000000;
}

/* ==== Dropdown Multi-Level ==== */
.dropdown-submenu {
  position: relative;
}
.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -1px;
  border-left: 1px solid rgba(0,0,0,0.1);
  display: none;
  position: absolute;
  z-index: 1050;
}
.dropdown-submenu:hover > .dropdown-menu {
  display: block;
}
.dropdown-menu {
  white-space: normal;
  word-wrap: break-word;
}
.dropdown-submenu > a:after {
  float: right;
  margin-left: 10px;
  font-size: 12px;
  content: "▶";
}
.submenu-arrow {
  float: right;
  margin-left: 10px;
  font-size: 0.8em;
}

/* ==== Link Styling ==== */
ul.list-unstyled li a {
  display: block;
  color: black;
  text-decoration: none;
}
ul.list-unstyled li a:hover {
  color: #304FFD;
  text-decoration: none;
}
ul.list-unstyled li .link_a,
ul.list-unstyled li h6 {
  color: #fff;
  font-weight: bold;
  text-decoration: none;
}
ul.list-unstyled li .link_a:hover {
  color: #d9dae2;
  text-decoration: none;
}

/* ==== Carousel ==== */
.carousel-image-wrapper {
  aspect-ratio: 10 / 3;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #102F51;
}
.carousel-image {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.carousel-link {
  text-decoration: none;
  color: inherit;
}
.carousel-link:hover {
  text-decoration: none;
  color: inherit;
}

/* ==== Menu Kotak ==== */
.menu-box {
  text-align: center;
  padding: 2rem 1rem;
  color: white;
}
.menu-box i {
  font-size: 2rem;
}
.bg-ppid-dark { background-color: #2c2f33; }
.bg-ppid-blue { background-color: #1e4eff; }
.bg-ppid-navy { background-color: #102f52; }
.bg-ppid-grey { background-color: #3d3d3d; }

/* ==== Footer ==== */
.footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 2rem 0;
}
.footer a {
  color: #ccc;
  text-decoration: none;
}
.footer a:hover {
  color: white;
}
.badge-download {
  font-size: 0.85rem;
  padding: 0.5em 0.7em;
}

/* ==== Link A Standalone ==== */
.link_a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}
.link_a:hover {
  text-decoration: none;
  color : #d9dae2;
}

/* Jangan beri margin atau padding vertikal besar pada trigger */
.nav-item.dropdown.megamenu {
  position: static;
}

/* Dropdown menu langsung menempel */
.nav-item.dropdown.megamenu .dropdown-menu {
  top: 100%;
  left: 0;
  margin: 0;
  padding: 2rem; /* Bisa disesuaikan, tapi jangan terlalu jauh */
  display: none;
  position: absolute;
  width: 100%;
  background: #f8f9fa;
  border-top: 2px solid #304FFD;
  z-index: 1050;
}

/* Tampilkan saat hover */
.nav-item.dropdown.megamenu:hover > .dropdown-menu,
.nav-item.dropdown.megamenu:focus-within > .dropdown-menu {
  display: flex;
  flex-wrap: wrap;
}


/* Pastikan kolom mega menu cukup lebar dan padding nyaman */
.mega-menu-content .col-md-3 {
  min-width: 200px;
  padding: 0.5rem 1rem;
  white-space: normal; /* Izinkan teks wrapping */
  word-break: break-word;
}

/* Dropdown item lebar penuh agar area hover besar */
.dropdown-item {
  width: 100%;
  padding: 0.5rem 0.75rem;
  display: block;
  white-space: normal;
  word-wrap: break-word;
}

/* Judul kategori dalam mega menu */
.dropdown-header {
  color: #1E4EFF;   
  font-weight: bold;
  font-size: 1rem;
  /* margin-bottom: 0.5rem; */
  white-space: normal;
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.25rem;
  margin-bottom: 0.5rem;

}

/* Pastikan hover tidak hilang saat geser antar area */
.nav-item.dropdown.megamenu {
  position: static;
}

.nav-item.dropdown.megamenu .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1050;
  padding: 2rem;
  background-color: #f8f9fa;
  border-top: 2px solid #304FFD;
  transition: opacity 0.3s ease;
}

.nav-item.dropdown.megamenu:hover > .dropdown-menu,
.nav-item.dropdown.megamenu:focus-within > .dropdown-menu {
  display: flex;
  flex-wrap: wrap;
}

/* Jika ingin scroll untuk konten panjang */
.mega-menu-content {
  max-height: 400px;
  overflow-y: auto;
}


/* === Responsive: Mega Menu di Mobile === */
/* @media (max-width: 991.98px) {
  .megamenu .dropdown-menu {
    position: static !important;
    display: block !important;
    width: 100% !important;
    box-shadow: none;
    border: none;
    padding: 0.5rem 1rem;
  }

  .mega-menu-content {
    flex-direction: column;
  }

  .mega-menu-content .col-md-3 {
    width: 100%;
    padding: 0.5rem 0;
  }

  .navbar-nav .dropdown-menu {
    position: static;
    float: none;
  }

  .dropdown-submenu > .dropdown-menu {
    margin-left: 1rem;
  }
} */
