.dtlx-header {
    background: #fff; border-bottom: 1px solid #eee;
    position: sticky; top: 0; z-index: 500;
    transition: box-shadow .2s ease;
}
.dtlx-header.is-scrolled { box-shadow: 0 6px 20px rgba(15,30,70,.1); }
.dtlx-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 24px;
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
}
.dtlx-logo { flex: 0 0 auto; width: 150px; }
.dtlx-logo a { display: flex; align-items: center; width: 100%; height: 64px; overflow: hidden; }
.dtlx-logo img { width: 100% !important; height: 100% !important; max-width: none; max-height: none; object-fit: contain; display: block; }
.dtlx-logo-text { font-size: 22px; font-weight: 700; color: #1e4fd8; }

.dtlx-header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.dtlx-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 44px;
    padding: 0 18px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    font-size: 14px;
    box-sizing: border-box;
}
/* .dtlx-btn-outline { border: 1px solid #1e4fd8; color: #1e4fd8; background: #fff; } */
.dtlx-btn-outline:hover { background: #f0f4ff; }
.dtlx-btn-solid { background: #0d2b6b; color: #fff; border: 1px solid #0d2b6b; }
.dtlx-btn-solid:hover { background: #09204f; }

.dtlx-search-form {
    display: flex; align-items: stretch; height: 44px; box-sizing: border-box;
    border: 1px solid #e2e5eb !important; border-radius: 8px; overflow: hidden; box-shadow: none !important;
    background: #fff;
}
.dtlx-search-form:focus-within { border-color: #1e4fd8 !important; box-shadow: 0 0 0 3px rgba(30,79,216,.12) !important; }
.dtlx-search-form input {
    border: none !important; padding: 0 14px; width: 220px; font-size: 14px; outline: none;
    background: transparent !important; box-shadow: none !important; height: 100% !important; border-radius: 0 !important;
    box-sizing: border-box;
}
.dtlx-search-form button {
    border: none; background: linear-gradient(145deg,#1e4fd8,#123a9e); color: #fff; padding: 0 18px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: filter .15s ease, transform .1s ease;
}
.dtlx-search-form button:hover { filter: brightness(1.1); }
.dtlx-search-form button:active { transform: scale(.94); }
.dtlx-search-form button svg { display: block; }

.dtlx-main-nav {
    display: flex;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    border-top: 1px solid #f0f0f0;
    gap: 0;
    min-height: 56px;
    width: 100%;
    box-sizing: border-box;
}
.dtlx-home-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: #1e4fd8;
    color: #fff;
    border-radius: 50%;
    margin-right: 20px;
    flex-shrink: 0;
}
.dtlx-home-icon .dashicons { font-size: 18px; width: 18px; height: 18px; }
.dtlx-menu-toggle {
    display: none;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding: 8px 12px;
    border: 1px solid #dbe3f4;
    border-radius: 7px;
    background: #fff;
    color: #0d2b6b;
    font-weight: 700;
}
.dtlx-menu { display: flex; list-style: none; margin: 0; padding: 0; }
.dtlx-menu > li { position: relative; }
.dtlx-menu > li > a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 16px 22px;
    font-weight: 700;
    font-size: 15px;
    color: #1a1a1a;
    text-decoration: none;
    white-space: nowrap;
}
.dtlx-menu > li:hover > a,
.dtlx-menu > li.current-menu-item > a { color: #1e4fd8; }
.dtlx-menu li.menu-item-has-children > a::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-left: 2px;
    margin-top: -3px;
}

.dtlx-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 22px;
    min-width: 240px;
    width: max-content;
    max-width: 90vw;
    background: #fff;
    box-shadow: 0 12px 28px rgba(0,0,0,.14);
    border-radius: 0 0 10px 10px;
    list-style: none;
    margin: 0;
    padding: 10px 0;
    z-index: 200;
}
.dtlx-menu li:hover > .sub-menu { display: block; }
.dtlx-menu .sub-menu a {
    white-space: nowrap;
    display: block;
    padding: 11px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}
.dtlx-menu .sub-menu a:hover { background: #f5f7ff; color: #1e4fd8; }

/* Floating social sidebar */
.dtlx-floating-social {
    position: fixed;
    right: 20px;
    top: 45%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}
.dtlx-float-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #1e4fd8;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
    text-align: center;
}
.dtlx-float-icon .dashicons { font-size: 22px; width: 22px; height: 22px; }
.dtlx-float-icon.dtlx-fb { background: #1877f2; }
.dtlx-float-icon.dtlx-zalo { background: #0068ff; }
.dtlx-float-icon.dtlx-online { background: #00c853; }
.dtlx-float-icon.dtlx-call { background: #00c853; animation: dtlx-call-pulse 2s infinite; }
@keyframes dtlx-call-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0,200,83,.5); }
    50% { box-shadow: 0 0 0 8px rgba(0,200,83,0); }
}

@media (max-width: 900px) {
    .dtlx-header-top { min-height: 72px; padding: 10px 16px; gap: 10px; }
    .dtlx-logo { width: 116px; }
    .dtlx-logo a { height: 54px; }
    .dtlx-logo-text { font-size: 17px; line-height: 1.25; }
    .dtlx-header-actions { gap: 7px; }
    .dtlx-header-actions .dtlx-btn { padding: 8px 10px; font-size: 12px; }
    .dtlx-search-form { display: none; }
    .dtlx-main-nav { flex-wrap: wrap; min-height: 54px; padding: 8px 16px; overflow: visible; }
    .dtlx-home-icon { margin-right: 10px; }
    .dtlx-menu-toggle { display: inline-flex; }
    .dtlx-menu-toggle { flex: 0 0 auto; min-width: 78px; justify-content: center; box-sizing: border-box; }
    .dtlx-menu {
        display: none;
        flex: 0 0 100%;
        width: 100%;
        flex-direction: column;
        padding-top: 8px;
    }
    .dtlx-menu.is-open { display: flex; }
    .dtlx-menu > li > a { justify-content: space-between; padding: 12px 8px; border-top: 1px solid #edf0f6; }
    .dtlx-menu .sub-menu {
        display: none;
        position: static;
        min-width: 0;
        width: 100%;
        max-width: 100%;
        box-shadow: none;
        border-radius: 0;
        padding: 0 0 7px 14px;
    }
    .dtlx-menu .sub-menu a { white-space: normal; }
    .dtlx-menu li.submenu-open > .sub-menu { display: block; }
    .dtlx-menu li:hover > .sub-menu { display: none; }
    .dtlx-menu li.submenu-open:hover > .sub-menu { display: block; }
    .dtlx-floating-social { right: 10px; }
    .dtlx-float-icon { width: 46px; height: 46px; }
}

@media (max-width: 560px) {
    .dtlx-header-actions .dtlx-btn-outline { display: none; }
    .dtlx-header-actions .dtlx-btn-solid { font-size: 0; padding: 9px; }
    .dtlx-header-actions .dtlx-btn-solid::after { content: "Tra cứu"; font-size: 12px; }
    .dtlx-logo { width: 96px; }
    .dtlx-logo a { height: 48px; }
}
