/* Global Styles */

/* Primary Button */
.btn-primary {
  display: inline-block;
  padding: 16px 32px;
  background-color: #0066cc;
  color: #ffffff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: #0052a3;
  color: #ffffff;
}

/* Main Header Styles */
.main-header {
  width: 100%;
  padding: 20px 40px;
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo Section */
.header-logo {
  flex: 0 0 auto;
}

.header-logo a {
  display: block;
  line-height: 0;
}

.header-logo img {
  height: 65px;
  width: auto;
}

/* Spacer to push content right */
.header-spacer {
  flex: 1;
}

/* Navigation Section */
.header-nav {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  gap: 48px;
  margin-right: 32px;
}

.nav-link {
  color: #333333;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #005EC7;
}

/* CTA Button Section */
.header-cta {
  flex: 0 0 auto;
}

.cta-button {
  display: inline-block;
  padding: 12px 28px;
  background-color: #005EC7;
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #004a9c;
  color: #ffffff;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background-color: #333333;
  border-radius: 2px;
  transition: all 0.3s ease;
}

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

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

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

/* Mobile Navigation Menu */
.mobile-nav-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 105px;
  right: 0;
  width: 100%;
  max-width: 300px;
  background-color: #ffffff;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-nav-menu.active {
  display: flex;
  transform: translateX(0);
}

.mobile-nav-link {
  color: #333333;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  padding: 15px 0;
  border-bottom: 1px solid #eeeeee;
  transition: color 0.3s ease;
}

.mobile-nav-link:hover {
  color: #005EC7;
}

.mobile-nav-cta {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 28px;
  background-color: #005EC7;
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
  text-align: center;
  transition: background-color 0.3s ease;
}

.mobile-nav-cta:hover {
  background-color: #004a9c;
  color: #ffffff;
}

/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden;
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-header {
    padding: 15px 20px;
  }

  .header-container {
    flex-wrap: nowrap;
  }

  .header-logo img {
    height: 50px;
  }

  /* Hide desktop navigation on mobile */
  .header-nav,
  .header-cta {
    display: none;
  }

  /* Show mobile menu toggle */
  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-nav-menu {
    top: 80px;
  }
}
