/* El Masry masthead — Al Watan layout, El Masry mark */
body.news #nav-top {
    background-color: #fff !important;
    border-bottom: 1px solid #f0f0f0;
    padding: 0 !important;
}

body.news #header {
    background-color: #fff !important;
    margin-bottom: 8px;
}

.elmasery-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 44px;
}

.elmasery-topbar-start,
.elmasery-topbar-end {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.elmasery-date {
    color: #2a2a2a;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.elmasery-toplink,
.elmasery-register {
    color: #333 !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
}

.elmasery-toplink:hover,
.elmasery-register:hover,
.elmasery-lang > a:hover {
    color: #f26522 !important;
}

.elmasery-social {
    display: flex;
    align-items: center;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.elmasery-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #222 !important;
    font-size: 15px;
    line-height: 1;
    text-decoration: none !important;
}

.elmasery-social a:hover {
    color: #f26522 !important;
}

.elmasery-divider {
    width: 1px;
    height: 16px;
    background: #d9d9d9;
    flex: 0 0 1px;
}

.elmasery-lang {
    position: relative;
}

.elmasery-lang > a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #222 !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
}

.elmasery-theme-form {
    margin: 0;
}

.elmasery-theme {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 28px;
    padding: 0 8px;
    border: 1px solid #e4e4e4 !important;
    border-radius: 20px;
    background: #fff !important;
    color: #222;
    box-shadow: none !important;
    line-height: 1;
}

.elmasery-theme .is-muted {
    opacity: .35;
}

.elmasery-theme:hover {
    border-color: #f26522 !important;
    color: #f26522;
}

.elmasery-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 5px 14px;
    background: #f26522;
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    border-radius: 3px;
    text-decoration: none !important;
    white-space: nowrap;
}

.elmasery-login:hover,
.elmasery-login:focus {
    background: #dc5416;
    color: #fff !important;
}

.elmasery-profile > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #222 !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
}

.elmasery-profile > a img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid #e5e5e5;
}

.elmasery-brandbar {
    background: #fff;
}

.elmasery-brand {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 118px;
    padding: 8px 0 4px;
}

.elmasery-logo {
    display: flex;
    flex: 0 0 auto;
    line-height: 0;
}

.elmasery-logo img {
    display: block;
    width: auto;
    height: 112px;
}

.elmasery-editor {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    line-height: 1.35;
}

.elmasery-editor-role {
    color: #f26522;
    font-size: 15px;
    font-weight: 700;
}

.elmasery-editor-name {
    color: #161616;
    font-size: 20px;
    font-weight: 800;
}

.elmasery-advertise {
    margin-inline-start: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 132px;
    min-height: 58px;
    padding: 10px 18px;
    border: 1px solid #e6d3b8;
    background: #fff;
    color: #2c2118 !important;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    transition: border-color .15s ease, color .15s ease;
}

.elmasery-advertise:hover,
.elmasery-advertise:focus {
    border-color: #f26522;
    color: #f26522 !important;
}

body.news .nav-main {
    background-color: #fff !important;
    border-bottom: 3px solid #f26522 !important;
    padding: 0 !important;
}

body.news .nav-main > .container-xl {
    display: flex;
    align-items: center;
}

body.news .nav-main .navbar-collapse {
    width: 100%;
}

body.news .nav-main .navbar-nav {
    flex-wrap: nowrap;
}

body.news .nav-main .navbar-nav .nav-link {
    display: flex;
    align-items: center;
    color: #1a1a1a !important;
    line-height: 1.3 !important;
    font-weight: 700;
    font-size: 15px;
    text-transform: none;
    padding: 15px 11px !important;
    white-space: nowrap;
}

body.news .nav-main .navbar-nav .nav-link i {
    font-size: 10px;
    margin-inline-start: 3px;
}

body.news .nav-main .navbar-nav .nav-link:hover,
body.news .nav-main .navbar-nav .nav-link:focus,
body.news .nav-main .navbar-nav .show > .nav-link,
body.news .nav-main .navbar-nav .active > .nav-link,
body.news .nav-main .navbar-nav .nav-item.active .nav-link {
    color: #f26522 !important;
}

body.news .nav-main .navbar-right .nav-link,
body.news .nav-main .search-icon {
    color: #1a1a1a !important;
    padding: 8px 4px !important;
}

body.news .nav-main .search-icon:hover,
body.news .nav-main .search-icon:focus {
    color: #f26522 !important;
}

.elmasery-advertise-mobile {
    display: flex;
    width: 100%;
    min-height: 46px;
    margin-top: 12px;
    font-size: 16px;
}

.elmasery-mobile-bar {
    gap: 8px;
    min-height: 64px;
    padding: 6px 10px;
}

.mobile-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.mobile-brand .mobile-logo,
.mobile-brand .mobile-logo img {
    width: auto;
    height: 52px;
}

.mobile-editor {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    min-width: 0;
    overflow: hidden;
}

.mobile-editor span {
    color: #f26522;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.mobile-editor strong {
    color: #161616;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.elmasery-mobile-bar .mobile-search {
    margin-inline-start: auto;
}

body.news .header-mobile,
body.news .mobile-search-form {
    background-color: #fff !important;
    box-shadow: none !important;
}

body.news .header-mobile {
    padding: 0 !important;
    border-bottom: 3px solid #f26522;
}

body.news .header-mobile svg {
    color: #1a1a1a !important;
    stroke: #1a1a1a !important;
}

body.news .header-mobile-container {
    height: 76px;
    border-bottom: 0;
}

body.news .nav-mobile {
    top: 76px;
    background-color: #fff !important;
}

body.news .nav-mobile .nav-item .nav-link,
body.news .nav-mobile .profile-dropdown-mobile .menu-sub-items .dropdown-item {
    color: #1a1a1a !important;
}

body.news .nav-mobile .profile-dropdown-mobile {
    border-bottom-color: #eee !important;
}

@media (max-width: 1199.98px) {
    .elmasery-logo img {
        height: 96px;
    }

    .elmasery-editor-name {
        font-size: 17px;
    }

    .elmasery-brand {
        min-height: 104px;
        gap: 12px;
    }

    body.news .nav-main .navbar-nav .nav-link {
        font-size: 13px;
        padding: 14px 7px !important;
    }
}

@media (max-width: 991.98px) {
    body.news #nav-top,
    .elmasery-brandbar,
    body.news .nav-main {
        display: none !important;
    }

    body.news #header {
        min-height: 76px;
        margin-bottom: 12px;
        background-color: transparent !important;
    }
}

body.news.dark-mode #nav-top,
body.news.dark-mode #header,
body.news.dark-mode .elmasery-brandbar,
body.news.dark-mode .nav-main,
body.news.dark-mode .header-mobile,
body.news.dark-mode .mobile-search-form {
    background-color: #121212 !important;
}

body.news.dark-mode .elmasery-date,
body.news.dark-mode .elmasery-toplink,
body.news.dark-mode .elmasery-register,
body.news.dark-mode .elmasery-lang > a,
body.news.dark-mode .elmasery-social a,
body.news.dark-mode .elmasery-profile > a,
body.news.dark-mode .elmasery-editor-name,
body.news.dark-mode .mobile-editor strong,
body.news.dark-mode .nav-main .navbar-nav .nav-link,
body.news.dark-mode .nav-main .navbar-right .nav-link,
body.news.dark-mode .nav-main .search-icon {
    color: #f5f5f5 !important;
}

body.news.dark-mode .elmasery-theme {
    background: transparent !important;
    border-color: #3a3a3a !important;
    color: #f5f5f5;
}

body.news.dark-mode .elmasery-divider {
    background: #3a3a3a;
}

body.news.dark-mode .elmasery-advertise {
    background: transparent;
    border-color: #5a4632;
    color: #f5f5f5 !important;
}

body.news.dark-mode .header-mobile svg {
    color: #f5f5f5 !important;
    stroke: #f5f5f5 !important;
}

body.news.dark-mode .nav-mobile {
    background-color: #161616 !important;
}

body.news.dark-mode .nav-mobile .nav-item .nav-link,
body.news.dark-mode .nav-mobile .profile-dropdown-mobile .menu-sub-items .dropdown-item {
    color: #f5f5f5 !important;
}

body.news.dark-mode #nav-top {
    border-bottom-color: #2a2a2a;
}
