/* Header Styles */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 96px;
  background-color: #ffffff;
  border-bottom: 1px solid #cecece;
  z-index: 1000;
  font-family: "Roboto", sans-serif;
}

.header-container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-content {
  width: 100%;
  max-width: 1392px;
  height: 50px;
  display: flex;
  align-items: center;
  position: relative;
  justify-content: space-between;
}

/* Logo Styles */
.site-logo {
  display: block;
  width: 208px;
  height: 26px;
  flex-shrink: 0;
}

.site-logo a {
  width: 100%;
  height: 100%;
}

.site-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Main Navigation - Centered */
.main-navigation {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.menu-items {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 35px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.menu-item {
  position: relative;
}

.menu-link {
  display: flex;
  align-items: center;
  font-size: 18px;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.menu-link:hover {
  color: #0c65af;
}

/* SVG Dropdown Arrow */
.dropdown-arrow {
  margin-left: 8px;
  width: 12px;
  height: 12px;
  transition: transform 0.3s ease;
  fill: currentColor;
}

.has-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 35px);
  left: 0;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

/* Dropdown positioning for different menu items */
.menu-item:nth-child(1) .dropdown-menu,
.menu-item:nth-child(2) .dropdown-menu,
.menu-item:nth-child(3) .dropdown-menu {
  left: 0;
}

.menu-item:nth-child(n+4) .dropdown-menu {
  right: 0;
  left: auto;
}

.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Dropdown Container */
.dropdown-container {
  padding: 24px 15px;
}

.dropdown-container.two-columns {
  padding-bottom: 15px;
}

.single-column {
  display: flex;
  flex-direction: column;
}

.two-columns {
  display: flex;
  gap: 0;
  align-items: flex-start;
}

.column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Menu Item Container */
.menu-item-container {
  width: 380px;
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.menu-item-container:hover {
  background-color: #f3f3f3;
}

.menu-item-content {
  width: 350px;
  height: 45px;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.menu-icon {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
}

.menu-text {
  margin-left: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.menu-title {
  font-size: 16px;
  font-weight: 400;
  color: #1d1d1d;
  line-height: 1.2;
  margin-bottom: 2px;
}

.menu-subtitle {
  font-size: 16px;
  font-weight: 400;
  color: #6c6c6c;
  line-height: 1.2;
}

/* Header Button */
.header-button {
  flex-shrink: 0;
}

.btn-get-started {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 144px;
  height: 51px;
  background-color: #0c65af;
  color: #ffffff;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.btn-get-started:hover {
  background-color: #0952a3;
  color: #ffffff;
}

/* Mobile Menu Toggle - Initially Hidden */
.mobile-menu-toggle {
  display: none;
}

/* Mobile Menu Overlay - Initially Hidden */
.mobile-menu-overlay {
  display: none;
}

/* Body padding to compensate for fixed header */
body {
  padding-top: 96px;
}

.site-logo,
.header-logo {
  position: relative;
  z-index: 1002;
}

/* Desktop breakpoints */
@media (min-width: 1269px) {
  .main-navigation {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 1440px) and (min-width: 1269px) {
  .site-header {
    height: 80px;
  }

  .header-container {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    padding-left: 24px;
    padding-right: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .site-logo {
    width: 137px;
    height: 17px;
  }

  .main-navigation {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .menu-items {
    gap: 33px;
  }

  .menu-link {
    font-size: 18px;
  }

  .dropdown-arrow {
    margin-left: 6px;
    width: 11px;
    height: 11px;
  }

  .dropdown-menu {
    top: calc(100% + 26px);
    border-radius: 10px;
  }

  /* Dropdown positioning for different menu items in medium screens */
  .menu-item:nth-child(1) .dropdown-menu,
  .menu-item:nth-child(2) .dropdown-menu,
  .menu-item:nth-child(3) .dropdown-menu {
    left: 0;
  }

  .menu-item:nth-child(n+4) .dropdown-menu {
    right: 0;
    left: auto;
  }

  .dropdown-container {
    padding: 20px 12px;
  }

  .dropdown-container.two-columns {
    padding-bottom: 12px;
  }

  .two-columns {
    display: flex;
    gap: 0;
    align-items: flex-start;
  }

  .column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .menu-item-container {
    width: 370px;
    height: 70px;
    border-radius: 3px;
  }

  .menu-item-content {
    width: 340px;
    height: 42px;
  }

  .menu-icon {
    width: 36px;
    height: 36px;
  }

  .menu-text {
    margin-left: 11px;
  }

  .btn-get-started {
    width: 140px;
    height: 48px;
    font-size: 18px;
  }

  body {
    padding-top: 80px;
  }
}

@media (max-width: 1268px) {
  .site-header {
    height: 74px;
  }

  body {
    padding-top: 74px;
  }

  .header-container {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    padding-left: 24px;
    padding-right: 24px;
  }

  .header-content {
    justify-content: flex-start;
    gap: 0;
  }

  .site-logo {
    width: 135px;
    height: auto;
    margin-right: auto;
  }

  .main-navigation {
    display: none;
  }

  .header-button {
    margin-right: 20px;
    order: 2;
  }

  .btn-get-started {
    width: 140px;
    height: 45px;
    font-size: 16px;
    border-radius: 4px;
  }

  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    cursor: pointer;
    z-index: 1001;
    order: 3;
    background: none;
    border: none;
    padding: 0;
  }

  .mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #1d1d1b;
    border-radius: 1px;
    transition: all 0.3s ease;
    transform-origin: center;
  }

  .mobile-menu-toggle span:nth-child(1) {
    margin-bottom: 4px;
  }

  .mobile-menu-toggle span:nth-child(2) {
    margin-bottom: 4px;
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
  }

  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 74px;
    left: 0;
    width: 100%;
    height: calc(100vh - 74px);
    background-color: #ffffff;
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .mobile-menu-overlay.active {
    display: block;
    opacity: 1;
  }

  .mobile-menu-items {
    list-style: none;
    margin: 0;
    padding: 24px;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
  }

  .mobile-menu-item {
    border-bottom: 1px solid #cecece;
    margin-bottom: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .mobile-menu-item:last-child {
    border-bottom: none;
  }

  .mobile-menu-item-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
    padding: 8px 0;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
  }

  .mobile-menu-item:not(.has-dropdown) {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 0;
    width: 100%;
    box-sizing: border-box;
  }

  .mobile-menu-link {
    color: #1d1d1b;
    text-decoration: none;
    font-size: 20px;
    font-weight: 500;
    transition: color 0.3s ease;
    flex: 1;
    display: block;
    padding: 5px 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-width: 0;
  }

  .mobile-menu-link:hover {
    color: #0c65af;
  }

  .mobile-dropdown-arrow {
    width: 16px;
    height: 16px;
    fill: #cecece;
    transition: transform 0.3s ease, fill 0.3s ease;
    flex-shrink: 0;
    margin-left: 12px;
  }

  .mobile-menu-item.active .mobile-dropdown-arrow {
    transform: rotate(180deg);
    fill: #0c65af;
  }

  .mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background-color: #f8f9fa;
    margin: 0 -24px;
    padding: 0 24px;
    box-sizing: border-box;
    width: calc(100% + 48px);
  }

  .mobile-menu-item.active .mobile-submenu {
    max-height: 800px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .mobile-submenu-item {
    padding: 12px 0;
    border-left: 3px solid #1d1d1b;
    padding-left: 16px;
    margin-left: 12px;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
    width: calc(100% - 12px);
    max-width: calc(100% - 12px);
  }

  .mobile-submenu-content {
    display: flex;
    align-items: center;
    text-decoration: none;
    width: 100%;
    padding: 4px 0;
    box-sizing: border-box;
    min-width: 0;
  }

  .mobile-submenu-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    flex-shrink: 0;
  }

  .mobile-submenu-text {
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .mobile-submenu-title {
    color: #1d1d1b;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 2px;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .mobile-submenu-subtitle {
    color: #6c6c6c;
    font-size: 16px;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}

@media (max-width: 767px) {
  .site-header {
    height: 67px;
  }

  body {
    padding-top: 67px;
  }

  .header-container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .site-logo {
    width: 34px;
    height: 34px;
  }

  .header-button {
    margin-right: 0;
  }

  .btn-get-started {
    width: 120px;
    height: 40px;
    font-size: 16px;
    margin-right: 16px;
  }

  .mobile-menu-overlay {
    top: 67px;
    height: calc(100vh - 67px);
  }

  .mobile-menu-items {
    padding: 20px;
  }

  .mobile-menu-link {
    font-size: 18px;
  }

  .mobile-dropdown-arrow {
    width: 14px;
    height: 14px;
  }

  .mobile-submenu-title {
    font-size: 16px;
  }

  .mobile-submenu-subtitle {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .site-header {
    height: 60px;
  }

  body {
    padding-top: 60px;
  }

  .header-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-logo {
    width: 30px;
    height: 30px;
  }

  .btn-get-started {
    width: 100px;
    height: 36px;
    font-size: 14px;
    margin-right: 12px;
  }

  .mobile-menu-toggle {
    width: 20px;
    height: 20px;
  }

  .mobile-menu-overlay {
    top: 60px;
    height: calc(100vh - 60px);
  }

  .mobile-menu-items {
    padding: 16px;
  }

  .mobile-menu-link {
    font-size: 18px;
  }

  .mobile-dropdown-arrow {
    width: 12px;
    height: 12px;
  }

  .mobile-submenu-title {
    font-size: 16px;
  }

  .mobile-submenu-subtitle {
    font-size: 14px;
  }
}