/* ===== Desktop Styles ===== */
#navbar {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  transition: all 0.4s ease;
}

.nav-announcement {
  background: linear-gradient(90deg, #ffd37a 0%, #ffb347 100%);
  color: #0f3b56;
  padding: 6px 16px;
  text-align: center;
  border-bottom: 1px solid rgba(15, 59, 86, 0.12);
}

.nav-announcement p {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.35;
}

.nav-announcement a {
  color: #0f3b56;
  font-weight: 700;
  text-decoration: underline;
}

.nav-announcement a:hover {
  color: #156082;
}

.navbar-top {
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 100%;
  background-color: transparent !important;
  padding: 10px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  z-index: 998;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s ease;
}

.navbar-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 10px;
  background-color: transparent;
  width: 100%;
  position: static;
  transition: background-color 0.4s ease;
}

.navbar-bottom.fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #156082;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

#navbar.scrolled .navbar-top {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#navbar.scrolled .navbar-bottom {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #156082;
  z-index: 10000;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  padding: 8px 14px;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  color: #FFA94D;
  transform: translateY(-2px);
}

.navbar-bottom .btn-outline:hover,
.nav-links .btn-outline:hover {
  background-color: #FFA94D;
  color: white !important;
  transform: scale(1.05);
  border: 2px solid #FFA94D;
}

.btn-outline {
  border: 2px solid #FFA94D;
  border-radius: 6px;
  background-color: transparent;
  color: white;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background-color: #FFA94D;
  color: white !important;
  transform: scale(1.05);
  border: 2px solid #FFA94D;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo {
  height: 60px;
}

.nav-title-group {
  display: flex;
  flex-direction: column;
}

.nav-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #FFA94D;
}

.nav-tagline {
  font-style: italic;
  font-weight: 600;
  color: #ffffff;
  font-size: 1rem;
  margin-top: 5px;
}

.nav-contact {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-contact a,
.nav-contact span {
  background-color: #156082;
  color: white;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  white-space: nowrap;
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-contact a:hover,
.nav-contact span:hover {
  background-color: transparent;
  color: #F97316;
  border: 2px solid #F97316;
  transform: scale(1.03);
  transition: all 0.3s ease;
}

/* Responsive Logic */
@media (max-width: 1024px) {
  .nav-announcement {
    padding: 8px 12px;
  }

  .nav-announcement p {
    font-size: 0.8rem;
  }

  .navbar-top,
  .navbar-bottom,
  .desktop-contact,
  .desktop-links {
    display: none !important;
  }
  .mobile-navbar,
  .mobile-menu {
    display: flex !important;
  }
}

@media (min-width: 1025px) {
  .mobile-navbar,
  .mobile-menu {
    display: none !important;
  }
}

/* Show mobile navbar and hamburger */
.mobile-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #156082;
  padding: 14px 18px;
  /* Removed position: relative */
  z-index: 2000;
}

.hamburger {
  display: block;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: white;
  cursor: pointer;
}

.logo {
  height: 44px;
  width: auto;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  background: #156082;
  width: 100vw;
  position: fixed;
  top: 60px;
  left: 0;
  height: calc(100vh - 60px);
  overflow-y: auto;
  z-index: 1999;
  padding: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);

  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  padding: 30px 0 20px 0;
}

.mobile-menu.open::after {
  content: "";
  display: block;
  height: 40px; /* Add extra padding space at the bottom */
}

.mobile-menu a {
  color: white;
  text-decoration: none;
  padding: 16px 0;
  text-align: center;
  font-size: 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mobile-menu button.btn-outline {
  margin: 10px auto;
  background: #ff6600;
  color: white;
  border-radius: 8px;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  display: block;
  width: 90%;
  max-width: 320px;
  text-align: center;
  box-sizing: border-box;
}

.mobile-menu .email-btn,
.mobile-menu .phone-btn {
  background: #59A6D9;
  color: white;
  margin-top: 10px;
  font-size: 0.95rem;
  word-break: break-word;
  padding: 10px 16px;
  line-height: 1.4;
  white-space: normal;
}
