/* تنظیمات کلی */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
    direction: rtl;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* ارتفاع کل صفحه */
}

/* هدر */
header {
    background-color: #2c3e50; /* سورمه‌ای تیره */
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 28px;
}

/* نوار منو */
nav ul {
    list-style-type: none;
    background-color: #34495e;
    margin: 0;
    padding: 10px;
    text-align: center;
}

nav ul li {
    display: inline;
    margin-right: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
}

nav ul li a:hover {
    text-decoration: underline;
}

/* محتوای اصلی */
main {
    flex: 1; /* باعث می‌شود که محتوا بین هدر و فوتر پر شود */
    padding: 20px;
    background-color: #ffffff;
    color: #333;
}

/* بخش‌های مختلف */
section {
    margin-bottom: 30px;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

section h2 {
    font-size: 24px;
    color: #2c3e50;
}

/* جای خالی برای عکس */
.image-placeholder {
    width: 100%;
    height: 200px;
    background-color: #34495e;
    margin-bottom: 15px;
    text-align: center;
    line-height: 200px;
    color: #ffffff;
    font-size: 18px;
}

/* لینک‌ها */
a {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    text-decoration: underline;
}

/* فوتر در پایین صفحه */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 10px;
    width: 100%;
    margin-top: auto; /* باعث می‌شود همیشه پایین بماند */
}

/* تنظیمات واکنش‌گرا برای موبایل */
@media (max-width: 768px) {
    nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        display: block;
        margin-bottom: 10px;
    }
}
