  /* تعاریف اولیه و فونت */
        :root {
            --color-primary: #ccb0a5;
            --color-secondary: #f6e3c5;
            --color-accent: #e1c2a6;
            --color-light: #e6d8cd;
            --color-dark: #5a4a42;
        }
        

        @font-face {
            font-family:borna;
            src: url(./Yekan.woff);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing:border-box;
            font-family:borna;
        }
        
        body {
            background-color: var(--color-light);
            color: var(--color-dark);
            line-height: 1.6;
            overflow-x: hidden;
            font-family: borna;
        }
        
        /* منوی هامبورگر */
        .menu-toggle {
            position: fixed;
            top: 20px;
            left: 20px;
            z-index: 1000;
            cursor: pointer;
            background: var(--color-primary);
            padding: 10px;
            border-radius: 5px;
            display: none;
        }
        
        /* منوی کناری */
        .sidebar {
            width: 250px;
            height: 100vh;
            background-color: var(--color-primary);
            position: fixed;
            top: 0;
            right: -250px;
            transition: all 0.3s ease;
            z-index: 999;
            box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        }
        
        .sidebar.active {
            right: 0;
        }
        
        .sidebar-nav {
            padding: 20px;
        }
        
        .sidebar-nav ul {
            list-style: none;
        }
        
        .sidebar-nav ul li {
            margin-bottom: 15px;
            animation: fadeInRight 0.5s ease forwards;
            opacity: 0;
        }
        
        .sidebar-nav ul li:nth-child(1) { animation-delay: 0.1s; }
        .sidebar-nav ul li:nth-child(2) { animation-delay: 0.2s; }
        .sidebar-nav ul li:nth-child(3) { animation-delay: 0.3s; }
        .sidebar-nav ul li:nth-child(4) { animation-delay: 0.4s; }
        .sidebar-nav ul li:nth-child(5) { animation-delay: 0.5s; }
        
        .sidebar-nav ul li a {
            color: white;
            text-decoration: none;
            font-size: 1.1rem;
            display: block;
            padding: 8px 0;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            transition: all 0.3s ease;
        }
        
        .sidebar-nav ul li a:hover {
            color: var(--color-secondary);
            padding-right: 10px;
        }
        
        /* هدر */
        header {
            background-color: var(--color-primary);
            padding: 1rem 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        
        .logo {
            font-size: 1.8rem;
            font-weight: bold;
            color: white;
            animation: fadeIn 1s ease;
        }
        
        .main-nav ul {
            display: flex;
            list-style: none;
        }
        
        .main-nav ul li {
            margin-left: 1.5rem;
        }
        
        .main-nav ul li a {
            color: white;
            text-decoration: none;
            font-weight: 500;
            font-size: 28px;
            transition: all 0.3s ease;
            padding: 5px 10px;
            border-radius: 5px;
        }
        
        .main-nav ul li a:hover {
            background-color: var(--color-accent);
            color: var(--color-dark);
        }
        
        /* بخش‌های اصلی */
         section {
    padding: 15px;
    animation: fadeInUp 1s ease;
}

.hero {
   
    color: white;
    text-align: center;
    padding: 6rem 2rem;
    position: relative; 
    overflow: hidden; 

   
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
        url(./comoany.png); 

    background-size: cover; 
    background-position: center bottom; 
    background-repeat: no-repeat; 
    background-attachment: fixed; 
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    animation: fadeInDown 1s ease;
}

.hero p {
    font-size: 25px;
    max-width: 800px;
    margin: 0 auto 2rem;
    animation: fadeInUp 1s ease 0.3s forwards;
    opacity: 0;
    color: #ffdbc9; /* Original text color, adjust if needed for contrast with dark overlay */
    font-weight: bolder;
}

.btn {
    display: inline-block;
    background-color: var(--color-secondary);
    color: var(--color-dark);
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 23px;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.6s forwards;
    opacity: 0;
}

.btn:hover {
    background-color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Add or ensure these animations are defined if they are not already in your full CSS */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
       
        
        
        /* بخش دوره‌ها */
        .courses {
            background-color: var(--color-light);
        }
        
        .section-title {
            text-align: center;
            margin-bottom: 3rem;
            color: var(--color-dark);
        }
        
        .section-title h2 {
            font-size: 2.5rem;
            position: relative;
            display: inline-block;
            padding-bottom: 15px;
        }

       .faq h3{
        font-size: 23px;
       }
        .faq ul li{
            font-size: 17px;
            list-style: none;
        }
        
        .section-title h2::after {
            content: '';
            position: absolute;
            bottom: 0;
            right: 50%;
            transform: translateX(50%);
            width: 80px;
            height: 3px;
            background-color: var(--color-accent);
        }
        
        .course-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
        }
        
        .course-card {
            background-color: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
            animation: fadeInUp 0.5s ease forwards;
            opacity: 0;
        }
        
        .course-card:nth-child(1) { animation-delay: 0.2s; }
        .course-card:nth-child(2) { animation-delay: 0.4s; }
        .course-card:nth-child(3) { animation-delay: 0.6s; }
        
        .course-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0,0,0,0.15);
        }
        
        .course-img {
            height: 200px;
            background-color: var(--color-secondary);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--color-dark);
            font-size: 2rem;
        }
        
        .course-content {
            padding: 1.5rem;
        }
        
        .course-content h3 {
            font-size: 1.5rem;
            margin-bottom: 1rem;
            color: var(--color-dark);
        }
        
        .course-content p {
            margin-bottom: 1.5rem;
            color: #666;
            font-size: 18px;
            font-weight: bold;
        }
        
        /* بخش ویژگی‌ها */

      .features {
    /* پس‌زمینه قبلی (background-color) با پس‌زمینه جدید حاوی عکس و گرادیانت جایگزین می‌شود */
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), /* لایه شفاف و تیره */
        url(./comoany.png); /* عکس پس‌زمینه شما */
    background-size: cover; /* پوشش کامل المان */
    background-position: center bottom; /* موقعیت عکس: پایین و مرکز */
    background-repeat: no-repeat; /* عدم تکرار عکس */
    background-attachment: fixed; /* ثابت نگه داشتن پس‌زمینه هنگام اسکرول */
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background-color: white;
    font-size: 17px;
    font-weight: bold;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.feature-card:nth-child(1) {
    animation-delay: 0.2s;
}
.feature-card:nth-child(2) {
    animation-delay: 0.4s;
}
.feature-card:nth-child(3) {
    animation-delay: 0.6s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-dark);
}
        
        /* بخش تماس */
        
          .contact {
    background-color: var(--color-light);
    padding: 40px 0;
    font-family: 'IranSans', sans-serif;
    direction: rtl;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--color-dark);
    font-weight: 700;
}

.contact-info p {
    margin-bottom: 25px;
    line-height: 1.8;
    font-size: 16px;
    color: #555;
}

.contact-info ul {
    list-style: none;
    padding: 0;
    font-size: 18px;
}

.contact-info ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-form {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 16px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    font-size: 16px;
}

.form-group textarea {
    min-height: 100x;
    resize: none;
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-info h3 {
        font-size: 25px;
    }
    
    .contact-info ul {
        font-size: 25px;
    }
}
        
        /* فوتر */
        footer {
            background-color: var(--color-dark);
            color: white;
            padding: 3rem 2rem;
            text-align: center;
        }
        
        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
            text-align: right;
        }
        
        .footer-column h3 {
            font-size: 1.5rem;
            margin-bottom: 1.5rem;
            color: var(--color-secondary);
        }
        
        .footer-column ul {
            list-style: none;
        }
        
        .footer-column ul li {
            margin-bottom: 0.8rem;
        }
        
        .footer-column ul li a {
            color: #ddd;
            text-decoration: none;
            transition: all 0.3s ease;
        }
        
        .footer-column ul li a:hover {
            color: var(--color-secondary);
            padding-right: 5px;
        }
        
        .social-links {
            display: flex;
            justify-content: center;
            margin-top: 2rem;
        }
        
        .social-links a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background-color: rgba(255,255,255,0.1);
            color: white;
            border-radius: 50%;
            margin: 0 10px;
            transition: all 0.3s ease;
        }
        
        .social-links a:hover {
            background-color: var(--color-primary);
            transform: translateY(-5px);
        }
        
        .copyright {
            margin-top: 2rem;
            padding-top: 2rem;
            border-top: 1px solid rgba(255,255,255,0.1);
        }
        
        /* انیمیشن‌ها */
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        @keyframes fadeInUp {
            from { 
                opacity: 0;
                transform: translateY(20px);
            }
            to { 
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        @keyframes fadeInDown {
            from { 
                opacity: 0;
                transform: translateY(-20px);
            }
            to { 
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        @keyframes fadeInLeft {
            from { 
                opacity: 0;
                transform: translateX(20px);
            }
            to { 
                opacity: 1;
                transform: translateX(0);
            }
        }
        
        @keyframes fadeInRight {
            from { 
                opacity: 0;
                transform: translateX(-20px);
            }
            to { 
                opacity: 1;
                transform: translateX(0);
            }
        }
        
        /* رسپانسیو */
        @media (max-width: 992px) {
            .main-nav {
                display: none;
            }
            
            .menu-toggle {
                display: block;
            }
            
            .hero h1 {
                font-size: 2.5rem;
            }
        }
        
        @media (max-width: 768px) {
            .hero {
                padding: 4rem 1rem;
            }
            
            .hero h1 {
                font-size: 2rem;
            }
            
            section {
                padding: 3rem 1rem;
            }
            
            .section-title h2 {
                font-size: 2rem;
            }
        }
        
        @media (max-width: 576px) {
            .hero h1 {
                font-size: 1.8rem;
            }
            
            .btn {
                padding: 10px 20px;
            }
            
            .footer-content {
                grid-template-columns: 1fr;
                text-align: center;
            }
        }
/* team */

.team {
    background-color: var(--color-light);
    padding: 4rem 2rem;
    text-align: center; /* این فقط برای متن های کلی .team است، نه محتوای اعضا */
}

.team-container {
    max-width: 1200px;
    margin: 0 auto;
}

.team-grid {
    display: flex;
    justify-content: center; /* برای اینکه کل محتوای team-grid در وسط صفحه قرار گیرد */
    gap: 6rem; /* فاصله بین دو عکس را افزایش دادم (میتوانید تغییر دهید) */
    flex-wrap: wrap;
    /* justify-content: space-between;  این خط را حذف کردم، چون میخواهیم وسط چین شوند */
}

.team-member {
    display: flex;
    flex-direction: column; /* عکس و متن زیر هم قرار میگیرند */
    align-items: center; /* عکس و محتوای member-info در وسط team-member قرار میگیرند */
    max-width: 300px;
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.team-member:nth-child(1) { animation-delay: 0.2s; }
.team-member:nth-child(2) { animation-delay: 0.4s; }

.member-photo {
    width: 180px;
    height: 180px;
    margin-bottom: 1.5rem;
    position: relative;
}

.circle-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--color-secondary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.member-photo i {
    font-size: 8rem;
    color: var(--color-primary);
}

.member-info {
    text-align: center; /* این تضمین میکند که متن ها (h3 و p) وسط چین باشند */
}

.member-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--color-dark);
}

.member-info p {
    color: #5a4a42;
    font-weight: 600;
    font-size: 1.1rem;
}

/* انیمیشن هاور برای عکس‌ها */
.team-member:hover .circle-img {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: var(--color-accent);
}


.course-img{
    font-size: 50px;
}

*{
    user-select: none; cursor: default;
}
a{
    cursor: pointer;
}
/* رسپانسیو برای تبلت و موبایل */
@media (max-width: 768px) {
    .team-grid {
        gap: 2rem;
    }
    
    .member-photo {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .team-grid {
        flex-direction: column; 
        align-items: center;
        gap: 3rem;
    }
}