/* ==========================================================================
   قالب "جاد للصحة" الاحترافي - نسخة طبق الأصل من ديزاين Hostinger AI 100%
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

:root {
    --bg-cream: #f4f0ea;       /* لون الخلفية البيج الناعم المريح */
    --card-white: #ffffff;     /* لون الكروت ناصع البياض */
    --text-dark: #2b2927;      /* لون الخط الداكن الهادئ */
    --text-muted: #6e6a66;     /* لون النصوص الفرعية */
    --hero-brown: #a67c52;     /* اللون البني الترابي الفخم للواجهة */
    --border-radius: 24px;     /* الزوايا الدائرية الناعمة للكروت */
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    direction: rtl;
    text-align: right;
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   1. الهيدر العلوي الأبيض (Navbar)
   ========================================================================== */
.top-nav {
    background-color: var(--card-white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-logo {
    height: 55px; /* هاد القياس مثالي جداً باش يجي متناسق مع المنيو */
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.site-logo:hover {
    transform: scale(1.05);
}

.nav-menu a {
    color: var(--text-muted);
    text-decoration: none;
    margin-right: 30px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--text-dark);
}

/* ==========================================================================
   2. الواجهة الترحيبية البنية (Hero Section)
   ========================================================================== */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.2)), url('https://images.unsplash.com/photo-1547886596-4301beceb430?q=80&w=1200') no-repeat center center;
    background-size: cover;
    background-color: var(--hero-brown);
    color: #ffffff;
    padding: 120px 20px;
    text-align: center;
    margin-bottom: 60px;
}

.hero h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
}

.hero p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 650px;
    margin: 0 auto;
}

/* ==========================================================================
   3. شبكة كروت المقالات والصور
   ========================================================================== */
.section-intro {
    text-align: center;
    margin-bottom: 40px;
}

.section-intro p {
    font-size: 16px;
    color: var(--hero-brown);
    font-weight: 600;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

/* ستايل الكروت الأبيض بدون Padding علوي أو جانبي للصور لضمان التغطية كاملة */
.card {
    background: var(--card-white);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.01);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: var(--transition);
    overflow: hidden; /* ضروري جداً باش تقطع الصورة مع حواف الكارت الدائرية */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(43, 41, 39, 0.05);
}

/* تنسيق الصورة العريض اللي كيغطي كاع البيوضية من الفوق والجناب */
.card-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: var(--border-radius) var(--border-radius) 0 0; /* دائرية فقط من الفوق */
    margin-bottom: 0;
}

/* إضافة الـ Padding للنصوص والزر لداخل الكارت باش يجيو محاذيين لداخل */
.card h3, .card p, .card .btn {
    padding-left: 28px;
    padding-right: 28px;
}

.card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.5;
    padding-top: 24px; /* مسافة نقيّة بين الصورة والعنوان */
}

.card p {
    font-size: 14.5px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 25px;
    padding-bottom: 10px;
}

/* زر اقرأ المقال بالكامل الخلفية الخضراء الأنيقة المتناسقة */
.btn {
    background-color: #00a884; /* نفس اللون الأخضر الاحترافي المستعمل ف الأزرار */
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: block;
    text-align: center;
    padding: 12px 0 !important; /* فرض الـ padding العمودي */
    margin: 0 28px 28px 28px; /* هوامش خارجية متناسقة مع حواف النص */
    border-radius: 8px;
    transition: var(--transition);
}

.card:hover .btn {
    background-color: #008f6f; /* تغميق اللون الأخضر عند التمرير بالماوس */
    color: #ffffff;
}

/* ==========================================================================
   4. الفوتر (Footer)
   ========================================================================== */
footer {
    background-color: var(--card-white);
    color: var(--text-muted);
    text-align: center;
    padding: 50px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
}

footer .footer-links {
    margin-top: 15px;
}

footer a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 10px;
    font-size: 13px;
}

footer a:hover {
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .nav-container { flex-direction: column; padding: 15px 0; height: auto; gap: 10px; }
    .hero h1 { font-size: 32px; }
    .articles-grid { grid-template-columns: 1fr; }
}
/* تنسيق اللوغو الكبير داخل الواجهة البنية */
.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px; /* مسافة بين اللوغو والعنوان */
}

.hero-logo {
    width: 180px; /* كتحكم ف كبر اللوغو وسط الواجهة من هنا */
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0px 4px 10px rgba(0, 0, 0, 0.15)); /* ظل خفيف باش يجي اللوغو معزول وواضح */
}
/* ==========================================================================
   تنسيق صفحات المقالات الداخلية
   ========================================================================== */
.breadcrumbs {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.breadcrumbs a {
    color: var(--hero-brown);
    text-decoration: none;
}
.post-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
    line-height: 1.4;
}
.post-hero-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}
.post-content h2 {
    font-size: 22px;
    color: var(--text-dark);
    margin-top: 35px;
    margin-bottom: 15px;
}
.post-content p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.9;
}
.post-content ul {
    margin-right: 20px;
    margin-bottom: 20px;
}
.post-content li {
    margin-bottom: 10px;
    color: var(--text-muted);
}
