/* Top Header */
.top-header {
  background: #f4f4f4;
  padding: 8px 0;
  text-align: center;
  font-size: 20px;
  color: #555;
}

/* Navbar */
.header-area {
  background: #0d104d;
  color: #fff;
  font-size: 20px;
  position: relative;
  z-index: 1000;
}

.classy-nav-container {
  max-width: 1200px;
  margin: auto;
  padding: 10px 20px;
}

.classy-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-size: 22px;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
}

/* ✅ Fixed toggle button (☰ / ✖) */
.menu-toggle {
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;

  /* position: fixed; */
  /* top: 15px;
  right: 20px; */

  z-index: 99999;          /* stay above menu */
  color: white;            /* default ☰ color */
}

/* When it becomes X */
.menu-toggle.close-icon {
  color: black !important; /* X turns black */
}



.classynav {
  display: flex;
  z-index: 2000;
}

.classynav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 15px;
}

.classynav ul li {
  position: relative;
}

.classynav ul li a {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  padding: 6px 10px;
  display: block;
}

.classynav ul li a:hover {
  text-decoration: underline;
}

/* Dropdown Menu (desktop) */
.classynav ul li .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #0d104d;
  min-width: 180px;
  border-radius: 4px;
  z-index: 999;
  flex-direction: column;
}

.classynav ul li:hover > .dropdown {
  display: flex;
}

.classynav ul li .dropdown li a {
  font-weight: normal;
  padding: 8px 15px;
}

.classynav ul li .dropdown li a:hover {
  background: #1c1f6b;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .classynav {
    display: block;
    position: fixed;
    top: 0;
    right: -250px; /* hidden */
    width: 250px;
    height: 100%;
    background: #fff;
    color: #000;
    overflow-y: auto;
    transition: right 0.3s ease;
    padding-top: 60px;
    z-index: 2000;
  }

  .classynav.active {
    right: 0; /* show */
  }

  .classynav ul {
    flex-direction: column;
    gap: 0;
  }

  .classynav ul li a {
    color: #000;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
  }

  /* Mobile dropdown */
  .classynav ul li .dropdown {
    display: none;
    position: static;
    background: #f9f9f9;
    border-radius: 0;
  }

  .classynav ul li.open > .dropdown {
    display: block;
  }

  .classynav ul li .dropdown li a {
    color: #000;
    padding-left: 25px;
    border-bottom: none;
  }
}
