/* ==========================================================================
   نظام التصميم الفاخر (Premium Design System) - مجلة المنبر اليمني
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@300;400;500;600;700;800;900&family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&display=swap');

:root {
    /* لوحة الألوان المخصصة الفاخرة - مستوحاة من التصاميم السعودية الراقية */
    --primary-color: #7a0913;      /* أحمر عنابي داكن ملكي فاخر */
    --primary-dark: #3a0004;       /* أحمر غامق جداً مائل للسواد */
    --primary-light: #ab1d29;      /* أحمر قرمزي مشرق */
    --topbar-bg: linear-gradient(135deg, #4d0208 0%, #0d0001 100%); /* تدرج أحمر داكن للغاية مع أسود فاخر */
    --accent-color: #c5a880;       /* ذهبي دافئ معدني أنيق */
    --accent-hover: #b1936c;       /* ذهبي معدني داكن للتحويم */
    --accent-glow: rgba(197, 168, 128, 0.25);
    
    /* ألوان الخلفية والنصوص */
    --bg-cream: #fbfaf9;           /* خلفية كريمية دافئة ومريحة جداً للعين */
    --bg-white: #ffffff;           /* خلفية البطاقات والألواح */
    --text-dark: #211213;          /* نص رئيسي داكن مع دفء عنابي خفيف */
    --text-muted: #735b5d;         /* نص رمادي عنابي ناعم */
    --border-color: #f2eded;       /* حدود البطاقات الرقيقة جداً */
    
    /* أحدث وأرقى خط عربي متوفر وأنيق هندسياً */
    --font-heading: 'Alexandria', sans-serif;
    --font-body: 'IBM Plex Sans Arabic', sans-serif;
    
    /* تأثيرات ظلال وانحناءات عصرية مستوحاة من منصة رؤية 2030 وموسم الرياض */
    --shadow-sm: 0 4px 12px rgba(122, 9, 19, 0.03);
    --shadow-md: 0 12px 36px rgba(122, 9, 19, 0.06);
    --shadow-lg: 0 20px 50px rgba(122, 9, 19, 0.12);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --border-radius: 16px;         /* انحناءات عصرية رشيقة */
}

/* ==========================================================================
   إعدادات التصفير العامة (Global CSS Reset)
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-cream);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   الترويسة المتميزة (Premium Sticky Header)
   ========================================================================== */
.premium-header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 100;
}

/* 1. الشريط العلوي - الزمردي والذهبي */
.top-bar {
    background-color: var(--topbar-bg);
    color: #edf2f0;
    padding: 12px 0;
    border-bottom: 2px solid var(--accent-color);
    font-size: 0.85rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--accent-color);
    font-weight: 600;
}

.top-bar-right i {
    font-size: 0.95rem;
}

/* شريط الأخبار المتحرك (Breaking News Ticker) */
.breaking-ticker {
    flex: 1;
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(197, 168, 128, 0.15);
    border-radius: 50px;
    overflow: hidden;
    height: 32px;
}

.ticker-title {
    background: linear-gradient(135deg, #ab1d29 0%, #3a0004 100%);
    color: #ffffff;
    border-left: 2px solid var(--accent-color);
    font-weight: 800;
    font-family: var(--font-heading);
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.25);
}

.ticker-title i {
    color: #ff4d6d;
    font-size: 0.75rem;
    animation: livePulse 1.2s infinite alternate;
}

@keyframes livePulse {
    0% { opacity: 0.4; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1.15); filter: drop-shadow(0 0 6px #ff4d6d); }
}

.ticker-wrap {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.ticker {
    display: inline-flex;
    white-space: nowrap;
    animation: ticker-anim 25s linear infinite;
    gap: 60px;
    padding-right: 20px;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticker-item::before {
    content: "•";
    color: var(--accent-color);
    font-weight: bold;
}

@keyframes ticker-anim {
    0% { transform: translate3d(100%, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

.ticker-wrap:hover .ticker {
    animation-play-state: paused;
}

.top-bar-socials {
    display: flex;
    align-items: center;
    gap: 14px;
}

.top-bar-socials a {
    color: #edf2f0;
    opacity: 0.85;
    font-size: 1rem;
}

.top-bar-socials a:hover {
    color: var(--accent-color);
    opacity: 1;
    transform: translateY(-2px);
}

/* 2. الترويسة المدمجة الفاخرة والأنيقة (Premium Compact Navigation) */
.top-mini-bar {
    background: linear-gradient(135deg, #1f0204 0%, #0d0001 100%);
    color: #edf2f0;
    padding: 8px 0;
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.top-bar-left-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-admin-link {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.78rem;
    transition: var(--transition);
}

.top-admin-link:hover {
    color: #ffffff;
    text-shadow: 0 0 8px var(--accent-color);
}

.bar-divider {
    color: rgba(255, 255, 255, 0.15);
}

.main-navigation {
    background: linear-gradient(90deg, #7a0913 0%, #300206 50%, #150002 100%);
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--accent-color), var(--primary-light), var(--accent-color)) 1;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.nav-flex-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px; /* ارتفاع صغير ورشيق جداً */
}

.nav-logo-box {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-logo-img {
    height: 80px; /* تكبير الشعار الفعلي ليصبح واضحاً ومقروءاً */
    width: auto;
    margin-top: -16px; /* موازنة الهوامش الرأسية الفارغة للشعار لئلا تأخذ مساحة كبيرة */
    margin-bottom: -16px;
    object-fit: contain;
    mix-blend-mode: screen; /* إزالة التلقائية لأي خلفية سوداء للشعار */
    transition: var(--transition);
}

.nav-logo-img:hover {
    transform: scale(1.04);
    filter: drop-shadow(0 0 8px rgba(197, 168, 128, 0.3));
}

.menu-list {
    display: flex;
    align-items: center;
    gap: 4px;
}

.menu-list li {
    position: relative;
}

.menu-list li a {
    display: block;
    padding: 6px 10px; /* مساحات بادنج رشيقة لتبدو أنيقة ومدمجة */
    color: #edf2f0;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem; /* خط أصغر وأنيق للغاية يمنع التداخل */
    position: relative;
    border-radius: 4px;
    transition: var(--transition);
}

.menu-list li a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.menu-list li a:hover,
.menu-list li a.active {
    color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.04);
}

.menu-list li a:hover::after,
.menu-list li a.active::after {
    width: 60%;
}

/* ==========================================
   تطوير نظام الأقسام والقوائم المنسدلة الأنيقة
   ========================================== */
.menu-dropdown {
    position: relative;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.dropdown-trigger i {
    font-size: 0.7rem;
    transition: var(--transition);
}

.menu-dropdown:hover .dropdown-trigger i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: linear-gradient(180deg, #300206 0%, #150002 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--accent-color);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    min-width: 170px;
    padding: 8px 0;
    margin: 0;
    list-style: none;
    display: none; /* مخفي افتراضياً */
    z-index: 1000;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    padding: 8px 16px !important;
    font-size: 0.8rem !important;
    text-align: right;
    display: block;
    color: #ebd7d9 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: transparent !important;
    border-radius: 0 !important;
}

.dropdown-menu li a::after {
    display: none !important;
}

.dropdown-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: var(--accent-color) !important;
    padding-right: 20px !important; /* حركة انزلاق بسيطة وأنيقة */
}

/* إظهار القائمة عند التحويم */
@media (min-width: 993px) {
    .menu-dropdown:hover .dropdown-menu {
        display: block;
        animation: navDropdownFade 0.25s ease-out forwards;
    }
}

@keyframes navDropdownFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-actions-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-search-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.nav-search-btn:hover {
    background-color: var(--accent-color);
    color: var(--primary-dark);
    transform: scale(1.05);
}

.mobile-menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
}

/* ==========================================================================
   لوحة الهيرو الإخبارية الحديثة (Modern Hero News Grid - Al Arabiya Style)
   ========================================================================== */
.hero-news-grid {
    margin-top: 30px;
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    min-height: 520px;
}

/* المقال الرئيسي المميّز */
.hero-main-featured {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-color: var(--primary-dark);
}

.hero-main-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 0.8;
}

.hero-main-featured:hover .hero-main-img {
    transform: scale(1.04);
}

.hero-main-overlay {
    position: relative;
    z-index: 2;
    padding: 40px;
    background: linear-gradient(180deg, rgba(21, 0, 2, 0) 0%, rgba(21, 0, 2, 0.7) 40%, rgba(5, 0, 1, 0.96) 100%);
    color: #ffffff;
    transition: var(--transition);
}

.category-badge-gold {
    background-color: var(--accent-color);
    color: var(--primary-dark);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(197, 168, 128, 0.3);
}

.hero-main-title {
    font-family: var(--font-heading);
    font-size: 2.3rem;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 12px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.hero-main-excerpt {
    font-size: 0.95rem;
    color: #ebd7d9;
    max-width: 90%;
    margin-bottom: 20px;
    line-height: 1.5;
}

.article-meta-row {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 500;
}

.article-meta-row span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* القائمة الجانبية المجاورة للهيرو */
.hero-sidebar-news {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.sidebar-title-box {
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 12px;
    margin-bottom: 18px;
}

.sidebar-title-box h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--primary-color);
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-news-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.sidebar-news-card {
    display: flex;
    flex-direction: column;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.sidebar-news-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-news-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-hover);
    margin-bottom: 4px;
}

.sidebar-news-headline {
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.45;
    color: var(--text-dark);
}

.sidebar-news-headline:hover {
    color: var(--primary-light);
}

.sidebar-news-date {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ==========================================================================
   قسم أعداد المجلة المتميّز (Prominent Magazine Issues Showcase)
   ========================================================================== */
.magazine-section-main {
    background: linear-gradient(135deg, #180103 0%, #080001 50%, #030000 100%);
    border-top: 4px solid var(--accent-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 0;
    margin-bottom: 50px;
    position: relative;
    box-shadow: inset 0 20px 40px rgba(0,0,0,0.5), inset 0 -20px 40px rgba(0,0,0,0.5);
}

.section-head-lux {
    text-align: center;
    margin-bottom: 40px;
}

.section-head-lux h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ff4d6d 0%, #c5a880 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.section-head-lux h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    border-radius: 2px;
}

.section-head-lux p {
    color: #ebd7d9;
    font-size: 1.05rem;
    margin-top: 8px;
    font-weight: 500;
}

/* شبكة الأعداد الدائرية الفخمة */
.magazine-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 30px;
}

.magazine-lux-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    display: flex;
    height: 250px;
    transition: var(--transition);
    color: #ffffff;
}

.magazine-lux-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(122, 9, 19, 0.25);
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.05);
}

.mag-card-cover-box {
    flex: 0 0 160px;
    background-color: rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
}

/* غلاف المجلة الوهمي المميز بالـ CSS */
.mag-cover-mock {
    width: 120px;
    height: 175px;
    background: linear-gradient(145deg, #7a0913 0%, #0d0001 100%);
    border-radius: 4px 8px 8px 4px;
    box-shadow: -4px 8px 16px rgba(0, 0, 0, 0.4);
    position: relative;
    border-right: 4px solid var(--accent-color);
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: white;
    font-family: var(--font-heading);
}

.mag-cover-title {
    font-size: 0.68rem;
    font-weight: 800;
    text-align: center;
    border-bottom: 1px solid rgba(197, 168, 128, 0.3);
    padding-bottom: 4px;
}

.mag-cover-center {
    font-size: 1rem;
    font-weight: 900;
    color: var(--accent-color);
    text-align: center;
}

.mag-cover-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.5rem;
    color: #c0b0b1;
}

.mag-issue-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: var(--accent-color);
    color: var(--primary-dark);
    font-weight: 900;
    font-size: 0.72rem;
    padding: 3px 8px;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.mag-card-details {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mag-issue-meta {
    font-size: 0.78rem;
    color: var(--accent-hover);
    font-weight: 700;
}

.mag-issue-headline {
    font-family: var(--font-heading);
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1.4;
    margin-top: 4px;
}

.mag-issue-desc {
    font-size: 0.85rem;
    color: #ebd7d9;
    line-height: 1.45;
    margin-top: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mag-action-btns {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.mag-btn-read, .mag-btn-download {
    flex: 1;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 8px 0;
    border-radius: 6px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
}

.mag-btn-read {
    background-color: var(--primary-color);
    color: white;
}

.mag-btn-read:hover {
    background-color: var(--primary-light);
}

.mag-btn-download {
    background-color: transparent;
    border: 1px solid var(--accent-color);
    color: #ffffff;
}

.mag-btn-download:hover {
    background-color: var(--accent-color);
    color: var(--primary-dark);
}

/* ==========================================================================
   الهيكل الرئيسي للمقالات والشريط الجانبي (Main Page Layout)
   ========================================================================== */
.main-content-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

/* 1. قسم الشبكة للمقالات والأخبار المفصلة */
.articles-feed-section {
    display: flex;
    flex-direction: column;
}

.section-divider-lux {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 24px;
}

.section-divider-lux h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #7a0913 0%, #ab1d29 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.section-divider-lux h2::after {
    content: "";
    position: absolute;
    bottom: -14px;
    right: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

.feed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.article-feed-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.article-feed-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(122, 9, 19, 0.12);
    border-color: var(--primary-light);
}

.card-img-box {
    position: relative;
    height: 180px;
    overflow: hidden;
    background-color: var(--primary-dark);
}

.card-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-feed-card:hover .card-img-box img {
    transform: scale(1.05);
}

.card-category-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: var(--primary-color);
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    z-index: 2;
}

.card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-headline {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.45;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.card-headline a:hover {
    color: var(--primary-light);
}

.card-excerpt {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
}

.card-author {
    color: var(--primary-light);
}

/* ==========================================================================
   الأدوات الجانبية والشريط الجانبي (Sidebar Widgets & Components)
   ========================================================================== */
.sidebar-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.widget-title-box {
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 12px;
    margin-bottom: 16px;
    position: relative;
}

.widget-title-box h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 1. ويدجت استطلاع الرأي التفاعلي (Interactive Database-Backed Poll) */
.poll-widget-box {
    display: flex;
    flex-direction: column;
}

.poll-question {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.poll-options-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.poll-option-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    transition: var(--transition);
}

.poll-option-label:hover {
    border-color: var(--accent-color);
    background-color: var(--bg-cream);
}

.poll-option-label input[type="radio"] {
    accent-color: var(--primary-color);
    width: 16px;
    height: 16px;
}

.poll-submit-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    cursor: pointer;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    transition: var(--transition);
}

.poll-submit-btn:hover {
    background-color: var(--primary-light);
}

/* تصميم نتائج الاستطلاع */
.poll-results-box {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.poll-result-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.poll-result-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 700;
}

.poll-result-text {
    color: var(--text-dark);
}

.poll-result-percent {
    color: var(--primary-color);
}

.poll-progress-bar-bg {
    height: 10px;
    background-color: var(--bg-cream);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
}

.poll-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-light), var(--accent-color));
    border-radius: 10px;
    width: 0;
    transition: width 1s cubic-bezier(0.1, 0.8, 0.3, 1);
}

.poll-total-votes {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 15px;
    border-top: 1px dashed var(--border-color);
    padding-top: 12px;
    font-weight: 600;
}

/* 2. ويدجت المقالات الأكثر قراءة */
.trending-articles-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.trending-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--border-color);
}

.trending-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.trending-number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--accent-color);
    line-height: 1;
}

.trending-info h4 {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 4px;
}

.trending-info h4 a:hover {
    color: var(--primary-color);
}

.trending-views {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 3. النشرة البريدية الفاخرة */
.newsletter-widget-lux {
    background: linear-gradient(145deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
}

.newsletter-widget-lux h3 {
    color: var(--accent-color) !important;
}

.newsletter-desc {
    font-size: 0.85rem;
    color: #ebd7d9;
    line-height: 1.5;
    margin-bottom: 18px;
}

.newsletter-form-lux {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form-lux input {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(197, 168, 128, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    color: white;
    font-family: var(--font-body);
    font-size: 0.88rem;
    transition: var(--transition);
}

.newsletter-form-lux input::placeholder {
    color: #a88f91;
}

.newsletter-form-lux input:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.12);
}

.newsletter-submit-btn {
    background-color: var(--accent-color);
    color: var(--primary-dark);
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-family: var(--font-heading);
    font-weight: 800;
    cursor: pointer;
    font-size: 0.92rem;
    transition: var(--transition);
}

.newsletter-submit-btn:hover {
    background-color: var(--accent-hover);
}

/* ==========================================================================
   قسم الميديا الفاخرة (الإنفوجرافيك والفيديوهات)
   ========================================================================== */
.media-section-lux {
    background: linear-gradient(135deg, #1c0205 0%, #050001 100%);
    color: white;
    padding: 60px 0;
    margin-bottom: 60px;
    border-top: 4px solid var(--accent-color);
    box-shadow: inset 0 20px 40px rgba(0,0,0,0.5);
}

.media-section-lux h2 {
    color: white !important;
}

.media-section-lux h2::after {
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent) !important;
}

.media-grid-lux {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

/* أ) تصميم ويدجت الفيديوهات */
.media-box-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.video-showcase-box {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.main-video-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 16/9;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    background-color: #000000;
}

.main-video-card iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-list-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.video-mini-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.video-mini-card:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
}

.video-mini-icon {
    flex: 0 0 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.video-mini-info h4 {
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.4;
    color: #edf2f0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ب) تصميم ويدجت الإنفوجرافيك */
.infographic-showcase-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.infographic-slide-card {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius);
    padding: 15px;
    text-align: center;
    position: relative;
}

.info-mock-img {
    height: 250px;
    background: linear-gradient(135deg, #4d0208 0%, #0d0001 100%);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(197, 168, 128, 0.2);
    margin-bottom: 15px;
    color: var(--accent-color);
}

.info-mock-img i {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.info-mock-img h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    max-width: 80%;
    line-height: 1.4;
}

.infographic-slide-card h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: #edf2f0;
    margin-bottom: 6px;
}

.infographic-slide-card p {
    font-size: 0.85rem;
    color: #c0b0b1;
}

.info-navigation-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.info-nav-btn {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.info-nav-btn:hover {
    background-color: var(--accent-color);
    color: var(--primary-dark);
    border-color: var(--accent-color);
}

/* ==========================================================================
   التذييل الفاخر (Premium Footer - Red & Gold)
   ========================================================================== */
.site-footer {
    background-color: var(--topbar-bg);
    color: #edf2f0;
    border-top: 5px solid var(--accent-color);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.footer-brand p {
    color: #c0b0b1;
    font-size: 0.92rem;
    line-height: 1.6;
    max-width: 90%;
    margin-bottom: 20px;
}

.footer-links-col h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-links-col h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-list li a {
    font-size: 0.9rem;
    color: #ebd7d9;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-links-list li a:hover {
    color: var(--accent-color);
    transform: translateX(-4px);
}

.footer-social-links {
    display: flex;
    gap: 12px;
}

.footer-social-links a {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    transition: var(--transition);
}

.footer-social-links a:hover {
    background-color: var(--accent-color);
    color: var(--primary-dark);
    border-color: var(--accent-color);
    transform: translateY(-4px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: #a88f91;
}

.footer-copy {
    font-weight: 500;
}

.footer-author a {
    color: var(--accent-color);
    font-weight: 700;
}

.footer-author a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   صفحة عرض المقال الفردي (Article Details Styles)
   ========================================================================== */
.article-detail-container {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 40px;
}

.article-detail-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 25px;
    margin-bottom: 30px;
}

.article-detail-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1.35;
    margin-top: 10px;
    margin-bottom: 15px;
}

.article-detail-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 600;
    flex-wrap: wrap;
}

.article-detail-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.article-detail-meta .detail-author {
    color: var(--primary-light);
}

.article-detail-banner {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 35px;
    max-height: 480px;
}

.article-detail-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-detail-body {
    font-size: 1.15rem;
    color: var(--text-dark);
    line-height: 1.85;
    text-align: justify;
    font-family: var(--font-body);
}

.article-detail-body p {
    margin-bottom: 24px;
}

.back-to-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bg-cream);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.back-to-home-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ==========================================================================
   لوحة تحكم المسؤول (Elegant Admin Control Panel Styles)
   ========================================================================== */
.admin-header-box {
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 30px;
    border-bottom: 4px solid var(--accent-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header-box h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent-color);
}

.admin-grid-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.admin-card-panel {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.admin-card-panel h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-dark);
}

.form-field input,
.form-field select,
.form-field textarea {
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    transition: var(--transition);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(12, 56, 48, 0.08);
}

.admin-submit-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.admin-submit-btn:hover {
    background-color: var(--primary-light);
}

/* قوائم الإدارة وحذف المحتوى */
.admin-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

.admin-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: var(--bg-cream);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.88rem;
}

.admin-item-title {
    font-weight: 700;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 75%;
}

.admin-item-delete-btn {
    background-color: #d9534f;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 700;
    transition: var(--transition);
}

.admin-item-delete-btn:hover {
    background-color: #c9302c;
}

/* ==========================================================================
   التحذيرات والتأثيرات التفاعلية (Notifications & Alerts)
   ========================================================================= */
.toast-notification {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background-color: var(--primary-dark);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    border-right: 4px solid var(--accent-color);
    z-index: 1000;
    font-weight: 700;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
}

.toast-notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* ==========================================================================
   قسم اختيارات المحرر الفاخر (Premium Editor's Picks Section)
   ========================================================================== */
.editors-picks-section {
    padding: 60px 0;
    background: linear-gradient(180deg, var(--bg-cream) 0%, rgba(122, 9, 19, 0.02) 100%);
    border-bottom: 1px solid var(--border-color);
}

.picks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 30px;
    margin-top: 35px;
}

.pick-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition);
}

.pick-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-light));
    z-index: 5;
    opacity: 0;
    transition: var(--transition);
}

.pick-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg), 0 15px 30px rgba(122, 9, 19, 0.08);
    border-color: rgba(197, 168, 128, 0.3);
}

.pick-card:hover::before {
    opacity: 1;
}

.pick-card-img-box {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.pick-card-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.pick-card:hover .pick-card-img-box img {
    transform: scale(1.06);
}

.pick-badge-gold {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #150002 100%);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 800;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.pick-badge-gold i {
    animation: livePulse 1.2s infinite alternate;
}

.pick-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.pick-card-category {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 10px;
    display: inline-block;
}

.pick-card-headline {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.5;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.pick-card-headline a:hover {
    color: var(--primary-light);
}

.pick-card-excerpt {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pick-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.pick-card-author {
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ==========================================================================
   التوافق مع الشاشات المختلفة (High-Fidelity Responsive Design)
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-news-grid {
        grid-template-columns: 1fr;
    }
    
    .main-content-layout {
        grid-template-columns: 1fr;
    }
    
    .media-grid-lux {
        grid-template-columns: 1fr;
    }
    
    .admin-grid-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .site-title {
        font-size: 2.2rem;
    }
    
    .top-bar-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
        font-size: 0.72rem;
        padding: 0 4px;
    }
    
    .breaking-ticker {
        width: 100%;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
}

@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .menu-list {
        display: none;
        flex-direction: column;
        width: 100%;
        background: linear-gradient(180deg, #3a0004 0%, #150002 100%);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-bottom: 3px solid var(--accent-color);
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        padding: 10px 0;
        z-index: 9999;
        box-shadow: var(--shadow-lg);
        max-height: 80vh; /* منع القائمة من الخروج عن حدود الشاشة على الهواتف */
        overflow-y: auto; /* تفعيل التمرير إن كانت العناصر كثيرة */
    }
    
    .menu-list.active {
        display: flex;
    }
    
    .menu-list li {
        width: 100%;
        text-align: center;
    }
    
    .menu-list li a {
        padding: 12px 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        font-size: 0.95rem;
    }
    
    .menu-list li a::after {
        display: none;
    }

    /* تهيئة القوائم المنسدلة للجوال بحيث تظهر بشكل مفرود ومناسب للتصفح السريع */
    .menu-dropdown .dropdown-trigger {
        display: none !important; /* إخفاء زر "المزيد" المكرر على الجوال */
    }

    .menu-dropdown .dropdown-menu {
        position: static;
        display: block; /* فرد العناصر لتظهر كقائمة مسطحة سهلة اللمس */
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0;
        min-width: unset;
        width: 100%;
    }

    .dropdown-menu li a {
        padding: 12px 24px !important;
        font-size: 0.95rem !important;
        text-align: center !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
        color: #ebd7d9 !important;
    }
    
    .dropdown-menu li a:hover {
        padding-right: 24px !important; /* إلغاء حركة الانزلاق الجانبي في الجوال لتظل متناسقة */
    }
    
    .hero-main-title {
        font-size: 1.7rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .article-detail-title {
        font-size: 1.6rem;
    }
    
    .article-detail-container {
        padding: 20px;
    }
}

/* ==========================================================================
   إضافات لوحة التحكم، رفع الملفات، قارئ المجلة ومشاركة المقالات (Moooier Premium Elements)
   ========================================================================== */

/* 1. حقول رفع الملفات التفاعلية (Interactive File Upload Fields) */
.upload-field-container {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-top: 5px;
}

.upload-field-container input[type="text"] {
    flex: 1;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
}

.admin-upload-btn {
    background-color: var(--primary-color) !important;
    color: white !important;
    padding: 10px 18px !important;
    border: none !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    font-family: var(--font-body) !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 0.85rem !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
    box-shadow: var(--shadow-sm);
}

.admin-upload-btn:hover {
    background-color: var(--primary-light) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* 2. نافذة قارئ المجلة التفاعلية الفاخرة (Glassmorphic Magazine Modal Reader) */
.magazine-viewer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.magazine-viewer-modal.show {
    display: flex;
    opacity: 1;
}

.mag-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 0, 1, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.mag-modal-content-card {
    position: relative;
    background: rgba(26, 18, 19, 0.95);
    border: 1px solid rgba(197, 168, 128, 0.25);
    width: 90%;
    max-width: 1000px;
    height: 85vh;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    z-index: 10001;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.mag-modal-header {
    padding: 15px 24px;
    border-bottom: 1px solid rgba(197, 168, 128, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(122, 9, 19, 0.15) 0%, rgba(10, 0, 1, 0.2) 100%);
}

.mag-modal-title {
    color: white;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
}

.mag-modal-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mag-modal-download-btn {
    background-color: var(--accent-color) !important;
    color: #1a1213 !important;
    padding: 8px 18px !important;
    border-radius: 30px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.3s ease !important;
    border: none !important;
    cursor: pointer !important;
}

.mag-modal-download-btn:hover {
    background-color: #ebd7d9 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(197, 168, 128, 0.3);
}

.mag-modal-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.mag-modal-close:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.mag-modal-body {
    flex: 1;
    position: relative;
    background: #151011;
}

.mag-modal-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    color: white;
    background: rgba(26, 18, 19, 0.98);
}

.mag-modal-fallback p {
    font-family: var(--font-body);
}

/* 3. شريط مشاركة المقالات الفاخر (Premium Article Social Share Bar) */
.article-share-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.share-label {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--accent-color);
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    gap: 6px;
}

.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: white !important;
    text-decoration: none !important;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: none;
}

.share-whatsapp { background-color: #25D366; }
.share-whatsapp:hover { box-shadow: 0 0 12px rgba(37, 211, 102, 0.5); transform: translateY(-3px); }

.share-x { background-color: #000000; border: 1px solid rgba(255,255,255,0.25); }
.share-x:hover { box-shadow: 0 0 12px rgba(255, 255, 255, 0.3); transform: translateY(-3px); }

.share-facebook { background-color: #1877F2; }
.share-facebook:hover { box-shadow: 0 0 12px rgba(24, 119, 242, 0.5); transform: translateY(-3px); }

.share-telegram { background-color: #0088cc; }
.share-telegram:hover { box-shadow: 0 0 12px rgba(0, 136, 204, 0.5); transform: translateY(-3px); }

.share-copy { 
    background-color: rgba(255, 255, 255, 0.05); 
    color: var(--accent-color); 
    border: 1px solid rgba(197, 168, 128, 0.3); 
}
.share-copy:hover { 
    background-color: var(--accent-color); 
    color: #1a1213 !important; 
    box-shadow: 0 0 12px rgba(197, 168, 128, 0.5); 
    transform: translateY(-3px); 
}

/* ==========================================================================
   تجاوب لوحة التحكم ومزايا الجوال (Mobile Responsiveness Overrides)
   ========================================================================== */
@media (max-width: 768px) {
    .form-group-row {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }
    
    .upload-field-container {
        flex-direction: column;
        gap: 8px;
    }
    
    .admin-upload-btn {
        width: 100% !important;
        justify-content: center;
    }
    
    .mag-modal-content-card {
        width: 95%;
        height: 90vh;
        border-radius: 12px;
    }
    
    .mag-modal-header {
        padding: 12px 16px;
    }
    
    .mag-modal-title {
        font-size: 1rem;
    }
    
    .mag-modal-actions {
        gap: 10px;
    }
    
    .mag-modal-download-btn {
        padding: 6px 12px !important;
        font-size: 0.78rem !important;
    }
    
    .article-share-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 15px;
    }
    
    .share-buttons {
        width: 100%;
        justify-content: flex-start;
    }
}

/* ==========================================================================
   معرض الإنفوجرافيك العمودي التفاعلي والـ Lightbox
   ========================================================================== */
.infographics-section-lux {
    padding: 60px 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(22, 2, 4, 0.95) 100%);
    border-top: 1px solid rgba(197, 168, 128, 0.15);
}

.infographics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.infographic-card-vertical {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.3s ease, box-shadow 0.4s ease;
    height: 400px;
    display: flex;
    flex-direction: column;
}

.infographic-card-vertical:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 15px 40px rgba(171, 29, 41, 0.2);
}

.infographic-card-vertical img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.infographic-card-vertical:hover img {
    transform: scale(1.05);
}

.infographic-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(10, 0, 1, 0.95) 0%, rgba(10, 0, 1, 0.6) 70%, transparent 100%);
    padding: 20px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 60%;
    transition: background 0.3s ease;
}

.infographic-card-vertical:hover .infographic-card-overlay {
    background: linear-gradient(to top, rgba(10, 0, 1, 0.98) 0%, rgba(10, 0, 1, 0.75) 80%, transparent 100%);
}

.infographic-card-category {
    color: var(--accent-color);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.infographic-card-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    color: #ffffff;
    transition: color 0.3s ease;
}

.infographic-card-vertical:hover .infographic-card-title {
    color: var(--accent-color);
}

.infographic-card-excerpt {
    font-size: 0.85rem;
    color: #c0b0b1;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.infographic-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #8c7e80;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px;
}

.infographic-zoom-btn {
    background-color: var(--accent-color);
    color: var(--primary-dark);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(171, 29, 41, 0.3);
    transition: background-color 0.3s, transform 0.3s;
}

.infographic-card-vertical:hover .infographic-zoom-btn {
    transform: scale(1.1);
    background-color: #ffffff;
}

/* تصميم الـ Lightbox للمعاينة الفائقة والزجاجية */
.infographics-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(5, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease-out forwards;
}

.lightbox-close-btn {
    position: absolute;
    top: 30px;
    left: 30px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2010;
}

.lightbox-close-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: rotate(90deg);
}

.lightbox-content-box {
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: row;
    background: linear-gradient(135deg, rgba(20, 2, 4, 0.95) 0%, rgba(10, 0, 1, 0.98) 100%);
    border: 1px solid rgba(197, 168, 128, 0.25);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    position: relative;
    animation: zoomIn 0.35s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.lightbox-content-box img {
    width: 55%;
    max-height: 85vh;
    object-fit: contain;
    background-color: #050001;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.lightbox-caption {
    width: 45%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    text-align: right;
}

.lightbox-caption h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1.4;
    margin-bottom: 20px;
}

.lightbox-caption p {
    font-size: 1rem;
    color: #edf2f0;
    line-height: 1.7;
    margin-bottom: 30px;
}

@media (max-width: 800px) {
    .lightbox-content-box {
        flex-direction: column;
        max-height: 85vh;
        overflow-y: auto;
    }
    .lightbox-content-box img {
        width: 100%;
        max-height: 50vh;
        border-left: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .lightbox-caption {
        width: 100%;
        padding: 25px;
    }
    .lightbox-caption h3 {
        font-size: 1.25rem;
        margin-bottom: 12px;
    }
    .lightbox-caption p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    .lightbox-close-btn {
        top: 15px;
        left: 15px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}
