/* ===========================================
   تصميم متجاوب - شاشات كبيرة (Max 1200px)
   =========================================== */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .hero-title {
        font-size: 44px;
    }
    
    .footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr;
    }
    
    .footer-col:last-child {
        grid-column: span 3;
        margin-top: 30px;
        text-align: right;
    }
}

/* ===========================================
   تصميم متوسط - تابلت (Max 992px)
   =========================================== */
@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }

    /* القائمة */
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 78px;
        right: -100%;
        width: 80%;
        max-width: 360px;
        height: calc(100vh - 78px);
        background: white;
        padding: 30px;
        transition: right 0.4s ease;
        box-shadow: var(--shadow-xl);
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .nav-link {
        display: block;
        padding: 14px 18px;
        border-radius: var(--radius);
        text-align: right;
    }

    .nav-link.active::after {
        display: none;
    }

    /* الهيرو */
    .hero {
        padding: 130px 0 80px;
    }

    .hero-title {
        font-size: 38px;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-item:not(:last-child)::after {
        display: none;
    }

    /* الشبكة */
    .about-grid,
    .trainer-wrapper,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .services-grid,
    .courses-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .foundation-pillars {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }

    .pillars-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* CTA */
    .cta-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px;
    }

    .cta-buttons {
        justify-content: center;
    }

    /* الفوتر */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-col:last-child {
        grid-column: span 2;
        margin-top: 0;
    }
}

/* ===========================================
   تصميم تابلت صغير (Max 768px)
   =========================================== */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    /* الهيرو */
    .hero {
        padding: 120px 0 60px;
        min-height: auto;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        padding: 20px;
        gap: 14px;
    }

    .stat-number {
        font-size: 28px;
    }

    .stat-label {
        font-size: 12px;
    }

    /* الأقسام */
    .about,
    .services,
    .trainer,
    .foundation,
    .courses,
    .testimonials,
    .contact {
        padding: 70px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    /* الشبكة */
    .services-grid,
    .courses-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .foundation-pillars {
        grid-template-columns: 1fr;
    }

    /* المدرب */
    .trainer-name {
        font-size: 32px;
    }

    .trainer-avatar i {
        font-size: 100px;
    }

    .trainer-badges {
        position: static;
        transform: none;
        justify-content: center;
        margin-top: 16px;
    }

    /* الكروت */
    .service-card,
    .course-card,
    .testimonial-card {
        padding: 24px;
    }

    .image-frame {
        padding: 40px 20px;
        min-height: 280px;
    }

    .image-content i {
        font-size: 60px;
    }

    /* CTA */
    .cta {
        padding: 60px 0;
    }

    .cta-wrapper {
        padding: 30px 20px;
    }

    /* نموذج التواصل */
    .contact-form-wrapper {
        padding: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* الفوتر */
    .footer {
        padding: 60px 0 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-col:last-child {
        grid-column: span 1;
    }

    /* المؤسسة */
    .foundation-card {
        padding: 30px 20px;
    }

    .foundation-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}

/* ===========================================
   تصميم الجوال (Max 576px)
   =========================================== */
@media (max-width: 576px) {
    .container {
        padding: 0 14px;
    }

    /* الهيدر */
    .header {
        padding: 12px 0;
    }

    .logo-icon {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }

    .logo-text h1 {
        font-size: 18px;
    }

    .logo-text .logo-subtitle {
        font-size: 10px;
    }

    .menu-toggle {
        font-size: 20px;
    }

    /* الهيرو */
    .hero {
        padding: 100px 0 50px;
    }

    .hero-badge {
        font-size: 12px;
        padding: 8px 14px;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-description {
        font-size: 15px;
        line-height: 1.7;
    }

    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 16px;
    }

    .stat-number {
        font-size: 24px;
    }

    /* الأقسام */
    .section-title {
        font-size: 24px;
    }

    .about-heading {
        font-size: 22px;
    }

    /* الفلاتر */
    .courses-filter {
        gap: 6px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    /* المدرب */
    .trainer-name {
        font-size: 26px;
    }

    .trainer-title {
        font-size: 16px;
    }

    .trainer-bio {
        font-size: 14px;
    }

    .image-content h3 {
        font-size: 22px;
    }

    .floating-card {
        font-size: 12px;
        padding: 10px 14px;
    }

    .card-1 {
        top: 20px;
        left: 10px;
    }

    .card-2 {
        bottom: 20px;
        right: 10px;
    }

    /* الأزرار العائمة */
    .back-to-top {
        width: 44px;
        height: 44px;
        bottom: 20px;
        left: 20px;
        font-size: 16px;
    }
}

/* ===========================================
   شاشات صغيرة جداً (Max 400px)
   =========================================== */
@media (max-width: 400px) {
    .hero-title {
        font-size: 22px;
    }

    .stat-number {
        font-size: 20px;
    }
}

/* ===========================================
   تحسينات شاشات اللمس
   =========================================== */
@media (hover: none) {
    .service-card:hover,
    .course-card:hover,
    .testimonial-card:hover {
        transform: none;
    }
}
