body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    direction: rtl;
}

header {
    background-color: #3498db; /* آبی ملایم */
    padding: 20px;
    height: 70px; /* ارتفاع ثابت هدر */
    position: relative; /* برای موقعیت‌دهی مطلق لوگو */
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    position: absolute; /* موقعیت‌دهی مطلق */
    top: 10px; /* فاصله از بالای هدر */
    right: 20px; /* فاصله از چپ هدر */
}

.logo img {
    width: 250px; /* سایز بزرگ‌تر لوگو */
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: translateX(-5px); /* حرکت لوگو */
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.section {
    display: flex;
    align-items: center;
    padding: 50px;
}

.section img {
    width: 40%;
    border-radius: 10px;
    margin: 0 20px;
}

.green-bg {
    background-color: #86e3ad; /* سبز ملایم */
}

.blue-bg {
    background-color: #6fb6e6; /* آبی ملایم */
}

.content {
    width: 60%;
}

footer {
    background-color: #3498db; /* آبی ملایم */
    padding: 20px;
    text-align: center;
    color: white;
}

.social-icons img {
    width: 30px;
    margin: 0 10px;
}

.modal {
    display: none; /* ابتدا مودال مخفی است */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5); /* پس‌زمینه تیره */
}

/* استایل برای محتوای مودال */
.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    position: relative;
}

/* استایل برای دکمه بستن (X) */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}