/* ================= HEADER ================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ================= NAV ================= */
.main-navigation > ul {
    display: flex;
    gap: 28px;
}

.main-navigation a {
    font-size: 16px;
    font-weight: 500;
    color: #0b0f2b;
    text-decoration: none;
    padding: 10px 0;
}

.main-navigation li.menu-item-has-children > a::after {
    content: "";
    display: inline-block;
    width: 12px;
    height: 8px;
    margin-left: 6px;

    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;

    background-image: url("data:image/svg+xml,%3Csvg width='8' height='5' viewBox='0 0 8 5' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L4 4L7 1' stroke='%230E0F0D' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.main-navigation li.menu-item-has-children > a::after {
    transition: transform .25s ease;
}

.main-navigation li.menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}


/* ================= ACTION ================= */
.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.btn-contact {
    background: #0b3ce3;
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
}


/* ================= MEGA MODAL ================= */
:root {
    --header-height: 113px; /* fallback */
}

.mega-modal {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;

    background: #fff;
    box-shadow: 0 20px 40px rgba(0,0,0,.12);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(12px);
    transition: .3s ease;
    z-index: 9999;
}


.mega-modal.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.mega-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.mega-col h4 {
    font-size: 15px;
    font-weight: 600;
    color: #0b3ce3;
    margin-bottom: 12px;
}

.mega-col a {
    display: block;
    padding: 6px 0;
    font-size: 14px;
    color: #374151;
    text-decoration: none;
}

.mega-col a:hover {
    color: #0b3ce3;
}

.main-navigation .sub-menu {
    display: none !important;
}

/* ================= OVERLAY ================= */
.site-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55); /* giống ảnh */
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease;
    z-index: 999; /* dưới mega menu */
}

body.mega-open .site-overlay {
    opacity: 1;
    visibility: visible;
}
