/* تنظیمات عمومی و راست‌چین */
:root {
    --primary-color: #0077b6; /* آبی تیره */
    --secondary-color: #00b4d8; /* آبی روشن */
    --accent-color: #ee9b00; /* نارنجی/زرد جذاب */
    --text-dark: #2a2a2a;
    --text-light: #f5f5f5;
    --background-light: #ffffff;
    --background-dark: #0077b6;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Tahoma', sans-serif;
    background-color: #f5f5f5;
    color: var(--text-dark);
    line-height: 1.7;
    direction: rtl; /* راست به چپ */
    text-align: right;
}

h1, h2, h3 {
    font-family: 'Lalezar', cursive; /* استفاده از فونت مدرن برای تیترها */
    color: var(--primary-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* هدر چسبنده */
.sticky-header {
    background-color: var(--background-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky; /* نوار ناوبری چسبنده */
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo {
    color: var(--primary-color);
    font-size: 1.8em;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s;
}

.sticky-header nav ul {
    list-style: none;
    display: flex;
}

.sticky-header nav ul li {
    margin-right: 25px;
}

.sticky-header nav ul li a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    padding: 5px 10px;
    transition: color 0.3s, border-bottom 0.3s;
}

.sticky-header nav ul li a:hover {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--accent-color);
}

/* بخش بنر اصلی (Hero) */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-light);
    padding: 100px 20px;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 15px;
    color: var(--text-light); /* رنگ سفید برای تیتر اصلی */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-content .subtitle {
    font-size: 1.3em;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color); /* دکمه نارنجی/زرد برجسته */
    color: var(--text-dark);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* بخش دوره‌ها */
.courses-section {
    padding: 60px 20px;
    text-align: center;
}

.courses-section h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
}

.course-grid {
    display: flex;
    justify-content: center;
    gap: 30px; /* فاصله بین کارت‌ها */
    flex-wrap: wrap; /* برای ریسپانسیو بودن */
}

.course-card {
    background-color: var(--background-light);
    border-radius: 12px;
    padding: 30px;
    width: 300px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s, box-shadow 0.4s;
    text-align: center;
}

.course-card:hover {
    transform: translateY(-10px); /* افکت شناور شدن */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-icon {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-light);
    background-color: var(--secondary-color);
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.course-card h3 {
    margin-bottom: 10px;
    font-size: 1.5em;
}

.details-button {
    display: inline-block;
    margin-top: 20px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid var(--primary-color);
    transition: color 0.3s, border-color 0.3s;
}

.details-button:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

/* بخش مزایا */
.features-section {
    background-color: #e6f3ff; /* پس‌زمینه آبی بسیار روشن */
    padding: 50px 20px;
    text-align: center;
}

.features-section h2 {
    margin-bottom: 30px;
}

.features-section ul {
    list-style: none;
    display: inline-block;
    text-align: right;
    font-size: 1.1em;
}

.features-section ul li {
    background-color: var(--background-light);
    margin-bottom: 10px;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* فوتر */
.main-footer {
    background-color: var(--background-dark);
    color: var(--text-light);
    padding: 30px 20px;
    text-align: center;
    font-size: 0.95em;
}

.main-footer p {
    margin: 5px 0;
}

/* ریسپانسیو (برای دستگاه‌های کوچک) */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .sticky-header nav ul {
        margin-top: 15px;
        justify-content: center;
    }

    .sticky-header nav ul li {
        margin: 0 10px;
    }

    .hero-content h1 {
        font-size: 2.5em;
    }

    .course-card {
        width: 100%;
    }
}

.contact-section {
    padding: 60px 20px;
    background-color: var(--background-light); /* پس‌زمینه سفید */
    text-align: center;
}

.contact-section h2 {
    font-size: 2.2em;
    margin-bottom: 40px;
}

.manager-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 350px;
    margin: 0 auto 30px;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    background-color: #f9f9f9;
}

.manager-photo {
    width: 150px; /* اندازه عکس */
    height: 150px;
    border-radius: 50%; /* گرد کردن کامل تصویر */
    object-fit: cover;
    border: 5px solid var(--accent-color); /* حاشیه زرد جذاب */
    margin-bottom: 20px;
}

.manager-card h3 {
    font-size: 1.6em;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.manager-card p {
    color: #666;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.contact-btn {
    background-color: var(--primary-color);
    color: white;
}

.contact-btn:hover {
    background-color: #005f90;
    transform: translateY(-3px);
}

.contact-note {
    color: #666;
    font-style: italic;
    margin-top: 20px;
}

.icon{
    width: 35px;
    height: 25px;
  
}