/* ===================================================
   Header Theme 3 — Minimal Clean
   Layout: [Logo-left | Menu-center | Actions-right]
   No topbar. Minimal aesthetic.
   =================================================== */

/* --- Wrapper --- */
.ms-header-template-3 {
    background-color: var(--ms-color-white);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    width: 100%;
}

.ms-header-template-3 .ms-container {
    width: 100%;
    padding: 0 20px;
    margin: 0 auto;
    max-width: 1300px;
}

/* --- Header Main --- */
.ms-header-template-3 .header-main {
    padding: 12px 0;
}

.ms-header-template-3 .main-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* --- Left Section (Logo) --- */
.ms-header-template-3 .left-section {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    margin-right: 20px;
}

/* --- Menu Area (Center) --- */
.ms-header-template-3 .main-menu {
    flex: 1 1 auto;
    display: flex;
    justify-content: flex-end;
    margin-right: 20px;
    min-width: 0;
}

.ms-header-template-3 .ms-block-menu .ms-navbar-list {
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
}

.ms-header-template-3 .ms-block-menu .ms-navbar-list a:not([class*="ms-btn"]) {
    color: var(--ms-color-dark) !important;
}

.ms-header-template-3 .ms-block-menu .ms-navbar-list a:not([class*="ms-btn"]):hover,
.ms-header-template-3 .ms-block-menu .ms-navbar-list .current-menu-item a:not([class*="ms-btn"]) {
    color: var(--ms-color-primary) !important;
}

/* --- Actions (Right) --- */
.ms-header-template-3 .main-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 0 0 auto;
}

/* --- Hamburger (Hidden Desktop) --- */
.ms-header-template-3 .ms-block-menu > .ms-navbar-btn {
    display: none;
}

/* ===================================================
   Responsive (< 992px)
   =================================================== */
@media (max-width: 991px) {
    .ms-header-template-3 .main-inner {
        position: relative;
    }

    .ms-header-template-3 .main-menu {
        order: 3;
        flex: 0 0 auto;
        margin-left: 12px;
        margin-right: 0 !important;
        position: static;
    }

    .ms-header-template-3 .main-actions {
        margin-left: auto;
    }

    /* Hamburger */
    .ms-header-template-3 .ms-block-menu > .ms-navbar-btn {
        display: block;
        cursor: pointer;
    }

    /* Mobile menu */
    .ms-header-template-3 .ms-block-menu .ms-navbar-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--ms-color-white);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
        z-index: 999;
        gap: 0;
        border-top: 1px solid var(--ms-color-border);
    }

    .ms-header-template-3 .ms-block-menu .ms-navbar-list.ms-navbar-open {
        display: flex !important;
    }

    .ms-header-template-3 .ms-block-menu .ms-navbar-list > li {
        width: 100%;
        border-bottom: 1px solid var(--ms-color-border);
    }

    .ms-header-template-3 .ms-block-menu .ms-navbar-list > li:last-child {
        border-bottom: none;
    }

    .ms-header-template-3 .ms-block-menu .ms-navbar-list > li > a:not([class*="ms-btn"]) {
        padding: 14px 20px;
        font-size: 15px;
        width: 100%;
    }

    /* Submenu mobile */
    .ms-header-template-3 .ms-block-menu .sub-menu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        border-top: none;
        opacity: 1;
        transform: none;
        display: none;
        background-color: var(--ms-color-light);
    }

    .ms-header-template-3 .ms-block-menu .sub-menu li a {
        padding-left: 40px;
    }


}

/* --- Small Mobile --- */
@media (max-width: 480px) {
    .ms-header-template-3 .main-actions {
        gap: 10px;
    }
}
