/* ================= MEGA MENU ================= */

.mega-menu {
  left: 0;
  right: 0;
  top: 100%;
  border-radius: 0 0 20px 20px;
  background: #ffffff;
  margin-top: 0;
  padding: 0;
}

.mega-menu.show {
  display: block;
}

.mega-menu .row.flex-nowrap {
  display: flex;
  align-items: stretch;
}

.nav-item.dropdown.position-static {
  position: static;
}

.mega-sidebar-col {
  background: #eef2ff;
  border-radius: 12px;
  padding: 16px;
  width: 280px;
  min-width: 280px;
}

.mega-sidebar-label {
  font-size: 12px;
  font-weight: 700;
  color: #111;
  margin-bottom: 16px;
}

.mega-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}

.mega-item {
  padding: 16px 18px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
  display: flex;
  flex-direction: column;
  height: 100px;   
  box-shadow: none;
}

.mega-item:active, .mega-item:hover {
  background: #ffffff;
}

.mega-item.active {
  background: #ffffff;
}

.mega-item h6 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #222;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mega-item h6::after {
  content: "›";
  font-size: 18px;
  font-weight: 400;
  color: #aaa;
}

.mega-item p {
  font-size: 13px;
  color: #666;
  margin: 0;
  line-height: 1.4;
}

.mega-item.active h6 {
  color: #2d56c8;
}

.mega-item.active h6::after {
  color: #2d56c8;
}

.mega-item.active p {
  color: #555;
}

.mega-content {
  display: none;
  animation: fadeIn 0.2s ease-in-out;
}

.mega-content.active {
  display: block;
}

.mega-section-title {
  font-size: 13px;
  font-weight: 700;
  color: #111;
  margin-bottom: 24px;
}

.mega-content .row {
  align-items: stretch;
}

.mega-content .row > div {
  display: flex;
  align-items: stretch;
  margin-bottom: 16px;
}

.mega-link {
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: #222;
  transition: all 0.2s ease;
  width: 100%;
  min-height: 90px;    /* ← samakan tinggi minimum */
}

.mega-link strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 4px;
  line-height: 1.3;
}

.mega-link:hover .small {
  color: #888;
}

.mega-link:hover strong {
  color: #1a1a2e;
}

.mega-link:hover {
  background: #eef2ff;
  text-decoration: none;
  color: #222;
}

.mega-link.active {
  background: #eef2ff;
}

.mega-link.active strong {
  color: #2d56c8;
}

.mega-divider {
  width: 1px;
  background: #ffffff;
  margin: 0 16px;
  align-self: stretch;
}

/* Modul aktif hanya saat dropdown terbuka */
.nav-item.dropdown .nav-link.dropdown-toggle.show {
  color: #2d56c8 !important;
  font-weight: 600 !important;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

body {
  overflow-x: hidden;
}