/* ========================================
   Header
======================================== */

.site-header {
  width: 100%;
  background-color: #1e3a8a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-header__inner {
  width: calc(100% - 40px);
  max-width: 1280px;
  min-height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}


/* Site Title
---------------------------------------- */

.site-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.site-title__link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.site-title__link:hover {
  color: #fff;
  opacity: 0.9;
}

.site-title__icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}


/* Search
---------------------------------------- */

.site-search {
  width: 280px;
  margin: 0;
}

.site-search__field {
  position: relative;
}

.site-search__icon {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 18px;
  pointer-events: none;
}

.site-search__input {
  width: 100%;
  height: 44px;
  padding: 0 16px 0 44px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  outline: none;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 14px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.site-search__input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.site-search__input:focus {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
}


/* Category Navigation
---------------------------------------- */

.header-category-nav {
  width: 100%;
  background-color: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.category-nav__inner {
  width: calc(100% - 40px);
  max-width: 1100px;
  margin: 0 auto;
}

.category-nav__list {
  min-height: 52px;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  list-style: none;
}

.category-nav__item {
  margin: 0;
  padding: 0;
}

.category-nav__link {
  position: relative;
  min-height: 52px;
  display: flex;
  align-items: center;
  color: #4b5563;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.category-nav__link:hover {
  color: #244393!important;
}

.category-nav__link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background-color: #244393;
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.category-nav__link:hover::after {
  transform: scaleX(1);
}


/* Responsive
---------------------------------------- */

@media (max-width: 767px) {
  .site-header__inner {
    padding: 18px 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .site-title__link {
    justify-content: center;
  }

  .site-search {
    width: 100%;
  }

  .category-nav__inner {
    overflow: hidden;
  }

  .category-nav__list {
    justify-content: flex-start;
    gap: 24px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .category-nav__list::-webkit-scrollbar {
    display: none;
  }
}