/* Modern Header Styles */
:root {
  --header-bg: #ffffff;
  --header-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  --top-nav-bg: #1a365d;
  --top-nav-text: #ffffff;
  --nav-text: #2d3748;
  --nav-hover: #3182ce;
  --dropdown-bg: #ffffff;
  --dropdown-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  --mobile-menu-bg: #ffffff;
  --btn-primary-bg: #3182ce;
  --btn-primary-hover: #2c5aa0;
  --container-max-width: 1200px;
  --container-padding: 20px;
  --transition: all 0.3s ease;
}

/* Container */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Modern Header */
.modern-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--header-bg);
  box-shadow: var(--header-shadow);
  /* transition: var(--transition); */
}

/* Top Navigation Bar */
.top-nav-bar {
  background: #2e2f90;
  color: var(--top-nav-text);
  padding: 8px 0;
  font-size: 14px;
  transition: all 0.1s ease;
}

/* hide the top blue banner smoothly */
#navHeader.scrolled .top-nav-bar {
  opacity: 0;
  max-height: 0;
  padding: 0;
  margin: 0;
}

.logo-container {
  /* width: 100px; */
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

#navHeader.scrolled  .logo-container {
    height: 65px;
}






.logo-image {
  max-width: 120px;
  /* max-height: 75px; */
  /* object-fit: contain; */
  border-radius: 0;
  transition: all 0.3s ease;
}

#navHeader.scrolled .logo-image {
  max-width: 90px;
}



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

.contact-info .contact-text {
  font-weight: 500;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  color: var(--top-nav-text);
  transition: var(--transition);
  opacity: 0.8;
}

.social-link:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* Main Navigation */
.main-nav {
  background: var(--header-bg);
  /* padding: 18px 0; */
}

.nav-wrapper {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 50px;
}

/* Navigation Menus */
.nav-menu-left,
.nav-menu-right {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 30px;
}

.nav-menu-right {
  justify-content: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--nav-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  padding: 10px 0;
  transition: var(--transition);
}

.nav-link:hover {
  color: #2e2f90;
}

.dropdown-icon {
  transition: var(--transition);
}

.nav-item:hover .dropdown-icon {
  transform: rotate(180deg);
}

/* Centered Logo */
.nav-center {
  display: flex;
  justify-content: center;
}

.logo-link {
  display: block;
  transition: var(--transition);
}

.logo-link:hover {
  transform: scale(1.05);
}

/* Dropdown Menus */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dropdown-bg);
  box-shadow: var(--dropdown-shadow);
  border-radius: 8px;
  padding: 15px 0;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 100;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(5px);
}

.dropdown-link {
  display: block;
  padding: 12px 20px;
  color: var(--nav-text);
  text-decoration: none;
  font-weight: 400;
  transition: var(--transition);
}

.dropdown-link:hover {
  background: #f7fafc;
  color: #1a365d;
}

/* CTA Button */
.cta-button {
  margin-left: 25px;
  display: flex;
  align-items: center;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: white;
  box-shadow: 0 2px 8px rgba(49, 130, 206, 0.2);
}

.btn-primary:hover {
  background: var(--btn-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(49, 130, 206, 0.4);
}

.btn-block {
  width: 100%;
  text-align: center;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
}

.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background: var(--nav-text);
  border-radius: 2px;
  transition: var(--transition);
}

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

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

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

/* Mobile Menu */
.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--mobile-menu-bg);
  box-shadow: var(--dropdown-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: var(--transition);
  max-height: 0;
  overflow: hidden;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  max-height: 100vh;
}

.mobile-menu-content {
  padding: 30px 20px;
}

.mobile-logo {
  text-align: center;
  margin-bottom: 30px;
}

.mobile-logo-image {
  max-width: 60px;
  max-height: 60px;
}

.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-item {
  border-bottom: 1px solid #e2e8f0;
}

.mobile-nav-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  color: var(--nav-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
}

.mobile-dropdown-icon {
  transition: var(--transition);
}

.mobile-nav-item.active .mobile-dropdown-icon {
  transform: rotate(180deg);
}

.mobile-dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
}

.mobile-nav-item.active .mobile-dropdown-menu {
  max-height: 300px;
  padding: 10px 0;
}

.mobile-dropdown-link {
  display: block;
  padding: 10px 20px;
  color: #718096;
  text-decoration: none;
  font-size: 14px;
}

.mobile-dropdown-link:hover {
  color: var(--nav-hover);
  background: #f7fafc;
}

.mobile-cta {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .nav-wrapper {
    gap: 20px;
  }
  
  .nav-menu-left,
  .nav-menu-right {
    gap: 20px;
  }
  
  .logo-container {
    width: 85px;
    height: 85px;
  }
  
  .logo-image {
    max-width: 65px;
    max-height: 65px;
  }
  
  .btn {
    padding: 12px 24px;
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .top-nav-content {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .nav-wrapper {
    grid-template-columns: 1fr auto;
    gap: 20px;
  }
  
  .nav-left,
  .nav-right {
    display: none;
  }
  
  .nav-center {
    justify-content: flex-start;
  }
  
  .mobile-menu-toggle {
    display: block;
    justify-self: end;
  }
  
  .logo-container {
    width: 70px;
    height: 70px;
  }
  
  .logo-image {
    max-width: 55px;
    max-height: 55px;
  }
  
  .main-nav {
    padding: 12px 0;
  }
  
  .mobile-cta .btn {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: 8px;
    font-weight: 600;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  .top-nav-bar {
    padding: 6px 0;
    font-size: 12px;
  }
  
  .contact-text {
    font-size: 12px;
  }
  
  .social-links {
    gap: 10px;
  }
  
  .social-link svg {
    width: 14px;
    height: 14px;
  }
  
  .logo-container {
    width: 60px;
    height: 60px;
  }
  
  .logo-image {
    max-width: 45px;
    max-height: 45px;
  }
}

/* Animation for smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Ensure body has top margin for fixed header */
body {
  margin-top: 150px; /* Adjust based on header height */
}

@media (max-width: 768px) {
  body {
    margin-top: 125px;
  }
}

@media (max-width: 480px) {
  body {
    margin-top: 110px;
  }
}

/* Focus states for accessibility - removed blue outline */
.nav-link:focus,
.dropdown-link:focus,
.btn:focus,
.social-link:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

/* Remove focus outline for mouse users but keep for keyboard users */
.nav-link:focus:not(:focus-visible),
.dropdown-link:focus:not(:focus-visible),
.btn:focus:not(:focus-visible),
.social-link:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

/* Additional focus style overrides to prevent blue borders */
.nav-menu a:focus,
.nav-menu button:focus,
.dropdown-menu a:focus,
.dropdown-menu button:focus,
.mobile-menu a:focus,
.mobile-menu button:focus,
.mobile-menu-toggle:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* Remove browser default focus styles */
*:focus {
  outline: none !important;
}

/* Restore focus for keyboard navigation accessibility */
*:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.3) !important;
  outline-offset: 2px !important;
}

/* Print styles */
@media print {
  .modern-header {
    position: static;
    box-shadow: none;
  }
  
  .top-nav-bar {
    display: none;
  }
  
  body {
    margin-top: 0;
  }
}