:root {
    --primary: #6A0DAD;
    --primary-dark: #5a0b94;
    --primary-light: #8a4fc1;
    --secondary: #FFEB3B;
    --secondary-dark: #fdd835;
    --accent: #ff4081;
    --light: #f8f9fa;
    --dark: #1e1e2c;
    --gray: #6c757d;
    --success: #4cc9f0;
    --gradient: linear-gradient(135deg, var(--primary), var(--primary-dark));
    --glass: rgba(255, 255, 255, 0.1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazir-Bold.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
  }
  
  @font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazir-Medium.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
  }
  
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.header.scrolled {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.98);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 22px;
}

.logo-text {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary);
}

.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    padding: 8px 0;
    transition: var(--transition);
}

.nav-menu a:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 3px;
    background: var(--secondary);
    transition: var(--transition);
    border-radius: 10px;
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-menu a:hover:after {
    width: 100%;
}

/* بخش جدید: آیکون‌های هدر */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-icon {
    position: relative;
    width: 45px;
    height: 45px;
    background: rgba(106, 13, 173, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.header-icon:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.cart-count {
    position: absolute;
    top: -5px;
    left: -5px;
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.auth-btn {
    padding: 10px 22px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.9rem;
}

.auth-btn.login {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.auth-btn.login:hover {
    background: var(--primary);
    color: white;
}

.auth-btn.signup {
    background: var(--primary);
    color: white;
    box-shadow: 0 5px 15px rgba(106, 13, 173, 0.3);
}

.auth-btn.signup:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(106, 13, 173, 0.4);
    background: var(--primary-dark);
}

/* منوی سبد خرید */
.cart-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 350px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
}

.cart-icon:hover .cart-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cart-dropdown h4 {
    color: var(--primary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light);
}

.cart-items {
    max-height: 200px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--light);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--primary);
    font-weight: 700;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid var(--light);
    font-weight: 700;
}

.cart-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.cart-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.cart-btn.view {
    background: var(--light);
    color: var(--dark);
}

.cart-btn.checkout {
    background: var(--primary);
    color: white;
}

.cart-btn:hover {
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%236A0DAD" fill-opacity="0.05" d="M0,128L48,117.3C96,107,192,85,288,112C384,139,480,213,576,218.7C672,224,768,160,864,138.7C960,117,1056,139,1152,149.3C1248,160,1344,160,1392,160L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom/cover;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
}

.hero-text h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--primary);
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px rgba(106, 13, 173, 0.3);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(106, 13, 173, 0.4);
    background: var(--primary-dark);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-5px);
}

.hero-image {
    position: relative;
    text-align: center;
}

.hero-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: perspective(1000px) rotateY(-10deg);
    transition: var(--transition);
}

.hero-image:hover .hero-img {
    transform: perspective(1000px) rotateY(0);
}

.floating-element {
    position: absolute;
    width: 80px;
    height: 80px;
    background: var(--primary-light);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    animation: float 6s ease-in-out infinite;
}

.floating-1 {
    top: -20px;
    left: -20px;
    animation-delay: 0s;
}

.floating-2 {
    bottom: 30px;
    right: -30px;
    animation-delay: 2s;
}

.floating-3 {
    top: 50%;
    left: -40px;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

/* Stats Section */
.stats-section {
    margin: 80px 0;
}

.stats-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    flex: 1;
    min-width: 220px;
}

.stat-card:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: var(--primary);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    font-size: 40px;
    margin-bottom: 20px;
    color: var(--primary);
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 10px;
}

.stat-text {
    font-size: 1.1rem;
    color: var(--gray);
}

/* Features Section */
.features {
    margin: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    color: var(--primary);
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 5px;
    background: var(--secondary);
    border-radius: 10px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: rgba(106, 13, 173, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 30px;
    color: var(--primary);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: var(--secondary);
    transform: rotateY(180deg);
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark);
}

.feature-desc {
    color: var(--gray);
    line-height: 1.8;
}

/* Courses Section */
.courses {
    margin: 100px 0;
}

.courses-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.courses-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 30px;
}

.course-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.course-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--secondary);
    color: var(--dark);
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.course-image {
    height: 200px;
    background: var(--primary);
    position: relative;
    overflow: hidden;
    background-position: center;
}

.course-image:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.course-content {
    padding: 25px;
}

.course-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark);
}

.course-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: var(--gray);
    font-size: 0.9rem;
}

.course-desc {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.7;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.course-price {
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--primary);
}

.enroll-btn {
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(106, 13, 173, 0.3);
}

.enroll-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(106, 13, 173, 0.4);
    background: var(--primary-dark);
}

/* Results Section */
.results {
    margin: 60px 0;
    background: #6A0DAD;
    padding: 50px 20px;
    border-radius: 20px;
    color: white;
}

.results .section-title {
    color: white;
    padding: 0 10px;
}

.results .section-title:after {
    background: #FFEB3B;
    border-radius: 10px;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
    padding: 0 10px;
}

.result-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 25px 20px;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.result-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
}

.student-avatar {
    width: 70px;
    height: 70px;
    background: rgba(255, 235, 59, 0.2);
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #FFEB3B;
    border: 2px solid #FFEB3B;
    padding: 5px;
}

.result-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: white;
    padding: 0 10px;
}

.result-card p {
    margin-bottom: 10px;
    opacity: 0.9;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    padding: 0 5px;
}

.result-card .achievement {
    font-weight: 700;
    color: #FFEB3B;
    font-size: 1rem;
    margin-top: 10px;
    padding: 8px 16px;
    background: rgba(255, 235, 59, 0.1);
    border-radius: 12px;
    display: inline-block;
}

/* Testimonials Section */
.testimonials {
    margin: 80px 0;
    padding: 0 20px;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    padding: 0 10px;
}

.testimonial-card {
    background: white;
    padding: 25px 20px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(106, 13, 173, 0.1);
    position: relative;
    border: 1px solid #f0f0f0;
}

.testimonial-card:before {
    content: '"';
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 3rem;
    color: #6A0DAD;
    font-family: serif;
    line-height: 1;
    opacity: 0.3;
    border-radius: 5px;
}

.testimonial-content {
    position: relative;
    z-index: 1;
    padding: 0 5px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    color: #666;
    line-height: 1.7;
    padding: 0 5px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 5px;
}

.author-avatar {
    width: 45px;
    height: 45px;
    background: #6A0DAD;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.author-details h4 {
    color: #6A0DAD;
    margin-bottom: 5px;
    font-size: 1rem;
}

.author-details p {
    color: #888;
    font-size: 0.85rem;
}

.testimonial-card:hover {
    border-color: #6A0DAD;
    transform: translateY(-5px);
    transition: all 0.3s ease;
    border-radius: 20px;
}

/* CTA Section */
.cta {
    margin: 100px 0;
    text-align: center;
}

.cta-content {
    background: var(--primary);
    padding: 80px 40px;
    border-radius: 30px;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-content:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,128L48,117.3C96,107,192,85,288,112C384,139,480,213,576,218.7C672,224,768,160,864,138.7C960,117,1056,139,1152,149.3C1248,160,1344,160,1392,160L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat center/cover;
    animation: wave 15s linear infinite;
}

@keyframes wave {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
}

.cta-desc {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    position: relative;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background: var(--secondary);
    color: var(--dark);
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    display: inline-block;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    background: var(--secondary-dark);
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo-icon {
    width: 75px;
    height: 75px;
    background: var(--light);
    border-radius: 10px;
    display: flex
;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 18px;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

.footer-section h3 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary);
    border-radius: 10px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a:hover {
    color: var(--secondary);
    transform: translateX(-5px);
}

.footer-newsletter p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    line-height: 1.8;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 50px;
    font-family: inherit;
}

.newsletter-button {
    background: var(--secondary);
    color: var(--dark);
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: var(--transition);
}

.newsletter-button:hover {
    transform: translateY(-3px);
    background: var(--secondary-dark);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* انیمیشن‌های اسکرول */
.fade-in-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.zoom-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.mobile-search {
   display: none;
}
/* Responsive */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
        margin-top: -140px;

    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .floating-element {
        display: none;
    }
    
    .nav-menu {
        display: none;
    }
    
    .stats-row {
        gap: 15px;
    }
    
    .stat-card {
        min-width: calc(50% - 15px);
    }

    .header-actions {
        gap: 15px;
    }
    
    .auth-buttons {
        display: none;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .stats-row {
        flex-direction: column;
    }
    
    .stat-card {
        min-width: 100%;
    }
    
    .courses-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .header-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .cart-dropdown {
        width: 300px;
        left: -100px;
    }

    .results {
        padding: 40px 15px;
        border-radius: 16px;
        margin: 40px 0;
    }
    
    .result-grid {
        padding: 0 5px;
        gap: 20px;
    }
    
    .result-card {
        padding: 20px 15px;
        border-radius: 14px;
    }
    
    .testimonials {
        padding: 0 15px;
        margin: 60px 0;
    }
    
    .testimonial-grid {
        padding: 0 5px;
        gap: 20px;
    }
    
    .testimonial-card {
        padding: 20px 15px;
        border-radius: 14px;
    }
    .mobile-search {
        display: flex !important
;
        justify-content: center;
        margin-top: 100px;
        padding: 20px;
    }
    .mobile-search input {
            flex: 1;
            border: none;
            padding: 12px 15px;
            outline: none;
            font-family: 'Vazirmatn', sans-serif;
        }
}

@media (max-width: 576px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 14px 25px;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .header-content {
        gap: 10px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .cart-dropdown {
        width: 280px;
        left: -120px;
    }
}
.mobile-search button {
    background: #6A0DAD;
    color: white;
    border: none;
    padding: 0 15px;
    border-radius: 200px 0px 0px 200px;
    cursor: pointer;
}
.mobile-search  {
border: none;
}

.nav-menu a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    padding: 0px;
    transition: color 0.3s 
ease;
    position: relative;
}


.exams {
    padding: 60px 0;
    background: var(--gradient);
    color: var(--light);
    position: relative;
    overflow: hidden;
}

.exams:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: cover;
}

.exams-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}



.section-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background: var(--secondary);
    border-radius: 8px;
}

.exams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.exam-card {
    background: var(--light);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.exam-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary-light);
    box-shadow: 0 15px 30px rgba(106, 13, 173, 0.2);
}

.exam-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--secondary);
    color: var(--dark);
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.exam-image {
    width: 100%;
    height: 120px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.exam-image:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0.15;
    transition: opacity 0.3s ease;
}

.exam-card:hover .exam-image:before {
    opacity: 0.3;
}

.default-image {
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.exam-content {
    padding: 15px;
    color: var(--dark);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.exam-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary);
    text-align: center;
    line-height: 1.3;
}

.exam-desc {
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 15px;
    line-height: 1.5;
    text-align: center;
    flex-grow: 1;
}

.exam-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: auto;
}

.exam-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
}

.enroll-btn {
    background: var(--primary);
    color: var(--secondary);
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(106, 13, 173, 0.2);
    display: flex;
    align-items: center;
    gap: 5px;
}

.enroll-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(106, 13, 173, 0.3);
}

.exams-footer {
    text-align: center;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.view-all-btn {
    background: var(--secondary);
    color: var(--dark);
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.view-all-btn:hover {
    background: var(--secondary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.no-categories {
    text-align: center;
    grid-column: 1 / -1;
    color: var(--light);
    font-size: 1.2rem;
    padding: 40px;
}

/* انیمیشن‌های اسکرول */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* Responsive */
@media (max-width: 1200px) {
    .exams-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 992px) {
    .exams-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

@media (max-width: 768px) {
    .exams {
        padding: 50px 15px;
    }

    .section-title {
        font-size: 2rem;
    }

    .exams-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }

    .exam-card {
        border-radius: 12px;
    }

    .exam-image {
        height: 100px;
    }

    .exam-content {
        padding: 12px;
    }

    .exam-title {
        font-size: 1rem;
    }

    .exam-desc {
        font-size: 0.75rem;
    }

    .exam-price {
        font-size: 0.8rem;
    }

    .enroll-btn {
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    .view-all-btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .exams {
        padding: 40px 10px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .exams-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .exam-image {
        height: 90px;
    }

    .exam-content {
        padding: 10px;
    }

    .exam-title {
        font-size: 0.9rem;
    }

    .exam-price {
        font-size: 0.75rem;
    }

    .enroll-btn {
        padding: 4px 8px;
        font-size: 0.7rem;
    }
}

@media (max-width: 400px) {
    .exams-grid {
        grid-template-columns: 1fr;
    }
}
button {
    position: relative;
    display: inline-block;
    cursor: pointer;
    outline: none;
    border: 0;
    vertical-align: middle;
    text-decoration: none;
    background: transparent;
    padding: 0;
    font-size: inherit;
    font-family: inherit, 'Vazir', 'Arial', sans-serif;
}

button.learn-more {
    width: 12rem;
    height: auto;
    direction: rtl;
}

button.learn-more .circle {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    position: relative;
    display: block;
    margin: 0;
    width: 3rem;
    height: 3rem;
    background: var(--accent);
    border-radius: 1.625rem;
}

button.learn-more .circle .icon {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    background: #fff;
}

button.learn-more .circle .icon.arrow {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    right: 0.625rem; /* فلش از سمت راست شروع می‌شود */
    width: 1.125rem;
    height: 0.125rem;
    background: none;
}

button.learn-more .circle .icon.arrow::before {
    position: absolute;
    content: "";
    top: -0.29rem;
    left: 0.0625rem; /* جهت فلش برای RTL */
    width: 0.625rem;
    height: 0.625rem;
    border-top: 0.125rem solid #fff;
    border-left: 0.125rem solid #fff; /* تغییر border-right به border-left */
    transform: rotate(-45deg); /* چرخش برای فلش به سمت چپ */
}

button.learn-more .button-text {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.75rem 0;
    margin: 0 1.85rem 0 0; /* حاشیه برای RTL */
    color: var(--light);
    font-weight: 700;
    line-height: 1.6;
    text-align: center;
    text-transform: uppercase;
}

button:hover .circle {
    width: 100%;
}

button:hover .circle .icon.arrow {
    background: #fff;
    transform: translate(-1rem, 0); /* حرکت فلش به سمت چپ هنگام هاور */
}

button:hover .button-text {
    color: #fff;
}

button {
    position: relative;
    display: inline-block;
    cursor: pointer;
    outline: none;
    border: 0;
    vertical-align: middle;
    text-decoration: none;
    background: transparent;
    padding: 0;
    font-size: inherit;
    font-family: inherit;
}

button.learn-more {
    width: 12rem;
    height: auto;
}

button.learn-more .circle {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    position: relative;
    display: block;
    margin: 0;
    width: 3rem;
    height: 3rem;
    background: #6A0DAD; /* بنفش */
    border-radius: 1.625rem;
}

button.learn-more .circle .icon {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    background: #FFEB3B; /* زرد */
}

button.learn-more .circle .icon.arrow {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    left: 0.625rem;
    width: 1.125rem;
    height: 0.125rem;
    background: none;
}

button.learn-more .circle .icon.arrow::before {
    position: absolute;
    content: "";
    top: -0.29rem;
    right: 0.0625rem;
    width: 0.625rem;
    height: 0.625rem;
    border-top: 0.125rem solid #FFEB3B; /* زرد */
    border-right: 0.125rem solid #FFEB3B; /* زرد */
    transform: rotate(45deg);
}

button.learn-more .button-text {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.75rem 0;
    margin: 0 0 0 -0.15rem; /* تغییر margin */
    color: #FFEB3B; /* زرد */
    font-weight: 700;
    line-height: 1.6;
    text-align: center;
    text-transform: uppercase;
}

button:hover .circle {
    width: 100%;
}

button:hover .circle .icon.arrow {
    background: #FFEB3B; /* زرد */
    transform: translate(1rem, 0);
}

button:hover .button-text {
    color: #fff;
}

/* استایل برای تگ <a> به‌جای <button> */
a.learn-more {
    position: relative;
    display: inline-block;
    cursor: pointer;
    outline: none;
    border: 0;
    vertical-align: middle;
    text-decoration: none;
    background: transparent;
    padding: 0;
    font-size: inherit;
    font-family: inherit;
    width: 12rem;
    height: auto;
}

a.learn-more .circle {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    position: relative;
    display: block;
    margin: 0;
    width: 3rem;
    height: 3rem;
    background: #6A0DAD; /* بنفش */
    border-radius: 1.625rem;
}

a.learn-more .circle .icon {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    background: #FFEB3B; /* زرد */
}

a.learn-more .circle .icon.arrow {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    left: 0.625rem;
    width: 1.125rem;
    height: 0.125rem;
    background: none;
}

a.learn-more .circle .icon.arrow::before {
    position: absolute;
    content: "";
    top: -0.29rem;
    right: 0.0625rem;
    width: 0.625rem;
    height: 0.625rem;
    border-top: 0.125rem solid #FFEB3B; /* زرد */
    border-right: 0.125rem solid #FFEB3B; /* زرد */
    transform: rotate(45deg);
}

a.learn-more .button-text {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.75rem 0;
    margin: 0 0 0 -0.00rem; /* تغییر margin */
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.6;
    text-align: center;
    text-transform: uppercase;
}

a:hover .circle {
    width: 100%;
}

a:hover .circle .icon.arrow {
    background: #FFEB3B; /* زرد */
    transform: translate(1rem, 0);
}

a:hover .button-text {
    color: #fff;
}
.section-caption{
    text-align: center; 
    
    margin-bottom:30px;
}
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    padding: 0px !important;
}

.hero-slider {
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}