/* ================================================= */
/* === ملف التنسيق الشامل والخاص بالمدونة فقط === */
/* ================================================= */

/* --- 1. متغيرات الألوان والخطوط الأساسية (من style.css الرئيسي) --- */
:root {
    --canzelo-blue-dark: #0a2342;
    --canzelo-blue-medium: #1F3C5A;
    --canzelo-blue-light: #3d70b2;
    --canzelo-gold: #ffd700;
    --canzelo-gold-darker: #cca300;
    --canzelo-white: #ffffff;
    --canzelo-light-grey: #f0f4f8;
    --canzelo-text-dark: #333333;
    --canzelo-text-light: #f8f9fa;
}

/* --- 2. التنسيقات العامة (من style.css الرئيسي) --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', sans-serif;
    line-height: 1.7;
    color: var(--canzelo-text-dark);
    background-color: #f9fafb; /* لون خلفية المدونة */
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- 3. تنسيقات الهيدر والفوتر (لصفحة المدونة الرئيسية) --- */
header {
    background-color: var(--canzelo-blue-dark);
    color: var(--canzelo-text-light);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link { text-decoration: none; }
.logo-img { height: 55px; display: block; }

.desktop-nav ul { list-style: none; display: flex; align-items: center; }
.desktop-nav ul li { margin-right: 25px; }
.desktop-nav ul li a { color: var(--canzelo-text-light); text-decoration: none; font-weight: 500; transition: color 0.3s ease; }
.desktop-nav ul li a:hover,
.desktop-nav ul li a.active { color: var(--canzelo-gold); }

.login-btn-nav { background-color: var(--canzelo-gold); color: var(--canzelo-blue-dark); padding: 8px 20px; border-radius: 5px; font-weight: 700; }
.login-btn-nav:hover { background-color: var(--canzelo-gold-darker); }


footer { background-color: var(--canzelo-blue-dark); color: #aaa; text-align: center; padding: 30px 0; font-size: 0.9em; }
footer a { color: #ccc; text-decoration: none; margin: 0 10px; }
footer a:hover { color: var(--canzelo-gold); }


/* --- 4. تنسيقات المدونة والمقالات (الكود الذي أضفناه سابقًا) --- */
.section { padding: 80px 0; }
.section-title { text-align: center; font-size: 2.5em; font-weight: 700; color: var(--canzelo-blue-dark); margin-bottom: 60px; position: relative; }
.section-title::after { content: ''; display: block; width: 80px; height: 4px; background-color: var(--canzelo-gold); margin: 15px auto 0; border-radius: 2px; }

.blog-list-container { max-width: 800px; margin: 40px auto; }
.article-preview { background-color: #ffffff; padding: 30px; border-radius: 12px; margin-bottom: 30px; box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08); transition: transform 0.3s ease, box-shadow 0.3s ease; border-right: 5px solid transparent; }
.article-preview:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12); border-right-color: var(--canzelo-gold); }
.article-preview h2 a { text-decoration: none; color: var(--canzelo-blue-dark); font-size: 1.8em; }
.article-preview p { color: #555; line-height: 1.8; font-size: 1.05em; margin-top: 15px; }
.article-preview .read-more { display: inline-block; margin-top: 20px; color: var(--canzelo-blue-light); text-decoration: none; font-weight: 700; transition: color 0.3s ease; }
.article-preview .read-more:hover { color: var(--canzelo-blue-dark); }

.article-container { max-width: 800px; margin: 60px auto; background-color: #ffffff; padding: 40px 50px; border-radius: 12px; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08); }
.article-container h1 { font-size: 2.8em; color: #0a2342; margin-bottom: 20px; line-height: 1.4; text-align: center; }
.article-container .article-intro { font-size: 1.2em; color: #555; margin-bottom: 30px; text-align: center; border-bottom: 1px solid #eee; padding-bottom: 30px; }
.article-container h3 { font-size: 1.8em; color: #1F3C5A; margin-top: 40px; margin-bottom: 20px; }
.article-container p { font-size: 1.1em; line-height: 1.9; color: #333; margin-bottom: 15px; }
.article-container ol, .article-container ul { padding-right: 25px; margin-top: 15px; }
.article-container li { margin-bottom: 18px; font-size: 1.1em; line-height: 1.9; padding-right: 10px; }

.lively-cta-box { background: linear-gradient(45deg, #3d70b2, #0a2342); color: #ffffff; padding: 40px 30px; border-radius: 12px; text-align: center; margin-top: 50px; box-shadow: 0 10px 30px rgba(31, 60, 90, 0.3); }
.lively-cta-box h3 { font-size: 2.2em; font-weight: 800; margin-top: 0; margin-bottom: 15px; color: #ffffff; }
.lively-cta-box p { font-size: 1.15em; max-width: 600px; margin: 0 auto 25px auto; opacity: 0.9; color: #ffffff; }
.cta-button { background-color: var(--canzelo-gold); color: var(--canzelo-blue-dark); padding: 15px 35px; font-size: 1.2em; font-weight: 700; text-decoration: none; border-radius: 8px; transition: background-color 0.3s ease, transform 0.3s ease; display: inline-block; }
.lively-cta-box .cta-button:hover { background-color: #ffffff; transform: scale(1.1); }

.other-articles-section { max-width: 800px; margin: 60px auto; padding-top: 30px; border-top: 1px solid #eee; }
.other-articles-section h2 { text-align: center; margin-bottom: 30px; color: #0a2342; font-size: 2em; }
.article-link-item { display: block; color: #1F3C5A; text-decoration: none; margin-bottom: 15px; padding: 20px; border-radius: 8px; transition: background-color 0.2s ease, transform 0.2s ease; border: 1px solid #eef2f7; }
.article-link-item:hover { background-color: #f8fafc; transform: translateY(-3px); }
.article-link-item h3 { margin: 0 0 5px 0; }