/*
 * OJS 3.4 - Menu chính tự giãn gọn hơn
 * Thu hẹp vùng menu để không bị quá giãn trên màn hình lớn.
 */

@media (min-width: 1200px) {

    /* Thu vùng menu còn 70% chiều ngang */
    .pkp_navigation_primary_wrapper {
        width: 70% !important;
        max-width: 70% !important;
        margin-left: 0 !important;
        margin-right: auto !important;
    }

    .pkp_navigation_primary {
        display: flex !important;
        align-items: center;
        justify-content: space-between !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding-left: 0 !important;
        gap: 8px !important;
    }

    .pkp_navigation_primary > li {
        flex: 0 1 auto !important;
        margin: 0 !important;
        white-space: nowrap;
    }

    .pkp_navigation_primary > li > a {
        display: flex;
        align-items: center;
        justify-content: center;
        padding-left: 8px !important;
        padding-right: 8px !important;
        white-space: nowrap;
    }
}

/* Laptop / màn hình vừa */
@media (min-width: 768px) and (max-width: 1199px) {
    .pkp_navigation_primary_wrapper {
        width: 92% !important;
        max-width: 92% !important;
        margin-left: 0 !important;
        margin-right: auto !important;
    }

    .pkp_navigation_primary {
        display: flex !important;
        align-items: center;
        justify-content: space-between !important;
        width: 100% !important;
        gap: 5px !important;
    }

    .pkp_navigation_primary > li > a {
        padding-left: 6px !important;
        padding-right: 6px !important;
        font-size: 0.95em;
        white-space: nowrap;
    }
}

/* Không can thiệp menu mobile */
@media (max-width: 767px) {
    .pkp_navigation_primary_wrapper,
    .pkp_navigation_primary {
        width: auto !important;
        max-width: none !important;
    }
}
