@import url('https://googleapis.com');

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Cairo', Tahoma, Arial, sans-serif;
    background-color: #eef1f6;
    color: #1e293b;
    direction: rtl;
    text-align: right;
    line-height: 1.7;
}
a { color: #0f4c81; text-decoration: none; transition: all 0.25s ease; }
a:hover { color: #d90429; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 15px;
}

/* الشريط العلوي */
.top-bar {
    background: #0a2540;
    color: #e2e8f0;
    font-size: 13px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* الهيدر والشعار */
.header-main {
    background: #ffffff;
    padding: 18px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.site-title {
    font-size: 34px;
    font-weight: 900;
    color: #0f4c81;
    letter-spacing: -0.5px;
}

/* القائمة الرئيسية */
.main-nav {
    background: linear-gradient(90deg, #0a2540 0%, #0f4c81 100%);
    box-shadow: 0 4px 12px rgba(15, 76, 129, 0.2);
    position: sticky;
    top: 0;
    z-index: 999;
}
.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}
.main-nav ul li a {
    display: block;
    color: #ffffff;
    font-weight: 700;
    padding: 13px 18px;
    font-size: 15px;
    border-left: 1px solid rgba(255,255,255,0.1);
}
.main-nav ul li a:hover, .main-nav ul li.active a {
    background: #d90429;
    color: #ffffff;
}

/* شريط عاجل */
.breaking-bar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    margin: 15px 0;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    border-right: 5px solid #d90429;
}
.breaking-label {
    background: #d90429;
    color: #fff;
    font-weight: 800;
    padding: 3px 12px;
    margin-left: 15px;
    font-size: 13px;
    border-radius: 4px;
    white-space: nowrap;
}

/* تقسيم 3 أعمدة: يمين 25% | وسط 50% | يسار 25% */
.main-grid {
    display: grid;
    grid-template-columns: 26% 1fr 26%;
    gap: 20px;
    margin-top: 20px;
    align-items: start;
}

/* تنسيق صناديق العمود الأيمن والأيسر تلقائياً */
.right-col > div, .left-col > div, .moduletable {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.right-col h3, .left-col h3, .moduletable h3 {
    background: #0f4c81;
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 800;
    padding: 10px 15px;
    margin: -16px -16px 15px -16px;
    border-radius: 7px 7px 0 0;
    border-right: 5px solid #d90429;
}

.left-col h3 {
    background: #1e293b;
    border-right-color: #d90429;
}

/* قائمة العناوين في العمود الأيمن */
.right-col ul, .left-col ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.right-col ul li, .left-col ul li {
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14.5px;
    font-weight: 700;
    position: relative;
    padding-right: 14px;
}
.right-col ul li::before {
    content: "▪";
    color: #d90429;
    position: absolute;
    right: 0;
    top: 9px;
    font-size: 16px;
}
.right-col ul li:last-child, .left-col ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* الوسط: السلايدر والمقالات */
.slider-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    border-top: 4px solid #d90429;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.center-content {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.center-content article, .center-content .item {
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.center-content img {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 12px;
}
.center-content h2, .center-content h1 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #0a2540;
}
.center-content p {
    color: #475569;
    font-size: 15px;
    margin-bottom: 12px;
}
.readmore a, .btn-secondary {
    display: inline-block;
    background: #0f4c81 !important;
    color: #ffffff !important;
    padding: 6px 16px;
    font-size: 13.5px;
    font-weight: 700;
    border-radius: 5px;
    border: none;
}
.readmore a:hover, .btn-secondary:hover {
    background: #d90429 !important;
}

/* الفيديوهات في العمود الأيسر */
.left-col iframe {
    width: 100% !important;
    height: 195px;
    border: none;
    border-radius: 6px;
    margin-bottom: 10px;
}

/* الفوتر */
.site-footer {
    background: #0a2540;
    color: #cbd5e1;
    text-align: center;
    padding: 25px 0;
    margin-top: 40px;
    border-top: 5px solid #d90429;
    font-size: 14px;
}

/* التجاوب مع الهاتف */
@media (max-width: 992px) {
    .main-grid { grid-template-columns: 1fr; }
}
