
.navbar-custom {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1.1rem 2rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
}

/* Logo Styling */
.navbar-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 0.6rem;
}

.navbar-logo-icon {
  height: 40px;
}

.navbar-logo-text {
  
  font-size: 1.35rem;
  font-weight: 700;
  color: #1e1e1e;
  letter-spacing: -0.5px;
}

/* Navigation Links */
.navbar-links {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2.2rem;
}

.navbar-link-item {
  position: relative;
}

.navbar-link {
  
  font-size: 1rem;
  font-weight: 500;
  color: #504538;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.25s ease;
}

.navbar-link:hover {
  color: #0b66e4;
}

.navbar-link.active,
.navbar-link[aria-current="page"] {
  color: #0b66e4;
}

/* Chevron Dropdown Arrow */
.navbar-chevron {
  width: 12px;
  height: 12px;
  opacity: 0.6;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.navbar-link:hover .navbar-chevron {
  opacity: 1;
  transform: translateY(1px);
}

/* Auth Actions */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.navbar-login-btn {
  
  font-size: 0.95rem;
  font-weight: 500;
  color: #444444;
  text-decoration: none;
  transition: color 0.25s ease;
}

.navbar-login-btn:hover {
  color: #0b66e4;
}

.navbar-waitlist-btn {
  padding: 0.8rem 2rem !important; 
  font-size: 01rem !important;
}

/* Mobile Menu Toggle (Just in case/for responsive support) */
.navbar-mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #1e1e1e;
}

/* Dropdown Menu Panel */
.dropdown-menu-custom {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 360px;
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0.8rem;
  margin-top: 12px;
  opacity: 0;
  visibility: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  z-index: 1010;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

/* Hover Behavior for Desktop */
@media (min-width: 992px) {
  .navbar-link-item.dropdown:hover .dropdown-menu-custom {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
  .navbar-link-item.dropdown:hover .navbar-chevron {
    transform: rotate(180deg);
    opacity: 1;
    color: #0b66e4;
  }
}

/* Dropdown Item Custom Layout */
.dropdown-item-custom {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  text-decoration: none;
  background-color: transparent;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.dropdown-item-custom:hover {
  background-color: rgba(11, 102, 228, 0.03);
}

/* Highlight State for Course/Content Management */
.dropdown-item-custom:hover {
  background-color: #eef3fc; /* Very soft highlight blue */
  border-color: rgba(11, 102, 228, 0.05);
}



/* Icon Box Containers */
.dropdown-icon-box {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: transform 0.2s ease;
}

.dropdown-item-custom:hover .dropdown-icon-box {
  transform: scale(1.05);
}

/* Custom Color Schemes for Icon Backgrounds & Strokes */
.icon-bg-blue {
  background-color: #e8f1fd;
  color: #0b66e4;
}

.icon-bg-purple {
  background-color: #fbeeff;
  color: #8f27cf;
}

.icon-bg-orange {
  background-color: #fff2e8;
  color: #d45828;
}

.icon-bg-yellow {
  background-color: #fffbe6;
  color: #d48806;
}

.icon-bg-green {
  background-color: #e6fffb;
  color: #08979c;
}

.icon-highlighted {
  background-color: #0b66e4;
  color: #ffffff;
}

/* Text Sizing & Hierarchies */
.dropdown-text-box {
  display: flex;
  flex-direction: column;
}

.dropdown-title {
  
  font-size: 0.92rem;
  font-weight: 600;
  color: #1e1e1e;
  line-height: 1.3;
  margin-bottom: 2px;
}

.dropdown-desc {
  font-size: 0.78rem;
  font-weight: 400;
  color: #676767;
}

.dropdown-toggle::after{
  display: none !important;
}

/* =============================================
   Bootstrap 5 Offcanvas - Mobile/Tablet Styles
   ============================================= */

/* Offcanvas panel itself */
#learmoOffcanvas.offcanvas {
  background-color: #FFFFFF;
  border-left: 1px solid rgba(0, 0, 0, 0.06);
  max-width: 360px;
  width: 85%;
}

#learmoOffcanvas .offcanvas-header {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

#learmoOffcanvas .offcanvas-body {
  padding: 0;
}

/* Unified container inside offcanvas-body: single background, no gaps */
.offcanvas-unified-container {
  background-color: #FFFFFF;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

/* Mobile Navigation Links list */
.offcanvas-nav-links {
  list-style: none;
  margin: 0;
  padding: 1.2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex-grow: 1;
}

.offcanvas-link-item {
  position: relative;
}

.offcanvas-link-item > .navbar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.7rem 0.5rem;
  
  font-size: 1rem;
  font-weight: 500;
  color: #504538;
  text-decoration: none;
  border-radius: 10px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.offcanvas-link-item > .navbar-link:hover {
  background-color: rgba(11, 102, 228, 0.04);
  color: #0b66e4;
}

/* Offcanvas dropdown panel (accordion-style collapse) */
.offcanvas-dropdown-panel {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding-left: 0.4rem;
}

/* When parent has .open class, the panel expands */
.offcanvas-link-item.dropdown.open .offcanvas-dropdown-panel {
  /* max-height is set dynamically via JS for accurate measurement */
}

.offcanvas-link-item.dropdown.open > .navbar-link {
  color: #0b66e4;
}

.offcanvas-link-item.dropdown.open > .navbar-link .navbar-chevron {
  transform: rotate(180deg);
  opacity: 1;
  color: #0b66e4;
}

/* Mobile actions area */
.offcanvas-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background-color: #FFFFFF;
}

.offcanvas-waitlist-btn {
  text-align: center;
  width: 100%;
}

/* Responsive: show/hide mobile toggle */
@media (max-width: 991px) {
  .navbar-mobile-toggle {
    display: block;
  }
}

@media (min-width: 992px) {
  #learmoOffcanvas {
    display: none !important;
  }
}
