
    @font-face {
        font-family: 'Vazir';
        src: url('Vazir.woff2') format('woff2'),
            url('Vazir.woff') format('woff'),
            url('Vazir.ttf') format('truetype'),
            url('Vazir.eot') format('embedded-opentype');
        font-weight: normal;
        font-style: normal;}
:root {
    --primary-color: #4361ee;
    --secondary-color: #3a0ca3;
    --accent-color: #f72585;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --success-color: #4cc9f0;
    --font-en: 'Poppins', 'Sans-serif';
    --font-fa: 'Vazir';
}
    
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-en);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #ffeff8;
    width: 100%;
    box-sizing: border-box;
}

body[lang="fa"] {
    font-family: 'Vazir';
    direction: rtl;
}

/* نوار ناوبری */
.navbar {
    background-color: #ff13ae75;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-logo .logo-text {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-color);
}

.language-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    padding: 0.25rem .5rem;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s;
}

.lang-btn.active, .lang-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

/* بخش قهرمان */
.hero {
    max-width: 1200px;
    /* margin: .5rem auto; */
    /* padding: 2rem; */
    display: flex;
    align-items: center;
    /* min-height: 80vh; */
}

.hero-content {
    flex: 1;
    
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #666;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(90deg, 
                var(--primary-color), 
                #3498db, 
                var(--primary-color));
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    background-size: 200% 100%;
    animation: gradientSlide 3s ease infinite;
    position: relative;
    overflow: hidden;
}

@keyframes gradientSlide {
    0% {
        background-position: 100% 50%;
    }
    50% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
                transparent, 
                rgba(255, 255, 255, 0.3), 
                transparent);
    animation: shine 2s ease-in-out infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

.cta-button:hover {
    background-color: var(--secondary-color);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-element {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50% 30% 70% 40% / 60% 40% 60% 40%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* بخش دوره‌ها */
.courses {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 2rem;
}

.courses h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--secondary-color);
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.course-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.course-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* صفحه درباره ما */
.about-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.about-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.about-content {
    max-width: 1200px;
   /*  margin: 1rem auto; */
    padding: 2rem;
    display: flex;
    gap: 4rem;
}

.about-text {
    flex: 2;
}

.about-text h2 {
    color: var(--secondary-color);
    margin: 2rem 0 1rem 0;
}

.about-stats {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

/* پاورقی */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
}

/* واکنش‌گرایی */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    /* .floating-element {
        width: 200px;
        height: 200px;
        margin-top: 2rem;
       
    } */
}




        .footer {
            background: linear-gradient(135deg, #2c3e50 0%, #1a2530 100%);
            color: #fff;
            padding: 3rem 1rem;
            margin-top: -5px;
        }
        
        .footer-container {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
        }
        
        .footer-section {
            padding: 0 1rem;
        }
        
        .footer-section h3 {
            font-size: 1.4rem;
            margin-bottom: 1.5rem;
            position: relative;
            padding-bottom: 0.5rem;
        }
        
        .footer-section h3::after {
            content: '';
            position: absolute;
            bottom: 0;
            right: 0;
            width: 50px;
            height: 3px;
            background: linear-gradient(90deg, #3498db, #2ecc71);
            border-radius: 3px;
        }
        
        .footer-about p {
            line-height: 1.8;
            margin-bottom: 1.5rem;
            color: #ecf0f1;
        }
        
        .footer-links ul {
            list-style: none;
        }
        
        .footer-links li {
            margin-bottom: 0.8rem;
        }
        
        .footer-links a {
            color: #bdc3c7;
            text-decoration: none;
            transition: all 0.3s ease;
            display: inline-block;
        }
        
        .footer-links a:hover {
            color: #3498db;
            transform: translateX(-5px);
        }
        
        .footer-contact p {
            display: flex;
            align-items: center;
            margin-bottom: 1rem;
            color: #ecf0f1;
        }
        
        .footer-contact i {
            margin-left: 0.5rem;
            color: #3498db;
            font-size: 1.2rem;
        }
        
        .footer-social {
            display: flex;
            gap: 1rem;
            margin-top: 1.5rem;
        }
        
        .footer-social a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background: #34495e;
            color: #fff;
            border-radius: 50%;
            text-decoration: none;
            transition: all 0.3s ease;
        }
        
        .footer-social a:hover {
            background: #3498db;
            transform: translateY(-5px);
        }
        
        .footer-newsletter p {
            margin-bottom: 1.5rem;
            color: #ecf0f1;
        }
        
        .newsletter-form {
            display: flex;
            gap: 0.5rem;
        }
        
        .newsletter-form input {
            flex: 1;
            padding: 0.8rem 1rem;
            border: none;
            border-radius: 4px;
            outline: none;
        }
        
        .newsletter-form button {
            background: linear-gradient(90deg, #3498db, #2ecc71);
            color: white;
            border: none;
            padding: 0 1.2rem;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .newsletter-form button:hover {
            background: linear-gradient(90deg, #2980b9, #27ae60);
        }
        
        .footer-bottom {
            max-width: 1200px;
            margin: 2rem auto 0;
            padding-top: 1.5rem;
            border-top: 1px solid #34495e;
            text-align: center;
            color: #bdc3c7;
            font-size: 0.9rem;
        }
        
        .footer-bottom a {
            color: #3498db;
            text-decoration: none;
        }
        
        /* طراحی واکنش‌گرا */
        @media (max-width: 768px) {
            .footer-container {
                grid-template-columns: 1fr;
                text-align: center;
            }
            
            .footer-section h3::after {
                right: 50%;
                transform: translateX(50%);
            }
            
            .newsletter-form {
                flex-direction: column;
            }
            
            .footer-social {
                justify-content: center;
            }
        }







  .slider {
    width: 90%;
    max-width: 900px;
    margin: auto;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    aspect-ratio: 16 / 9; /* نسبت عرض به ارتفاع - قابل تغییر */
    background: #ddd; /* در صورتی که تصاویر دیر لود شوند */
  }

  .slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
  }

  .slider img.active {
    opacity: 1;
    z-index: 1;
  }

  /* دکمه‌های کنترل */
  .controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 2;
  }

  .controls button {
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    font-size: 20px;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 5px;
  }

  .dots {
    text-align: center;
    margin-top: 10px;
  }

  .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 4px;
    background: #bbb;
    border-radius: 50%;
    cursor: pointer;
  }

  .dot.active {
    background: #333;
  }

  @media (max-width: 600px) {
    .controls button {
      font-size: 16px;
      padding: 6px 12px;
    }

    .dot {
      width: 8px;
      height: 8px;
    }
  }
