header .ast-container {
    max-width: 100%;
    padding: 0 70px !important;
}

.wt-button-header{
	display:flex !important;
	gap:10px !important;
}

@media (max-width: 977px) {
    .ast-header-break-point #masthead .ast-mobile-header-wrap .ast-primary-header-bar, .ast-header-break-point #masthead .ast-mobile-header-wrap .ast-below-header-bar, .ast-header-break-point #masthead .ast-mobile-header-wrap .ast-above-header-bar {
		padding: 0 50px !important;
	}
	
	header .ast-container {
		padding: 0 50px !important;
	}
}

@media (max-width: 767px) {
    header .ast-container {
		padding: 0 12px !important;
	}
	
	.ast-header-break-point #masthead .ast-mobile-header-wrap .ast-primary-header-bar, .ast-header-break-point #masthead .ast-mobile-header-wrap .ast-below-header-bar, .ast-header-break-point #masthead .ast-mobile-header-wrap .ast-above-header-bar {
        padding: 0 12px !important;
    }
}

/* =====================
   Header (Trong suốt cố định & Đổi màu khi cuộn)
   ===================== */
#masthead {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: transparent !important;
    background-color: transparent !important;
    transition: background-color 0.35s ease, backdrop-filter 0.35s ease;
}

/* Lớp nền tối dùng ::before — tránh xung đột với thẻ con Astra */
#masthead::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: background 0.35s ease, backdrop-filter 0.35s ease;
    z-index: 0;
    pointer-events: none;
}

/* Khi cuộn: đổi màu background thành rgba(0, 0, 0, 0.6) */
#masthead.header-scrolled {
    background: rgba(0, 0, 0, 0.6) !important;
    background-color: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#masthead.header-scrolled::before {
    background: rgba(0, 0, 0, 0) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Các thẻ con Astra: xóa nền trắng mặc định, đặt z-index > 0 để nổi trên ::before */
#masthead #ast-desktop-header,
#masthead #ast-mobile-header,
#masthead .ast-primary-header-bar,
#masthead .main-header-bar,
#masthead .main-header-bar-wrap,
#masthead .site-primary-header-wrap,
#masthead .ast-builder-grid-row-container {
    background: transparent !important;
    background-color: transparent !important;
    position: relative;
    z-index: 1;
}

/* Hỗ trợ khi đăng nhập có WordPress Admin Bar */
.admin-bar #masthead {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar #masthead {
        top: 46px;
    }
}

/* =====================
   Màu trắng cho toàn bộ nội dung trong header
   ===================== */

/* Mobile toggle button icon (stroke-based SVG) */
#masthead .main-header-menu-toggle,
#masthead .main-header-menu-toggle svg {
    color: #fff !important;
}

#masthead .main-header-menu-toggle svg path {
    stroke: #fff !important;
}

/* Lang switcher — màu trắng */
#masthead .lang-switcher .lang-current {
    color: #fff !important;
}

#masthead .lang-switcher .lang-current svg path {
    stroke: #fff !important;
}

#masthead .lang-switcher .lang-list {
    background: rgba(0, 0, 0, 0.75);
    border-radius: 4px;
    padding: 4px 10px;
    min-width: 60px;
}

#masthead .lang-switcher .lang-list a {
    color: #fff !important;
}

/* =====================
   Desktop: Hamburger icon iCAUR chuẩn SVG
   ===================== */
#ast-desktop-header .ast-header-html-2 a[aria-label="Menu"],
#ast-mobile-header .ast-header-html-2 a[aria-label="Menu"] {
    display: inline-flex !important;
    align-items: center;
    justify-content: start;
    width: 32px;
    height: 32px;
    cursor: pointer;
    line-height: 0 !important;
    text-decoration: none;
    position: relative;
}

/* Ẩn box-shadow cũ để dùng SVG động */
#ast-desktop-header .ast-header-html-2 a[aria-label="Menu"]::before,
#ast-mobile-header .ast-header-html-2 a[aria-label="Menu"]::before {
    display: none !important;
}

/* iCAUR Hamburger SVG & Continuous Hover Animation */
.icaur-hamburger-svg {
    display: inline-block;
    width: 24px;
    height: 24px;
    vertical-align: middle;
    overflow: visible;
}

.icaur-hamburger-svg .icaur-line {
    stroke: #ffffff;
    stroke-width: 2;
    stroke-linecap: butt;
    transform-box: fill-box;
    transform-origin: 0% 50%;
    -webkit-transform-origin: 0% 50%;
    transition: transform 0.35s ease, opacity 0.35s ease;
    opacity: 1;
    transform: scaleX(1);
}

/* 
   Animation nhịp nhàng, chậm rãi:
   - Gạch 1 thu vào (0% -> 14%)
   - Gạch 2 thu vào (14% -> 28%)
   - Gạch 3 thu vào (28% -> 42%) => Thu hết gạch cuối cùng!
   - Cả 3 gạch cùng thu hết (42% -> 48%)
   - Gạch 1 mới bắt đầu xuất hiện bung ra (48% -> 62%)
   - Gạch 2 xuất hiện bung ra (62% -> 76%)
   - Gạch 3 xuất hiện bung ra (76% -> 90%)
   - Nghỉ ở trạng thái đầy đủ (90% -> 100%)
*/
@keyframes icaurLine1Retract {
    0% {
        transform: scaleX(1);
        opacity: 1;
    }
    14% {
        transform: scaleX(0);
        opacity: 0;
    }
    48% {
        transform: scaleX(0);
        opacity: 0;
    }
    62% {
        transform: scaleX(1);
        opacity: 1;
    }
    100% {
        transform: scaleX(1);
        opacity: 1;
    }
}

@keyframes icaurLine2Retract {
    0% {
        transform: scaleX(1);
        opacity: 1;
    }
    14% {
        transform: scaleX(1);
        opacity: 1;
    }
    28% {
        transform: scaleX(0);
        opacity: 0;
    }
    62% {
        transform: scaleX(0);
        opacity: 0;
    }
    76% {
        transform: scaleX(1);
        opacity: 1;
    }
    100% {
        transform: scaleX(1);
        opacity: 1;
    }
}

@keyframes icaurLine3Retract {
    0% {
        transform: scaleX(1);
        opacity: 1;
    }
    28% {
        transform: scaleX(1);
        opacity: 1;
    }
    42% {
        transform: scaleX(0);
        opacity: 0;
    }
    76% {
        transform: scaleX(0);
        opacity: 0;
    }
    90% {
        transform: scaleX(1);
        opacity: 1;
    }
    100% {
        transform: scaleX(1);
        opacity: 1;
    }
}

#ast-desktop-header .ast-header-html-2 a[aria-label="Menu"]:hover .icaur-line-1,
#ast-mobile-header .ast-header-html-2 a[aria-label="Menu"]:hover .icaur-line-1,
.main-header-menu-toggle:hover .icaur-line-1,
.icaur-hamburger-btn:hover .icaur-line-1,
.icaur-hamburger-svg:hover .icaur-line-1 {
    animation: icaurLine1Retract 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

#ast-desktop-header .ast-header-html-2 a[aria-label="Menu"]:hover .icaur-line-2,
#ast-mobile-header .ast-header-html-2 a[aria-label="Menu"]:hover .icaur-line-2,
.main-header-menu-toggle:hover .icaur-line-2,
.icaur-hamburger-btn:hover .icaur-line-2,
.icaur-hamburger-svg:hover .icaur-line-2 {
    animation: icaurLine2Retract 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

#ast-desktop-header .ast-header-html-2 a[aria-label="Menu"]:hover .icaur-line-3,
#ast-mobile-header .ast-header-html-2 a[aria-label="Menu"]:hover .icaur-line-3,
.main-header-menu-toggle:hover .icaur-line-3,
.icaur-hamburger-btn:hover .icaur-line-3,
.icaur-hamburger-svg:hover .icaur-line-3 {
    animation: icaurLine3Retract 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* =====================
   Reset focus/outline
   ===================== */
[data-section="section-header-mobile-trigger"] .ast-button-wrap .ast-mobile-menu-trigger-minimal:focus,
.ast-builder-menu-mobile .main-navigation .menu-item.menu-item-has-children>.ast-menu-toggle {
    border: none;
    outline: none;
    box-shadow: none;
}

.main-header-menu>.menu-item>.menu-link {
    outline: none;
}

/* =====================
   Desktop submenu
   ===================== */
.main-header-menu .sub-menu .menu-link {
    padding: 10px 20px;
}

/* =====================
   Mobile: ẩn Astra gốc
   ===================== */
#ast-mobile-header .ast-mobile-header-content {
    display: none !important;
}

/* =====================
   Toggle button icon (Fix)
   ===================== */
.main-header-menu-toggle .mobile-menu-toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 32px;
    height: 32px;
}

.main-header-menu-toggle .wt-icon {
    position: absolute;
    display: flex !important;
    transition: opacity 0.25s ease, transform 0.3s ease;
}

/* Mặc định: hiện hamburger, ẩn X */
.main-header-menu-toggle .wt-icon-menu {
    opacity: 1 !important;
    transform: rotate(0deg) scale(1) !important;
}

.main-header-menu-toggle .wt-icon-close {
    opacity: 0 !important;
    transform: rotate(-90deg) scale(0.5) !important;
}

/* Khi mở: ẩn hamburger, hiện X */
.main-header-menu-toggle.wt-menu-open .wt-icon-menu {
    opacity: 0 !important;
    transform: rotate(90deg) scale(0.5) !important;
}

.main-header-menu-toggle.wt-menu-open .wt-icon-close {
    opacity: 1 !important;
    transform: rotate(0deg) scale(1) !important;
}

/* =====================
   Drawer: menu items
   ===================== */
#wt-drawer .menu-link {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 8px 20px !important;
    font-size: 15px !important;
    color: #1a1a1a !important;
    border-bottom: 1px solid #f0f0f0 !important;
    text-decoration: none !important;
}

#wt-drawer .current-menu-item>.menu-link {
    color: var(--ast-primary-color) !important;
    font-weight: 600 !important;
}

/* =====================
   Drawer: submenu
   ===================== */
#wt-drawer .sub-menu {
    display: none;
}

#wt-drawer .sub-menu .menu-link {
    padding-left: 36px !important;
    font-size: 14px !important;
    color: #555 !important;
    background: #fafafa !important;
}

/* =====================
   Drawer: ẩn element Astra thừa
   ===================== */
#wt-drawer .ast-menu-toggle,
#wt-drawer .dropdown-menu-toggle,
#wt-drawer .ast-icon.icon-arrow {
    display: none !important;
}

/* =====================
   Drawer: button liên hệ
   ===================== */
.wt-drawer__contact-btn {
    display: block;
    text-align: center;
    padding: 11px 20px;
    background: transparent;
    color: var(--ast-global-color-0) !important;
    font-size: 15px;
    font-weight: 600;
    border: 1px solid var(--ast-global-color-0);
    border-radius: 4px;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.wt-drawer__contact-btn:hover {
    background: var(--ast-global-color-0);
    color: #fff !important;
}

.lang-switcher {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.lang-switcher .lang-current {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.lang-switcher .lang-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 99;
}

.lang-switcher:hover .lang-list,
.lang-switcher:focus-within .lang-list {
    display: block;
}

.lang-switcher .lang-list a {
    display: block;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
}

.lang-switcher .lang-list a:hover {
    opacity: 0.7;
}


.explore-btn {
	display:flex;
  align-items: center;
  justify-content: center;
  gap: 14px;

  padding: 10px 25px;
  min-width: 196px;

  color: #fff;
  background: rgba(255, 255, 255, 0.02);
  border: 1.4px solid rgba(255, 255, 255, 0.75);

  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;

  transition: all 0.3s ease;
 border-radius:4px !important;
}

.explore-btn svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s ease;
}

.explore-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.explore-btn:hover svg {
  transform: translateX(4px);
}
