
.primary{
  color: #00b8de !important;
}

.secondary{
  color: #002e6e;
} 

html {
  scroll-behavior: smooth;
}

.more-topics{
  border: 1px solid gold; padding: 5px; border-radius: 15px;
  background-color: azure; color: goldenrod;
}

/* STICKY HEADER */

  header.js-sticky-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: transform 0.3s ease;
} 


/* Top Div  */
.top-div {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  background-color: #002e6e;
  padding: 0px 5px 4px 5px;
  color: #fff;
  height: fit-content;
  width: 100%;
}

.top-div a {
  text-decoration: none;
  padding: 10px;
  font-size: 10px;
  letter-spacing: 2px;
  color: white;
  font-weight: 500;
}

/* Medium screens (tablets & below) */
@media (max-width: 768px) {
  .top-div {
    width: 100%;
    justify-content: right;
    padding: 6px 10px;
  }

  .top-div a {
    font-size: 11px;
  }
}

/* Small screens (phones) */
@media (max-width: 480px) {
  .top-div {
    flex-direction: row; /* stack vertically */
    align-items: stretch ;
    text-align: right;
    background: #002e6e;
    gap: 4px;
  }

  #logo{width:420px;height:auto;}
  .top-div-item {
    width: 100%;
  }

  .top-div a {
    display: block;
    width: 100%;
    border-radius: 6px;
    font-weight: 600;
    padding: 8px;
  }

  .top-div a:hover {
    background: #002e6e9f;
  }
}



/* === BASE NAVIGATION === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.nav-container { 
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #00b8de;
  padding: 15px 20px;
  color: #002e6e;
  /* border-radius: 10px; */
  z-index: -1;
}

/* LOGO */
#logo{width:280px;height:auto;filter:drop-shadow(0 2px 4px rgba(0,0,0,.3));transition:transform .3s;}
#logo:hover{transform:scale(1.03);}
@media(max-width:768px){#logo{width:230px;}}

.menu-toggle {
  font-size: 28px;
  color: #002e6e;
  cursor: pointer;
  display: none;
}


/* === MOBILE SIDEBAR NAVIGATION === */
.sidebar {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100%;
  background-color: #002e6e;
  padding: 20px;
  z-index: 9999;
  overflow-y: auto;
  transition: right 0.8s ease;
}

.sidebar.active {
  right: 0;
}

.sidebar .close-btn {
  text-align: right;
  font-size: 24px;
  color: white;
  cursor: pointer;
  margin-bottom: 20px;
}

.sidebar .nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar .nav-links li {
  position: relative;
  border-bottom: 1px solid #002e6e;
}

.sidebar .nav-links a {
  color: white;
  text-decoration: none;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar .nav-links a:hover {
  background: #002558;
  border-bottom: 1px solid #00b8de;
}

/* Mobile dropdown animation */
.dropdown-menu {
  max-height: 0;
  opacity: 0;
  transform: translateY(-10px);
  background: #00b8de;
  transition: max-height 0.4s ease, opacity 0.3s ease, transform 0.3s ease;
  overflow: hidden;
}

.dropdown-menu li > a {
  color: #002e6e !important;
}

.dropdown-menu li > a:hover {
  color: #fff !important; 
}

.dropdown.open .dropdown-menu {
  max-height: 500px;
  opacity: 1;
  transform: translateY(0);
  margin-left: 20px;
}

.dropdown-arrow {
  transition: transform 0.3s ease;
}

.dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

/* === OVERLAY EFFECT === */
#overlay, #overlay2 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9998;
}

#overlay.active {
  opacity: 1;
  pointer-events: all;
}
#overlay2.active {
  opacity: 1;
  pointer-events: all;
}

/* === DESKTOP NAVIGATION === */
.desktop-nav {
    display: none;
}

@media (min-width: 769px) {
  .menu-toggle,
  #mobile-nav,
  #menu-toggle,
  #mobile-nav2,
  #menu-toggle2
   {
    display: none;
  }

  .desktop-nav{
  z-index: 1000;
    display: flex;
    align-items: center;
    background-color: transparent;
    padding: 0 20px;
  }

  .desktop-nav .nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    padding-right: 10px;
    gap: 20px;
  }

  .desktop-nav .nav-links li {
    position: relative;
    list-style: none;
  }

  .desktop-nav .nav-links a {
    color: #002e6e !important;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
  }

  .desktop-nav .nav-links a:hover {
    color: #fff !important;
    background-color: #002558;
    border-bottom: 1px solid #eee;
  }

  .desktop-nav .dropdown-arrow {
    transition: transform 0.3s ease;
  }

  .desktop-nav .dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
  }

  .desktop-nav .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #00b8de;
    border-bottom: #002e6e;
    min-width: 160px;
    z-index: 999;
    border-radius: 4px;
    padding: 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);

    /* Override mobile styles */
    max-height: none;
    opacity: 1;
    transform: none;
    overflow: visible;
    transition: none;
  }

  .desktop-nav .dropdown:hover .dropdown-menu {
    display: block;
  }

  .desktop-nav .dropdown-menu li a {
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    color: white;
  }

  .desktop-nav .dropdown-menu li a:hover {
    background: #012455;
    text-decoration: none;
  }
}

/* === MOBILE OVERRIDE === */
@media (max-width: 768px){
  .menu-toggle {
    display: block;
  }
}


