/* 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;
    }
}
