/* Top Bar */
.top-bar {
  background-color: #00243d;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
}

.nmajs_btn{
  color: #fff;
  text-decoration: none;

}

.top-bar-container {
  margin: 0 auto;
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 0 64px;
}

.top-bar-active {
  color: #fff;
  border-bottom: 2px solid #fca312;
  padding: 14px 0;
  margin: 0;
}

.top-bar-inactive {
  color: #fff;
  opacity: 0.5;
  padding: 14px 0;
  margin: 0;
}

.newsticker {
  background: #0062a9;
  text-align: center;
  padding: 5px 0px;
  font-size: 13px;
  color: #fff;
}

/* Desktop Navbar */
.desktop-navbar {
  background-color: #fff;
  display: block;
}

.desktop-navbar-container {
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px !important;
  margin-top: 52px;
}

.desktop-logo {
  width: 90px;
  height: 100px;
}

.desktop-nav-wrapper {
  display: flex;
  gap: 28px;
  align-items: center;
}

.desktop-nav-links {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: #00243d;
  font-size: 16px;
}

.nav-link {
  color: #00243d;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #03489f;
}

/* Mobile Navbar */
.mobile-navbar {
  display: none;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background-color: white;
  width: 100%;
  z-index: 50;
  margin-top: 52px;
}

.mobile-logo {
  width: 62px;
  height: 66px;
}

/* Hamburger Menu */
.hamburger-menu {
  position: relative;
  width: 32px;
  height: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger-line {
  display: block;
  height: 4px;
  background-color: #03489f;
  border-radius: 8px;
  transition: all 0.3s ease;
  width: 100%;
}

/* Hamburger Animation States */
.hamburger-menu.headerActive .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.headerActive .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.headerActive .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.slide-card {
  position: fixed;
  top: 165px;
  right: -100%;
  width: 300px;
  height: 100%;
  overflow-y: scroll;
  max-height: 75vh;
  background-color: white;
  color: black;
  z-index: 9999;
  transition: right 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  padding: 20px 20px 40px 20px;
  box-shadow: 0 0 4px 2px rgb(211, 211, 211);
  border-radius: 10px;
}

.slide-card::-webkit-scrollbar {
  width: 4px;
}

.slide-card::-webkit-scrollbar-button {
  background: #ffffff;
}

.slide-card::-webkit-scrollbar-track-piece {
  background: #ffffff;
}

.slide-card::-webkit-scrollbar-thumb {
  background: #03489f;
  border-radius: 20px;
}

.slide-card.headerActive {
  right: 100px;
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: white;
  align-self: flex-end;
  cursor: pointer;
}

.slide-card-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.slide-link {
  color: black;
  text-decoration: none;
  font-size: 16px;
}

.slide-link:hover {
  text-decoration: none;
  color: #03489f;
}

/* Mobile and Tablet Styles */
@media (max-width: 767px) {
  .top-bar-container {
    padding: 0 20px;
  }

  .desktop-navbar {
    display: none;
  }

  .mobile-navbar {
    display: flex;
  }

  .slide-card {
    top: 140px;
  }

  .slide-card.headerActive {
    right: 20px;
  }
}

.hamburger span {
  transition: all 0.3s ease;
}

.hamburger.headerActive span:nth-child(1) {
  transform: rotate(45deg) translateY(10px);
}

.hamburger.headerActive span:nth-child(2) {
  opacity: 0;
}

.hamburger.headerActive span:nth-child(3) {
  transform: rotate(-45deg) translateY(-10px);
}

/* Hide by default */
.mobile-only {
  display: none;
}

@media screen and (max-width: 1024px) {
  .slide-card.headerActive {
    right: 60px;
  }
}

/* Show only on screens smaller than 768px (mobile) */
@media (max-width: 820px) {
  .mobile-only {
    display: block;
  }

  .desktop-nav-links {
    display: none;
  }

  .slide-card.headerActive {
    right: 40px;
  }
}

@media screen and (max-width: 640px) {
  .slide-card {
    box-shadow: none;
    border-radius: 0;
    max-height: 80vh;
  }

  .slide-card.headerActive {
    right: 0;
  }

  .slide-card::-webkit-scrollbar {
    width: 0;
  }
}
