header {
  background: #eaf3fa;
  padding: 0;
  position: fixed !important;
  width: 100% !important;
  z-index: 1000 !important;
}

.navbar {
  background: #00264d;
  padding: 0; 
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

body {
  padding-top: 12px; /* REDUCED: Back to 70px to reduce top space */
  margin: 0;
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100vw;
  padding: 0 3vw;
  height: 70px;
  gap: 24px;
  position: relative;
  box-sizing: border-box;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo img {
  height: 48px;
  background: #fff;
  border-radius: 50%;
  padding: 2px;
  border: 2px solid #fff;
  box-shadow: 0 0 4px rgba(0,0,0,0.07);
}

.site-title {
  font-size: 1.22rem;
  font-weight: bold;
  color: #fff;
  letter-spacing: 0.6px;
  font-family: 'Segoe UI', sans-serif;
  white-space: nowrap;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0 0 0 32px;
  padding: 0;
  flex-wrap: nowrap;
}

.nav-menu li {
  white-space: nowrap;
  position: relative;
}

.nav-menu li a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  font-size: 1.09rem;
  padding: 10px 12px;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  display: inline-block;
  position: relative;
}

.nav-menu li a:hover, .nav-menu li a.active {
  background: transparent;
  color: #fff;
}

.nav-menu li a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: #fff;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.nav-menu li a:hover:after, .nav-menu li a.active:after {
  width: 80%;
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  z-index: 1200;
  outline: none;
  margin-left: 0;
  margin-right: 0;
  align-self: center;
}

@media (max-width: 900px) {
  body {
    padding-top: 0; /* REDUCED: Back to 110px for mobile */
  }

  .navbar {
    top: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  .navbar-inner {
    flex-direction: row;
    margin-top: 0 !important;
    padding-top: 0 !important;
    align-items: center;
    justify-content: space-between;
    height: auto;
    gap: 8px;
    padding: 10px 4vw;
    position: relative;
    min-width: 0;
    max-width: 100vw;
    box-sizing: border-box;
  }
  .navbar-toggle {
    display: block;
    position: static;
    order: 2;
    margin-left: auto;
    margin-right: 0;
  }
  .navbar-left {
    order: 1;
  }
  .nav-menu {
    order: 3;
    flex-direction: column;
    margin-top: 0 !important;
    padding-top: 0 !important;
    gap: 0;
    margin: 0;
    width: 100vw;
    min-width: 0;
    max-width: 100vw;
    position: absolute;
    top: 70px;
    left: 0;
    background: #00264d;
    box-shadow: 0 6px 18px rgba(0,0,0,0.09);
    display: none;
    padding: 0;
    z-index: 1100;
  }
  .nav-menu.open {
    display: flex;
  }
  .nav-menu li {
    width: 100vw;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }
  .nav-menu li:last-child {
    border-bottom: none;
  }
  .nav-menu li a {
    width: 100%;
    display: block;
    padding: 16px 28px;
    font-size: 1.1rem;
  }
  .nav-menu li a:after {
    bottom: 5px;
    display: none !important; /* <--- This hides the underline in mobile nav */
  }
  .navbar-left {
    gap: 10px;
  }
  .site-title {
    font-size: 1.05rem;
  }
}

@media (max-width: 500px) {
  .navbar-inner {
    padding: 6px 2vw;
    min-height: 52px;
    height: auto;
  }
  .logo img {
    height: 36px;
  }
  .site-title {
    font-size: 0.95rem;
  }
}
