@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700;900&display=swap');

/* =============================================
   GLOBAL FONT: Roboto toàn bộ website
   ============================================= */
html, body, body *,
input, textarea, select, button {
  font-family: 'Roboto', sans-serif !important;
}

/* ---- Variables ---- */
:root {
  --primary:       #1652a6;
  --primary-dark:  #0f3d7e;
  --primary-light: #2a6dd9;
  --topbar-bg:     #1652a6;
  --topbar-text:   rgba(255,255,255,0.85);
  --header-bg:     #ffffff;
  --header-height: 106px;
  --topbar-height: 50px;
  --nav-text:      #1a2a3a;
  --nav-hover:     #1652a6;
  --border:        #e8edf5;
  --font:          'Roboto', sans-serif;
  --transition:    all 0.22s cubic-bezier(0.4,0,0.2,1);
  --radius:        6px;
  --shadow:        0 4px 24px rgba(22,82,166,0.10);
  --max-width:     1200px;
}

/* =============================================
   TOP BAR
   ============================================= */
.custom-top-bar {
  background-color: var(--topbar-bg);
  height: var(--topbar-height);
  width: 100%;
  z-index: 1001;
}
.custom-top-bar {
    position: sticky;
    top: 0;
    z-index: 1053;
    box-shadow: 0 1px 0 var(--border);
    transition: box-shadow 0.25s ease;
}

.custom-top-bar__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Left: contact info */
.custom-top-bar__left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.custom-top-bar__item {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}

.custom-top-bar__item svg {
  flex-shrink: 0;
  opacity: 0.8;
}

.custom-top-bar__item:hover {
  color: #ffffff;
}

/* Right: social icons */
.custom-top-bar__right {
  display: none;
  align-items: center;
  gap: 14px;
}

.custom-top-bar__social {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--topbar-text);
  text-decoration: none;
  transition: var(--transition);
  width: 26px;
  height: 26px;
  border-radius: 50%;
}

.custom-top-bar__social:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.12);
}

/* =============================================
   MAIN HEADER
   ============================================= */
.custom-main-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 50px;
  z-index: 1000;
  box-shadow: 0 1px 0 var(--border);
  transition: box-shadow 0.25s ease;
}

.custom-main-header.scrolled {
  box-shadow: var(--shadow);
}

.custom-main-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* ---- Logo ---- */
.custom-header-logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.custom-header-logo .custom-logo {
  height: 75px;
  width: auto;
}

.custom-logo-text {
  display: flex;
  align-items: center;
  gap: 8px;
}

.custom-logo-name {
  font-family: var(--font);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.03em;
  line-height: 1;
}

/* ---- Primary Navigation ---- */
.custom-primary-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.custom-nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
}

.custom-nav-menu > li {
  position: relative;
}

.custom-nav-menu > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 14px;
  height: var(--header-height);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 800;
  color: #1652a6;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.custom-nav-menu > li > a:hover {
	color: #ff6600;
}
.custom-nav-menu > li.current-menu-item > a,
.custom-nav-menu > li.current-menu-ancestor > a {
  color: var(--nav-hover);
  /*border-bottom-color: var(--primary);*/
}

/* Has children: add "+" indicator */
/*.custom-nav-menu > li.menu-item-has-children > a::after {
  content: '+';
  font-size: 16px;
  font-weight: 400;
  color: var(--nav-text);
  line-height: 1;
  transition: var(--transition);
}*/

.custom-nav-menu > li.menu-item-has-children:hover > a::after {
  color: var(--primary);
  transform: rotate(45deg);
}

/* Dropdown submenu */
.custom-nav-menu ul {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(22,82,166,0.12);
  min-width: 270px;
  list-style: none;
  margin: 0;
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 999;
}

.custom-nav-menu > li:hover > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-nav-menu ul li a {
  display: block;
  padding: 9px 18px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  color: #1652a6;
  text-decoration: none;
  transition: var(--transition);
}

.custom-nav-menu ul li a:hover {
  background: #f0f5ff;
  color: var(--primary);
  padding-left: 22px;
}

/* ---- Search Icon ---- */
.custom-header-search {
  position: relative;
  flex-shrink: 0;
}

.custom-search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--nav-text);
  transition: var(--transition);
  padding: 0;
}

.custom-search-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-pale, #e8f0fc);
}

/* Search dropdown box */
.custom-search-box {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 300px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(22,82,166,0.12);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 999;
}

.custom-search-box.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-search-box form {
  display: flex;
  gap: 6px;
}

.custom-search-box input[type="search"] {
  flex: 1;
  padding: 9px 12px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--nav-text);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: var(--transition);
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
}

.custom-search-box input[type="search"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22,82,166,0.1);
}

.custom-search-box button[type="submit"] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  padding: 0;
}

.custom-search-box button[type="submit"]:hover {
  background: var(--primary-dark);
}

/* ---- Mobile Toggle ---- */
.custom-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 8px;
  transition: var(--transition);
  flex-shrink: 0;
}

.custom-mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--nav-text);
  border-radius: 2px;
  transition: var(--transition);
}

.custom-mobile-toggle:hover {
  border-color: var(--primary);
}

.custom-mobile-toggle:hover span {
  background: var(--primary);
}

/* =============================================
   MOBILE NAV DRAWER
   ============================================= */
.custom-mobile-nav {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: #fff;
  z-index: 2000;
  padding: 24px 20px;
  box-shadow: -8px 0 32px rgba(0,0,0,0.12);
  transition: right 0.3s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.custom-mobile-nav.is-open {
  right: 0;
}

.custom-mobile-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--nav-text);
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
  margin-bottom: 8px;
  transition: var(--transition);
}

.custom-mobile-close:hover {
  color: var(--primary);
}

.custom-mobile-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.custom-mobile-menu li {
  border-bottom: 1px solid var(--border);
}

.custom-mobile-menu li a {
  display: block;
  padding: 13px 4px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  color: var(--nav-text);
  text-decoration: none;
  transition: var(--transition);
}

.custom-mobile-menu li a:hover {
  color: var(--primary);
  padding-left: 8px;
}

.custom-mobile-menu ul {
  list-style: none;
  padding: 0 0 0 16px;
  margin: 0;
}

.custom-mobile-menu ul li a {
  font-size: 14px;
  font-weight: 400;
  padding: 10px 4px;
}

/* Overlay */
.custom-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.custom-mobile-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

/* =============================================
   RESPONSIVE
   ============================================= */

/* Tablet: ≤ 991px */
@media (max-width: 991px) {
  .custom-primary-nav,
  .custom-header-search {
    display: none;
  }

  .custom-mobile-toggle {
    display: flex;
  }

  .custom-main-header__inner {
    justify-content: space-between;
  }
}

/* Small mobile */
@media (max-width: 575px) {
  .custom-top-bar__left {
    gap: 14px;
  }

  .custom-top-bar__item span {
    display: none; /* show icon only on very small screens */
  }

  .custom-top-bar__item {
    gap: 0;
  }

  .custom-main-header__inner {
    padding: 0 16px;
  }
}
