.bvc-header-template {
    width: 100%;
    background: #ffffff;
    /* box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04); */
    position: relative;
    z-index: 1000;
    /* overflow: hidden; */
}

.bvc-header-template .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 20px;
    position: relative;
}

/* Logo Overlapping Circles Accent */
.bvc-header-template .header-logo {
    position: relative;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    padding: 6px 12px;
    z-index: 2;
}

.bvc-header-template .header-logo img {
    position: relative;
    z-index: 2;
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

.bvc-header-template .logo-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    transition: transform 0.4s ease, border-color 0.4s ease, opacity 0.4s ease, box-shadow 0.4s ease;
}

/* Vòng tròn 1 (Lớp ngoài lớn, mờ nhẹ) */
.bvc-header-template .logo-ring-1 {
    width: 336px;
    height: 270px;
    top: -60%;
    left: 45%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(235, 245, 255, 0.8) 0%, rgba(220, 240, 255, 0.12) 65%, transparent 100%);
    /* border: 1px solid rgba(0, 169, 236, 0.12); */
}

/* Vòng tròn 2 (Lớp trong nhỏ hơn, đè lệch tạo điểm nhấn) */
.bvc-header-template .logo-ring-2 {
    width: 310px;
    height: 175px;
    top: -35%;
    left: 120%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgb(235 245 255 / 36%) 70%, transparent 100%);
    /* border: 1.5px solid rgba(0, 169, 236, 0.2); */
    /* box-shadow: 0 4px 18px rgba(0, 169, 236, 0.08); */
}

.bvc-header-template .header-logo:hover .logo-ring-1 {
    transform: translate(-50%, -50%) scale(1.05);
    border-color: rgba(0, 169, 236, 0.25);
}

.bvc-header-template .header-logo:hover .logo-ring-2 {
    transform: translate(-50%, -50%) scale(1.08);
    border-color: rgba(0, 169, 236, 0.35);
    box-shadow: 0 6px 24px rgba(0, 169, 236, 0.15);
}

/* Actions Right */
.bvc-header-template .header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.bvc-header-template .search-toggle-btn {
    background: transparent;
    border: none;
    color: #222222;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, background 0.2s;
}

.bvc-header-template .search-toggle-btn:hover {
    color: var(--color-3);
    background: #f4f6f8;
}

.bvc-header-template .mobile-toggle-btn {
    background: #f4f6f8;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    color: #222222;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Search Popup Modal */
.bvc-header-template .search-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(6, 17, 38, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1200;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 70px 16px 30px 16px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.bvc-header-template .search-popup.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.bvc-header-template .search-popup-inner {
    position: relative;
    width: 100%;
    max-width: 640px;
    background: #ffffff;
    border-radius: 16px;
    padding: 28px 30px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.25), 0 0 1px rgba(0, 0, 0, 0.1);
    transform: translateY(-40px);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.bvc-header-template .search-popup.active .search-popup-inner {
    transform: translateY(0);
    opacity: 1;
}

.bvc-header-template .search-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.bvc-header-template .search-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.bvc-header-template .search-close-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    position: static;
}

.bvc-header-template .search-close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: rotate(90deg);
}

.bvc-header-template .search-form {
    display: flex;
    gap: 10px;
    align-items: center;
    border: none;
}

.bvc-header-template .search-input-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.bvc-header-template .search-input-icon {
    position: absolute;
    left: 14px;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.bvc-header-template .search-form input {
    width: 100%;
    padding: 13px 16px 13px 44px;
    font-size: 15px;
    color: #0f172a;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    outline: none;
    transition: all 0.2s ease;
}

.bvc-header-template .search-form input::placeholder {
    color: #94a3b8;
}

.bvc-header-template .search-form input:focus {
    background: #ffffff;
    border-color: #00a9ec;
    box-shadow: 0 0 0 4px rgba(0, 169, 236, 0.12);
}

.bvc-header-template .search-submit-btn {
    background: #00a9ec;
    border: none;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    padding: 13px 22px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.bvc-header-template .search-submit-btn:hover {
    background: #0093cf;
    box-shadow: 0 4px 14px rgba(0, 169, 236, 0.35);
    transform: translateY(-1px);
}

.bvc-header-template .search-popular-keywords {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #f1f5f9;
}

.bvc-header-template .popular-title {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.bvc-header-template .keyword-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bvc-header-template .search-kw-btn {
    background: #f1f5f9;
    border: 1px solid transparent;
    color: #334155;
    font-size: 13px;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bvc-header-template .search-kw-btn:hover {
    background: #e0f2fe;
    color: #0284c7;
    border-color: #7dd3fc;
    transform: translateY(-1px);
}

@media (max-width: 576px) {
    .bvc-header-template .search-popup {
        padding-top: 30px;
    }

    .bvc-header-template .search-popup-inner {
        padding: 20px 18px;
    }

    .bvc-header-template .search-form {
        flex-direction: column;
    }

    .bvc-header-template .search-input-wrapper {
        width: 100%;
    }

    .bvc-header-template .search-submit-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================
   SHARED NAVIGATION (3 LEVELS) - DESKTOP MODE (>991px)
============================================================ */
@media (min-width: 992px) {

    .bvc-header-template .nav-drawer-header,
    .bvc-header-template .sub-toggle,
    .bvc-header-template .mobile-toggle-btn,
    .bvc-header-template .nav-overlay {
        display: none;
    }

    .bvc-header-template .site-nav {
        display: flex;
        align-items: center;
        margin-left: auto;
        position: relative;
        z-index: 15;
    }

    .bvc-header-template .menu-list {
        display: flex;
        align-items: center;
        list-style: none;
        margin: 0;
        padding: 0;
        gap: 6px;
    }

    .bvc-header-template .menu-item {
        position: relative;
        list-style: none;
    }

    /* Level 1 Link */
   .bvc-header-template .menu-link.level-1-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 12px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 6px;
    transition: color 0.2s;
    white-space: nowrap;
}

    .bvc-header-template .menu-item.level-1:hover>.level-1-link,
    .bvc-header-template .menu-item.level-1.active>.level-1-link {
        color: var(--color-3);
    }

    .bvc-header-template .arrow-icon {
        display: inline-block;
        vertical-align: middle;
        transition: transform 0.2s, color 0.2s;
        opacity: 0.75;
    }

    .bvc-header-template .menu-item.level-1:hover>.level-1-link .arrow-icon {
        transform: rotate(180deg);
        color: var(--color-3);
    }

    /* Level 2 Sub-Menu Dropdown */
    .bvc-header-template .sub-menu.level-2 {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 230px;
        background: #ffffff;
        border-radius: 8px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        padding: 8px 0;
        margin: 0;
        list-style: none;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.25s ease;
        z-index: 105;
        border: 1px solid #eef0f2;
    }

    .bvc-header-template .menu-item.level-1:hover>.sub-menu.level-2 {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .bvc-header-template .menu-link.level-2-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 18px;
        font-size: 14px;
        font-weight: 500;
        color: #333333;
        text-decoration: none;
        transition: color 0.2s, background 0.2s, padding-left 0.2s;
    }

    .bvc-header-template .menu-item.level-2:hover>.level-2-link {
        color: var(--color-3);
        background: #f7fbfe;
        padding-left: 22px;
    }

    /* Level 3 Sub-Menu Flyout Dropdown */
    .bvc-header-template .sub-menu.level-3 {
        position: absolute;
        top: 0;
        left: 100%;
        min-width: 210px;
        background: #ffffff;
        border-radius: 8px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        padding: 8px 0;
        margin: 0;
        list-style: none;
        opacity: 0;
        visibility: hidden;
        transform: translateX(10px);
        transition: all 0.25s ease;
        z-index: 110;
        border: 1px solid #eef0f2;
    }

    .bvc-header-template .menu-item.level-2:hover>.sub-menu.level-3 {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }

    .bvc-header-template .menu-link.level-3-link {
        display: block;
        padding: 9px 18px;
        font-size: 13px;
        font-weight: 400;
        color: #444444;
        text-decoration: none;
        transition: color 0.2s, background 0.2s, padding-left 0.2s;
    }

    .bvc-header-template .menu-item.level-3:hover>.level-3-link {
        color: var(--color-3);
        background: #f7fbfe;
        padding-left: 22px;
    }
}

/* ============================================================
   SHARED NAVIGATION (3 LEVELS) - MOBILE MODE (<=991px)
============================================================ */
@media (max-width: 991.98px) {
    .bvc-header-template .site-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 300px;
        max-width: 85vw;
        height: 100vh;
        background: #ffffff;
        z-index: 1050;
        box-shadow: 5px 0 25px rgba(0, 0, 0, 0.15);
        display: flex;
        flex-direction: column;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
    }

    .bvc-header-template.nav-active .site-nav {
        transform: translateX(0);
    }

    .bvc-header-template .nav-drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px;
        border-bottom: 1px solid #eeeeee;
        background: #f9fafb;
    }

    .bvc-header-template .drawer-title {
        font-weight: 700;
        font-size: 16px;
        color: var(--color-3);
    }

    .bvc-header-template .drawer-close-btn {
        background: transparent;
        border: none;
        font-size: 18px;
        color: #666;
        cursor: pointer;
        padding: 4px;
    }

    .bvc-header-template .menu-list {
        list-style: none;
        padding: 10px 0;
        margin: 0;
    }

    .bvc-header-template .menu-item {
        position: relative;
        list-style: none;
        border-bottom: 1px solid #f5f5f5;
    }

    .bvc-header-template .menu-link {
        display: flex;
        align-items: center;
        padding: 12px 20px;
        text-decoration: none;
        color: #222222;
        font-size: 15px;
        font-weight: 500;
    }

    .bvc-header-template .menu-item.active>.menu-link,
    .bvc-header-template .menu-link:hover {
        color: var(--color-3);
    }

    .bvc-header-template .arrow-icon {
        display: none;
    }

    /* Sub-menu Toggle Button (Mobile Accordion) */
    .bvc-header-template .sub-toggle {
        position: absolute;
        top: 6px;
        right: 12px;
        width: 34px;
        height: 34px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        color: #777777;
        cursor: pointer;
        border-radius: 4px;
        background: #f4f6f8;
        transition: transform 0.25s, background 0.25s, color 0.25s;
        z-index: 2;
    }

    .bvc-header-template .menu-item.open>.sub-toggle {
        transform: rotate(90deg);
        background: var(--color-3);
        color: #ffffff;
    }

    /* Mobile Accordion Sub-menus */
    .bvc-header-template .sub-menu {
        display: none;
        list-style: none;
        padding: 0;
        margin: 0;
        background: #f9fafb;
    }

    .bvc-header-template .menu-item.open>.sub-menu {
        display: block;
    }

    .bvc-header-template .sub-menu.level-2 .menu-link {
        padding-left: 32px;
        font-size: 14px;
        font-weight: 500;
        color: #444444;
    }

    .bvc-header-template .sub-menu.level-3 {
        background: #f0f4f8;
    }

    .bvc-header-template .sub-menu.level-3 .menu-link {
        padding-left: 48px;
        font-size: 13px;
        font-weight: 400;
        color: #666666;
    }

    /* Mobile Overlay */
    .bvc-header-template .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1040;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
    }

    .bvc-header-template.nav-active .nav-overlay {
        opacity: 1;
        visibility: visible;
    }
}
/* BIVACO MOBILE HEADER V40 */
@media (max-width: 767.98px) {
    .bvc-header-template { min-height: 60px !important; }
    .bvc-header-template .header-inner,
    .bvc-header-template .header-main-inner,
    .bvc-header-template .header-content {
        min-height: 60px !important;
        height: 60px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    .bvc-header-template .brand-logo img,
    .bvc-header-template .site-logo img,
    .bvc-header-template .logo img {
        max-height: 38px !important;
        width: auto !important;
    }
    .bvc-header-template .header-actions { gap: 4px !important; }
    .bvc-header-template .search-toggle-btn,
    .bvc-header-template .mobile-toggle-btn {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        padding: 0 !important;
        border-radius: 9px !important;
    }
}
