/*
Theme Name: Akhbar Light (قالب أخبار خفيف)
Author: Gemini
Description: A very fast and lightweight news theme designed for performance and SEO. (قالب إخباري خفيف وسريع جدًا مصمم للأداء وتحسين محركات البحث)
Version: 1.1
Tags: news, blog, responsive, light
Text Domain: akhbar-light
*/

/* ---=== Variables & Basic Setup ===--- */
:root {
    --primary-color: #d32f2f; /* لون أحمر إخباري */
    --secondary-color: #1a1a1a;
    --text-color: #333;
    --light-gray: #f4f4f4;
    --border-color: #ddd;
    --font-family: 'Tajawal', sans-serif; /* خط عربي جميل */
}

/* ---=== الإعدادات الأساسية والخطوط ===--- */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@700;900&display=swap');


body {
    font-family: var(--font-family);
    line-height: 1.7;
    color: var(--text-color);
    background-color: #fff;
    margin: 0;
    padding: 0;
    direction: rtl; /* دعم اللغة العربية */
    text-align: right;
}

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

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

h1, h2, h3, h4 {
    font-family: 'Cairo', sans-serif;
    color: var(--secondary-color);
    line-height: 1.4;
}

/* ---=== Header / الهيدر ===--- */
.site-header {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    background-color: #fff;
}

.site-branding {
    text-align: center;
    padding: 10px 0;
}

.site-logo {
    max-width: 250px;
    height: auto;
}

.header-top-bar {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
    margin-bottom: 15px;
    text-align: center;
    font-size: 0.9em;
    color: #555;
}

.main-navigation {
    background-color: var(--secondary-color);
    border-radius: 5px;
}

.main-navigation ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation ul li a {
    display: block;
    padding: 15px 20px;
    color: #fff;
    font-weight: 700;
}

.main-navigation ul li a:hover {
    background-color: var(--primary-color);
}


/* ---=== Ad Placeholders / أماكن الإعلانات ===--- */
.ad-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 90px;
    background-color: var(--light-gray);
    border: 1px dashed var(--border-color);
    margin: 20px 0;
    border-radius: 8px;
    text-align: center;
    color: #999;
}
.header-ad-area {
    margin: 15px auto;
    max-width: 728px;
}


/* ---=== Homepage Layout / تنسيق الصفحة الرئيسية ===--- */
.main-content {
    padding: 30px 0;
}

.featured-post {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 30px;
    margin-bottom: 30px;
}

.featured-post article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.featured-post .post-thumbnail img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.featured-post .entry-title {
    font-size: 2.2em;
    margin-top: 0;
}

.featured-post .entry-excerpt {
    font-size: 1.1em;
}

.latest-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.post-card {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.post-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.post-card .post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.post-card .entry-content {
    padding: 20px;
}

.post-card .entry-title {
    font-size: 1.4em;
    margin: 0 0 10px 0;
}

.post-card .entry-meta {
    font-size: 0.8em;
    color: #777;
}

/* ---=== Single Post Layout / تنسيق صفحة المقال ===--- */
.single-post-layout {
    display: grid;
    grid-template-columns: 270px 1fr 270px; /* 3 أعمدة */
    gap: 30px;
}

.main-article {
    grid-column: 2 / 3;
}

#left-sidebar, #right-sidebar {
    padding-top: 20px;
}

.entry-header .entry-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
}

.entry-header .entry-meta {
    text-align: center;
    color: #777;
    margin-bottom: 25px;
}

.post-full-content {
    font-size: 1.1em;
    line-height: 1.8;
}
.post-full-content img {
    margin: 20px 0;
}


/* ---=== Widget Area / منطقة الويدجات ===--- */
.widget {
    margin-bottom: 25px;
    background: var(--light-gray);
    padding: 20px;
    border-radius: 8px;
}
.widget-title {
    font-size: 1.3em;
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}
.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.widget ul li a {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
    color: var(--text-color);
}
.widget ul li:last-child a {
    border-bottom: none;
}


/* ---=== Footer / الفوتر ===--- */
.site-footer {
    background-color: var(--secondary-color);
    color: #ccc;
    padding-top: 40px;
    margin-top: 30px;
}

.footer-widgets-area {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding-bottom: 30px;
}

.footer-widget h3.footer-widget-title {
    color: #fff;
    font-size: 1.4em;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #555;
}

.footer-widget p {
    line-height: 1.8;
}

/* Ad Banner in Footer */
.ad-banner-link {
    display: block;
    background: #25D366; /* WhatsApp Green */
    border-radius: 8px;
    padding: 15px;
    color: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ad-banner-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    color: #fff;
}

.ad-banner-content {
    display: flex;
    align-items: center;
}

.ad-banner-icon {
    margin-left: 15px;
}

.ad-banner-text {
    display: flex;
    flex-direction: column;
}

.ad-banner-title {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 1.2em;
    line-height: 1.3;
}

.ad-banner-subtitle {
    font-size: 0.9em;
    opacity: 0.9;
}

.site-info {
    background-color: #111;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9em;
}


/* ---=== Responsive / تصميم متجاوب ===--- */
@media (max-width: 992px) {
    .single-post-layout {
        grid-template-columns: 1fr;
    }
    .main-article {
        grid-column: 1 / -1;
    }
     #left-sidebar {
        grid-row: 2;
    }
    #right-sidebar {
        grid-row: 3;
    }
}

@media (max-width: 768px) {
    .featured-post article {
        grid-template-columns: 1fr;
    }
    .main-navigation ul {
        flex-direction: column;
        text-align: center;
    }
}

