 /* ===== NAVBAR BASE ===== */
.custom-navbar {
  position: relative;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(20px);
  border-radius: 50px;
  z-index: 9999;
  padding: 0px 25px;
  display: flex; /* important for visibility */
  align-items: center;
  justify-content: space-between;
  overflow: visible !important;
  border: 1px solid #3d3d3d25;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.custom-navbar .nav-item {
  position: static !important;
}

.custom-navbar .nav-item:hover{
    color: var(--blue) !important;
}

/* Dropdowns aligned under their parent */
.custom-navbar .dropdown-menu {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;         /* default left alignment */
  margin-top: 5px !important;
  z-index: 10000;
  border-radius: 10px;
  min-width: 200px;           /* optional: consistent width */
}

.custom-navbar .nav-item.dropdown {
  position: relative !important;
}

.custom-navbar .nav-item.dropdown .dropdown-menu:hover{
    color: var(--blue) !important;
}

/* Menu links */
.custom-navbar .nav-link {
  color: #000; /* dark text */
  font-weight: 500;
  padding:15px;
}

/* Remove underline and list bullets */
.custom-navbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.custom-navbar a {
  text-decoration: none;
}


      .navbar-logo img {
        height: 32px;
        width: auto;
      }

      .nav-icons i,
      .nav-icons img {
        font-size: 20px;
        margin-left: 18px;
        cursor: pointer;
      }
      .nav-icons img {
        height: 28px;
        width: 28px;
        border-radius: 50%;
        object-fit: cover;
      }

      @media (min-width: 992px) {
        .nav-item.dropdown:hover .dropdown-menu {
          display: block;
          margin-top: 0;
        }
      }
      /* ===== CART SLIDER ===== */
      /* === CART SLIDER === */
      .cart-slider {
        position: fixed;
        top: 0;
        right: -420px;
        width: 360px;
        height: 100%;
        background: var(--bg-light);
        color: var(--text-primary);
        box-shadow: -4px 0 12px rgba(0, 0, 0, 0.2);
        transition: right 0.3s ease;
        z-index: 999;
        padding: 20px;
        border-radius: 20px 0 0 20px;
        display: flex;
        flex-direction: column;
      }

      .cart-slider.open {
        right: 0;
      }

      .cart-header {
        border-bottom: 1px solid var(--gray-light);
        padding-bottom: 10px;
      }

      .cart-header h6 {
        font-weight: 600;
        font-family: var(--font-heading);
      }

      .cart-close {
        font-size: 22px;
        cursor: pointer;
      }

      /* === Steps === */
      .cart-steps {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: 15px 0;
      }

      .cart-steps .step {
        display: flex;
        flex-direction: column;
        align-items: center;
        flex: 1;
      }

      .cart-steps .circle {
        width: 14px;
        height: 14px;
        border-radius: 50%;
        background: var(--gray-light);
        margin-bottom: 5px;
      }

      .cart-steps .step.active .circle {
        background: var(--yellow);
      }

      .cart-steps .line {
        flex: none;
        width: 100%;
        height: 2px;
        background: var(--gray-light);
      }

      .cart-content {
        overflow-y: auto;
        flex-grow: 1;
      }

      /* === Cart Item === */
      .cart-item {
        background: var(--blue-background-light);
        border-radius: 10px;
        padding: 10px;
        position: relative;
      }

      .cart-img {
        width: 80px;
        height: 60px;
        background: var(--gray-light);
        border-radius: 8px;
      }

      .review-meta small {
        font-size: 12px;
        color: var(--text-secondary);
      }

      .cart-info p {
        margin: 0;
        font-size: 14px;
      }

      .cart-price {
        font-weight: 700;
        font-size: 16px;
      }

      .old-price {
        text-decoration: line-through;
        color: var(--gray-dark);
        font-size: 14px;
        margin-right: 6px;
      }

      .cart-delete {
        font-size: 20px;
        cursor: pointer;
        color: var(--gray-dark);
        position: absolute;
        top: 10px;
        right: 10px;
      }

      /* === Footer === */
      .cart-footer {
        border-top: 1px solid var(--gray-light);
        padding-top: 15px;
      }

      .btn-checkout {
        background: var(--blue-dark);
        color: #fff;
        font-weight: 600;
        padding: 12px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
      }

      .btn-checkout:hover {
        background: var(--blue);
      }

      /* =========Hamburger =========*/
      #hamburger {
        padding: 6px;
        border-radius: 50%;
      }

      /* ===== USER DROPDOWN ===== */
      #userIcon.dropdown-toggle::after {
        display: none !important;
      }
     /* #userIcon + .dropdown-menu {
        display: block;
        border-radius: 12px;
        padding: 8px 0;
        min-width: 160px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      }*/
      #userIcon + .dropdown-menu .dropdown-item {
        padding: 8px 16px;
        font-size: 14px;
      }
      #userIcon + .dropdown-menu .dropdown-item:hover {
        background: #f1f1f1;
      }

      /* ===== MOBILE ===== */
      @media (max-width: 991px) {
        .custom-navbar ul,
        .nav-btn-dark,
        .nav-btn-light,
        .nav-icons .ri-user-line {
          display: none !important;
        }
      }

      /* ===== MOBILE MENU ===== */
      .mobile-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100%;
        background: #fff;
        color: #000;
        z-index: 1000;
        transition: left 0.3s ease;
        padding: 20px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
      }
      .mobile-menu.open {
        left: 0;
      }
      .mobile-menu a {
        display: block;
        padding: 10px 0;
        text-decoration: none;
        color: #000;
        font-weight: 500;
      }
      .mobile-submenu {
        display: none;
        padding-left: 15px;
      }
      .mobile-menu .menu-item {
        cursor: pointer;
      }
      .mobile-footer {
        border-top: 1px solid #ddd;
        padding-top: 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
      }
      .mobile-footer i,
      .mobile-footer img {
        font-size: 24px;
        cursor: pointer;
      }
      .mobile-footer img {
        width: 32px;
        height: 32px;
        border-radius: 50%;
      }

      /* ===== ALTERNATE HEADER (desktop) ===== */
           .alt-header {
  display: none;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s ease;
  background: #fff;
  color: #000;
  border-radius: 40px;
  padding: 15px 30px;
  position: absolute;  
  top: 0;            
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  width: 90%;           
   border: 1px solid #3d3d3d25;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.alt-header.show {
  display: block;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

      .alt-header-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
      }
      .alt-header-top img {
        height: 40px;
      }
      .alt-header-top .close-alt {
        font-size: 24px;
        cursor: pointer;
      }

      .alt-header .course-cards {
        display: flex;
        gap: 15px;
        margin-top: 15px;
      }
      .alt-header .course-cards div {
        width: 80px;
        height: 80px;
        background: #ddd;
        border-radius: 10px;
      }

      .alt-header h6 {
        font-weight: 600;
      }
      .alt-header .social-icons i {
        font-size: 28px;
        margin-right: 15px;
        cursor: pointer;
      }


      /* Reset Bootstrap behavior for all dropdowns */
.dropdown-menu {
  display: none;
}

.dropdown-menu.show {
  display: block;
}

/* Keep nav menu dropdowns on hover (desktop only) */
@media (min-width: 992px) {
  .custom-navbar .nav-item.dropdown:hover > .dropdown-menu {
    display: block;
  }
}

/* Ensure user icon dropdown only opens on click */
/* --- User Icon Dropdown (Bootstrap default) --- */
#userIcon + .dropdown-menu {
  display: none; /* hidden by default */
  right: 0;      /* align to right */
  left: auto;
  min-width: 160px;
  border-radius: 10px;
  padding: 8px 0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* When Bootstrap toggles .show on the menu itself */
#userIcon + .dropdown-menu.show {
  display: block;
}


