/* ==========================================================================
   HEADER-CUSTOM.CSS - NHA KHOA 3D SÀI GÒN
   Thiết kế 2 tầng chuẩn Parkway Dental Reference:
   - Tầng 1: Brand & Tiện ích (Logo, Search Pill, Hotline Pill, Đặt Lịch Hẹn CTA)
   - Tầng 2: Menu Điều hướng ngang, Tự động dính (Sticky) trên đỉnh khi cuộn trang
   - Chuẩn Responsive Desktop (1330px max-width) -> Mobile 3 cột chuẩn
   ========================================================================== */

/* 1. Reset Viền đen & Outlines khi Focus / Active trên toàn trang */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Xóa viền đen mặc định của trình duyệt và Bootstrap khi click / focus vào link, ảnh, liên kết hoặc button */
a,
a:focus,
a:active,
a:focus-visible,
a:hover:focus,
button,
button:focus,
button:active,
button:focus-visible,
input,
input:focus,
input:active,
select:focus,
textarea:focus,
.btn,
.btn:focus,
.btn:active,
.btn:active:focus,
.btn.active:focus,
.site-header a,
.site-header a:focus,
.site-header a:active,
.site-header a:visited,
.site-header button,
.site-header button:focus,
.site-header button:active,
.site-nav-bar a,
.site-nav-bar a:focus,
.site-nav-bar a:active,
.site-nav-bar a:visited,
.site-nav-bar button,
.site-nav-bar button:focus,
.site-nav-bar button:active,
.mobile-drawer a,
.mobile-drawer a:focus,
.mobile-drawer a:active,
.mobile-drawer button,
.mobile-drawer button:focus,
.mobile-drawer button:active {
    outline: none !important;
    outline: 0 !important;
    outline-offset: 0 !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
}

a::-moz-focus-inner,
button::-moz-focus-inner,
input::-moz-focus-inner {
    border: 0 !important;
    outline: 0 !important;
    padding: 0 !important;
}

:focus:not(:focus-visible) {
    outline: none !important;
}

/* 2. Container đồng nhất toàn website */
.container,
.container-fluid {
    width: 100% !important;
    max-width: 1250px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
}

/* Container riêng của Header: Max-width 1330px (thu nhỏ 50px so với 1380px) */
.site-header .header-container,
.site-nav-bar .header-container {
    width: 100% !important;
    max-width: 1330px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
}

/* ==========================================================================
   TẦNG 0: SITE-TOP-BAR (Tiện ích trên cùng: Giờ làm việc, Hotline, Đặt Hẹn Nhanh)
   Màu nền: Xanh đen y tế sang trọng (#0b172a / #081220) đồng bộ toàn trang
   ========================================================================== */
.site-top-bar {
    background-color: #0b172a;
    background: linear-gradient(90deg, #081220 0%, #0b172a 50%, #0d1e36 100%);
    border-bottom: 1px solid #16263d;
    color: #cbd5e1;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 13px;
    line-height: 1.4;
    position: relative;
    z-index: 1001;
    width: 100%;
}

.site-top-bar .top-bar-container {
    width: 100% !important;
    max-width: 1330px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: nowrap;
}

.site-top-bar .top-bar-left {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 16px;
}

.site-top-bar .top-bar-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

/* Icon Giờ làm việc: Xanh ngọc / sky-blue sắc nét */
.site-top-bar .icon-clock {
    color: #38bdf8;
    font-size: 14px;
}

.site-top-bar .hours-label,
.site-top-bar .hotline-label {
    color: #94a3b8;
    font-weight: 400;
}

.site-top-bar .hours-val {
    color: #ffffff;
    font-weight: 700;
}

.site-top-bar .hours-sub {
    color: #cbd5e1;
    font-weight: 400;
}

/* Icon Hotline: Vàng hổ phách nổi bật */
.site-top-bar .icon-phone {
    color: #fbbf24;
    font-size: 14px;
}

.site-top-bar .hotline-link {
    color: #ffffff !important;
    font-weight: 700;
    text-decoration: none !important;
    letter-spacing: 0.3px;
    transition: color 0.2s ease;
}

.site-top-bar .hotline-link:hover,
.site-top-bar .hotline-link:focus {
    color: #38bdf8 !important;
    text-decoration: underline !important;
}

.site-top-bar .hotline-separator {
    color: #64748b;
    margin: 0 3px;
}

.site-top-bar .top-bar-divider {
    color: #273e5e;
    font-size: 13px;
    user-select: none;
}

/* Nút Đặt Hẹn Khám Nhanh (Đỏ chuẩn CTA y tế) */
.site-top-bar .top-bar-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-top-bar .top-bar-btn-booking {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: #e11d48;
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    color: #ffffff !important;
    font-size: 12.5px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 5px;
    text-decoration: none !important;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 6px rgba(225, 29, 72, 0.3);
    transition: all 0.2s ease;
    cursor: pointer;
    line-height: 1.2;
}

.site-top-bar .top-bar-btn-booking i {
    font-size: 13px;
    color: #ffffff;
}

.site-top-bar .top-bar-btn-booking:hover {
    background: linear-gradient(135deg, #be123c 0%, #9f1239 100%);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.45);
}

.site-top-bar .top-bar-btn-booking:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(225, 29, 72, 0.25);
}

/* Responsive cho Top Bar */
@media (max-width: 1199.98px) and (min-width: 992px) {
    .site-top-bar .top-bar-container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        font-size: 12.5px;
    }

    .site-top-bar .top-bar-left {
        gap: 12px;
    }
}

@media (max-width: 991.98px) and (min-width: 821px) {
    .site-top-bar .top-bar-container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        min-height: 38px;
        font-size: 12px;
    }

    .site-top-bar .top-bar-left {
        gap: 10px;
    }

    .site-top-bar .top-bar-btn-booking {
        padding: 5px 12px;
        font-size: 12px;
    }
}

/* Khi màn hình co nhỏ (<= 820px): Ẩn hoàn toàn nút Đặt Hẹn để tuyệt đối không rớt dòng */
@media (max-width: 820px) {
    .site-top-bar .top-bar-right {
        display: none !important;
    }

    .site-top-bar {
        padding: 6px 0;
    }

    .site-top-bar .top-bar-container {
        justify-content: center !important;
        align-items: center !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        min-height: 34px !important;
        gap: 0 !important;
    }

    .site-top-bar .top-bar-left {
        justify-content: center !important;
        gap: 6px 14px !important;
        font-size: 12px !important;
        text-align: center;
        width: 100%;
        flex-wrap: wrap;
    }
}

/* Màn hình điện thoại nhỏ (<= 480px, 360px) */
@media (max-width: 480px) {
    .site-top-bar {
        padding: 5px 0;
    }

    .site-top-bar .top-bar-divider {
        display: none !important;
    }

    .site-top-bar .top-bar-left {
        flex-direction: column !important;
        gap: 3px !important;
        font-size: 11.5px !important;
    }

    .site-top-bar .top-bar-item {
        white-space: normal;
        text-align: center;
    }
}

/* ==========================================================================
   TẦNG 1: SITE-HEADER (Logo bên trái + Tiện ích bên phải)
   ========================================================================== */
.site-header {
    background-color: #ffffff;
    position: relative;
    z-index: 998;
    width: 100%;
    transition: all 0.3s ease;
}

.site-header .header-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 80px;
    padding-top: 10px;
    padding-bottom: 10px;
}

/* Logo */
.site-header .header-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.site-header .header-logo a {
    display: inline-block;
    line-height: 1;
}

.site-header .header-logo img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.2s ease;
}

.site-header .header-logo a:hover img {
    transform: scale(1.02);
}

.site-header .logo-fallback-text {
    font-size: 22px;
    font-weight: 800;
    color: #0084c9;
    letter-spacing: 0.5px;
}

/* Khối Tiện ích Bên Phải (Desktop Actions) */
.site-header .header-top-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
}

/* 1. Ô tìm kiếm dạng Pill bo tròn như mẫu Parkway */
.site-header .header-search-pill {
    position: relative;
}

.site-header .search-pill-form {
    display: flex;
    align-items: center;
    background-color: #f5f7fa;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    height: 42px;
    padding: 0 16px;
    min-width: 250px;
    max-width: 320px;
    transition: all 0.2s ease;
}

.site-header .search-pill-form:focus-within {
    background-color: #ffffff;
    border-color: #0084c9;
    box-shadow: 0 0 0 3px rgba(0, 132, 201, 0.12);
}

.site-header .search-pill-btn {
    background: transparent;
    border: none;
    padding: 0;
    margin-right: 10px;
    color: #64748b;
    font-size: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.site-header .search-pill-btn:hover {
    color: #0084c9;
}

.site-header .search-pill-form input[type="text"] {
    flex-grow: 1;
    border: none;
    background: transparent;
    outline: none;
    font-family: 'Roboto', sans-serif;
    font-size: 13.5px;
    color: #1e293b;
    padding: 0;
}

.site-header .search-pill-form input[type="text"]::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

/* 2. Hotline Pill nền xanh nhạt tinh tế */
.site-header .header-hotline-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 18px;
    background-color: #eef6fd;
    border: 1px solid #d4e8fa;
    border-radius: 999px;
    color: #0084c9;
    font-family: 'Roboto', sans-serif;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.site-header .header-hotline-pill i {
    font-size: 15px;
    color: #0084c9;
}

.site-header .header-hotline-pill:hover {
    background-color: #e2f0fb;
    border-color: #0084c9;
    color: #0072b2;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 132, 201, 0.15);
}

/* 3. Nút Đặt lịch hẹn dạng Pill xanh navy y tế uy tín */
.site-header .header-appointment-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 20px;
    background: linear-gradient(135deg, #27406a 0%, #36537d 100%);
    border-radius: 999px;
    color: #ffffff !important;
    font-family: 'Roboto', sans-serif;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none !important;
    border: none;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(39, 64, 106, 0.25);
    transition: all 0.2s ease;
    cursor: pointer;
}

.site-header .header-appointment-btn i {
    font-size: 14px;
}

.site-header .header-appointment-btn:hover {
    background: linear-gradient(135deg, #1d3356 0%, #294370 100%);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(39, 64, 106, 0.35);
}

/* ==========================================================================
   TẦNG 2: SITE-NAV-BAR (Menu Điều hướng Desktop, Tự động dính Sticky trên đỉnh)
   ========================================================================== */
.site-nav-bar {
    background-color: #ffffff;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #eef2f5;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

/* Khi cuộn dính lên top: bóng đổ sang trọng, rõ nét */
.site-nav-bar.is-sticky {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    border-top-color: transparent;
}

.site-nav-bar .header-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 50px;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.site-nav-bar .nav-list {
    display: flex;
    align-items: center;
    justify-content: center !important;
    list-style: none;
    margin: 0 auto;
    padding: 0;
    gap: 30px;
    width: auto;
}

.site-nav-bar .nav-item {
    position: relative;
    list-style: none;
}

.site-nav-bar .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 14px 4px;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    color: #243242;
    text-transform: uppercase;
    text-decoration: none !important;
    letter-spacing: 0.25px;
    white-space: nowrap;
    position: relative;
    transition: color 0.2s ease;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important;
    user-select: none;
}

.site-nav-bar .nav-link:hover,
.site-nav-bar .nav-link:focus,
.site-nav-bar .nav-link:active {
    color: #0084c9;
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.site-nav-bar .nav-arrow {
    font-size: 12px;
    color: #718096;
    transition: transform 0.2s ease;
}

.site-nav-bar .has-dropdown:hover .nav-arrow {
    transform: rotate(180deg);
    color: #0084c9;
}

/* ==========================================================================
   THANH GẠCH CHÂN ANIMATION TỪ GIỮA RA 2 BÊN (CENTER OUTWARD EXPAND)
   ========================================================================== */
.site-nav-bar .nav-item.active .nav-link {
    color: #0084c9;
}

.site-nav-bar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #0084c9;
    border-radius: 2px 2px 0 0;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.28s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
}

/* Khi hover vào item menu: thanh màu xanh mở rộng từ giữa ra 2 bên */
.site-nav-bar .nav-item:hover .nav-link::after,
.site-nav-bar .nav-link:hover::after {
    transform: scaleX(1);
}

/* Mục đang active: thanh màu xanh luôn hiển thị */
.site-nav-bar .nav-item.active .nav-link::after {
    transform: scaleX(1);
}

/* Dropdown Menu Con */
.site-nav-bar .dropdown-menu-custom {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    list-style: none;
    margin: 0;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
    z-index: 1050;
}

.site-nav-bar .has-dropdown:hover .dropdown-menu-custom {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-nav-bar .dropdown-menu-custom li a {
    display: block;
    padding: 10px 18px;
    font-size: 13.5px;
    font-weight: 500;
    color: #2d3748;
    text-decoration: none !important;
    transition: all 0.15s ease;
}

.site-nav-bar .dropdown-menu-custom li a:hover {
    color: #0084c9;
    background-color: #f0f9ff;
    padding-left: 22px;
}

/* ==========================================================================
   MOBILE CONTROLS & DRAWER MENU
   ========================================================================== */
.site-header .mobile-menu-btn,
.site-header .mobile-search-btn {
    display: none;
    /* Ẩn trên Desktop */
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #2d3748;
    cursor: pointer;
    touch-action: manipulation;
    padding: 0;
    transition: all 0.2s ease;
}

.site-header .mobile-menu-btn:hover,
.site-header .mobile-search-btn:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    color: #0084c9;
}

/* Các thanh gạch của Hamburger Button */
.site-header .mobile-menu-btn {
    flex-direction: column;
    gap: 5px;
}

.site-header .mobile-menu-btn .bar {
    width: 20px;
    height: 2px;
    background-color: #2d3748;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header .mobile-menu-btn.is-active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-header .mobile-menu-btn.is-active .bar:nth-child(2) {
    opacity: 0;
}

.site-header .mobile-menu-btn.is-active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.site-header .mobile-search-btn {
    font-size: 16px;
}

/* Mobile Drawer (Offcanvas Menu) */
.mobile-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-drawer-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    left: -100%;
    width: 320px;
    max-width: 86vw;
    height: 100vh;
    background-color: #ffffff;
    z-index: 1999;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Ẩn thanh cuộn trên Firefox */
    -ms-overflow-style: none;
    /* Ẩn thanh cuộn trên IE và Edge */
}

/* Ẩn hoàn toàn thanh cuộn trên Chrome, Safari, Opera và Edge */
.mobile-drawer::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.mobile-drawer.is-open {
    left: 0;
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f3f5;
}

.mobile-drawer-header .drawer-logo a {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    text-decoration: none !important;
    transition: opacity 0.2s ease;
}

.mobile-drawer-header .drawer-logo a:hover {
    opacity: 0.85;
}

.mobile-drawer-header .drawer-logo img {
    max-height: 40px;
    width: auto;
    display: block;
}

.mobile-drawer-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    cursor: pointer;
    touch-action: manipulation;
    padding: 0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-drawer-close:hover,
.mobile-drawer-close:focus {
    background-color: #e2e8f0;
    color: #0f172a;
    transform: rotate(90deg);
}

.mobile-drawer-close svg {
    display: block;
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2.2;
}

/* Ô tìm kiếm trong Drawer Mobile theo mẫu */
.mobile-drawer .drawer-search-box {
    padding: 16px 18px 14px 18px;
    border-bottom: 1px solid #f1f5f9;
    background-color: #ffffff;
}

.mobile-drawer .drawer-search-form {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    height: 44px;
    padding: 0 12px 0 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mobile-drawer .drawer-search-form:focus-within {
    border-color: #0084c9 !important;
    box-shadow: 0 0 0 3px rgba(0, 132, 201, 0.12) !important;
}

.mobile-drawer .drawer-search-form input {
    flex-grow: 1;
    height: 100%;
    border: none;
    background: transparent;
    padding: 0;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    color: #1e293b;
    outline: none;
}

.mobile-drawer .drawer-search-form input::placeholder {
    color: #556070;
    font-size: 14px;
    font-weight: 400;
}

.mobile-drawer .drawer-search-form button {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #556070;
    cursor: pointer;
    padding: 0;
    margin-left: 6px;
    transition: color 0.2s ease, transform 0.15s ease;
}

.mobile-drawer .drawer-search-form button:hover {
    color: #0084c9;
    transform: scale(1.08);
}

.mobile-drawer .drawer-search-form button svg {
    display: block;
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 1.8;
}

/* Danh sách Menu Item Mobile theo chuẩn mẫu */
.mobile-drawer-nav {
    flex-grow: 1;
    padding: 0;
}

.mobile-drawer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-drawer-nav li a {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 15px 22px;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    text-transform: uppercase;
    text-decoration: none !important;
    border-bottom: 1px solid #eef2f6;
    background-color: #ffffff;
    letter-spacing: 0.25px;
    transition: background-color 0.15s ease, color 0.15s ease;
    outline: none !important;
    border-left: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

.mobile-drawer-nav li a:hover,
.mobile-drawer-nav li a:focus,
.mobile-drawer-nav li a:active,
.mobile-drawer-nav li.active>a {
    color: #0084c9 !important;
    background-color: #f8fafc !important;
    border-left: none !important;
    padding-left: 22px !important;
    outline: none !important;
    box-shadow: none !important;
}

.mobile-sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #f8fafc;
}

.mobile-sub-menu li a {
    font-size: 13px !important;
    font-weight: 500 !important;
    padding-left: 36px !important;
    min-height: 44px !important;
    color: #4a5568 !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

/* Footer Drawer Mobile: Nút đặt lịch hẹn + Hotline + Địa chỉ */
.mobile-drawer-footer {
    padding: 16px 20px;
    border-top: 1px solid #f1f3f5;
    background-color: #fafbfc;
}

.mobile-drawer-footer .drawer-appointment-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 44px;
    background: linear-gradient(135deg, #27406a 0%, #36537d 100%);
    color: #ffffff !important;
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    margin-bottom: 14px;
    box-shadow: 0 4px 12px rgba(39, 64, 106, 0.25);
    transition: all 0.2s ease;
}

.mobile-drawer-footer .drawer-appointment-btn:hover {
    background: linear-gradient(135deg, #1d3356 0%, #294370 100%);
    box-shadow: 0 6px 16px rgba(39, 64, 106, 0.35);
}

.mobile-drawer-footer .drawer-hotline {
    font-size: 15px;
    font-weight: 700;
    color: #0084c9;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-drawer-footer .drawer-hotline a {
    color: #0084c9;
    text-decoration: none;
}

.mobile-drawer-footer .drawer-address {
    font-size: 12px;
    color: #718096;
    margin: 0;
    line-height: 1.5;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Desktop 1330px -> Laptop -> Mobile 360px)
   ========================================================================== */

/* Laptop màn hình trung bình (1200px -> 1399px): Co giãn nhẹ nhàng */
@media (max-width: 1399px) and (min-width: 1200px) {

    .site-header .header-container,
    .site-nav-bar .header-container {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    .site-header .header-logo img {
        max-height: 56px;
    }

    .site-header .header-top-actions {
        gap: 12px;
    }

    .site-header .search-pill-form {
        min-width: 220px;
        max-width: 260px;
    }

    .site-nav-bar .nav-list {
        gap: 22px;
        justify-content: center !important;
    }

    .site-nav-bar .nav-link {
        font-size: 13px;
        padding: 13px 2px;
    }
}

/* Laptop nhỏ (1024px -> 1199px): Co khoảng cách hợp lý để không rớt dòng */
@media (max-width: 1199px) and (min-width: 1024px) {

    .site-header .header-container,
    .site-nav-bar .header-container {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .site-header .header-logo img {
        max-height: 50px;
    }

    .site-header .header-top-actions {
        gap: 8px;
    }

    .site-header .search-pill-form {
        min-width: 180px;
        max-width: 210px;
        height: 38px;
        padding: 0 12px;
    }

    .site-header .search-pill-form input[type="text"] {
        font-size: 12.5px;
    }

    .site-header .header-hotline-pill {
        height: 38px;
        padding: 0 12px;
        font-size: 13px;
    }

    .site-header .header-appointment-btn {
        height: 38px;
        padding: 0 14px;
        font-size: 13px;
    }

    .site-nav-bar .nav-list {
        gap: 14px;
        justify-content: center !important;
    }

    .site-nav-bar .nav-link {
        font-size: 12px;
        padding: 12px 2px;
    }
}

/* Tablet & Mobile (< 1024px): Layout 3 cột chuẩn (Menu TRÁI - Logo GIỮA - Search PHẢI) */
@media (max-width: 1023.98px) {

    /* Ẩn Tầng 2 (Menu ngang Desktop) */
    .site-nav-bar {
        display: none !important;
    }

    /* Tầng 1 chuyển thành Mobile Header Sticky ghim trên đỉnh */
    .site-header {
        position: sticky !important;
        top: 0 !important;
        left: 0 !important;
        z-index: 1000 !important;
        background: #ffffff !important;
        border-bottom: 1px solid #eef2f5 !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
    }

    .site-header .header-container {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 64px !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        box-sizing: border-box !important;
    }

    /* 1. Nút Menu bên TRÁI */
    .site-header .mobile-menu-btn {
        display: inline-flex !important;
        flex: 0 0 44px !important;
        width: 44px !important;
        height: 44px !important;
        order: 1 !important;
        margin: 0 !important;
    }

    /* 2. Logo ở CHÍNH GIỮA tuyệt đối */
    .site-header .header-logo {
        flex: 1 1 auto !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        order: 2 !important;
        margin: 0 !important;
        padding: 0 10px !important;
    }

    .site-header .header-logo a {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .site-header .header-logo img {
        max-height: 46px !important;
        width: auto !important;
        object-fit: contain !important;
        display: block !important;
        margin: 0 auto !important;
    }

    /* Ẩn Khối tiện ích Desktop trên Mobile */
    .site-header .header-top-actions {
        display: none !important;
    }

    /* 3. Nút Tìm kiếm bên PHẢI */
    .site-header .mobile-search-btn {
        display: inline-flex !important;
        flex: 0 0 44px !important;
        width: 44px !important;
        height: 44px !important;
        order: 3 !important;
        margin: 0 !important;
    }
}