/* ===========================
   HEADER
   =========================== */
.site-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: relative;
  z-index: 999;
}

.header-color-bar {
  height: 15px;
  /* background: linear-gradient(
    to right,
    #e43d33 0%,
    #e43d33 30%,
    #f4b41a 30%,
    #f4b41a 50%,
    #fff200 50%,
    #fff200 65%,
    #d3d3d3 65%,
    #d3d3d3 75%,
    #a9a9a9 75%,
    #a9a9a9 85%,
    #696969 85%,
    #696969 100%
  ); */

  background-color: #eb5f00;
  margin: 0 0px;
  margin-bottom: 10px;
}

.header-content {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 0;
  padding: 12px 70px;
}

.site-header.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding-top: 5px;
}

.site-header.is-sticky .header-color-bar {
  height: 0;
  opacity: 0;
  overflow: hidden;
}

/* ===========================
   LOGO
   =========================== */
.site-branding {
  grid-column: 1;
  grid-row: 1 / 3;
  display: flex;
  align-items: center;
  padding-right: 40px;
}

.site-branding img,
.site-branding .custom-logo {
  max-height: 80px;
  width: auto;
}

.site-title {
  font-size: 22px;
  margin: 0;
}

.site-title a {
  text-decoration: none;
  color: #111;
  font-weight: 700;
}

/* Hiệu ứng lấp lánh cho logo */
.site-branding {
  position: relative;
  overflow: hidden;
}

.site-branding img,
.custom-logo {
  position: relative;
  animation: logo-float 3s ease-in-out infinite;
}

.site-branding::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -100%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.9) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: shine-sweep 3s ease-in-out infinite;
  pointer-events: none;
  transform: skewX(-20deg);
}

@keyframes shine-sweep {
  0% {
    left: -100%;
  }
  20% {
    left: 150%;
  }
  100% {
    left: 150%;
  }
}

@keyframes logo-float {
  0%,
  100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-5px) scale(1.02);
  }
}
/* ===========================
   MENU TOP & BOTTOM
   =========================== */
.menutop {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
}

.menubottom {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-top: 10px;
}

.site-slogan {
  font-size: 22px;
  font-weight: 700;
  color: #ff6600;
}

/* ===========================
   NAVIGATION
   =========================== */
.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 35px;
}

.main-navigation li {
  position: relative;
}

.main-navigation a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: #333;
  white-space: nowrap;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  color: #eb5f00;
}

/* Sub Menu */
.main-navigation ul ul {
  position: absolute;
  top: 120%;
  left: 0;
  background: #fff;
  min-width: 200px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  display: none;
  flex-direction: column;
  padding: 10px 0;
  gap: 0;
}

.main-navigation ul ul a {
  padding: 10px 20px;
  display: block;
  font-size: 14px;
}

.main-navigation li:hover > ul {
  display: block;
}

/* ===========================
   SEARCH
   =========================== */
.header-search {
  position: relative;
}

.search-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #666;
  font-size: 14px;
}

.search-toggle:hover .search-icon {
  border-color: #5b9bd5;
}

.search-toggle:hover .search-icon::after {
  background: #5b9bd5;
}

.search-icon {
  width: 14px;
  height: 14px;
  border: 2px solid #999;
  border-radius: 50%;
  position: relative;
  display: inline-block;
}

.search-icon::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 5px;
  background: #999;
  bottom: -5px;
  right: -3px;
  transform: rotate(-45deg);
}

.search-text {
  font-weight: 400;
  color: #666;
}

.search-form-wrapper {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 1000;
}

.search-form-wrapper.active {
  opacity: 1;
  visibility: visible;
}

.search-form {
  display: flex;
  align-items: center;
  background: white;
  border: 1.5px solid #b4d7f5;
  border-radius: 20px;
  padding: 8px 15px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  width: 0;
  min-width: 0;
  overflow: hidden;
  transition: width 0.3s ease;
}

.search-form-wrapper.active .search-form {
  width: 300px;
}

.search-icon-input {
  width: 14px;
  height: 14px;
  border: 2px solid #5b9bd5;
  border-radius: 50%;
  position: relative;
  display: inline-block;
  margin-right: 10px;
  flex-shrink: 0;
}

.search-icon-input::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 5px;
  background: #5b9bd5;
  bottom: -5px;
  right: -3px;
  transform: rotate(-45deg);
}

.search-field {
  flex: 1;
  border: none;
  outline: none;
  padding: 0;
  font-size: 14px;
  background: transparent;
  color: #333;
}

.search-field::placeholder {
  color: #999;
}

.search-toggle.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
