/* ==========================================================================
   AGENCY HEADER V2 - FULL STYLES
   ========================================================================== */

/* FIX BODY & FIXED HEADER STICKY */
body {
    padding-top: 72px !important;
    /* Tránh header che mất nội dung đầu trang */
}

header.agency-header-v2,
header.agency-header-v2#siteHeader {
    display: block !important;
    position: fixed !important;
    /* Cố định đỉnh màn hình khi cuộn trang */
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 99999 !important;
    background-color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-sizing: border-box !important;
    transition: top 0.3s ease !important;
}

/* Khoảng cách top khi hiển thị WordPress Admin Bar */
body.admin-bar header.agency-header-v2 {
    top: 32px !important;
}

@media screen and (max-width: 782px) {
    body.admin-bar header.agency-header-v2 {
        top: 46px !important;
    }
}

header.agency-header-v2 .ah-header-inner,
header.agency-header-v2 .ah-container {
    all: unset !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    max-width: 1240px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 10px 20px !important;
    box-sizing: border-box !important;
}

/* LOGO BRANDING */
header.agency-header-v2 .ah-logo {
    all: unset !important;
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    position: relative !important;
    z-index: 2 !important;
    margin: 0 !important;
    padding: 0 !important;
}

header.agency-header-v2 .ah-logo a {
    all: unset !important;
    display: inline-flex !important;
    align-items: center !important;
    cursor: pointer !important;
    text-decoration: none !important;
}

header.agency-header-v2 .ah-logo img {
    all: unset !important;
    height: 70px !important;
    max-height: 70px !important;
    width: auto !important;
    max-width: none !important;
    object-fit: contain !important;
    display: block !important;
}

header.agency-header-v2 .site-title-text {
    font-family: 'Inter', sans-serif !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #189CD8 !important;
    white-space: nowrap !important;
}

header.agency-header-v2 .site-title-text span {
    color: #43BBC7 !important;
}

/* CỘT PHẢI */
header.agency-header-v2 .ah-right-content {
    all: unset !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    justify-content: center !important;
    gap: 4px !important;
}

/* TOP BAR */
header.agency-header-v2 .ah-top-bar {
    all: unset !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 14px !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    white-space: nowrap !important;
}

header.agency-header-v2 .ah-search-item {
    all: unset !important;
    display: flex !important;
    align-items: center !important;
}

header.agency-header-v2 .ah-search-btn {
    all: unset !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 2px !important;
    cursor: pointer !important;
    color: #243746 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}

header.agency-header-v2 .ah-search-btn svg {
    width: 18px !important;
    height: 18px !important;
    stroke: #243746 !important;
    fill: none !important;
}

header.agency-header-v2 .ah-phone-btn {
    all: unset !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: #243746 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    cursor: pointer !important;
}

header.agency-header-v2 .ah-phone-btn svg {
    width: 14px !important;
    height: 14px !important;
    fill: #43BBC7 !important;
}

/* SOCIAL GROUP */
.ah-social-group {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
}

/* TÙY CHỈNH NÚT SOCIAL: BỎ BACKGROUND, KHÔNG HOVER, SIZE TO */
.social-circle {
    all: unset !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    background-color: transparent !important;
    /* Loại bỏ background */
    border-radius: 0 !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    overflow: visible !important;
    text-decoration: none !important;
}

/* ICON SVG MẶC ĐỊNH: KÍCH THƯỚC TO 24PX, KHÔNG HOVER */
.social-circle svg {
    display: block !important;
    width: 30px !important;
    height: 30px !important;
    fill: #243746 !important;
    transition: none !important;
}

/* ICON CÁ NHÂN TẢI LÊN (CUSTOM IMAGE): TO 24PX, GIỮ NGUYÊN MÀU FILE ẢNH GỐC */
.social-circle img.header-custom-icon {
    display: block !important;
    width: 30px !important;
    height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
    object-fit: contain !important;
    margin: 0 auto !important;
    filter: none !important;
    /* Giữ nguyên màu sắc gốc của file tải lên */
    transition: none !important;
}

/* TẮT HOÀN TOÀN HIỆU ỨNG HOVER CHO CẢ SVG VÀ IMG */
.social-circle:hover,
.social-circle:hover svg,
.social-circle:hover img.header-custom-icon {
    background: transparent !important;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
}

/* POLYLANG SWITCHER STYLES */
.ah-lang-switcher {
    display: inline-flex !important;
    align-items: center !important;
    margin-left: 4px !important;
}

.ah-lang-list {
    all: unset !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ah-lang-list li {
    all: unset !important;
    display: inline-flex !important;
    align-items: center !important;
}

.ah-lang-list li a,
.ah-lang-list li span {
    all: unset !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    border-radius: 0 !important;
}

.ah-lang-list img.wpml-ls-flag,
.ah-lang-list img {
    width: 20px !important;
    height: 14px !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* MENU DESKTOP & CURSOR POINTER */
header.agency-header-v2 .ah-main-nav {
    all: unset !important;
    display: flex !important;
    align-items: center !important;
}

header.agency-header-v2 .ah-menu-list {
    all: unset !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 24px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

header.agency-header-v2 .ah-menu-list>li {
    all: unset !important;
    position: relative !important;
    display: block !important;
    white-space: nowrap !important;
}

header.agency-header-v2 .ah-menu-list>li>a {
    all: unset !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14.5px !important;
    font-weight: 500 !important;
    color: #243746 !important;
    text-decoration: none !important;
    padding: 4px 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    transition: color 0.2s ease !important;
}

header.agency-header-v2 .ah-menu-list>li.current-menu-item>a,
header.agency-header-v2 .ah-menu-list>li>a:hover,
header.agency-header-v2 .ah-menu-list>li:hover>a {
    color: #189CD8 !important;
    cursor: pointer !important;
}

/* Icon mũi tên xổ xuống (menu-arrow-icon) */
header.agency-header-v2 .ah-menu-list .menu-arrow-icon,
header.agency-header-v2 .menu-arrow-icon {
    display: inline-block !important;
    width: 10px !important;
    height: 6px !important;
    margin-left: 6px !important;
    vertical-align: middle !important;
    flex-shrink: 0 !important;
    stroke: currentColor !important;
    transform-origin: center center !important;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Hiệu ứng xoay ngược lên 180 độ khi hover vào mục menu cha */
header.agency-header-v2 .ah-menu-list>li:hover>a .menu-arrow-icon,
header.agency-header-v2 .ah-menu-list>li.menu-item-has-children:hover>a .menu-arrow-icon {
    transform: rotate(180deg) !important;
}

header.agency-header-v2 .ah-menu-list .sub-menu {
    all: unset !important;
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    min-width: 200px !important;
    background-color: #ffffff !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
    border-radius: 8px !important;
    padding: 8px 0 !important;
    list-style: none !important;
    z-index: 9999 !important;
}

header.agency-header-v2 .ah-menu-list li:hover>.sub-menu {
    display: block !important;
}

header.agency-header-v2 .ah-menu-list .sub-menu li {
    all: unset !important;
    display: block !important;
    width: 100% !important;
}

header.agency-header-v2 .ah-menu-list .sub-menu a {
    all: unset !important;
    display: block !important;
    padding: 8px 18px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 13.5px !important;
    color: #243746 !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
}

header.agency-header-v2 .ah-menu-list .sub-menu a:hover {
    background-color: #F0F9FA !important;
    color: #189CD8 !important;
}

/* HAMBURGER & CONTROLS MOBILE */
.ah-mobile-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 0 !important;
}

.ah-mobile-search-toggle {
    all: unset !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    color: #243746 !important;
}

.ah-mobile-menu-toggle {
    all: unset !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    width: 26px !important;
    height: 18px !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0 !important;
}

.ah-mobile-menu-toggle .bar {
    all: unset !important;
    width: 100% !important;
    height: 2.2px !important;
    background-color: #243746 !important;
    border-radius: 2px !important;
    display: block !important;
}

/* BREAKPOINT MOBILE */
.ah-v2-mobile-only {
    display: none !important;
}

.ah-v2-desktop-only {
    display: flex !important;
}

@media screen and (max-width: 1024px) {

    .ah-v2-desktop-only,
    header.agency-header-v2 nav.ah-main-nav,
    header.agency-header-v2 .ah-search-item {
        display: none !important;
    }

    .ah-v2-mobile-only,
    header.agency-header-v2 .ah-mobile-controls {
        display: flex !important;
    }

    header.agency-header-v2 .ah-phone-btn span {
        font-size: 13.5px !important;
        font-weight: 700 !important;
    }
}

/* MOBILE DRAWER */
.ah-mobile-drawer,
div.ah-mobile-drawer {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999 !important;
    background-color: #ffffff !important;
}

.ah-mobile-drawer.is-active,
div.ah-mobile-drawer.is-active {
    display: block !important;
}

.ah-mobile-drawer__inner {
    width: 100% !important;
    height: 100% !important;
    background-color: #ffffff !important;
    padding: 20px 24px 30px 24px !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
}

.ah-mobile-drawer__header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid #F0F2F5 !important;
    margin-bottom: 12px !important;
}

.ah-mobile-title {
    font-weight: 700 !important;
    color: #189CD8 !important;
    font-size: 16px !important;
    font-family: 'Inter', sans-serif !important;
}

button.ah-mobile-close {
    all: unset !important;
    background: transparent !important;
    border: none !important;
    font-size: 28px !important;
    line-height: 1 !important;
    color: #243746 !important;
    cursor: pointer !important;
    padding: 0 4px !important;
}

.ah-mobile-nav {
    flex-grow: 0 !important;
}

.ah-mobile-menu-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.ah-mobile-menu-list li {
    display: block !important;
    border-bottom: 1px solid #F4F6F8 !important;
}

.ah-mobile-menu-list li a {
    display: block !important;
    padding: 12px 0 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #243746 !important;
    text-decoration: none !important;
    font-family: 'Inter', sans-serif !important;
    cursor: pointer !important;
}

.ah-mobile-menu-list li.current-menu-item>a,
.ah-mobile-menu-list li a:hover {
    color: #189CD8 !important;
}

.ah-mobile-menu-list .sub-menu {
    list-style: none !important;
    padding-left: 14px !important;
    margin: 0 !important;
}

.ah-mobile-menu-list .sub-menu a {
    font-size: 13.5px !important;
    font-weight: 400 !important;
    padding: 6px 0 !important;
    cursor: pointer !important;
}

.ah-mobile-drawer__footer {
    margin-top: 20px !important;
    padding-top: 16px !important;
    border-top: 1px solid #F0F2F5 !important;
}

.ah-mobile-footer-title {
    display: block !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #64748B !important;
    margin-bottom: 10px !important;
    font-family: 'Inter', sans-serif !important;
}

/* SEARCH OVERLAY POPUP */
.ah-search-modal {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999999 !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

.ah-search-modal.is-active {
    display: flex !important;
}

.ah-search-modal__overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(15, 23, 42, 0.75) !important;
    backdrop-filter: blur(4px) !important;
    z-index: 1 !important;
}

.ah-search-modal__content {
    position: relative !important;
    z-index: 2 !important;
    width: 90% !important;
    max-width: 580px !important;
    background: #ffffff !important;
    padding: 36px 28px !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25) !important;
    box-sizing: border-box !important;
    border: none !important;
    margin: 0 auto !important;
}

.ah-search-modal__close {
    all: unset !important;
    position: absolute !important;
    top: 12px !important;
    right: 16px !important;
    font-size: 28px !important;
    line-height: 1 !important;
    color: #64748B !important;
    cursor: pointer !important;
    background: transparent !important;
    border: none !important;
    padding: 4px !important;
}

form.ah-search-form {
    all: unset !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.ah-search-form__title {
    display: block !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #189CD8 !important;
    text-transform: uppercase !important;
    margin-bottom: 14px !important;
}

.ah-search-form__box {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    width: 100% !important;
    border: 2px solid #189CD8 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background-color: #ffffff !important;
    box-sizing: border-box !important;
}

input[type="search"].ah-search-form__input,
.ah-search-form__input {
    all: unset !important;
    flex-grow: 1 !important;
    height: 48px !important;
    padding: 0 16px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 15px !important;
    color: #243746 !important;
    background: #ffffff !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

.ah-search-form__input::placeholder {
    color: #94A3B8 !important;
}

button[type="submit"].ah-search-form__submit,
.ah-search-form__submit {
    all: unset !important;
    width: 52px !important;
    height: 48px !important;
    min-width: 52px !important;
    background-color: #189CD8 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.ah-search-form__submit svg {
    width: 20px !important;
    height: 20px !important;
    stroke: #ffffff !important;
    fill: none !important;
}

/* =================================================================
   FOOTER KRESTON: SOCIAL ICONS & THU NHỎ LOGO THEO MẪU
   ================================================================= */
.esight-footer__socials {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 22px !important;
}

.esight-footer__social-link {
    all: unset !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    border-radius: 50% !important;
    background-color: transparent !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    text-decoration: none !important;
    transition: transform 0.2s ease, opacity 0.2s ease !important;
}

.esight-footer__social-link:hover {
    transform: translateY(-2px) !important;
    opacity: 0.85 !important;
}

.esight-footer__social-link img.footer-custom-icon {
    display: block !important;
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: none !important;
}

.esight-footer__social-link svg {
    display: block !important;
    width: 26px !important;
    height: 26px !important;
    fill: #43BBC7 !important;
}

/* Ép màu trắng cho số điện thoại & email ở Footer */
.esight-footer__offices,
.esight-footer__offices p,
.esight-footer__offices a,
.esight-footer__phone-link,
.esight-footer__email-link {
    color: #ffffff !important;
    text-decoration: none !important;
}

.esight-footer__phone-link:hover,
.esight-footer__email-link:hover {
    color: #ffffff !important;
    opacity: 0.85 !important;
    text-decoration: underline !important;
}

/* LOGO FOOTER THU NHỎ GỌN GÀNG THEO MẪU */
.esight-footer__brand {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    justify-content: flex-end !important;
    gap: 12px !important;
}

.esight-footer__logo {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
}

.esight-footer__logo-img {
    max-width: 155px !important;
    width: auto !important;
    height: auto !important;
    max-height: 44px !important;
    object-fit: contain !important;
    display: block !important;
    margin-left: auto !important;
}

.esight-footer__copyright {
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.6) !important;
    text-align: right !important;
    white-space: nowrap !important;
}

@media screen and (max-width: 768px) {
    .esight-footer__brand {
        align-items: flex-start !important;
    }

    .esight-footer__logo-img {
        margin-left: 0 !important;
    }

    .esight-footer__copyright {
        text-align: left !important;
        white-space: normal !important;
    }
}

/* ==========================================================================
   CONTACT BLOCK STYLE 2: ĐỒNG BỘ KIỂU DÁNG TẤT CẢ Ô INPUT (TRÁNH BỊ THEME ĐÈ)
   ========================================================================== */
body .sec-contact-block.style-2 .form-group input,
body .sec-contact-block.style-2 .form-group input[type="text"],
body .sec-contact-block.style-2 .form-group input[type="email"],
body .sec-contact-block.style-2 .form-group input[type="tel"],
body .sec-contact-block.style-2 .form-group input[type="password"],
body .sec-contact-block.style-2 input.contact-input-field {
    width: 100% !important;
    height: 38px !important;
    background-color: #f9f9f9 !important;
    background: #f9f9f9 !important;
    border: 1px solid #dcdcdc !important;
    border-radius: 0 !important;
    padding: 6px 12px !important;
    font-size: 14px !important;
    color: #333333 !important;
    outline: none !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

body .sec-contact-block.style-2 .form-group textarea,
body .sec-contact-block.style-2 textarea.contact-input-textarea {
    background-color: #f9f9f9 !important;
    background: #f9f9f9 !important;
    border: 1px solid #dcdcdc !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

body .sec-contact-block.style-2 .form-group input:focus,
body .sec-contact-block.style-2 .form-group textarea:focus,
body .sec-contact-block.style-2 input.contact-input-field:focus,
body .sec-contact-block.style-2 textarea.contact-input-textarea:focus {
    border-color: #46bcc6 !important;
    background-color: #ffffff !important;
    background: #ffffff !important;
}

/* ==========================================================================
   ABOUT COUNTER SECTION (DẠNG 3 KRESTON): GIỮ NGUYÊN ĐỘ RÕ GỐC CỦA WATERMARK
   ========================================================================== */
body .about-counter-section__watermark {
    opacity: 1 !important;
}