/* ==========================================================================
   Nasser theme (v2): matches the look of new.nasserforum.com.
   Values were measured from the live site (computed styles):
   page #0e6139, panels #065420, footer #034d14, accent #fefe43,
   heading ink #233040, Archivo Black headings, Be Vietnam Pro body.
   Loaded after style-1.9.min.css and the inline colour rules from
   partials/_css_js_header.php, so it overrides them.
   Note: Bootstrap 3 sets the root font-size to 10px, so sizes here are in px.
   ========================================================================== */

:root {
    --nv-page: #0e6139;
    --nv-panel: #065420;
    --nv-footer: #034d14;
    --nv-yellow: #fefe43;
    --nv-ink: #233040;
    --nv-text: #ffffff;
    --nv-body: rgba(255, 255, 255, .86);
    --nv-muted: rgba(255, 255, 255, .66);
    --nv-line: rgba(254, 254, 67, .22);
    --nv-radius-panel: 28px;
    --nv-radius-card: 18px;
    --nv-font-head: "Archivo Black", "Be Vietnam Pro", Arial, sans-serif;
    --nv-font-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    --nv-gutter: max(16px, calc((100% - 1200px) / 2 + 15px));
}

/* ---------- Base ---------- */
html,
body {
    background-color: var(--nv-page) !important;
}

body {
    position: relative;
    isolation: isolate;
    font-family: var(--nv-font-body) !important;
    font-size: 16px;
    line-height: 1.6;
    color: var(--nv-body) !important;
    -webkit-font-smoothing: antialiased;
}

/* Hieroglyph pattern from new.nasserforum.com, blended like the original (opacity .14, soft-light) */
body::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: url("../img/theme/pharaoh-pattern.jpg");
    background-size: 360px auto;
    background-repeat: repeat;
    opacity: .14;
    mix-blend-mode: soft-light;
    pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--nv-font-head) !important;
    color: var(--nv-text) !important;
    line-height: 1.2;
    letter-spacing: 0;
}

p {
    margin: 0 0 1em;
}

a {
    color: var(--nv-text);
    transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

a:hover,
a:focus {
    color: var(--nv-yellow);
    text-decoration: none;
}

::selection {
    background: var(--nv-yellow) !important;
    color: var(--nv-ink) !important;
}

hr {
    border-top-color: rgba(255, 255, 255, .14);
}

/* ---------- Top utility bar ---------- */
.top-bar {
    background: #034d14 !important;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    padding: 0;
    min-height: 38px;
}

.top-bar .top-menu > li > a,
.top-bar .top-menu li a,
.top-bar .top-menu > li > span {
    color: rgba(255, 255, 255, .88) !important;
    font-size: 12px;
    font-weight: 600;
    line-height: 38px;
    padding: 0 10px;
    letter-spacing: .02em;
    text-transform: none;
}

.top-bar .top-menu li a:hover {
    color: var(--nv-yellow) !important;
}

.top-bar .li-dark-mode-sw .btn-switch-mode {
    color: var(--nv-yellow);
}

/* Social icons from the site settings */
.nv-socials {
    float: left;
    display: flex;
    align-items: center;
    gap: 4px;
    height: 38px;
    margin: 0 0 0 6px;
    padding: 0;
    list-style: none;
}

.nv-socials li {
    display: block;
}

.nv-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    color: rgba(255, 255, 255, .85) !important;
    font-size: 13px;
    transition: background-color .2s ease, color .2s ease;
}

.nv-socials a:hover,
.nv-socials a:focus {
    background: var(--nv-yellow);
    color: var(--nv-ink) !important;
}

/* ---------- Header ----------
   Desktop: utility bar, brand row (logo lockup, login and register) and the category pill nav.
   Past 90px of scrolling, assets/js/nasser-header.js adds .is-compact, which shrinks the header. */
#header {
    position: relative;
    background: linear-gradient(180deg, rgba(14, 97, 57, .97) 0%, rgba(6, 84, 32, .98) 100%);
    box-shadow: 0 12px 34px rgba(0, 0, 0, .28);
}

/* Hairline with a yellow centre along the bottom edge */
#header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--nv-yellow) 50%, transparent 100%);
    opacity: .6;
    pointer-events: none;
}

.logo-banner {
    background: transparent;
    padding: 14px 0;
}

.logo-banner .left {
    float: none;
    height: auto;
    line-height: normal;
}

/* Brand lockup: logo badge, NASSER / YOUTH MOVEMENT */
.logo-banner .left .nv-brand,
.nv-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: #fff !important;
    text-decoration: none;
}

.nv-brand:hover {
    color: #fff !important;
}

.logo-banner .left .logo {
    height: 60px;
    width: auto;
    max-width: none;
    padding: 6px 10px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .22);
    transition: height .3s ease, padding .3s ease, border-radius .3s ease;
}

.nv-brand-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
    line-height: 1;
}

.nv-brand-name {
    font-family: var(--nv-font-head);
    font-size: 26px;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: #fff;
    transition: font-size .3s ease;
}

.nv-brand-sub {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: var(--nv-yellow);
    transition: font-size .3s ease, letter-spacing .3s ease;
}

.logo-banner .right {
    float: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.main-menu {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.main-menu .navbar-collapse .row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.main-menu .navbar-nav {
    float: none;
    height: auto;
    display: flex;
    align-items: center;
    margin: 0;
}

/* Pill-shaped navigation capsule around the category links */
.main-menu .navbar-nav.nv-pill {
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
    gap: 2px;
    padding: 4px 6px;
    background: rgba(0, 0, 0, .18);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}

.main-menu .navbar-nav > li > a,
.navbar-default .navbar-nav > li > a {
    color: rgba(255, 255, 255, .95) !important;
    font-family: var(--nv-font-body);
    font-size: 13px;
    font-weight: 600;
    line-height: 33px;
    padding: 8px 14px;
    white-space: nowrap;
    text-transform: none;
    border-radius: 8px;
    background: transparent;
}

.main-menu .navbar-nav > li > a:hover,
.main-menu .navbar-nav > li > a:focus {
    background: rgba(254, 254, 67, .12);
    color: var(--nv-yellow) !important;
}

.main-menu .navbar-nav > .active > a,
.main-menu .navbar-nav > .active > a:hover,
.main-menu .navbar-nav > .active > a:focus,
.navbar-default .navbar-nav > .active > a {
    background: rgba(254, 254, 67, .2) !important;
    color: var(--nv-yellow) !important;
}

.navbar-default .navbar-nav > .active > a::after,
.navbar-default .navbar-nav > li > a:hover::after {
    display: none !important;
}

.navbar-default .navbar-nav .caret {
    margin-left: 6px;
}

/* Search icon at the end of the nav row */
.main-menu .navbar-nav.navbar-right {
    flex: 0 0 auto;
    margin-left: 0;
}

.main-menu .li-search > a.search-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .25);
    color: #fff !important;
    line-height: 1;
    padding: 0;
}

.main-menu .li-search > a.search-icon:hover {
    border-color: var(--nv-yellow);
    color: var(--nv-yellow) !important;
}

/* Login / register buttons: LOGIN ghost, REGISTER solid yellow */
.nv-auth {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: var(--nv-font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, height .3s ease;
}

.nv-btn-ghost {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .35);
    color: #fff !important;
}

.nv-btn-ghost:hover {
    background: rgba(255, 255, 255, .18);
    color: var(--nv-yellow) !important;
}

.nv-btn-solid {
    background: var(--nv-yellow);
    border-color: rgba(254, 254, 67, .5);
    color: var(--nv-ink) !important;
    box-shadow: 0 0 22px rgba(254, 254, 67, .3);
}

.nv-btn-solid:hover {
    background: #fff;
    color: var(--nv-ink) !important;
}

/* Bootstrap clearfix pseudo-elements become flex items; remove them from header rows */
#header .row::before,
#header .row::after {
    content: none;
    display: none;
}

/* Desktop: utility bar, brand row, pill navigation, with the compact state on scroll */
@media (min-width: 992px) {
    #header {
        position: sticky;
        top: 0;
        z-index: 1030;
        display: flex;
        flex-wrap: wrap;
        backdrop-filter: saturate(140%) blur(12px);
        -webkit-backdrop-filter: saturate(140%) blur(12px);
    }

    #header > .top-bar {
        order: 0;
        flex: 0 0 100%;
        width: 100%;
        max-height: 38px;
        overflow: hidden;
        transition: max-height .3s ease, border-color .3s ease;
    }

    #header > .logo-banner {
        order: 1;
        flex: 0 0 100%;
        padding: 14px var(--nv-gutter);
        transition: padding .3s ease;
    }

    #header > .main-menu {
        order: 2;
        flex: 0 0 100%;
        padding: 0 var(--nv-gutter) 12px;
        transition: padding .3s ease;
    }

    #header > .logo-banner > .container,
    #header > .main-menu > .container {
        width: 100%;
        max-width: none;
        padding: 0;
        margin: 0;
    }

    #header > .logo-banner .col-sm-12 {
        width: 100%;
        float: none;
        padding: 0;
    }

    #header > .logo-banner .row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: 0;
    }

    #header > .main-menu .collapse.navbar-collapse {
        padding: 0;
    }

    #header > .mobile-nav-container {
        display: none;
    }

    /* Login and register sit in the brand row on desktop */
    .top-bar .top-menu > li.top-li-auth {
        display: none !important;
    }

    /* Compact state (scrolled) */
    #header.is-compact {
        background: linear-gradient(180deg, rgba(14, 97, 57, .94) 0%, rgba(6, 84, 32, .96) 100%);
        box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
    }

    #header.is-compact > .top-bar {
        display: none;
    }

    #header.is-compact > .logo-banner {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    #header.is-compact > .main-menu {
        padding-bottom: 8px;
    }

    #header.is-compact .logo-banner .left .logo {
        height: 44px;
        padding: 4px 8px;
        border-radius: 12px;
    }

    #header.is-compact .nv-brand {
        gap: 10px;
    }

    #header.is-compact .nv-brand-name {
        font-size: 18px;
    }

    #header.is-compact .nv-brand-sub {
        font-size: 9px;
        letter-spacing: .26em;
    }

    #header.is-compact .nv-btn {
        height: 34px;
        padding: 0 16px;
    }
}

@media (max-width: 991px) {
    .nv-socials {
        display: none;
    }
}

/* ---------- Dropdowns ---------- */
.dropdown-menu,
.megamenu .dropdown-menu,
.top-bar .dropdown-menu {
    background: var(--nv-panel) !important;
    border: 1px solid rgba(254, 254, 67, .2);
    border-top: 3px solid var(--nv-yellow);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
    padding: 8px 0;
}

.dropdown-menu > li > a,
.dropdown-menu .dropdown-more-item > a {
    color: var(--nv-body) !important;
    font-size: 14px;
    padding: 8px 18px;
}

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
    background: rgba(254, 254, 67, .12) !important;
    color: var(--nv-yellow) !important;
}

/* ---------- Homepage hero ---------- */
.nv-hero {
    padding-top: 56px;
    padding-bottom: 36px;
}

.nv-hero-title {
    margin: 0;
    font-family: var(--nv-font-head) !important;
    font-size: clamp(44px, 8vw, 104px);
    line-height: .95;
    text-transform: uppercase;
    letter-spacing: -.02em;
    color: #fff !important;
}

.nv-hero-title em {
    display: block;
    font-style: normal;
    color: var(--nv-yellow) !important;
    font-size: .58em;
    letter-spacing: -.01em;
    margin-top: 6px;
}

/* Hidden SEO heading on the homepage keeps its place without showing */
.title-index {
    height: 0;
    margin: 0;
    overflow: hidden;
    text-indent: -9999px;
    line-height: 0;
    color: transparent;
}

/* Featured grid (the hero photos) */
.section-featured {
    margin-top: 0;
}

.section-featured #featured {
    border-radius: var(--nv-radius-panel);
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
    border: 1px solid rgba(254, 254, 67, .2);
}

.featured-box,
.featured-box .box-inner {
    border-radius: 0;
}

.featured-box .overlay {
    background: linear-gradient(180deg, rgba(3, 77, 20, 0) 25%, rgba(3, 60, 16, .94) 100%) !important;
}

.featured-box .caption {
    padding: 18px 18px 20px;
}

.featured-box .caption .title {
    font-family: var(--nv-font-head) !important;
    font-size: clamp(14px, 1.15vw, 18px);
    line-height: 1.2;
    text-transform: uppercase;
    color: #fff !important;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
}

.featured-box .post-meta,
.featured-box .post-meta * {
    color: rgba(255, 255, 255, .8) !important;
}

/* Yellow category pills */
.category-label {
    background: var(--nv-yellow) !important;
    color: var(--nv-ink) !important;
    border-radius: 999px;
    font-family: var(--nv-font-body);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 5px 11px;
    line-height: 1.2;
}

/* ---------- Breaking news ticker ----------
   The jQuery newsTicker (assets/js/script-1.9.js) rolls one row of 30px
   (row_height: 30), so the list must keep that fixed 30px height. The bar is a flex row:
   label, rolling text, and the prev/next buttons, which sit inline. */
.news-ticker-cnt {
    display: block;
    width: 100%;
    margin: 24px 0 28px;
    padding: 6px 8px 6px 6px;
    background: var(--nv-footer);
    border: 1px solid rgba(254, 254, 67, .25);
    border-radius: 999px;
    overflow: hidden;
}

.news-ticker-cnt > .row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
}

.news-ticker-cnt .row::before,
.news-ticker-cnt .row::after {
    content: none;
    display: none;
}

.news-ticker-cnt .left,
.news-ticker-cnt .right {
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
}

.news-ticker-cnt .left {
    flex: 0 0 auto;
}

.news-ticker-cnt .right {
    flex: 1 1 auto;
    min-width: 0;
}

.news-ticker-title {
    display: inline-flex;
    align-items: center;
    height: 28px;
    margin: 0;
    padding: 0 14px;
    position: static;
    border-radius: 999px;
    background: var(--nv-yellow) !important;
    color: var(--nv-ink) !important;
    font-family: var(--nv-font-body);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .1em;
    text-transform: uppercase;
    white-space: nowrap;
}

.news-ticker,
.news-ticker ul {
    position: relative;
    height: 30px !important;
    margin: 0;
    padding: 0 !important;
    line-height: 30px;
    overflow: hidden;
}

.news-ticker ul li {
    width: 100% !important;
    max-width: 100%;
    height: 30px !important;
    line-height: 30px;
    white-space: nowrap;
    overflow: hidden !important;
    text-overflow: ellipsis;
}

.news-ticker ul li a {
    display: block;
    overflow: hidden;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .03em;
    line-height: 30px;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.news-ticker-btn-cnt {
    display: flex;
    flex: 0 0 auto;
    gap: 6px;
    position: static !important;
    right: auto;
    top: auto;
}

.bnt-news-ticker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    position: relative;
    top: 0;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: #fff !important;
    font-size: 11px;
}

.bnt-news-ticker:hover,
.bnt-news-ticker:focus {
    border-color: var(--nv-yellow);
    background: var(--nv-yellow);
    color: var(--nv-ink) !important;
}

@media (max-width: 767px) {
    .news-ticker-cnt {
        margin: 16px 0 22px;
    }

    .news-ticker-title {
        height: 24px;
        padding: 0 10px;
        font-size: 10px;
    }

    .news-ticker ul li a {
        font-size: 12px;
    }
}

/* ---------- Section panels ---------- */
.section {
    background: var(--nv-panel);
    border: 1px solid rgba(255, 255, 255, .06);
    border-top: 3px solid var(--nv-yellow);
    border-radius: var(--nv-radius-panel);
    padding: 32px 32px 28px;
    margin-bottom: 36px;
    box-shadow: 0 22px 46px rgba(0, 0, 0, .18);
}

.section .section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 16px;
    border-bottom: 0 !important;
    margin-bottom: 24px;
    padding: 0;
}

.section .section-head .title {
    background: transparent !important;
    padding: 0;
    margin: 0;
    font-size: clamp(24px, 3vw, 40px);
    line-height: 1.1;
    text-transform: uppercase;
    position: relative;
    padding-left: 0;
}

.section .section-head .title a {
    color: #fff !important;
}

.section .section-head .title a:hover {
    color: var(--nv-yellow) !important;
}

.section-mid-title {
    border-bottom: 0 !important;
}

.section-mid-title .title {
    background: transparent !important;
    color: #fff !important;
    font-size: clamp(22px, 2.6vw, 34px);
    text-transform: uppercase;
}

.a-view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 16px;
    border: 1px solid rgba(254, 254, 67, .6);
    border-radius: 999px;
    color: var(--nv-yellow) !important;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    white-space: nowrap;
}

.a-view-all:hover {
    background: var(--nv-yellow);
    color: var(--nv-ink) !important;
}

/* Category filter tabs (All / About / News) */
.section .nav-tabs {
    border: 0 !important;
}

.section .nav-tabs > li {
    margin-left: 6px;
}

.section .nav-tabs > li > a,
.section .nav-tabs > li > a:focus,
.section .nav-tabs > li > a:hover,
.section .nav-tabs > li > a:active {
    background: rgba(255, 255, 255, .08) !important;
    color: var(--nv-muted) !important;
    border: 0 !important;
    border-radius: 999px;
    padding: 0 14px !important;
    line-height: 32px !important;
    font-size: 13px;
    font-weight: 600;
}

.section .nav-tabs > li.active > a,
.section .nav-tabs > li.active > a:focus,
.section .nav-tabs > li.active > a:hover {
    background: var(--nv-yellow) !important;
    color: var(--nv-ink) !important;
}

/* ---------- Post cards ---------- */
.post-item .img-container,
.post-item-image .img-container,
.post-item-image img,
.post-item .img-post {
    border-radius: var(--nv-radius-card);
    overflow: hidden;
}

.post-item .caption .title a,
.post-item-small .title a,
.post-item-mid .title a,
.caption .title a,
.post-item-no-image .caption .title a {
    font-family: var(--nv-font-body) !important;
    font-weight: 700;
    font-size: 17px;
    text-transform: none;
    color: #fff !important;
    line-height: 1.35;
}

.post-item .caption .title a:hover,
.post-item-small .title a:hover,
.post-item-mid .title a:hover {
    color: var(--nv-yellow) !important;
}

.post-meta,
.small-post-meta,
.post-meta a,
.small-post-meta a {
    color: var(--nv-muted) !important;
    font-size: 13px;
}

/* ---------- Sidebar ---------- */
.sidebar-widget {
    background: var(--nv-panel);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: var(--nv-radius-panel);
    padding: 24px 22px 20px;
    margin-bottom: 28px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, .18);
}

.sidebar-widget .widget-head {
    background: transparent !important;
    border-bottom: 1px solid rgba(254, 254, 67, .25) !important;
    padding: 0 0 12px;
    margin-bottom: 16px;
}

.sidebar-widget .widget-head .title {
    background: transparent !important;
    color: #fff !important;
    font-size: 18px;
    text-transform: uppercase;
    padding: 0;
}

.sidebar-widget .tag-list li a {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    color: var(--nv-body);
    border-radius: 999px;
}

.sidebar-widget .tag-list li a:hover {
    background: var(--nv-yellow);
    border-color: var(--nv-yellow);
    color: var(--nv-ink);
}

/* ---------- Breadcrumbs and page titles ---------- */
.page-breadcrumb .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0 0 14px;
    font-size: 13px;
}

.page-breadcrumb .breadcrumb > li + li::before {
    color: var(--nv-muted);
}

.page-breadcrumb .breadcrumb a {
    color: var(--nv-muted);
}

.page-breadcrumb .breadcrumb a:hover {
    color: var(--nv-yellow);
}

.page-breadcrumb .breadcrumb .active {
    color: var(--nv-yellow);
}

h1.page-title,
h1.form-title,
h1.title,
h2.title {
    text-transform: uppercase;
}

h1.page-title {
    font-size: clamp(30px, 4vw, 48px);
    margin: 0 0 24px;
    line-height: 1.1;
}

h1.page-title strong {
    font-weight: 400;
    font-family: var(--nv-font-body);
    color: var(--nv-yellow);
    text-transform: none;
}

h1.page-title span {
    font-family: var(--nv-font-head);
}

/* ---------- Article ---------- */
.post-title,
.post-content h1 {
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.12;
    margin: 0 0 18px;
    color: #fff !important;
}

.post-content .post-text,
.post-content .post-summary,
.post-content p,
.post-content li,
.page-content,
.page-content p {
    color: var(--nv-body) !important;
    font-size: 17px;
    line-height: 1.8;
}

.post-content .post-summary {
    font-size: 18px;
    color: #fff !important;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    color: #fff !important;
    margin: 1.4em 0 .6em;
}

.post-content a,
.page-content a {
    color: var(--nv-yellow);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.post-content blockquote,
.page-content blockquote {
    border-left: 4px solid var(--nv-yellow);
    background: rgba(0, 0, 0, .15);
    border-radius: 0 16px 16px 0;
    padding: 16px 22px;
    color: #fff;
    font-style: normal;
}

.post-content img,
.page-content img {
    border-radius: var(--nv-radius-card);
    max-width: 100%;
    height: auto;
}

.post-tags .tag-list li a,
.post-share,
.post-files .file {
    border-radius: 999px;
}

.post-content .post-tags .tag-list li a {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    color: var(--nv-body);
}

.post-content .post-tags .tag-list li a:hover {
    background: var(--nv-yellow);
    color: var(--nv-ink);
    border-color: var(--nv-yellow);
}

/* Comments and reactions on dark surfaces */
#comments,
.comments,
.comment-section,
.leave-reply {
    color: var(--nv-body);
}

.comments .comments-title,
.leave-reply .title {
    color: #fff !important;
    border-bottom: 1px solid rgba(254, 254, 67, .25) !important;
}

.comment-lists li,
.comment-lists .comment-body {
    background: rgba(0, 0, 0, .14);
    border-radius: 16px;
}

.comment-meta,
.comment-date {
    color: var(--nv-muted) !important;
}

/* ---------- Forms ---------- */
.form-control,
.form-input,
.form-textarea,
.auth-form-input,
.newsletter-input,
.search-form .form-input {
    background: rgba(0, 0, 0, .25) !important;
    border: 1px solid rgba(255, 255, 255, .2) !important;
    color: #fff !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}

.form-control,
.form-input,
.auth-form-input {
    height: 48px;
    padding: 0 16px;
}

textarea.form-control,
.form-textarea {
    height: auto;
    padding: 12px 16px;
}

.form-control::placeholder,
.form-input::placeholder {
    color: rgba(255, 255, 255, .55) !important;
    opacity: 1;
}

.form-control:focus,
.form-input:focus,
.auth-form-input:focus,
.form-textarea:focus {
    border-color: var(--nv-yellow) !important;
    box-shadow: 0 0 0 3px rgba(254, 254, 67, .18) !important;
    outline: 0;
}

label,
.form-group label,
.control-label {
    color: #fff;
}

.custom-checkbox .checkbox-icon {
    border: 1px solid rgba(255, 255, 255, .45);
    background: transparent;
    border-radius: 6px;
}

.custom-checkbox input:checked + .checkbox-icon {
    background: var(--nv-yellow);
    border-color: var(--nv-yellow);
    color: var(--nv-ink);
}

.custom-checkbox .checkbox-icon .icon-check,
.custom-checkbox input:checked + .checkbox-icon i {
    color: var(--nv-ink);
}

/* ---------- Buttons ---------- */
.btn-load-more,
.btn-custom,
.btn-main,
.newsletter-button,
.btn-primary,
.btn-md.btn-custom {
    background: var(--nv-yellow) !important;
    border: 1px solid var(--nv-yellow) !important;
    color: var(--nv-ink) !important;
    border-radius: 999px !important;
    font-family: var(--nv-font-body);
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    box-shadow: none;
}

.btn-load-more {
    display: block;
    margin: 28px auto 0;
    height: 48px;
    padding: 0 32px;
    font-size: 13px;
}

.btn-load-more:hover,
.btn-custom:hover,
.btn-main:hover,
.newsletter-button:hover,
.btn-primary:hover,
.btn-md.btn-custom:hover {
    background: #fff !important;
    border-color: #fff !important;
    color: var(--nv-ink) !important;
}

/* Login / register page and modal */
.page-login .login-box,
.login-box {
    background: var(--nv-panel);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--nv-radius-panel);
    padding: 36px 34px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, .25);
    color: var(--nv-body);
}

.login-box .auth-title {
    text-align: center;
    font-size: 34px;
    text-transform: uppercase;
    margin: 0 0 22px;
}

.login-box .form-group {
    margin-bottom: 14px;
}

.login-box .link-forget,
.login-box a {
    color: var(--nv-yellow);
}

.modal-content {
    background: var(--nv-panel);
    color: var(--nv-body);
    border: 1px solid rgba(254, 254, 67, .22);
    border-radius: var(--nv-radius-panel);
    box-shadow: 0 30px 70px rgba(0, 0, 0, .5);
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.modal-header .modal-title,
.modal-content h1,
.modal-content h2,
.modal-content h3,
.modal-content h4,
.modal-content .title {
    color: #fff !important;
}

.modal-content .close {
    color: #fff;
    text-shadow: none;
    opacity: .8;
}

.modal-content .close:hover {
    color: var(--nv-yellow);
    opacity: 1;
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, .1);
}

/* ---------- Gallery, pagination, misc ---------- */
.gallery-category-title,
.tags-title,
.contact-leave-message {
    color: #fff !important;
    text-transform: uppercase;
}

.pagination li a,
.pagination li span {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    color: var(--nv-body);
    border-radius: 999px !important;
    margin: 0 3px;
    min-width: 40px;
    text-align: center;
}

.pagination .active a,
.pagination .active span {
    background: var(--nv-yellow) !important;
    border-color: var(--nv-yellow) !important;
    color: var(--nv-ink) !important;
}

.cookies-warning {
    background: var(--nv-panel) !important;
    color: var(--nv-body) !important;
    border-top: 2px solid var(--nv-yellow);
}

/* ---------- Footer ---------- */
#footer {
    background: var(--nv-footer) !important;
    border-top: 2px solid var(--nv-yellow);
    margin-top: 56px;
    padding-top: 56px;
    color: var(--nv-muted) !important;
}

#footer h4,
#footer .title {
    font-family: var(--nv-font-body) !important;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--nv-yellow) !important;
    margin: 0 0 18px;
}

#footer p {
    color: var(--nv-muted);
}

#footer a {
    color: rgba(255, 255, 255, .88);
}

#footer a:hover {
    color: var(--nv-yellow);
}

#footer .footer-widget ul li a {
    font-size: 15px;
    font-weight: 500;
}

#footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    margin-top: 36px;
    padding: 20px 0 28px;
}

#footer .footer-bottom p,
#footer .nav-footer li a {
    color: var(--nv-muted) !important;
    font-size: 13px;
}

#footer .nav-footer li a:hover {
    color: var(--nv-yellow) !important;
}

#footer .newsletter-input {
    background: rgba(0, 0, 0, .25) !important;
    border: 1px solid rgba(255, 255, 255, .18) !important;
    color: #fff !important;
    border-radius: 999px !important;
    padding-left: 18px;
}

#footer .newsletter-button {
    border-radius: 999px !important;
}

#footer .f-widget-about .footer-logo img {
    background: #fff;
    padding: 10px 16px;
    border-radius: 14px;
    max-height: none;
    height: auto;
    width: auto;
    max-width: 100%;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}

/* Back-to-top button: yellow circle */
.scrollup i {
    width: 46px;
    height: 46px;
    line-height: 46px;
    background-color: var(--nv-yellow) !important;
    color: var(--nv-ink) !important;
    border-radius: 999px !important;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .3);
}

/* ---------- Mobile navigation drawer and header ---------- */
.mobile-nav-container,
.nav-mobile-header {
    background: var(--nv-panel) !important;
    border-bottom: 1px solid rgba(254, 254, 67, .14);
}

.mobile-nav-container .btn-open-mobile-nav,
.mobile-nav-container .search-icon,
.mobile-nav-container i {
    color: #fff !important;
}

.nav-mobile {
    background: var(--nv-panel) !important;
    color: var(--nv-body);
}

.nav-mobile a,
.nav-mobile .nav-link {
    color: #fff !important;
}

.nav-mobile .btn-custom {
    color: var(--nv-ink) !important;
}

/* ---------- Right-to-left (Arabic): Cairo has Arabic glyphs in bold weights ---------- */
html[dir="rtl"] {
    --nv-font-head: "Cairo", "Be Vietnam Pro", Tahoma, sans-serif;
    --nv-font-body: "Cairo", "Be Vietnam Pro", Tahoma, sans-serif;
}

html[dir="rtl"] body,
html[dir="rtl"] .nv-hero-title,
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4 {
    font-family: var(--nv-font-body) !important;
    font-weight: 700;
}

html[dir="rtl"] .nv-hero-title {
    font-family: var(--nv-font-head) !important;
    font-weight: 800;
}

html[dir="rtl"] .nv-hero-title em {
    font-weight: 800;
}

/* ---------- Mobile tweaks ---------- */
@media (max-width: 991px) {
    .section {
        padding: 22px 18px 20px;
        border-radius: 22px;
    }

    .sidebar-widget {
        padding: 20px 16px 16px;
        border-radius: 22px;
    }

    .nv-hero {
        padding-top: 32px;
        padding-bottom: 20px;
    }

    .section-featured #featured {
        margin: 0 12px;
    }

    .post-content .post-text,
    .post-content p,
    .page-content,
    .page-content p {
        font-size: 16px;
    }

    .login-box {
        padding: 26px 20px;
        border-radius: 22px;
    }
}

/* ---------- Contact page: details and social circles ---------- */
.page-contact .row-contact-text,
.page-contact .font-text {
    color: var(--nv-body);
}

.page-contact ul {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.page-contact ul li {
    margin: 0;
}

.page-contact ul li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .35);
    background: rgba(0, 0, 0, .12);
    color: #fff !important;
}

.page-contact ul li a:hover {
    background: var(--nv-yellow);
    border-color: var(--nv-yellow);
    color: var(--nv-ink) !important;
}

.page-contact ul li a i {
    color: inherit !important;
}

.page-contact .icon-envelope,
.page-contact .icon-map-marker,
.page-contact i {
    color: var(--nv-yellow) !important;
}

/* ---------- Refinements from the full-site review ---------- */
.nav-mobile .btn_open_login_modal {
    background: rgba(255, 255, 255, .1) !important;
    border: 1px solid rgba(255, 255, 255, .35) !important;
    color: #fff !important;
}

.post-title,
.post-content h1 {
    font-size: clamp(26px, 4vw, 44px);
}

#footer .footer-widget ul li a .icon-facebook,
#footer .footer-widget ul li a i {
    color: #fff;
}

#footer .footer-widget ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

#footer .footer-widget ul li a[class] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
}

#footer .footer-widget ul li a[class]:hover {
    background: var(--nv-yellow);
    border-color: var(--nv-yellow);
}

#footer .footer-widget ul li a[class]:hover i {
    color: var(--nv-ink);
}

/* ---------- Sidebar "Follow us": outlined pills instead of brand blocks ---------- */
.sidebar-widget ul li a:is(.facebook, .twitter, .instagram, .linkedin, .pinterest, .youtube, .telegram, .vk, .tiktok, .whatsapp) {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06) !important;
    border: 1px solid rgba(255, 255, 255, .16);
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
}

.sidebar-widget ul li a:is(.facebook, .twitter, .instagram, .linkedin, .pinterest, .youtube, .telegram, .vk, .tiktok, .whatsapp):hover {
    background: var(--nv-yellow) !important;
    border-color: var(--nv-yellow);
    color: var(--nv-ink) !important;
}


/* Arabic glyphs read smaller than Latin at the same size, so the nav gets a larger size in RTL */
html[dir="rtl"] .main-menu .navbar-nav > li > a,
html[dir="rtl"] .navbar-default .navbar-nav > li > a {
    font-size: 15px;
    font-weight: 700;
}

/* Login links inside the dark modal */
.modal-content .link-forget,
.modal-content .link-forget:hover {
    color: var(--nv-yellow) !important;
}

/* ---------- Sidebar video embeds (e.g. the YouTube Channel widget) ----------
   The embed code saved in the admin has fixed width="364" height="334" attributes,
   which overflow the 360px sidebar. Fill the widget body at 16:9 instead, and remove
   the paragraph gap that the embed's <p> wrapper leaves underneath. */
.sidebar-widget .widget-body p {
    margin: 0;
    line-height: 0;
}

.sidebar-widget .widget-body iframe {
    display: block;
    width: 100% !important;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    border: 0 !important;
}

/* ---------- Mega menu (category dropdown): subcategory list + post cards ----------
   Structure (nav/_megamenu_multicategory.php): .megamenu-content > li >
   .sub-menu-left (.nav-sub-categories > li.li-sub-category > a) and
   .sub-menu-right > .sub-menu-inner > .row-menu-right > .menu-post-item cards.
   Varient gives the pills a #fafafa background and the cards a fixed image height,
   which made the list unreadable and the cards uneven. */
.megamenu-content {
    background: var(--nv-panel) !important;
    border: 1px solid rgba(254, 254, 67, .2) !important;
    border-top: 3px solid var(--nv-yellow) !important;
    border-radius: 18px !important;
    box-shadow: 0 24px 50px rgba(0, 0, 0, .4);
    overflow: hidden;
}

.megamenu-content .sub-menu-left {
    width: 22% !important;
    padding: 16px 12px !important;
    background: rgba(0, 0, 0, .14) !important;
    border-right: 1px solid rgba(255, 255, 255, .08);
    vertical-align: top;
}

.megamenu-content .sub-menu-right {
    width: 78% !important;
    padding: 22px 24px !important;
    background: transparent !important;
    vertical-align: top;
}

.megamenu-content .nav-sub-categories {
    margin: 0;
    padding: 0;
    list-style: none;
}

.megamenu-content .nav-sub-categories > li {
    display: block;
    width: 100%;
    margin: 0 0 6px;
}

.megamenu-content .nav-sub-categories > li > a {
    display: block !important;
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-bottom-color: rgba(255, 255, 255, .1);
    border-radius: 12px;
    background: rgba(255, 255, 255, .06) !important;
    color: #fff !important;
    font-family: var(--nv-font-body);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
}

.megamenu-content .nav-sub-categories > li > a:hover,
.megamenu-content .nav-sub-categories > li > a:focus,
.megamenu-content .nav-sub-categories > li.active > a {
    background: var(--nv-yellow) !important;
    border-color: var(--nv-yellow);
    color: var(--nv-ink) !important;
}

/* Post cards: equal width columns, one 16:9 image frame, aligned titles */
.megamenu-content .row-menu-right {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0 20px;
    margin: 0 !important;
}

@media (max-width: 1199px) {
    .megamenu-content .row-menu-right {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.megamenu-content .menu-post-item {
    float: none !important;
    display: flex;
    flex-direction: column;
    width: auto !important;
    min-width: 0;
    padding: 0 !important;
}

.megamenu-content .menu-post-item .post-item-image {
    position: relative;
    height: auto !important;
    aspect-ratio: 16 / 9;
    margin-bottom: 12px;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(0, 0, 0, .18);
}

.megamenu-content .menu-post-item .post-item-image > a {
    position: absolute;
    inset: 0;
    display: block;
}

.megamenu-content .menu-post-item .img-container,
.megamenu-content .menu-post-item .img-container img,
.megamenu-content .menu-post-item .post-item-image img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    object-fit: cover;
}

.megamenu-content .menu-post-item .img-bg {
    display: none;
}

.megamenu-content .menu-post-item .title {
    margin: 0 0 6px;
    font-size: 14px;
    line-height: 1.35;
    text-transform: none;
}

.megamenu-content .menu-post-item .title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
    font-family: var(--nv-font-body) !important;
    font-size: 14px;
    font-weight: 700;
    color: #fff !important;
    text-transform: none;
}

.megamenu-content .menu-post-item .title a:hover {
    color: var(--nv-yellow) !important;
}

.megamenu-content .menu-post-item .post-meta {
    margin: auto 0 0;
    color: var(--nv-muted) !important;
    font-size: 12px;
}

/* ---------- Previous / next article: two cards ----------
   Markup (post/_post_next_prev.php): .post-next-prev > .row > .left / .right,
   each holding a <p><a><span>label</span></a></p> and an <h3 class="title">.
   Varient lays it out as table cells with a divider, which looked cramped. */
.post-next-prev {
    display: block;
    margin: 40px 0 36px;
    padding: 0;
    border: 0;
}

.post-next-prev > .row {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    margin: 0;
}

.post-next-prev .left,
.post-next-prev .right {
    flex: 1 1 0;
    min-width: 0;
    float: none;
    width: auto;
    min-height: 0;
    padding: 22px 24px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 22px;
    background: var(--nv-panel);
    box-shadow: 0 16px 34px rgba(0, 0, 0, .18);
    transition: border-color .2s ease, transform .2s ease;
}

.post-next-prev .left {
    border-right: 1px solid rgba(255, 255, 255, .08);
    text-align: start;
}

.post-next-prev .right {
    text-align: end;
}

/* A missing neighbour (first or last article) leaves no empty card behind */
.post-next-prev .left:not(:has(a)),
.post-next-prev .right:not(:has(a)) {
    display: none;
}

.post-next-prev .left:hover,
.post-next-prev .right:hover {
    border-color: rgba(254, 254, 67, .55);
    transform: translateY(-2px);
}

.post-next-prev p {
    margin: 0 0 10px;
}

.post-next-prev p span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--nv-yellow);
}

.post-next-prev p span i {
    margin: 0;
    font-size: 12px;
}

.post-next-prev .title {
    margin: 0;
    font-family: var(--nv-font-body) !important;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    text-transform: none;
}

.post-next-prev .title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #fff !important;
}

.post-next-prev .title a:hover {
    color: var(--nv-yellow) !important;
}

html[dir="rtl"] .post-next-prev .left p span i,
html[dir="rtl"] .post-next-prev .right p span i {
    transform: scaleX(-1);
}

@media (max-width: 767px) {
    .post-next-prev > .row {
        flex-direction: column;
    }

    .post-next-prev .left,
    .post-next-prev .right {
        text-align: start;
        border-right: 1px solid rgba(255, 255, 255, .08);
    }
}
