/* =============== TABLET (max-width: 768px) =============== */
@media (max-width: 768px) {
    /* Header */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--white);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 999;
        padding: 80px 30px 30px;
    }

    .main-nav.active {
        right: 0;
    }

    .nav-menu {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .nav-link {
        font-size: 1.1rem;
        width: 100%;
        padding: 10px 0;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    /* Hero Section - Tablet Edit */
    .hero-section {
        position: relative; /* ضروری برای قرارگیری بیضی */
    }

    /* ایجاد بیضی مینیمال */
    .hero-section::after {
        content: '';
        position: absolute;
        bottom: 60px; /* فاصله از پایین */
        left: 50%;
        transform: translateX(-50%);
        width: 200px;
        height: 50px;
        background: rgba(255, 255, 255, 0.1); /* رنگ شفاف */
        border: 1px solid rgba(255, 255, 255, 0.2); /* حاشیه نازک */
        border-radius: 50%; /* شکل بیضی */
        backdrop-filter: blur(4px); /* افکت محو شدگی */
        z-index: 2;
        pointer-events: none; /* تا جلوی کلیک روی دکمه‌ها را نگیرد */
        box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn-lg {
        width: 100%;
        max-width: 300px;
    }

    /* Hero Stats */
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 25px 20px;
        border-radius: 40px;
        max-width: 90%;
        position: relative;
        z-index: 3; /* بالاتر از بیضی */
    }

    .stat-item {
        padding: 15px 10px;
    }

    .stat-icon {
        font-size: 1.5rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .floating-logo {
        max-width: 140px;
    }
}

/* =============== MOBILE (max-width: 480px) =============== */
@media (max-width: 480px) {
    /* Header */
    .logo img {
        height: 40px;
    }

    .header-content {
        padding: 15px 0;
    }

    /* Hero Section - Mobile Edit */
    .hero-section {
        padding-top: 80px;
        position: relative;
    }

    /* تنظیم بیضی برای موبایل */
    .hero-section::after {
        width: 160px; /* عرض کمتر برای موبایل */
        height: 40px;
        bottom: 40px; /* فاصله کمتر از پایین */
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn {
        padding: 10px 25px;
        font-size: 0.95rem;
    }

    .btn-lg {
        padding: 12px 30px;
        font-size: 1rem;
    }

    /* Hero Stats */
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 20px 15px;
        border-radius: 30px;
        margin-bottom: 60px; /* فاصله دادن محتوا از بیضی پایین */
    }

    .stat-item {
        padding: 12px 8px;
    }

    .stat-icon {
        font-size: 1.3rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .floating-logo {
        max-width: 120px;
    }

    /* تنظیم محل اسکرول برای قرارگیری روی بیضی */
    .scroll-indicator {
        bottom: 45px; /* کمی بالاتر بیاید */
        z-index: 5;
    }

    .scroll-indicator span {
        font-size: 0.7rem;
        margin-bottom: 5px;
        display: block;
        opacity: 0.8;
    }

    .scroll-arrow {
        width: 20px;
        height: 30px;
        border: 2px solid rgba(0,0,0,0.5); /* تیره‌تر برای دیده شدن روی بیضی روشن */
    }
}


/* =============== LANDSCAPE MOBILE (max-height: 500px) =============== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 120px 20px 60px;
    }

    .hero-logo {
        margin-bottom: 20px;
    }

    .floating-logo {
        max-width: 100px;
    }

    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }

    .hero-buttons {
        margin-bottom: 30px;
    }

    .hero-stats {
        padding: 20px 15px;
        gap: 10px;
    }

    .stat-item {
        padding: 10px 5px;
    }

    .scroll-indicator {
        display: none;
    }
}
/* =============== TABLET (max-width: 768px) =============== */
@media (max-width: 768px) {
    /* ... کدهای قبلی ... */

    /* About Section */
    .about-section {
        padding: 60px 0;
    }

    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-text {
        font-size: 1rem;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .stat-box {
        padding: 25px 15px;
    }

    .stat-icon-large {
        font-size: 2.5rem;
    }

    .stat-value {
        font-size: 2.5rem;
    }

    .stat-title {
        font-size: 1rem;
    }

    .stat-desc {
        font-size: 0.8rem;
    }
}

/* =============== MOBILE (max-width: 480px) =============== */
@media (max-width: 480px) {
    /* ... کدهای قبلی ... */

    /* About Section */
    .about-section {
        padding: 50px 0;
    }

    .about-wrapper {
        gap: 30px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .about-text {
        font-size: 0.95rem;
    }

    .about-features {
        margin: 30px 0;
        gap: 15px;
    }

    .feature-item {
        padding: 15px;
    }

    .feature-icon {
        font-size: 1.3rem;
    }

    .feature-text h4 {
        font-size: 1rem;
    }

    .feature-text p {
        font-size: 0.85rem;
    }

    .stats-container {
        gap: 10px;
    }

    .stat-box {
        padding: 20px 10px;
    }

    .stat-icon-large {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .stat-value {
        font-size: 2rem;
    }

    .stat-title {
        font-size: 0.95rem;
    }

    .stat-desc {
        font-size: 0.75rem;
    }

    .decoration-circle {
        display: none;
    }
}
/* =============== TABLET (max-width: 768px) =============== */
@media (max-width: 768px) {
    /* ... کدهای قبلی ... */

    /* Level Test Section */
    .level-test-section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-desc {
        font-size: 1rem;
    }

    .levels-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .level-card-inner {
        padding: 25px 20px;
    }

    .level-title {
        font-size: 1.5rem;
    }

    .level-features li {
        font-size: 0.9rem;
        padding: 8px 0;
    }

    .test-info-box {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }

    .info-content h4 {
        font-size: 1.2rem;
    }

    .info-content p {
        font-size: 0.95rem;
    }
}

/* =============== MOBILE (max-width: 480px) =============== */
@media (max-width: 480px) {
    /* ... کدهای قبلی ... */

    /* Level Test Section */
    .level-test-section {
        padding: 50px 0;
    }

    .section-header {
        margin-bottom: 30px;
    }

    .levels-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .level-card-inner {
        padding: 25px 20px;
    }

    .level-badge {
        margin-bottom: 15px;
        padding-bottom: 12px;
    }

    .level-code {
        font-size: 1.3rem;
    }

    .level-icon {
        font-size: 1.8rem;
    }

    .level-title {
        font-size: 1.4rem;
    }

    .level-subtitle {
        font-size: 0.95rem;
    }

    .level-features {
        margin: 20px 0;
    }

    .level-features li {
        font-size: 0.85rem;
        padding: 7px 0;
        padding-right: 22px;
    }

    .level-duration {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .btn-level-test {
        padding: 13px;
        font-size: 1rem;
    }

    .test-info-box {
        padding: 20px;
    }

    .info-icon {
        font-size: 2rem;
    }

    .info-content h4 {
        font-size: 1.1rem;
    }

    .info-content p {
        font-size: 0.9rem;
    }

    .floating-shape {
        display: none;
    }
}
/* Books Section Responsive */
@media (max-width: 768px) {
    .books-section {
        padding: 60px 0;
    }
    
    .books-filter {
        gap: 10px;
        margin-bottom: 30px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .book-cover {
        height: 280px;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        width: 40px;
        height: 40px;
    }
}
/* Features Section Responsive */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .features-section {
        padding: 60px 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 40px;
    }
    
    .feature-card {
        padding: 35px 25px;
    }
    
    .feature-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }
    
    .feature-title {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .feature-description {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .feature-card {
        padding: 30px 20px;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
    }
}
/* Pricing Section Responsive */
@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
    
    .pricing-card.popular {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .pricing-section {
        padding: 60px 0;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        margin-top: 40px;
    }
    
    .pricing-card {
        padding: 35px 25px;
    }
    
    .pricing-card.popular {
        transform: scale(1);
    }
    
    .pricing-title {
        font-size: 22px;
    }
    
    .price-amount {
        font-size: 36px;
    }
    
    .guarantee-box {
        flex-direction: column;
        text-align: center;
        padding: 25px;
        margin-top: 40px;
    }
}

@media (max-width: 480px) {
    .pricing-card {
        padding: 30px 20px;
    }
    
    .pricing-badge {
        top: 15px;
        right: 15px;
        padding: 6px 15px;
        font-size: 12px;
    }
    
    .price-amount {
        font-size: 32px;
    }
    
    .feature-item {
        font-size: 14px;
        padding: 12px 0;
    }
}
/* Testimonials Section Responsive */
@media (max-width: 1024px) {
    .testimonials-slider {
        padding: 0 40px;
    }
    
    .testimonial-card {
        padding: 35px 30px;
    }
}

@media (max-width: 768px) {
    .testimonials-section {
        padding: 60px 0;
    }
    
    .testimonials-slider {
        padding: 0 30px;
        margin: 40px auto 0;
    }
    
    .testimonial-card {
        padding: 30px 25px;
    }
    
    .testimonial-text {
        font-size: 15px;
    }
    
    .testimonial-next,
    .testimonial-prev {
        width: 40px;
        height: 40px;
    }
    
    .testimonial-next:after,
    .testimonial-prev:after {
        font-size: 16px;
    }
    
    .testimonials-stats {
        flex-direction: column;
        gap: 30px;
        padding: 30px;
        margin-top: 60px;
    }
    
    .stat-divider {
        width: 80%;
        height: 2px;
    }
}

@media (max-width: 480px) {
    .testimonials-slider {
        padding: 0 20px;
    }
    
    .testimonial-card {
        padding: 25px 20px;
    }
    
    .quote-icon {
        width: 40px;
        height: 40px;
    }
    
    .author-avatar {
        width: 50px;
        height: 50px;
    }
    
    .author-name {
        font-size: 16px;
    }
    
    .stat-number {
        font-size: 36px;
    }
}
/* CTA & Footer Responsive */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cta-container {
        padding: 60px 0;
    }
    
    .cta-title {
        font-size: 32px;
    }
    
    .cta-description {
        font-size: 16px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .cta-features {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-top {
        padding: 50px 0 30px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .scroll-to-top {
        bottom: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .cta-title {
        font-size: 26px;
    }
    
    .cta-icon {
        width: 60px;
        height: 60px;
    }
}
@media (max-width: 480px) {
    .box {
        width: 90%;
        padding: 20px;
    }
}
