.top-banner {
  background: linear-gradient(to bottom, #4cc0ff, #38b6ff) !important;
  color: white !important;
  font-size: 1rem !important;
  padding: 0 !important;
  margin: 0 !important;
  margin-top: 0 !important;
  height: 40px !important;
  border-radius: 0 0 15px 15px !important;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25), inset 0 -1px 0 rgba(255, 255, 255, 0.3) !important; /* Enhanced dramatic shadow with subtle inset highlight */
  transition: all 0.3s ease !important;
  position: relative !important;
  z-index: 999 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  animation: fadeInTop 0.5s ease-in-out !important;
  display: flex !important;
  align-items: center !important;
  text-align: left !important;
}

@keyframes fadeInTop {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.top-banner-container {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  max-width: 1320px !important;
  margin: 0 auto !important;
  padding: 0 1rem !important;
  height: 100% !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
}

.contact-info {
  display: flex !important;
  gap: 1.5rem !important;
  align-items: center !important;
  height: 100% !important;
  flex: 0 0 auto !important;
  width: 25% !important;
  justify-content: flex-start !important;
}

.contact-info span {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  color: white !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  margin-right: 1rem !important;
}

.contact-info i {
  font-size: 1rem !important;
  color: white !important;
}

.banner-message {
  text-align: center !important;
  flex: 1 !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 1rem !important;
}

.banner-message p {
  margin: 0 !important;
  color: white !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.banner-message a {
  color: white !important;
  text-decoration: underline !important;
  font-weight: 600 !important;
}

.cta-buttons {
  display: flex !important;
  gap: 1rem !important;
  position: relative !important;
  flex: 0 0 auto !important;
  width: 25% !important;
  justify-content: flex-end !important;
}

.cta-button {
  background-color: #004b91;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
  background-color: #003366;
  transform: translateY(-2px);
}

.cta-button.primary {
  position: absolute !important;
  right: 0 !important;
  bottom: -30px !important;
  margin-top: 0 !important;
  background-color: #1a2756 !important;
  border-radius: 0 0 8px 8px !important;
  color: white !important;
  padding: 0.35rem 1.2rem !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
  min-width: 120px !important;
  height: 50px !important;
  line-height: 1.2 !important;
  overflow: hidden !important;
  border: none !important;
  box-shadow: 0 3px 6px rgba(0,0,0,0.16) !important;
  z-index: 1000 !important;
  text-align: center !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  animation: pulse-glow 3s infinite;
}

.cta-button.primary::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: url('/img/uk-flag.png') no-repeat center center !important;
  background-size: cover !important;
  opacity: 0.3 !important;
  z-index: -1 !important;
  border-radius: 0 0 8px 8px !important;
  pointer-events: none !important;
}

.cta-button.primary:hover {
  background-color: rgba(0, 75, 145, 0.9) !important;
}



.main-header {
  background: linear-gradient(to right, #fff, #fff); 
  color: #004b91;
  padding: 20px 0;
  margin-top: 0;
  position: relative;
  z-index: 990;
}

.container {
  max-width: 1320px; /* Match the top-banner-container width */
  margin: 0 auto;
  padding: 0 1rem;
  position: relative; /* For absolute positioning of child elements */
  width: 100%;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}


.logo img {
  height: 50px;
  width: auto;
  image-rendering: auto;

}


.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 995; /* Higher than main-header but lower than badge */
}

.nav-links a {
  color: #004b91;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.2rem;
  padding: 8px 12px;
  position: relative;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-links a:hover {
  background-color: rgba(102, 198, 225, 0.15);
  border-radius: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  background-color: #004b91;
  left: 0;
  bottom: 0;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}


/* === Dropdown styling inside nav-links === */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown .dropbtn {
  color: #004b91;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 12px;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.nav-dropdown .dropdown-content {
  display: none;
  position: absolute;
  top: 36px;
  left: 0;
  background-color: #fff;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 180px;
  z-index: 999;
  flex-direction: column;
}

.nav-dropdown .dropdown-content a {
  padding: 10px 14px;
  text-decoration: none;
  color: 004b91;
  display: block;
  transition: background-color 0.3s ease;
}

.nav-dropdown .dropdown-content a:hover {
  background-color: rgba(102, 198, 225, 0.15);
}

.nav-dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-note {
  font-size: 0.75rem;
  color: #ddd;
  padding-left: 1rem;
  margin-top: 4px;
}

/* Styles for highlighting the Join option in the dropdown */
.highlight-join {
  font-weight: 700 !important;
  color: #0054a6 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.highlight-join:hover {
  background-color: rgba(56, 182, 255, 0.15) !important;
}

.new-tag {
  background-color: #ff5722;
  color: white;
  font-size: 0.6rem;
  padding: 2px 5px;
  border-radius: 3px;
  margin-left: 5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.burger {
  display: none;
}

/* ✅ Media Query for Mobile */
@media (max-width: 768px) {
  .main-header {
    background: #fff; /* Ensure consistent white background */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); /* Subtle shadow for definition */
  }
  
  .logo {
    width: auto;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 20px;
    width: 100%;
    max-width: 250px;
    background: #fff; /* Match desktop white background */
    padding: 1rem;
    z-index: 999;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Consistent shadow style */
    border: 1px solid rgba(0, 75, 145, 0.2); /* Subtle border */
    transform: translateY(-10px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .nav-links.mobile-open {
    display: flex;
    transform: translateY(0);
    opacity: 1;
  }

  .nav-links a {
    width: 100%;
    padding: 10px 12px;
    font-size: 1rem;
    color: #004b91; /* Match desktop blue color */
  }

  /* Add hover effect for mobile that matches desktop */
  .nav-links a:hover {
    background-color: rgba(102, 198, 225, 0.15);
    border-radius: 4px;
  }

    .nav-dropdown {
      width: 100%;
    }
  
    .nav-dropdown .dropdown-content {
      position: static;
      background-color: transparent;
      box-shadow: none;
      padding-left: 1rem;
    }
  
    .nav-dropdown .dropdown-content a {
      background-color: transparent;
      color: #004b91; /* Match desktop blue color */
      padding: 8px 0;
    }
  
    .dropdown-note {
      padding-left: 1rem;
      color: #777; /* Softer gray that matches desktop theme better */
    }
  


  .burger {
    display: block;
    font-size: 26px;
    color: #004b91; /* Match desktop blue color */
    cursor: pointer;
    padding-left: 1rem;
  }
}

/* Responsive Design for Top Banner */
@media (max-width: 768px) {
  .top-banner {
    display: none !important; /* Hide the top banner completely on mobile devices */
  }
  
  .top-banner-container {
    flex-direction: column !important;
    text-align: center !important;
    gap: 0.3rem !important;
    width: 100% !important;
    padding: 0.5rem !important;
    flex-wrap: wrap !important; /* Allow wrapping on mobile */
  }

  .contact-info {
    justify-content: center !important;
    width: 100% !important;
    margin-bottom: 0.3rem !important;
  }

  .banner-message {
    padding: 0.2rem 0 !important;
    width: 100% !important;
  }

  .cta-buttons {
    justify-content: center !important;
    margin-bottom: 0.3rem !important;
    width: 100% !important;
    position: static !important; /* Reset positioning for mobile */
  }
  
  .cta-button.primary {
    position: static !important; /* Reset positioning for mobile */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 80% !important; /* Wider on mobile */
    max-width: 200px !important;
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
    border-radius: 8px !important; /* Full rounded corners on mobile */
    height: 50px !important; /* Match the desktop height of 50px */
  }
  
  .hero-carousel {
    margin-top: 10px !important; /* Less space on mobile */
  }
}

/* Add subtle separators between banner elements */
.contact-info::after,
.banner-message::after {
  content: '' !important;
  height: 24px !important;
  width: 1px !important;
  background-color: rgba(255, 255, 255, 0.3) !important;
  position: absolute !important;
  right: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  display: none !important; /* Will be enabled for larger screens */
}

.contact-info, 
.banner-message, 
.cta-buttons {
  position: relative !important; /* For the separators */
}

@media (min-width: 769px) {
  .contact-info::after,
  .banner-message::after {
    display: block !important; /* Show separators on desktop */
  }
}

.top-banner .contact-info span,
.top-banner .banner-message p,
.top-banner a {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

.top-banner a {
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
}

.top-banner a:hover {
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3) !important;
}

.top-banner:hover {
  box-shadow: 0 7px 14px rgba(0, 0, 0, 0.3), inset 0 -1px 0 rgba(255, 255, 255, 0.4) !important;
  transition: box-shadow 0.3s ease !important;
}

/* Add pulsing glow effect for the nationwide network button */
@keyframes pulse-glow {
  0% {
    box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 0 0 rgba(25, 147, 255, 0);
  }
  50% {
    box-shadow: 0 3px 6px rgba(0,0,0,0.2), 0 0 15px rgba(25, 147, 255, 0.4);
  }
  100% {
    box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 0 0 rgba(25, 147, 255, 0);
  }
}
