/* Global Styles */
:root {
    --primary-color: #2c3e50;
    --accent-color: #3498db;
    --text-color: #333;
    --bg-color: #f8f9fa;
    --white: #fff;
    --font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    direction: rtl; /* Important for Arabic */
    text-align: right;
    line-height: 1.6;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #2980b9;
}

/* Layout */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: var(--white);
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    min-height: 80vh;
}

/* Header */
header {
    background: var(--white);
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    display: block;
}

/* Navigation */
nav {
    text-align: center;
    margin-top: 10px;
}

nav a {
    margin: 0 10px;
    font-weight: 600;
}

/* Article Styles */
h1 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.4;
}

h2 {
    font-size: 22px;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 5px;
    display: inline-block;
}

h3 {
    font-size: 18px;
    margin-top: 20px;
    font-weight: bold;
}

p {
    margin-bottom: 15px;
    font-size: 18px;
}

ul, ol {
    margin-bottom: 20px;
    padding-right: 20px;
}

li {
    margin-bottom: 10px;
}

/* Meta info */
.meta {
    font-size: 14px;
    color: #777;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: var(--primary-color);
    color: var(--white);
    margin-top: 40px;
}

footer a {
    color: #bdc3c7;
    font-size: 14px;
    margin: 0 5px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--accent-color);
    color: var(--white);
    border-radius: 4px;
    margin-top: 10px;
}
.btn:hover {
    background: #2980b9;
    color: var(--white);
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 15px;
        width: auto;
    }
    h1 {
        font-size: 24px;
    }
}
/* Medical Categories Grid */
.medical-categories {
    margin: 40px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.category-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-right: 4px solid var(--accent-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.category-card h3 {
    color: var(--primary-color);
    margin-top: 0;
    font-size: 18px;
}

.category-card p {
    font-size: 15px;
    color: #555;
    margin: 0;
}

/* Why Trust Us Section */
.why-trust-us {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    color: white;
}

.why-trust-us h2 {
    color: white;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    margin-bottom: 25px;
}

.trust-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature {
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.feature strong {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
}

.feature p {
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

/* Latest Articles Section */
.latest-articles {
    margin: 40px 0;
}

.latest-articles h2 {
    color: var(--primary-color);
    width: 100%;
}

/* Medical Disclaimer Box */
.medical-disclaimer {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
}

.medical-disclaimer h3 {
    color: #856404;
    margin-top: 0;
    margin-bottom: 15px;
}

.medical-disclaimer p {
    color: #856404;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 10px;
}

.medical-disclaimer strong {
    font-weight: 700;
}

/* Article List Improvements */
.articles-list ul {
    list-style: none;
    padding: 0;
}

.articles-list li {
    background: #f8f9fa;
    margin-bottom: 10px;
    padding: 12px 15px;
    border-right: 3px solid var(--accent-color);
    border-radius: 4px;
    transition: background 0.3s;
}

.articles-list li:hover {
    background: #e9ecef;
}

.articles-list a {
    color: var(--text-color);
    font-weight: 500;
    display: block;
}

.articles-list a:hover {
    color: var(--accent-color);
}

/* Article Page Improvements */
.article-disclaimer {
    background: #fff3cd;
    border: 2px solid #ffc107;
    padding: 20px;
    margin: 25px 0;
    border-radius: 8px;
}

.article-disclaimer h3 {
    color: #856404;
    margin-top: 0;
    font-size: 18px;
}

.article-disclaimer p {
    color: #856404;
    margin-bottom: 10px;
}

.article-sources {
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    padding: 20px;
    margin: 25px 0;
    border-radius: 8px;
}

.article-sources h3 {
    color: #004085;
    margin-top: 0;
}

.article-sources ul {
    margin: 0;
    padding-right: 20px;
}

.article-sources li {
    margin-bottom: 8px;
    font-size: 14px;
}

.review-info {
    background: #f0f0f0;
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
    font-size: 14px;
    color: #555;
}

.review-info strong {
    color: #333;
}

/* Breadcrumb improvements */
.breadcrumb {
    padding: 10px 0;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: var(--accent-color);
}

.breadcrumb span {
    color: #333;
}

/* About Page Styles */
.about-intro, .about-mission, .about-vision, .about-values, .about-team, .about-contact, .about-editorial, .medical-expertise {
    margin-bottom: 35px;
}

.about-intro p, .about-mission p, .about-vision p, .about-values p, .about-team p, .about-contact p, .about-editorial p, .medical-expertise p {
    line-height: 1.8;
}

.expertise-box {
    background: #e8f5e9;
    border: 2px solid #4caf50;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.expertise-box h3 {
    color: #2e7d32;
    margin-top: 0;
}