/*
Theme Name: hs_dev
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/
/* ===== BIẾN MÀU: sửa ở đây là đổi cả header ===== */
:root {
  --h-accent: #2563eb;
  --h-accent-2: #38bdf8;
  --h-accent-soft: rgba(37, 99, 235, 0.1);
  --h-text: #1f2937;
  --h-muted: #6b7280;
  --h-border: #e5e7eb;
  --h-nav-bg: #0f172a;
  --h-nav-bg-2: #1e293b;
  --h-radius: 10px;
}

/* ===== THANH TRÊN: LOGO + SOCIAL + SEARCH ===== */
#masthead .header-bg-color,
.header-bg-color {
  background: #ffffff;
}

#masthead {
  border-bottom: 1px solid var(--h-border);
}
/* ===== ICON MẠNG XÃ HỘI ===== */
.header-social-icons .social-icons {
  display: flex;
  gap: 8px;
  align-items: center;
}
.header-social-icons .social-icons a.icon {
  width: 36px;
  height: 36px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f3f4f6;
  color: var(--h-muted);
  border: 0;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.header-social-icons .social-icons a.icon:hover {
  transform: translateY(-3px);
  color: #fff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}
.header-social-icons a.facebook:hover { background: #1877f2; }
.header-social-icons a.youtube:hover  { background: #ff0000; }

/* ===== Ô TÌM KIẾM ===== */
.header-search-form .searchform-wrapper {
  min-width: 260px;
  max-width: 100%;
}
.header-search-form .searchform {
  background: #f3f4f6;
  border: 1px solid transparent;
  border-radius: 999px;
  overflow: hidden;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.header-search-form .searchform:focus-within {
  background: #fff;
  border-color: var(--h-accent);
  box-shadow: 0 0 0 4px var(--h-accent-soft);
}
.header-search-form .search-field {
  background: transparent;
  border: 0;
  box-shadow: none;
  height: 40px;
  padding: 0 8px 0 18px;
  font-size: 14px;
  color: var(--h-text);
}
.header-search-form .search-field:focus {
  box-shadow: none;
  background: transparent;
}
.header-search-form .ux-search-submit {
  background: transparent !important;
  color: var(--h-muted);
  border: 0;
  box-shadow: none;
  height: 40px;
  min-height: 0;
  margin-right: 4px;
  transition: color 0.25s ease, transform 0.25s ease;
}
.header-search-form .ux-search-submit:hover {
  color: var(--h-accent);
  transform: scale(1.12);
}

/* Gợi ý tìm kiếm trực tiếp */
.autocomplete-suggestions {
  border: 1px solid var(--h-border) !important;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  margin-top: 6px;
}
.autocomplete-suggestion {
  padding: 10px 14px;
  transition: background-color 0.2s ease;
}
.autocomplete-suggestion:hover,
.autocomplete-selected {
  background: var(--h-accent-soft);
}

/* ===== THANH MENU DƯỚI (nền tối) ===== */
#wide-nav {
  background: linear-gradient(90deg, var(--h-nav-bg), var(--h-nav-bg-2));
  border: 0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.18);
}

#wide-nav .header-bottom-nav {
  gap: 2px;
}

/* Mục menu cấp 1 */
#wide-nav .header-bottom-nav > li > a.nav-top-link {
  position: relative;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 9px 16px;
  margin: 7px 2px;
  border-radius: var(--h-radius);
  transition: color 0.25s ease, background-color 0.25s ease;
}

/* Hover + đang active */
#wide-nav .header-bottom-nav > li:hover > a.nav-top-link,
#wide-nav .header-bottom-nav > li.active > a.nav-top-link,
#wide-nav .header-bottom-nav > li.current-menu-item > a.nav-top-link {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* Gạch chân gradient chạy từ giữa ra */
#wide-nav .header-bottom-nav > li > a.nav-top-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--h-accent), var(--h-accent-2));
  transform: translateX(-50%);
  transition: width 0.3s ease;
}
#wide-nav .header-bottom-nav > li:hover > a.nav-top-link::after,
#wide-nav .header-bottom-nav > li.active > a.nav-top-link::after {
  width: 45%;
}

/* Mũi tên dropdown */
#wide-nav .icon-angle-down {
  margin-left: 4px;
  font-size: 12px;
  opacity: 0.7;
  transition: transform 0.25s ease;
}
#wide-nav li.has-dropdown:hover > a .icon-angle-down {
  transform: rotate(180deg);
}

/* ===== DROPDOWN ===== */
#wide-nav .nav-dropdown {
  min-width: 210px;
  padding: 8px;
  margin-top: 2px;
  background: #fff;
  border: 1px solid var(--h-border);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}
#wide-nav .nav-dropdown::before,
#wide-nav .nav-dropdown::after {
  display: none;
}
#wide-nav .nav-dropdown > li > a {
  display: block;
  padding: 9px 14px;
  font-size: 13.5px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--h-text);
  border: 0 !important;
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}
#wide-nav .nav-dropdown > li > a:hover,
#wide-nav .nav-dropdown > li.current-menu-item > a {
  color: var(--h-accent);
  background: var(--h-accent-soft);
  padding-left: 20px;
}

/* Hamburger trên mobile (thanh trên) */
.mobile-nav .nav-icon > a {
  color: var(--h-text);
  transition: color 0.25s ease;
}
.mobile-nav .nav-icon > a:hover {
  color: var(--h-accent);
}

/* ===== KHI CUỘN (STICKY) ===== */
.header-wrapper.stuck #masthead {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ===== MENU MOBILE (sidebar) ===== */
#main-menu .nav-sidebar > li > a {
  font-weight: 600;
  border-radius: 8px;
  transition: color 0.2s ease, background-color 0.2s ease;
}
#main-menu .nav-sidebar > li > a:hover {
  color: var(--h-accent);
  background: var(--h-accent-soft);
}


.section-title-normal {
  text-align: left !important;
  border-left: 4px solid #e53e3e; /* Thanh màu đỏ bên trái */
  padding-left: 12px !important;
}

/* Ẩn các đường gạch mặc định */
.section-title-normal b {
  display: none !important;
}

/* Tùy chỉnh chữ */
.section-title-normal span.section-title-main {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #2d3748 !important;
  padding: 0 !important;
}
.section-title-normal span {
    border-bottom: none;
    margin-bottom: 5px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 849px) {
  .header-social-icons .social-icons a.icon {
    width: 32px;
    height: 32px;
  }
}
