/* --- المتغيرات والألوان الأساسية --- */
:root {
    --primary-green: #2e7d32;
    --text-dark: #222222;
    --text-light: #666666;
    --bg-body: #ffffff; /* أبيض نقي تماماً */
    --card-bg: #ffffff;
    --accent-red: #d32f2f; /* أحمر قوي لزر الـ CTA لجذب الانتباه */
    --font-heading: 'Lora', serif;
    --font-body: 'Open Sans', sans-serif;
}

/* --- التنسيقات العامة --- */
body {
    font-family: var(--font-body);
    line-height: 1.8;
    color: var(--text-dark);
    margin: 0;
    background-color: var(--bg-body);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- الهيدر (Header) --- */
header {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
}

.logo .highlight {
    color: var(--primary-green);
}

.nav-links a {
    margin-left: 20px;
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-green);
}

/* --- قسم البطل الاحترافي (Hero Pro) الموجه للربح --- */
.hero-pro {
    padding: 120px 20px;
    text-align: center;
    color: #fff;
    margin-bottom: 50px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.hero-pro h1 {
    font-family: var(--font-heading);
    font-size: 52px;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-pro p {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.95;
}

/* زر الـ CTA الرئيسي الموجه للمال */
.btn-hero {
    display: inline-block;
    background-color: var(--accent-red);
    color: #fff;
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 5px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.4);
    transition: transform 0.2s, background-color 0.2s;
}

.btn-hero:hover {
    transform: translateY(-2px);
    background-color: #b71c1c;
}

/* عناصر الثقة (Trust Signals) */
.trust-signals {
    margin-top: 35px;
    display: flex;
    justify-content: center;
    gap: 25px;
    font-size: 14px;
    font-weight: 600;
    color: #ffd54f; /* ذهبي للثقة والمصداقية */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* --- عنوان القسم (Section Title) --- */
.section-title {
    text-align: center;
    margin: 40px 0 20px;
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--text-dark);
}

/* --- شبكة المقالات (Posts Grid) --- */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.post-card {
    background: #ffffff;
    border: 1px solid #e1e4e8;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    
    /* أضف هذه الخصائص لتثبيت أبعاد الكارت ودفع الزر للأسفل */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%; /* لضمان تساوي ارتفاع الكروت في نفس السطر */
}

.post-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transform: translateY(-5px);
}

.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.post-card h3 {
    font-family: var(--font-heading);
    margin: 0 0 10px;
    font-size: 22px;
    color: var(--text-dark);
}

.post-card p {
    flex-grow: 1;
}



.post-card .read-more, 
.post-card a.read-more, 
.post-card .btn-read {
    margin-top: 20px;
    align-self: flex-start; /* أو إزالته إذا أردت الزر على اليسار/اليمين تماماً */
}




.btn-card {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--primary-green);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.btn-card:hover {
    background-color: #1b5e20;
}

/* --- تنسيقات صفحة المقال (Post Page) --- */
.post-page {
    background: #fff;
}

.post-content {
    max-width: 700px;
    padding: 60px 20px;
}

.post-content h1 {
    font-family: var(--font-heading);
    font-size: 40px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.featured-img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 30px;
}

.post-content h2 {
    font-family: var(--font-heading);
    margin-top: 40px;
    font-size: 26px;
}

.post-content p {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 20px;
}

/* صندوق الأفلييت الاحترافي (Affiliate Box) */
.affiliate-box {
    background: #f1f8e9;
    border: 2px dashed var(--primary-green);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin: 40px 0;
}

.affiliate-box h3 {
    margin-top: 0;
    color: var(--primary-green);
    font-family: var(--font-heading);
    font-size: 24px;
}

.affiliate-box p {
    margin-bottom: 20px;
}

/* --- الفوتر (Footer) --- */
footer {
    background-color: #1a1a1a;
    color: #cccccc;
    padding: 40px 0;
    text-align: center;
    font-size: 13px;
}

footer a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 10px;
}

footer a:hover {
    text-decoration: underline;
}
.testimonials {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 14px;
    color: #fff;
    font-style: italic;
}
.quote { max-width: 300px; }
.stars { color: #ffd54f; display: block; margin-top: 5px; }


/* --- التجاوب مع الهواتف المحمولة (Responsive Design) --- */
@media screen and (max-width: 768px) {
    
    /* تصغير مساحة قسم البطل على الموبايل */
    .hero-pro {
        padding: 60px 15px;
    }

    /* تصغير العنوان الرئيسي ليناسب شاشة الهاتف دون أن يخرج عن الحدود */
    .hero-pro h1 {
        font-size: 32px;
        line-height: 1.3;
    }

    /* تصغير النص الوصفي */
    .hero-pro p {
        font-size: 16px;
    }

    /* تصغير زر الـ CTA قليلاً ليكون مريحاً بالضغط بالأصبع */
    .btn-hero {
        padding: 14px 25px;
        font-size: 15px;
        width: 100%; /* جعل الزر عريضاً على الهواتف لسهولة الضغط */
        box-sizing: border-box;
    }

    /* تحويل قسم آراء العملاء إلى عمود واحد فوق بعضه بدلاً من بجانب بعض */
    .testimonials {
        flex-direction: column;
        gap: 15px;
        margin-top: 30px;
    }

    .quote {
        max-width: 100%;
        font-size: 13px;
    }

    /* جعل عناصر الثقة تظهر بشكل مرتب عمودياً أو أصغر حجماً */
    .trust-signals {
        flex-direction: column;
        gap: 8px;
        font-size: 13px;
    }

    /* تصغير الهيدر وقائمة التنقل */
    nav {
        flex-direction: column;
        gap: 10px;
    }

    .nav-links a {
        margin: 0 10px;
        font-size: 13px;
    }
}


/* توسيع حاوية المقال لتصبح بين 700px إلى 800px لتتوازن مع الشاشة */
.post-content {
    max-width: 760px; /* العرض المثالي للقراءة المريحة وللملء المتوازن */
    margin: 0 auto;
    padding: 40px 20px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2c3e50;
}

/* إبراز الروابط النصية داخل المقال بلون مميز وواضح للزوار */
.post-content p a, 
.post-content li a {
    color: #0066cc; /* أزرق داكن بارز أو يمكنك جعله أخضر صريح #27ae60 */
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.2s ease;
}

.post-content p a:hover, 
.post-content li a:hover {
    color: #1b4f72;
}

/* تنسيق زر التحويل في منتصف المقال (Mid-Article CTA Box) */
.mid-article-cta {
    background: #f8f9fa;
    border-left: 4px solid #27ae60;
    border-top: 1px solid #e1e4e8;
    border-right: 1px solid #e1e4e8;
    border-bottom: 1px solid #e1e4e8;
    padding: 25px;
    margin: 35px 0;
    border-radius: 6px;
    text-align: center;
}

.mid-article-cta h4 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 1.25rem;
}

.btn-mid-cta {
    display: inline-block;
    background-color: #27ae60;
    color: #ffffff;
    padding: 12px 25px;
    margin-top: 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: background-color 0.2s ease;
}

.btn-mid-cta:hover {
    background-color: #219653;
}