/* Navbar Layout */
html.loading body {
  visibility: hidden;
}

header {
  position: sticky;
  top: 0;
  z-index: 999;
}

/* This fixes the issue where padding on the bottom of navbar blocks headers when scrolling to section */
section[id] {
  scroll-margin-top: 85px;
}

.navbar {
  background-color: var(--background-color);
  color: var(--main-text-color);
  /* position: sticky;
  top: 0;
  z-index: 999; */
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  padding: 0.5rem 0.5rem;
}

/* .logo {
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: 1px;
} */

.navbar-logo {
  height: 65px;
  width: 250px;
  object-fit: contain;
  display: block;
}

.navbar .nav-links ul {
  display: flex;
  list-style: none;
}

.navbar ul li a {
  padding: 0.8rem 1.2rem;
  text-decoration: none;
  display: block;
  color: var(--main-text-color);
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links li a:hover {
  color: var(--primary-color);
}

/* Apply Now button */
.apply-btn {
  background-color: var(--background-color);
  color: var(--main-text-color);
  border: solid 1px black;
  text-decoration: none;
  letter-spacing: 0.05em;
  /* border: none; */
  border-radius: 10px;
  cursor: pointer;
  transition: color 0.3s ease;
  transition: background-color 0.2s easte;
  display: inline-block;
  white-space: nowrap;
  font-weight: 600;
}

.apply-btn:hover {
  color: var(--main-text-color) !important;
  background-color: var(--primary-color);
}

.navbar ul li:last-child a {
  margin-left: 1rem;
}

/* Hamburger menu button (hidden on desktop) */
.navbar .menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  margin-left: auto;
  z-index: 1000;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 250px;
  height: 100%;
  z-index: 100;
  background-color: var(--background-color);
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
  transition: right 0.3s ease-in-out;
}

.mobile-menu ul {
  margin-top: 70px;
  padding-right: 10px;
  list-style: none;
}

.mobile-menu ul li {
  margin: 10px 0;
}

.mobile-menu ul li a {
  font-size: 20px;
  transition: 0.3s;
  text-decoration: none;
}

.mobile-menu ul li:last-child a {
  /* display: flex;
  align-items: center;
  justify-content: center; */
  margin-left: unset;
}

.mobile-menu ul li .apply-btn {
  display: flex;
  justify-content: center;
  margin-left: 1rem !important;
}

.mobile-menu.active {
  right: 0;
}

/* Responsive Behavior */
@media (max-width: 1100px) {
  .navbar .menu-toggle {
    display: block;
  }

  /* Hide nav-links on small screens if present in HTML */
  .navbar .nav-links {
    display: none;
  }
}

@media (max-width: 600px) {
  .navbar-logo {
    height: 50px;
    width: 200px;
  }
}
