.main-header .header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.main-header .navbar-logo {
    flex: 0 0 auto;
}

.main-header .navbar-logo img {
    max-height: 80px;
    width: auto;
    display: block;
}

.main-header .navbar {
    flex: 1 1 auto;
    justify-content: center;
}

.main-header .navbar-collapse {
    justify-content: center !important;
}

.main-header .navbar-nav {
    align-items: center;
    gap: 10px;
}

.main-header .header-user-tools {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ===== NAV STYLE FINAL ===== */

/* كل العناصر بولد */
.pkp_navigation_primary > li > a {
    font-weight: 700 !important;
    position: relative;
    padding-bottom: 6px;
}

/* الخط تحت العناصر */
.pkp_navigation_primary > li > a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: #0b57a4; /* لون المجلة */
    transition: 0.3s;
}

/* عند المرور */
.pkp_navigation_primary > li > a:hover::after {
    width: 100%;
}

/* العنصر النشط */
.pkp_navigation_primary > li.current > a::after,
.pkp_navigation_primary > li.current_page_item > a::after {
    width: 100%;
}

/* ===== SEARCH بلون مختلف ===== */

/* عدلي الرقم إذا مش آخر عنصر */
.pkp_navigation_primary > li:last-child > a {
    color: #e63956 !important; /* لون مختلف */
}

/* الخط تحت السيرش بلونه */
.pkp_navigation_primary > li:last-child > a::after {
    background: #e63956;
}

/* Hover السيرش */
.pkp_navigation_primary > li:last-child > a:hover {
    color: #c62842 !important;
}
@media (max-width: 991px) {
    .main-header .header-flex {
        display: block;
    }

    .main-header .navbar-logo {
        text-align: left;
        margin-bottom: 10px;
    }

    .main-header .header-user-tools {
        display: none;
    }

    .main-header .navbar-logo img {
        max-height: 65px;
    }
}