/*
Theme Name: Almajalla24
Version: 2.3
Description: قالب إخباري احترافي متجاوب
*/

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&display=swap');

:root {
    --primary-color: #c0392b;
    --header-bg: #0b1526;
    --navbar-bg: #ffffff;
}

* {
    box-sizing: border-box;
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

body {
    direction: rtl !important;
    text-align: right !important;
    background-color: #f8fafc;
    margin: 0;
    padding: 0;
    color: #1e293b;
}

/* الحاوية الأساسية */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* شريط الأخبار العاجلة */
.breaking-news-wrapper {
    background: #0b1526;
    color: #ffffff;
    padding: 6px 0;
    font-size: 13px;
    border-bottom: 2px solid var(--primary-color);
}

.ticker-marquee {
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}

.ticker-content {
    display: inline-block;
    white-space: nowrap;
    padding-right: 100%; /* يبدأ النص خارج الشاشة من جهة اليمين */
    animation: tickerRTL 40s linear infinite;
}

.ticker-marquee:hover .ticker-content {
    animation-play-state: paused;
}

/* حركة انسيابية تبدأ من أقصى اليمين نحو اليسار */
@keyframes tickerRTL {
    0% {
        transform: translate3d(-100%);
    }
    100% {
        transform: translate3d(100%, 0, 0);
    }
}
.hover-danger {
    transition: color 0.2s ease;
}

.hover-danger:hover {
    color: var(--primary-color) !important;
}

/* 2. ترويسة الموقع والشعار */
header.theme-header {
    background-color: var(--header-bg);
    padding: 15px 0;
    color: #ffffff;
}

header.theme-header h1 {
    margin: 0;
    font-size: 24px;
}

body.dark-mode .logo-light-mode {
    display: none !important;
}

body.dark-mode .logo-dark-mode {
    display: inline-block !important;
}

/* 3. شريط القائمة الرئيسي والقوائم المنسدلة */
nav.main-nav-bar {
    background-color: var(--navbar-bg);
    border-bottom: 2px solid #e2e8f0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.04);
}

.navbar-nav, ul.menu {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.navbar-nav li, ul.menu li {
    position: relative;
    list-style: none !important;
}

.navbar-nav a, ul.menu a {
    color: #1e293b !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 14px;
    padding: 8px 12px;
    display: inline-block;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.navbar-nav a:hover, ul.menu a:hover {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
}

/* القوائم الفرعية المنسدلة */
.navbar-nav ul.sub-menu, ul.menu ul.sub-menu {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-top: 3px solid var(--primary-color) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    min-width: 190px !important;
    padding: 6px 0 !important;
    margin: 0 !important;
    list-style: none !important;
    z-index: 9999 !important;
}

.navbar-nav li:hover > ul.sub-menu, ul.menu li:hover > ul.sub-menu {
    display: block !important;
}

.navbar-nav ul.sub-menu li a, ul.menu ul.sub-menu li a {
    display: block !important;
    padding: 8px 15px !important;
    color: #334155 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border-radius: 0 !important;
}

.navbar-nav ul.sub-menu li a:hover, ul.menu ul.sub-menu li a:hover {
    background-color: #f1f5f9 !important;
    color: var(--primary-color) !important;
}

/* تجاوب القائمة على الهواتف */
@media (max-width: 991px) {
    .navbar-nav {
        flex-direction: column !important;
        gap: 4px;
        padding-top: 10px !important;
    }
    .navbar-nav ul.sub-menu {
        position: static !important;
        box-shadow: none !important;
        border: none !important;
        padding-right: 15px !important;
    }
}

/* 4. السلايدر الرئيسي */
.featured-post-card {
    height: 380px !important;
    position: relative;
    background-color: #000000;
    border-radius: 8px;
    overflow: hidden;
}

.featured-img {
    height: 380px !important;
    width: 100% !important;
    object-fit: cover !important;
}

.featured-overlay {
    background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 60%, transparent 100%) !important;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    color: #ffffff;
}

.featured-overlay h2 a {
    color: #ffffff !important;
    text-decoration: none;
}

/* 5. الشريط الجانبي والبطاقات */
.side-box {
    background: #ffffff;
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
}

.hover-zoom {
    transition: transform 0.3s ease;
}

.hover-zoom:hover {
    transform: scale(1.05);
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.section-title-border {
    position: relative;
}

.section-title-border::after {
    content: '';
    position: absolute;
    bottom: -9px;
    right: 0;
    width: 45px;
    height: 3px;
    background-color: var(--primary-color);
}

/* 6. الفوتر وأزرار السوشيال ميديا */
footer.theme-footer {
    background-color: var(--header-bg);
}

.social-circle-btn {
    width: 34px;
    height: 34px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    text-decoration: none;
}

.social-circle-btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

.footer-links a {
    transition: color 0.2s ease, padding-right 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff !important;
    padding-right: 6px;
}
/* تثبيت الهيدر والقائمة والعاجل في أعلى الصفحة */
.sticky-header-wrapper {
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}
/* إخفاء ترقيم الصفحات */
.pagination, ul.page-numbers, nav.pagination, .navigation.pagination {
    display: none !important;
}