/* =====================================
   DESKTOP-SPECIFIC NAV / MEGA MENU (FULL)
   Center-anchored mega menu (stable on 1366px etc.)
   ===================================== */

/* Icons */
.facebook {
  background: url('/images/icons/facebook.png') no-repeat center center;
  background-size: cover;
  width: 30px;
  height: 30px;
  display: inline-block;
}

.instagram {
  background: url('/images/icons/instagram.png') no-repeat center center;
  background-size: cover;
  width: 30px;
  height: 30px;
  display: inline-block;
}

.tiktok {
  background: url('/images/icons/tiktok.png') no-repeat center center;
  background-size: cover;
  width: 30px;
  height: 30px;
  display: inline-block;
}

/* TOP BAR */
.topbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 20px;
}

.topbar-container .offer-text {
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}

.contact-icons-wrapper {
  display: flex;
  align-items: center;
}

.top-bar .contact-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-bar .contact-icons a {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.top-bar .contact-icons a.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
}

.top-bar .contact-icons a.contact-link .contact-text {
  color: #ffffff;
  white-space: nowrap;
  font-size: 1rem;
}

.icon-white {
  width: 20px;
  height: 20px;
  filter: invert(1);
  opacity: 0.9;
  transition: 0.2s ease;
}

.icon-white:hover {
  opacity: 1;
  transform: scale(1.12);
}

/* Topbar responsive */
@media (max-width: 1024px) {
  .topbar-container {
    flex-wrap: wrap;
    padding: 6px 12px;
  }

  .topbar-container>div:first-child {
    flex: 0 0 100%;
    text-align: center;
    font-size: 14px;
    margin-bottom: 4px;
  }

  #top-bar .row {
    width: 100%;
    margin-top: 0;
  }

  #top-bar .row .col-12 {
    justify-content: center !important;
  }

  .top-bar .contact-icons {
    justify-content: center;
    gap: 8px;
  }
}

@media (max-width: 768px) {
  .top-bar .contact-link .contact-text {
    display: none;
  }
}

/* =========================================================
   ✅ MEGA MENU: ALWAYS CENTERED TO NAVIGATION CONTAINER
   Fixes 1366px width drifting / left shift issues
   ========================================================= */
@media (min-width: 992px) {

  /* Anchor container */
  .navigation {
    position: relative;
    overflow: visible;
  }

  /* IMPORTANT: parent should NOT be relative, warna submenu parent ke against drift karega */
  .navigation .parent,
  .navigation .dropdown-parent,
  .ds-nav-item.dropdown-parent {
    position: static !important;
  }

  /* Base hidden panel */
  .navigation .submenu {
    display: none;
    position: absolute;

    left: 50% !important;
    transform: translateX(-50%) !important;

    top: 60%;
    margin-top: 12px;

    width: min(1180px, 94vw);
    max-width: 94vw;

    background: #ffffff;
    overflow: visible !important;
    border-radius: 20px;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(148, 163, 184, 0.35);
    z-index: 99999;
    cursor: default;
  }

  /* Inner padding / layout */
  .navigation .submenu .submenu-inner {
    padding: 28px 34px 30px;
    max-height: none !important;
    overflow: visible !important;
  }

  /* Remove Bootstrap row negative margins inside submenu */
  .navigation .submenu .submenu-inner .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Columns */
  .navigation .submenu .submenu-column {
    padding: 0 28px 10px 0;
    border-right: none;
  }

  /* Remove bullets */
  .navigation .submenu ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0;
  }

  /* Optional scrollbar (normally not needed because we removed overflow hidden) */
  .navigation .submenu .submenu-inner::-webkit-scrollbar {
    display: none;
    width: 6px;
  }

  /* SHOW submenu on hover */
  .navigation .dropdown-parent:hover>.submenu {
    display: block;
  }

  /* Ensure nav is flex */
  #main-navigation.ds-nav {
    display: flex !important;
  }
}

/* =========================================================
   Tablet landscape (992–1199): keep centered, slightly tighter
   ========================================================= */
@media (min-width: 992px) and (max-width: 1199px) {
  .navigation {
    position: relative;
    overflow: visible;
  }

  .navigation .submenu {
    left: 50% !important;
    transform: translateX(-50%) !important;

    width: 96vw !important;
    max-width: 96vw !important;

    margin-top: 12px;
    border-radius: 18px;
  }

  .navigation .submenu .submenu-inner {
    padding: 20px 22px 22px !important;
  }

  .navigation .submenu .submenu-column {
    padding-right: 14px !important;
  }
}

/* =========================================================
   1200–1399 (includes 1366px): DO NOT MOVE LEFT/RIGHT
   Just tweak width if needed (NO left:250% etc.)
   ========================================================= */
@media (min-width: 1200px) and (max-width: 1399px) {
  .navigation .submenu {
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: min(1140px, 92vw) !important;
    max-width: 92vw !important;
  }
}


/* =====================================
   MEGA MENU STYLES (PREMIUM V3 - SPACIOUS)
   ===================================== */

/* Wide Container Logic */
@media (min-width: 992px) {
  .mega-menu-v3 {
    width: min(1400px, calc(100vw - 48px)) !important;
    /* Requested: 1400px */
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
}

/* Mega Menu Inner Panel */
.mega-menu-inner {
  padding: 32px 36px !important;
  /* Generous padding */
  background: #ffffff;
  border-radius: 16px;
  /* Smooth rounded corners */
  max-height: 72vh;
  /* Requested: 72vh */
  overflow-y: auto;
  box-shadow: 0 40px 100px rgba(15, 23, 42, 0.15) !important;
  /* Premium shadow */
  border: 1px solid rgba(226, 232, 240, 0.6);
}

/* Custom Scrollbar */
.mega-menu-inner::-webkit-scrollbar {
  width: 8px;
}

.mega-menu-inner::-webkit-scrollbar-track {
  background: transparent;
}

.mega-menu-inner::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 10px;
  border: 3px solid #fff;
  /* Padding effect */
}

/* Mega Section (Clean Column - No Card Border) */
.mega-section {
  padding-right: 16px;
  height: 100%;
}

/* Category Headers */
.submenu-heading-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.submenu-heading {
  margin-bottom: 0px;
  padding-bottom: 0px;
  border-bottom: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Category Icon (Container) */
.category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  /* background: rgba(169, 26, 106, 0.10); */
  /* Transparent Pink/Navy tint */
  border-radius: 8px;
  color: #01345b;
  /* Navy */
  transition: all 0.2s;
  margin-right: 4px;
}

/* Category SVG Styling */
.category-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.submenu-heading-link {
  font-size: 1rem !important;
  font-weight: 700;
  color: #0f172a;
  text-transform: capitalize;
  letter-spacing: 0.1px;
  line-height: 1.3;
  text-decoration: none;
  transition: color 0.2s;
}

/* Hover: Icon turns pink */
.submenu-heading:hover .category-icon {
  background: rgba(169, 26, 106, 0.15);
  color: #a91a6a;
  /* Pink */
}

/* Hover: Link turns pink */
.submenu-heading:hover .submenu-heading-link,
.submenu-heading-link:hover {
  color: var(--Primary-Color, #E1479F);
}

/* Course Count Badge (Pill) */
.course-count-badge {
  font-size: 11px;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
  text-transform: uppercase;
  display: inline-block;
  align-self: flex-start;
  margin-left: 34px;
  /* Align with text */
  margin-top: 4px;
}

/* Divider Line */
.section-divider {
  height: 1px;
  background: #f1f5f9;
  margin-top: 12px;
  margin-bottom: 16px;
  width: 100%;
}

/* Links List */
.mega-menu-list {
  margin-top: 0 !important;
}

.mega-menu-list .submenu-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 12px;
  /* Comfortable click area */
  border-radius: 8px;
  color: #334155;
  /* Slate 700 */
  font-size: 14px;
  font-weight: 400;
  /* Normal weight */
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
  text-decoration: none;
  line-height: 1.5;
  margin-bottom: 2px;
}

/* Link Icon Circle (Soft Check/Book) */
.link-icon-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
  margin-top: 1px;
  color: #94a3b8;
}

.item-arrow-icon {
  width: 10px;
  height: 10px;
  fill: currentColor;
}

/* Hover Effects (Premium Pink Accent) */
.submenu-link:hover {
  background: #fff0f7;
  /* Very light pink tint */
  color: var(--Primary-Color, #E1479F);
  transform: translateX(2px);
  box-shadow: -3px 0 0 0 var(--Primary-Color, #E1479F);
  /* Left accent border simulated */
  padding-left: 15px;
  /* Slight shift to accommodate border */
}

.submenu-link:hover .link-icon-circle {
  background: transparent;
  color: var(--Primary-Color, #E1479F);
}

/* View More Link (Navigational) */
.view-more-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.87rem !important;
  font-weight: 600;
  color: #01345b !important;
  text-decoration: none;
  padding: 6px 12px;
  margin-left: -12px;
  /* Align with items */
  transition: opacity 0.2s;
}

.view-more-link:hover {
  opacity: 0.8;
  color: #01345b !important;
}

/* Global View All Footer */
.global-view-all {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
  padding: 10px 24px;
  border-radius: 30px;
  background: #f8fafc;
  transition: all 0.2s;
}

.global-view-all:hover {
  background: var(--Primary-Color, #E1479F);
  color: #fff;
}

/* Column Spacing */
.mega-menu-col {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

.mega-menu-col::after {
  display: none !important;
}

/* =====================================
   TABLET SUPPORT (768px - 991px)
   ===================================== */
/* =====================================
   TABLET SUPPORT (768px - 991px)
   ===================================== */
@media (min-width: 768px) and (max-width: 991px) {
  .navigation {
    position: relative;
    overflow: visible;
  }

  /* Tablet logic for Premium Menu */
  .navigation .mega-menu {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 96vw;
    top: 60%;
    margin-top: 15px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.22);
    border: 1px solid rgba(148, 163, 184, 0.2);
    z-index: 99999;
  }

  .navigation .dropdown-parent:hover>.mega-menu {
    display: block;
  }

  .mega-menu-inner {
    padding: 20px !important;
  }
}