/* Header styling */
:root {
  --header-bg: #ffffff;
  --header-text: #0052cc;
  --nav-color: #1a1a2e;
  --nav-hover: rgba(0, 82, 204, 0.08);
  --nav-hover-line: #0052cc;
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

header.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 75px;
  background: var(--header-bg);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  padding: 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-link {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo-img {
  height: 44px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}

.logo-title {
  color: var(--header-text);
  margin: 0;
  font-size: 1.35rem;
  font-family: var(--font-family);
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.navbar {
  display: flex;
  align-items: center;
}

.navbar > ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
  align-items: center;
}

.navbar a {
  text-decoration: none;
  color: var(--nav-color);
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 13.5px;
  padding: 0.45rem 0.55rem;
  border-radius: 4px;
  transition: color 0.2s ease, background-color 0.2s ease;
  position: relative;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.navbar a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.55rem;
  right: 0.55rem;
  height: 2.5px;
  background-color: var(--nav-hover-line);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.navbar a:hover {
  color: var(--nav-hover-line);
  background-color: var(--nav-hover);
}

.navbar a:hover::after,
.navbar a.active::after {
  transform: scaleX(1);
}

/* Nav CTA Button */
.navbar a.nav-cta {
  background-color: #0052cc;
  color: #ffffff !important;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  margin-left: 0.2rem;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.navbar a.nav-cta::after {
  display: none !important;
}

.navbar a.nav-cta:hover {
  background-color: #003a99;
  transform: translateY(-1px);
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-arrow {
  font-size: 10px;
  margin-left: 4px;
  transition: transform 0.2s ease;
  color: #64748b;
  display: inline-block;
}

.dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
  color: var(--nav-hover-line);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--header-bg);
  min-width: 250px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s ease;
  z-index: 1000;
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  list-style: none;
  width: 100%;
}

.dropdown-menu a {
  display: block;
  padding: 0.65rem 1.25rem;
  color: var(--nav-color);
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 13.5px;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: normal;
  border-radius: 0;
}

.dropdown-menu a::after {
  display: none !important;
}

.dropdown-menu a:hover {
  background-color: #f0f5ff;
  color: var(--nav-hover-line);
}

/* Hamburger Menu Button */
.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger span {
  width: 24px;
  height: 2.5px;
  background-color: var(--nav-color);
  margin: 3.5px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Responsive Styles */
@media (min-width: 1181px) {
  .navbar {
    display: flex !important;
    position: static;
    background: none;
    max-height: none;
  }

  .hamburger {
    display: none !important;
  }
}

@media (max-width: 1180px) {
  header.header {
    height: 70px;
  }

  .header-container {
    padding: 0 1rem;
  }

  .logo-title {
    font-size: 1.25rem;
  }

  .hamburger {
    display: flex;
  }

  .navbar {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--header-bg);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, box-shadow 0.35s ease;
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .navbar.active {
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  }

  .navbar ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding: 0.5rem 0 1.5rem;
    align-items: stretch;
  }

  .navbar li {
    list-style: none;
    width: 100%;
    border-bottom: 1px solid #f1f5f9;
  }

  .navbar a {
    padding: 0.85rem 1.5rem;
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    width: 100%;
    border-radius: 0;
  }

  .navbar a::after {
    display: none !important;
  }

  .navbar a.nav-cta {
    margin: 1rem 1.5rem;
    width: calc(100% - 3rem);
    text-align: center;
    justify-content: center;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    display: block;
    background: #f8fafc;
    border: none;
    border-radius: 0;
    padding: 0;
  }

  .dropdown-menu a {
    padding: 0.75rem 2.25rem;
    font-size: 14px;
    color: #475569;
  }
}

@media (max-width: 480px) {
  header.header {
    height: 65px;
  }

  .logo-title {
    font-size: 1.15rem;
  }

  .navbar {
    top: 65px;
  }

  .navbar.active {
    max-height: calc(100vh - 65px);
  }
}

