/* Navigation Styles */
.navigation {
  display: flex;
  gap: 2rem;
  padding: 0.75rem 0;
  transition: background-color 0.3s ease, padding 0.3s ease;
}

/* Styles for the header when scrolled */
.navigation.scrolled {
  background-color: white !important;
  padding: 0.5rem 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1001;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navigation.scrolled .header-menu ul li a,
.navigation.scrolled .overseas-education-item {
  color: #333 !important;
  
}

.navigation.scrolled .header-menu ul li a:hover,
.navigation.scrolled .overseas-education-item:hover {
  color: #c92011 !important;
}

/* Overseas Education Dropdown Styles */
.overseas-education-container {
  position: relative;
}

.overseas-education-item {
  cursor: pointer;
  padding: 0.5rem 0;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  border-bottom: 2px solid transparent;
}

.overseas-education-item i {
  margin-left: 0.5rem;
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.overseas-education-item.active i {
  transform: rotate(180deg);
}

.overseas-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 150px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border-radius: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1000;
  margin-top: 5px;
  /* line-height: 1.6; */
}

.overseas-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.overseas-dropdown-content {
  display: flex !important; /* Force flexbox */
  flex-direction: column !important; /* Force column direction */
  gap: 0.1rem !important; /* Force small gap */
  padding: 0.5rem 0 !important; /* Force overall padding */
}

.overseas-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 !important; /* Force no external margins */
  padding: 0.3rem 1.5rem !important; /* Force vertical padding *within* each item */
  cursor: pointer;
  color: #374151;
  font-weight: 500;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  white-space: nowrap; /* Prevent text wrapping, which can increase height */
}

.overseas-dropdown-content .font-class{
 font-size: 16px;
 font-weight: 500;
}

.overseas-nav-item:hover {
  background: #f8fafc;
  color: #0d9488;
  border-left-color: #0d9488;
}

.overseas-nav-item i {
  color: #9ca3af;
  font-size: 0.8rem;
}

/* Mega Dropdown Styles */
.mega-dropdown {
  position: absolute;
  top: 100%;
  left: 0px;
  right: 0px;
  width: 105vw; /* Set width to 100% of the viewport width */
  background: white;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 999;
  max-height: 500px;
  overflow: hidden;
  margin-top: 5px;
}


/* Update .navigation.scrolled .mega-dropdown to match the fixed positioning */
.navigation.scrolled .mega-dropdown {
  position: fixed; /* Ensure it stays fixed when scrolled */
  top: 60px; /* Adjust this value if your scrolled header height is different */
  left: 0; /* Keep it left aligned to the viewport */
  width: 100vw; /* Maintain full viewport width */
  margin-top: 0;
}

/* Update .dropdown-container (OPTIONAL - adjust max-width for content inside the mega-dropdown) */
/* You can increase this if you want the internal content to be wider within the full-width dropdown */
.dropdown-container {
  display: flex;
  max-width: 1300px; /* Example: Increased from 1200px. Adjust as needed. */
  margin: 0 auto; /* Keep content centered within the 100vw mega-dropdown */
  min-height: 450px;
  max-height: 500px;
}

.navigation.scrolled .mega-dropdown {
  position: fixed;
  top: 60px;
  margin-top: 0;
}

.mega-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-container {
  display: flex;
  max-width: 1093px;
  margin: 0 auto;
  min-height: 450px;
  max-height: 500px;
}

.dropdown-sidebar {
  width: 240px;
  background: #f8fafc;
  border-right: 1px solid #e5e7eb;
  padding: 1rem 0;
  overflow-y: auto;
}

.sidebar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  color: #374151;
  font-weight: 500;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}



.sidebar-item i {
  color: #9ca3af;
  font-size: 0.8rem;
}

.dropdown-content {
  flex: 1;
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  align-content: start;
  overflow-y: auto;
  max-height: 450px;
  height: 900px;
  padding: 20px;
}

.content-column {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.content-column h4 {
  /* color: #0d9488; */
  color: #c92011;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.content-column a {
  color: #374151;
  text-decoration: none;
  padding: 0.25rem 0;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.content-column a:hover {
  color: #0d9488;
}

.content-column a.highlighted {
  color: #0d9488;
  font-weight: 600;
}

.active {
  color: #000 !important;
}

/* .activecss {
  color: #000 !important;
} */
