/* Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Fonts */
body {
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
    background-color: #f9f9f9;
    color: #333;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
header {
    background-color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* استایل کلی برای هدر */
header .container {
    display: flex;
    justify-content: space-between; /* فاصله بین لوگو و منو */
    align-items: center; /* عمودی وسط چین کردن */
    padding: 10px 20px; /* فاصله داخلی برای هدر */
    background-color: #f8f9fa; /* رنگ پس‌زمینه هدر، می‌توانید آن را به دلخواه تغییر دهید */
}

.logo h1 {
    margin: 0;
    font-size: 24px;
    color: #007BFF;
}

/* Hero Section */
.hero {
    background: url('images/hero-background.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 80px 20px; /* کاهش پدینگ برای موبایل */
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
}

.cta-button {
    background-color: #28a745;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    padding: 10px 20px; /* Added padding - 10px top/bottom, 20px left/right */
    display: inline-block; /* Ensures padding works properly on anchor elements */
}

.cta-button:hover {
    background-color: #218838;
}

/* Advantages Section */
.advantages {
    background-color: #fff;
    padding: 60px 20px;
    text-align: center;
}

.advantages .advantage {
    display: inline-block;
    width: 23%;
    margin: 1%;
    vertical-align: top;
}

.advantages img {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
}

.advantages h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #007BFF;
}

.advantages p {
    font-size: 16px;
    color: #555;
}

/* Contact Section */
.contact {
    background-color: #007BFF;
    color: #fff;
    text-align: center;
    padding: 60px 20px;
}

.contact h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.phone-number {
    font-size: 24px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.phone-number:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

footer p {
    font-size: 14px;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .advantages .advantage {
        width: 45%; /* دو آیتم در هر ردیف */
    }
}

@media (max-width: 768px) {
    .hero h2 {
        font-size: 32px;
    }

    .hero p {
        font-size: 18px;
    }

    .advantages .advantage {
        width: 100%; /* یک آیتم در هر ردیف */
        margin: 15px 0;
    }

    .advantages img {
        width: 70px;
        height: 70px;
    }

    .contact h2 {
        font-size: 24px;
    }

    .phone-number {
        font-size: 20px;
    }
}

footer .diwar-link {
    margin-top: 10px;
}

footer .diwar-link a {
    color: #ffcc00; /* Link color */
    text-decoration: none;
    font-size: 16px;
}

footer .diwar-link a:hover {
    text-decoration: underline;
}

/* Contact Section */
/* ... existing styles ... */

.contact .diwar-link {
    margin-top: 20px;
}

.contact .diwar-link a {
    color: #fff; /* Match the text color of the contact section */
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
}

.contact .diwar-link a:hover {
    text-decoration: underline;
}

/* استایل برای منوی ناوبری */
.nav-menu {
    list-style: none; /* حذف علامت‌های لیست */
    display: flex; /* نمایش لیست به صورت فلکسیبل */
    gap: 20px; /* فاصله بین آیتم‌های منو */
    margin: 0;
    padding: 0;
}

.nav-menu li {
    /* می‌توانید استایل‌های اضافی برای آیتم‌های منو اضافه کنید */
}

.nav-menu a {
    text-decoration: none; /* حذف زیرخط لینک‌ها */
    color: #333; /* رنگ لینک‌ها */
    font-weight: 700; /* ضخامت فونت لینک‌ها */
    transition: color 0.3s ease; /* انیمیشن برای تغییر رنگ */
}

.nav-menu a:hover {
    color: #007BFF; /* رنگ لینک‌ها هنگام هاور */
}

