* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
}

:root {
  --primary: #0176d3;
  --secondary: #ff6b35;
  --primary-light: #e6f2ff;
  --primary-dark: #005fb2;
  --dark: #2c2c2c;
  --light: #f8f9fa;
  --gray: #6c757d;
  --white: #ffffff;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  background-color: white;
  /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
  box-shadow: 0 2px 10px rgba(29, 5, 109, 0.425);
  /* Using your primary color */
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 45px;
  width: auto;
}

/* Desktop Navigation */
.desktop-nav ul {
  display: flex;
  list-style: none;
}

.desktop-nav a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 600;
  transition: color 0.3s ease;
  padding: 10px 15px;
  display: block;
}

.desktop-nav a:hover {
  color: var(--primary);
}
/* Mega dropdown */

.mega-dropdown {
  position: static !important;
}

/* .mega-dropdown-content {
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-radius: 0 0 8px 8px;
  padding: 30px;
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;  Use visibility instead of transform 
  transition: opacity 0.3s ease, visibility 0.3s ease;
  border-top: 2px solid var(--primary);
}

.mega-dropdown:hover .mega-dropdown-content {
  display: grid;
  opacity: 1;
  visibility: visible;
} */

.mega-dropdown-content {
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-radius: 0 0 8px 8px;
  padding: 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: all 0.3s ease-out;
}

.mega-dropdown:hover .mega-dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-dropdown-column {
  display: flex;
  flex-direction: column;
}

.mega-dropdown-column h4 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 1.1rem;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-light);
}

.mega-dropdown-column a {
  display: flex;
  align-items: center;
  padding: 10px 0;
  color: var(--dark);
  text-decoration: none;
  transition: var(--transition);
  border-radius: 5px;
}

.mega-dropdown-column a:hover {
  background-color: rgba(1, 118, 211, 0.08);
  color: var(--primary);
  padding-left: 10px;
}

.mega-dropdown-column a i {
  margin-right: 12px;
  width: 20px;
  text-align: center;
  font-size: 1.1rem;
}

.mega-dropdown-featured {
  grid-column: span 2;
  background: linear-gradient(
    135deg,
    var(--primary-light) 0%,
    rgba(255, 255, 255, 0.9) 100%
  );
  padding: 25px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mega-dropdown-featured h3 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.mega-dropdown-featured p {
  color: var(--gray);
  margin-bottom: 20px;
  line-height: 1.6;
}

.mega-dropdown-featured .cta-button {
  align-self: flex-start;
}

/* Mobile Navigation */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--dark);
  padding: 5px 10px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.mobile-nav-toggle:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.no-scroll {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

.mobile-nav {
  position: fixed;
  top: 70px;
  right: -100%;
  width: 80%;
  height: calc(100vh - 70px);
  background-color: white;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease;
  z-index: 999;
  padding: 20px;
  overflow-y: auto; /* Enable scrolling */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav ul {
  list-style: none;
}

.mobile-nav a {
  display: block;
  padding: 15px 0;
  text-decoration: none;
  color: var(--dark);
  font-weight: 600;
  border-bottom: 1px solid #eee;
}

.mobile-nav a:hover {
  color: var(--primary);
}
/* Mobile Mega Dropdown */
.mobile-mega-dropdown-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  background: rgba(1, 118, 211, 0.05);
  border-radius: 5px;
  /* margin: 10px 0; */
}

.mobile-mega-dropdown.active .mobile-mega-dropdown-content {
  max-height: 1000px;
}

.mobile-mega-column {
  padding: 15px;
}

.mobile-mega-column h4 {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 1rem;
}

.mobile-mega-column a {
  display: flex;
  align-items: center;
  padding: 8px 0;
  color: var(--dark);
  text-decoration: none;
}

.mobile-mega-column a i {
  margin-right: 10px;
  width: 18px;
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .desktop-nav {
    display: none;
  }

  .mobile-nav-toggle {
    display: block;
  }
  .mega-dropdown-content {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .mega-dropdown-featured {
    grid-column: span 1;
  }
}

/* ====================================================== */
/* ===== ACTIVE TAB STYLING ===== */

/* ALL Main Navigation Tabs - SAME STYLE */
.desktop-nav > ul > li > a.active {
  color: var(--primary) !important;
  font-weight: 700;
  position: relative;
}

/* Underline for ALL main navigation items */
.desktop-nav > ul > li > a.active::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 15px;
  right: 15px;
  height: 3px;
  background-color: var(--primary);
  border-radius: 2px;
}

/* ===== DROPDOWN ITEMS - DIFFERENT STYLE ===== */

/* ===== ACTIVE TAB STYLING ===== */

/* ALL Main Navigation Tabs - SAME STYLE */
.desktop-nav > ul > li > a.active {
  color: var(--primary) !important;
  font-weight: 700;
  position: relative;
}

/* Underline for ALL main navigation items */
.desktop-nav > ul > li > a.active::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 15px;
  right: 15px;
  height: 3px;
  background-color: var(--primary);
  border-radius: 2px;
}

/* ===== DROPDOWN ITEMS - DIFFERENT STYLE ===== */

/* Active items inside mega dropdown - DIFFERENT STYLING */
.mega-dropdown-content a.active {
  color: var(--primary) !important;
  font-weight: 600;
  background-color: rgba(1, 118, 211, 0.1) !important;
  border-left: 3px solid var(--primary) !important;
  padding-left: 12px !important;
  margin-left: -5px;
  border-radius: 0 4px 4px 0;
}

/* Override hover for active dropdown items */
.mega-dropdown-content a.active:hover {
  background-color: rgba(1, 118, 211, 0.15) !important;
  color: var(--primary) !important;
  padding-left: 12px !important;
}

/* ===== MOBILE NAVIGATION ===== */

/* ALL Mobile Main Navigation Tabs - SAME STYLE */
.mobile-nav > ul > li > a.active {
  color: var(--primary) !important;
  font-weight: 700;
  background-color: var(--primary-light);
  border-left: 4px solid var(--primary);
  padding-left: 16px;
}

/* Active items inside mobile mega dropdown - DIFFERENT STYLING */
.mobile-mega-dropdown-content a.active {
  color: var(--primary) !important;
  font-weight: 600;
  background-color: rgba(1, 118, 211, 0.1) !important;
  border-left: 3px solid var(--primary) !important;
  padding-left: 12px !important;
  margin-left: -5px;
  border-radius: 0 4px 4px 0;
}

/* Override hover for active mobile dropdown items */
.mobile-mega-dropdown-content a.active:hover {
  background-color: rgba(1, 118, 211, 0.15) !important;
  color: var(--primary) !important;
}

/* Ensure dropdown active styles are visible when mega dropdown is open */
.mega-dropdown:hover .mega-dropdown-content a.active,
.mobile-mega-dropdown.active .mobile-mega-dropdown-content a.active {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}
