/* ================================================================
   vr-modern.css — Classic Theme — Modern Redesign
   أضف هذا الملف في partials/_css_js_header.php
   <link href="<?= base_url('assets/themes/classic/css/vr-modern.css'); ?>" rel="stylesheet"/>
   ================================================================ */

/* ----------------------------------------------------------------
   0. CSS Variables & Base
   ---------------------------------------------------------------- */
:root {
    --vr-radius:        10px;
    --vr-radius-sm:     6px;
    --vr-shadow:        0 2px 12px rgba(0,0,0,.08);
    --vr-shadow-hover:  0 6px 24px rgba(0,0,0,.13);
    --vr-transition:    all .22s ease;
    --vr-border:        1px solid rgba(0,0,0,.08);
    --vr-prayer-bg:     #0a1628;
    --vr-prayer-accent: #c9a84c;
    --vr-prayer-next:   rgba(201,168,76,.15);
    --vr-weather-sky:   #1a6ba0;
}
.dark-mode {
    --vr-border:        1px solid rgba(255,255,255,.08);
    --vr-shadow:        0 2px 12px rgba(0,0,0,.3);
    --vr-shadow-hover:  0 6px 24px rgba(0,0,0,.45);
    --vr-prayer-bg:     #0d1e38;
    --vr-weather-sky:   #143d5e;
}

/* ----------------------------------------------------------------
   1. General Section Improvements
   ---------------------------------------------------------------- */
.vr-index-wrapper {
    padding-top: 16px;
}

/* Section head — colored left border accent */
.section .section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    padding-bottom: 4px;
}

/* Post item cards — add subtle hover lift */
.post-item,
.post-item-mid {
    border-radius: var(--vr-radius-sm);
    transition: var(--vr-transition);
    overflow: hidden;
}
.post-item:hover,
.post-item-mid:hover {
    box-shadow: var(--vr-shadow-hover);
    transform: translateY(-2px);
}

/* Fix title line-clamp (show full titles up to 3 lines) */
.post-item .title a,
.post-item-mid .title a,
.post-item-small .title a,
.post-item-horizontal .title a,
.f-random-list li .title a {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    white-space: normal !important;
    text-overflow: unset !important;
}
.post-item-horizontal .title a {
    -webkit-line-clamp: 4;
    font-size: 20px;
    line-height: 30px;
}
.featured-slider .featured-slider-item .caption .title {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal !important;
}

/* Load more button */
.vr-btn-load-more {
    border-radius: 50px !important;
    padding: 10px 32px !important;
    font-size: 13px !important;
    letter-spacing: .3px;
    transition: var(--vr-transition) !important;
}
.vr-btn-load-more:hover {
    transform: translateY(-1px);
    box-shadow: var(--vr-shadow);
}

/* Category label pill */
.category-label {
    border-radius: 50px !important;
    padding: 3px 10px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: .3px;
}

/* Breaking news ticker */
.vr-ticker-cnt .news-ticker-title {
    border-radius: 0 var(--vr-radius-sm) var(--vr-radius-sm) 0;
    font-size: 12px;
    letter-spacing: .3px;
}
.rtl-mode .vr-ticker-cnt .news-ticker-title {
    border-radius: var(--vr-radius-sm) 0 0 var(--vr-radius-sm);
}

/* Sidebar sticky */
@media (min-width: 992px) {
    .vr-sidebar-col {
        position: -webkit-sticky;
        position: sticky;
        top: 12px;
        align-self: flex-start;
    }
}

/* ----------------------------------------------------------------
   2. Spinner (shared)
   ---------------------------------------------------------------- */
.vr-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(0,0,0,.1);
    border-top-color: var(--vr-theme-color, #c9a84c);
    border-radius: 50%;
    animation: vr-spin .7s linear infinite;
    margin: 20px auto;
}
.dark-mode .vr-spinner {
    border-color: rgba(255,255,255,.1);
    border-top-color: var(--vr-prayer-accent);
}
@keyframes vr-spin { to { transform: rotate(360deg); } }

.vr-weather-loading,
.vr-prayer-loading {
    text-align: center;
    padding: 8px 0 16px;
}

/* ----------------------------------------------------------------
   3. Weather Widget
   ---------------------------------------------------------------- */
.vr-widget-weather .widget-head {
    background: linear-gradient(135deg, #1565c0 0%, #1a6ba0 100%);
}
.dark-mode .vr-widget-weather .widget-head {
    background: linear-gradient(135deg, #0d3060 0%, #143d5e 100%);
}

.vr-weather-body {
    padding: 0 !important;
    overflow: hidden;
    border-radius: 0 0 var(--vr-radius-sm) var(--vr-radius-sm);
}

/* Main weather card */
.vr-weather-main {
    background: linear-gradient(160deg, #1a6ba0 0%, #0d3b6e 100%);
    color: #fff;
    padding: 18px 16px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.dark-mode .vr-weather-main {
    background: linear-gradient(160deg, #143d5e 0%, #091f3a 100%);
}

.vr-weather-icon {
    font-size: 48px;
    line-height: 1;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.2));
    flex-shrink: 0;
}

.vr-weather-info {
    flex: 1;
    text-align: right;
}
.rtl-mode .vr-weather-info {
    text-align: left;
}

.vr-weather-temp {
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -1px;
}
.vr-weather-temp sup {
    font-size: 18px;
    font-weight: 400;
    vertical-align: top;
    margin-top: 6px;
    display: inline-block;
}
.vr-weather-desc {
    font-size: 13px;
    opacity: .85;
    margin-top: 3px;
}
.vr-weather-city {
    font-size: 12px;
    opacity: .65;
    margin-top: 2px;
}

/* Weather details row */
.vr-weather-details {
    display: flex;
    background: rgba(0,0,0,.25);
    padding: 9px 14px;
    gap: 0;
}
.vr-weather-detail {
    flex: 1;
    text-align: center;
    color: rgba(255,255,255,.85);
    font-size: 11px;
    line-height: 1.5;
}
.vr-weather-detail:not(:last-child) {
    border-right: 1px solid rgba(255,255,255,.12);
}
.rtl-mode .vr-weather-detail:not(:last-child) {
    border-right: none;
    border-left: 1px solid rgba(255,255,255,.12);
}
.vr-weather-detail strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

/* Forecast strip */
.vr-weather-forecast {
    display: flex;
    background: #fff;
    border-top: 1px solid rgba(0,0,0,.06);
    padding: 8px 6px;
    gap: 0;
}
.dark-mode .vr-weather-forecast {
    background: #1a2535;
    border-top-color: rgba(255,255,255,.06);
}
.vr-forecast-day {
    flex: 1;
    text-align: center;
    padding: 6px 4px;
    border-radius: var(--vr-radius-sm);
    font-size: 11px;
    color: #555;
    transition: var(--vr-transition);
}
.dark-mode .vr-forecast-day {
    color: #aaa;
}
.vr-forecast-day:hover {
    background: rgba(0,0,0,.04);
}
.dark-mode .vr-forecast-day:hover {
    background: rgba(255,255,255,.06);
}
.vr-forecast-day .vr-fd-name {
    font-weight: 600;
    font-size: 10px;
    color: #888;
    margin-bottom: 2px;
}
.dark-mode .vr-forecast-day .vr-fd-name {
    color: #666;
}
.vr-forecast-day .vr-fd-icon {
    font-size: 22px;
    line-height: 1.2;
}
.vr-forecast-day .vr-fd-temp {
    font-size: 12px;
    font-weight: 600;
    color: #333;
}
.dark-mode .vr-forecast-day .vr-fd-temp {
    color: #ccc;
}
.vr-forecast-day .vr-fd-low {
    font-size: 10px;
    color: #999;
}

/* Update time */
.vr-weather-updated {
    background: #f8f8f8;
    text-align: center;
    font-size: 10px;
    color: #aaa;
    padding: 5px 0;
    border-top: 1px solid rgba(0,0,0,.05);
}
.dark-mode .vr-weather-updated {
    background: #141e2e;
    border-top-color: rgba(255,255,255,.05);
    color: #555;
}

/* ----------------------------------------------------------------
   4. Prayer Times Widget
   ---------------------------------------------------------------- */
.vr-widget-prayer .widget-head {
    background: var(--vr-prayer-bg);
}

.vr-prayer-body {
    background: var(--vr-prayer-bg) !important;
    padding: 0 !important;
    border-radius: 0 0 var(--vr-radius-sm) var(--vr-radius-sm);
    overflow: hidden;
}

/* Date bar */
.vr-prayer-date-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px 8px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.vr-prayer-date-hijri {
    font-size: 12px;
    color: var(--vr-prayer-accent);
    font-weight: 600;
}
.vr-prayer-date-miladi {
    font-size: 11px;
    color: rgba(255,255,255,.45);
}

/* Prayer rows */
.vr-prayer-list {
    list-style: none;
    margin: 0;
    padding: 4px 0 8px;
}
.vr-prayer-item {
    display: flex;
    align-items: center;
    padding: 9px 14px;
    transition: background .15s ease;
    position: relative;
}
.vr-prayer-item:hover {
    background: rgba(255,255,255,.04);
}
.vr-prayer-item.vr-prayer-next {
    background: var(--vr-prayer-next);
    border-right: 3px solid var(--vr-prayer-accent);
}
.rtl-mode .vr-prayer-item.vr-prayer-next {
    border-right: none;
    border-left: 3px solid var(--vr-prayer-accent);
}

.vr-prayer-icon {
    font-size: 16px;
    width: 26px;
    flex-shrink: 0;
    opacity: .65;
}
.vr-prayer-name {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: #e8e8e8;
    margin: 0 8px;
}
.vr-prayer-item.vr-prayer-next .vr-prayer-name {
    color: #fff;
}
.vr-prayer-time {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,.75);
    font-variant-numeric: tabular-nums;
    letter-spacing: .5px;
    direction: ltr;
}
.vr-prayer-item.vr-prayer-next .vr-prayer-time {
    color: var(--vr-prayer-accent);
}
.vr-prayer-next-badge {
    font-size: 9px;
    background: var(--vr-prayer-accent);
    color: #1a1200;
    border-radius: 50px;
    padding: 1px 6px;
    font-weight: 700;
    margin-right: 6px; /* LTR */
    white-space: nowrap;
    letter-spacing: .3px;
}
.rtl-mode .vr-prayer-next-badge {
    margin-right: 0;
    margin-left: 6px;
}

/* Countdown */
.vr-prayer-countdown {
    text-align: center;
    padding: 8px 14px 12px;
    border-top: 1px solid rgba(255,255,255,.07);
}
.vr-prayer-countdown-label {
    font-size: 10px;
    color: rgba(255,255,255,.35);
    margin-bottom: 3px;
}
.vr-prayer-countdown-time {
    font-size: 22px;
    font-weight: 700;
    color: var(--vr-prayer-accent);
    letter-spacing: 1px;
    font-variant-numeric: tabular-nums;
    direction: ltr;
}

/* Source note */
.vr-prayer-source {
    text-align: center;
    font-size: 9px;
    color: rgba(255,255,255,.2);
    padding: 5px 0 8px;
    border-top: 1px solid rgba(255,255,255,.04);
}

/* ----------------------------------------------------------------
   5. Modern Section Heads (colored accent line)
   ---------------------------------------------------------------- */
.section.vr-latest-section .section-head .title {
    border-radius: var(--vr-radius-sm) var(--vr-radius-sm) 0 0;
}

/* ----------------------------------------------------------------
   6. Responsive Tweaks
   ---------------------------------------------------------------- */
@media (max-width: 767px) {
    .vr-weather-temp { font-size: 36px; }
    .vr-weather-icon { font-size: 38px; }
    .vr-prayer-countdown-time { font-size: 18px; }
}

/* ================================================================
   VR-TOPBAR — شريط التاريخ والوقت العلوي
   ================================================================ */

/* Override the dark top-bar background */
.vr-top-bar {
    background: #1a1a1a !important;
    border-bottom: 1px solid rgba(255,255,255,.06);
    padding: 5px 0 !important;
}
.dark-mode .vr-top-bar {
    background: #0d0d0d !important;
}

.vr-topbar-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    float: none !important;
}

/* Right side: date + time */
.vr-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Left side: auth + dark mode */
.vr-topbar-left {
    display: flex !important;
    align-items: center !important;
    float: none !important;
    gap: 4px;
    flex-shrink: 0;
}

.vr-topbar-datetime {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #bbb;
    direction: rtl;
}

.vr-topbar-date,
.vr-topbar-time {
    display: flex;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
    color: #ccc;
}

.vr-topbar-sep {
    color: #444;
    font-size: 11px;
}

.vr-topbar-links {
    display: flex !important;
    align-items: center !important;
    float: none !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}
.vr-topbar-links li {
    margin-right: 0 !important;
    border-right: 1px solid #333;
    padding: 0 10px;
}
.vr-topbar-links li:first-child { border-right: none; }
.vr-topbar-links li a {
    font-size: 11.5px !important;
    color: #bbb !important;
    line-height: 1 !important;
    height: auto !important;
    padding: 0 !important;
}
.vr-topbar-links li a:hover { color: var(--vr-theme-color, #e00) !important; }

/* ================================================================
   VR-LOGO-BANNER — منطقة الهيدر (لوجو + محررين + إعلان)
   ================================================================ */

.vr-logo-banner {
    background: #fff;
    padding: 14px 0 !important;
    border-bottom: 3px solid var(--vr-theme-color, #cc0000);
}
.dark-mode .vr-logo-banner {
    background: #121212;
    border-bottom-color: var(--vr-theme-color, #cc0000);
}

.vr-logobanner-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    float: none !important;
    gap: 0;
}

/* اللوجو + المحررين جنب بعض على اليمين */
.vr-logo-wrap {
    float: none !important;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 14px;
}
.vr-logo-wrap .logo {
    max-height: 70px !important;
    width: auto !important;
    object-fit: contain;
    flex-shrink: 0;
}

/* الإعلان على اليسار بمقاس ثابت */
.vr-ad-wrap {
    float: none !important;
    flex-shrink: 0;
    width: 650px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
}
.vr-ad-wrap .pull-right {
    float: none !important;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.vr-ad-wrap img,
.vr-ad-wrap iframe,
.vr-ad-wrap .bn-header {
    width: 650px !important;
    height: 80px !important;
    max-width: 650px !important;
    max-height: 80px !important;
    object-fit: contain;
    display: block;
}

/* ---- كارت المحررين — جنب اللوجو مباشرة ---- */
.vr-editors-block {
    display: flex;
    align-items: center;
    gap: 0;
    background: #f7f7f7;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    direction: rtl;
}
.dark-mode .vr-editors-block {
    background: #1e1e1e;
    border-color: #2e2e2e;
}

.vr-editor-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 7px 16px;
    gap: 3px;
    min-width: 130px;
}

.vr-editors-divider {
    width: 1px;
    height: 40px;
    background: #ddd;
    flex-shrink: 0;
}
.dark-mode .vr-editors-divider {
    background: #333;
}

.vr-editor-role {
    font-size: 11px;
    color: var(--vr-theme-color, #cc0000);
    font-weight: 700;
    letter-spacing: .2px;
    white-space: nowrap;
}

.vr-editor-name {
    font-size: 13px;
    color: #222;
    font-weight: 600;
    white-space: nowrap;
}
.dark-mode .vr-editor-name {
    color: #e0e0e0;
}

/* ---- Responsive ---- */
@media (max-width: 992px) {
    .vr-logobanner-row {
        flex-wrap: wrap !important;
        gap: 10px;
        justify-content: center !important;
    }
    .vr-logo-wrap {
        justify-content: center;
    }
    .vr-ad-wrap {
        width: 100%;
        height: auto;
        justify-content: center;
    }
    .vr-ad-wrap img,
    .vr-ad-wrap iframe,
    .vr-ad-wrap .bn-header {
        width: 100% !important;
        height: auto !important;
        max-width: 650px !important;
    }
}
@media (max-width: 768px) {
    .vr-logobanner-row {
        flex-direction: column !important;
    }
    .vr-logo-wrap {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    .vr-editors-block {
        width: 100%;
        justify-content: center;
    }
    .vr-editor-item {
        flex: 1;
        min-width: 0;
        padding: 7px 10px;
    }
    .vr-topbar-datetime {
        font-size: 11px;
    }
}

/* ================================================================
   VR-NAVBAR — تحويل القائمة الرئيسية لخلفية داكنة (أسود / ثيم)
   ================================================================ */

/* ---- Main Menu Background ---- */
.main-menu,
.navbar-default,
.megamenu.navbar-default {
    background-color: #1e1e1e !important;
    border-top: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.35) !important;
}

/* ---- Nav Links ---- */
.navbar-default .navbar-nav > li > a {
    color: #e8e8e8 !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    line-height: 48px !important;
    padding: 0 15px !important;
    text-transform: none !important;
    transition: color .15s, background .15s !important;
    letter-spacing: .2px;
}

.navbar-default .navbar-nav > li > a:hover {
    color: #fff !important;
    background-color: var(--vr-theme-color, #cc0000) !important;
}

/* Active link */
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:focus,
.navbar-default .navbar-nav > .active > a:hover {
    background-color: var(--vr-theme-color, #cc0000) !important;
    color: #fff !important;
}

/* Active underline — keep but make it white on colored bg */
.navbar-default .navbar-nav > .active > a::after,
.navbar-default .navbar-nav > li > a:hover:after {
    background-color: #fff !important;
    height: 2px !important;
}

/* Open dropdown */
.navbar-default .navbar-nav > .open > a,
.navbar-default .navbar-nav > .open > a:focus,
.navbar-default .navbar-nav > .open > a:hover {
    background-color: var(--vr-theme-color, #cc0000) !important;
    color: #fff !important;
}

/* ---- Search Form inside nav ---- */
.main-menu .search-form {
    background-color: #2a2a2a !important;
    border-top: 3px solid var(--vr-theme-color, #cc0000) !important;
}
.main-menu .search-form .form-input {
    background: #333 !important;
    border-color: #444 !important;
    color: #eee !important;
}
.main-menu .search-form .form-input::placeholder { color: #888 !important; }
.main-menu .search-form button {
    background-color: var(--vr-theme-color, #cc0000) !important;
}

/* ---- Mega Dropdown Panel ---- */
.megamenu .dropdown.megamenu-fw .dropdown-menu {
    background-color: #252525 !important;
    border-top: 3px solid var(--vr-theme-color, #cc0000) !important;
    top: 48px !important;
}

.navbar-default .sub-menu-left {
    background-color: #1e1e1e !important;
}
.navbar-default .sub-menu-left .nav-sub-categories li a {
    background: #1e1e1e !important;
    border-bottom: 1px solid #2a2a2a !important;
    color: #ccc !important;
}
.navbar-default .sub-menu-left .nav-sub-categories li a:hover,
.navbar-default .sub-menu-left .nav-sub-categories .active a {
    background-color: #2a2a2a !important;
    color: #fff !important;
}
.navbar-default .sub-menu-right {
    background-color: #252525 !important;
}
.navbar-default .menu-post-item .title a {
    color: #ddd !important;
}
.navbar-default .menu-post-item .title a:hover {
    color: var(--vr-theme-color, #cc0000) !important;
}

/* ---- Dropdown More ---- */
.dropdown-more,
.dropdown-top {
    background-color: #252525 !important;
    border-top: 3px solid var(--vr-theme-color, #cc0000) !important;
}
.dropdown-more > li > a,
.dropdown-top > li > a {
    color: #ddd !important;
    border-bottom: 1px solid #333 !important;
}
.dropdown-more > li > a:hover,
.dropdown-top > li > a:hover {
    background-color: #333 !important;
    color: #fff !important;
}
.dark-mode .dropdown-more > li,
.dark-mode .dropdown-more > li > ul > li {
    border-bottom: 1px solid #2a2a2a !important;
}

/* ---- RTL navbar fixes ---- */
.rtl-mode .vr-topbar-row { flex-direction: row-reverse; }
.rtl-mode .vr-topbar-right { flex-direction: row-reverse; }
.rtl-mode .vr-logobanner-row { flex-direction: row-reverse; }
.rtl-mode .vr-topbar-datetime { flex-direction: row-reverse; }
.rtl-mode .vr-topbar-date,
.rtl-mode .vr-topbar-time { flex-direction: row-reverse; }

/* ---- Logo Banner: override original float layout ---- */
.logo-banner.vr-logo-banner .left,
.logo-banner.vr-logo-banner .right {
    float: none !important;
    height: auto !important;
    line-height: normal !important;
}

/* ================================================================
   VR-DARK MODE OVERRIDES — القائمة في الوضع الليلي
   ================================================================ */

.dark-mode .main-menu,
.dark-mode .navbar-default {
    background-color: #111 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.6) !important;
}

.dark-mode .navbar-default .navbar-nav > li > a {
    color: #ddd !important;
}
.dark-mode .navbar-default .navbar-nav > li > a:hover {
    background-color: var(--vr-theme-color, #cc0000) !important;
    color: #fff !important;
}
.dark-mode .navbar-default .navbar-nav > .active > a,
.dark-mode .navbar-default .navbar-nav > .active > a:focus,
.dark-mode .navbar-default .navbar-nav > .active > a:hover {
    background-color: var(--vr-theme-color, #cc0000) !important;
    color: #fff !important;
}

.dark-mode .megamenu .dropdown.megamenu-fw .dropdown-menu {
    background-color: #161616 !important;
}
.dark-mode .navbar-default .sub-menu-left {
    background-color: #111 !important;
}
.dark-mode .navbar-default .sub-menu-left .nav-sub-categories li a {
    background: #111 !important;
    border-bottom: 1px solid #1c1c1c !important;
}
.dark-mode .navbar-default .sub-menu-right {
    background-color: #161616 !important;
}
.dark-mode .dropdown-more,
.dark-mode .dropdown-top {
    background-color: #161616 !important;
}

/* ================================================================
   VR-SECTIONS & CONTENT — ألوان عناوين الأقسام والمحتوى
   ================================================================ */

/* Section head title pill */
.section .section-head .title,
.section .section-head .title a {
    color: #fff !important;
    background-color: var(--vr-theme-color, #cc0000) !important;
    padding: 4px 14px !important;
    border-radius: var(--vr-radius-sm, 6px) var(--vr-radius-sm, 6px) 0 0 !important;
    display: inline-block !important;
}
.section .section-head .title a:hover {
    opacity: .9;
}

/* Section head border */
.section .section-head {
    border-bottom: 2px solid var(--vr-block-color, var(--vr-theme-color, #cc0000)) !important;
    margin-bottom: 14px !important;
}

/* Sidebar widget head */
.sidebar-widget .widget-head {
    border-bottom: 2px solid var(--vr-block-color, var(--vr-theme-color, #cc0000)) !important;
    background: transparent !important;
    padding: 0 0 8px 0 !important;
}
.sidebar-widget .widget-head .title {
    color: var(--vr-theme-color, #cc0000) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    display: block !important;
    position: relative;
}
.sidebar-widget .widget-head .title::before {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--vr-theme-color, #cc0000);
}

/* Section mid title */
.section-mid-title .title,
.section-mid-title .title a {
    color: var(--vr-theme-color, #cc0000) !important;
}
.section-mid-title {
    border-bottom: 2px solid var(--vr-block-color, var(--vr-theme-color, #cc0000)) !important;
}

/* Dark mode sections */
.dark-mode .section .section-head .title,
.dark-mode .section .section-head .title a {
    color: #fff !important;
}
.dark-mode .sidebar-widget .widget-head .title {
    color: var(--vr-theme-color, #cc0000) !important;
}

/* ================================================================
   VR-BREAKING NEWS TICKER — شريط الأخبار العاجلة
   ================================================================ */

.news-ticker-title {
    background-color: var(--vr-theme-color, #cc0000) !important;
    color: #fff !important;
    border-bottom: none !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    padding: 0 14px !important;
    border-radius: 0 !important;
}

.vr-ticker-cnt {
    background: #fff;
    border-bottom: 1px solid #eee;
}
.dark-mode .vr-ticker-cnt {
    background: #161616;
    border-bottom: 1px solid #222;
}

/* ================================================================
   VR-FOOTER — الفوتر
   ================================================================ */

#footer {
    background: #1a1a1a !important;
    color: #ccc !important;
    border-top: 3px solid var(--vr-theme-color, #cc0000) !important;
}
.dark-mode #footer {
    background: #0e0e0e !important;
    border-top-color: var(--vr-theme-color, #cc0000) !important;
}

#footer .title {
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    border-bottom: 1px solid #333 !important;
    padding-bottom: 8px !important;
    margin-bottom: 12px !important;
}
#footer .title-line {
    display: none !important;
}

#footer p,
#footer li,
#footer .f-random-list li .title a {
    color: #bbb !important;
    font-size: 12.5px !important;
}
#footer .f-random-list li .title a:hover,
#footer .nav-footer li a:hover {
    color: var(--vr-theme-color, #cc0000) !important;
}

#footer .footer-bottom {
    background: #111 !important;
    border-top: 1px solid #2a2a2a !important;
    padding: 12px 0 !important;
    margin-top: 16px !important;
}
.dark-mode #footer .footer-bottom {
    background: #080808 !important;
}

#footer .footer-bottom p,
#footer .footer-bottom .nav-footer li a {
    color: #666 !important;
    font-size: 12px !important;
}
#footer .footer-bottom .nav-footer li a:hover {
    color: #999 !important;
}

.f-widget-follow ul li a {
    color: #ccc !important;
}
.f-widget-follow ul li a:hover {
    color: var(--vr-theme-color, #cc0000) !important;
}

/* ================================================================
   VR-MOBILE NAV — القائمة على الموبايل
   ================================================================ */

.nav-mobile-header {
    background-color: #1e1e1e !important;
    border-bottom: 2px solid var(--vr-theme-color, #cc0000) !important;
}
.dark-mode .nav-mobile-header {
    background-color: #111 !important;
}

.nav-mobile-header-container .menu-icon a {
    color: #ddd !important;
}
.nav-mobile-header-container .mobile-search .search-icon {
    color: #ddd !important;
}

.nav-mobile {
    background-color: #1e1e1e !important;
}
.dark-mode .nav-mobile {
    background-color: #111 !important;
}

.nav-mobile .navbar-nav .nav-item .nav-link {
    color: #ddd !important;
    border-bottom: 1px solid #2a2a2a !important;
}
.nav-mobile .navbar-nav .nav-item .nav-link:hover {
    color: var(--vr-theme-color, #cc0000) !important;
}
.nav-mobile .navbar-nav .nav-item .nav-link i {
    color: #888 !important;
}
.dark-mode .nav-mobile .navbar-nav .nav-item .nav-link {
    color: #ccc !important;
    border-bottom: 1px solid #1c1c1c !important;
}

.nav-mobile .nav-mobile-footer {
    background: #111 !important;
    border-top: 1px solid #2a2a2a !important;
}
.dark-mode .nav-mobile .nav-mobile-footer {
    background: #0a0a0a !important;
}

/* Scroll to top button */
.scrollup {
    background-color: var(--vr-theme-color, #cc0000) !important;
    color: #fff !important;
    border-radius: 4px !important;
}
.scrollup:hover {
    background-color: #a00 !important;
    color: #fff !important;
}
