/* ========================================
   MOBILE RESPONSIVE FIXES - ALL SECTIONS
   Clean Mobile Experience
   ======================================== */

/* ========================================
   1. MAIN.CSS - MOBILE FIXES
   ======================================== */
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    :root {
        --container-padding: 16px;
        --space-xs: 4px;
        --space-sm: 6px;
        --space-md: 12px;
        --space-lg: 16px;
        --space-xl: 24px;
        --space-2xl: 32px;
        --space-3xl: 40px;
        --space-4xl: 48px;
    }

    /* Header Mobile Improvements */
    .site-header {
        padding: 0;
    }

    .header-top {
        padding: var(--space-sm) var(--space-md);
        display: none;
    }

    .header-contact {
        flex-direction: column;
        gap: var(--space-sm);
        align-items: center;
    }

    .header-contact span {
        font-size: 0.75rem;
        white-space: normal;
        text-align: center;
    }

    .header-logo img {
        height: 60px;
    }

    /* Mobile Menu */
    .nav-actions {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: var(--space-2xl) var(--space-lg);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }

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

    .main-nav {
        flex-direction: column;
        width: 100%;
        gap: var(--space-sm);
    }
      .main-nav li {
            width: 100%;
            padding: var(--space-md);
            background: var(--bg-gray-50);
            border-radius: var(--radius-sm);
            text-align: center;
        }    
    .main-nav a {
        width: 100%;
        padding: var(--space-md);
        background: var(--bg-gray-50);
        border-radius: var(--radius-sm);
        text-align: center;
    }
  

    .chat-btn {
        width: 100%;
        justify-content: center;
        margin-top: var(--space-lg);
    }
}

@media (max-width: 480px) {
    .header-contact-left,
    .header-contact-right {
        width: 100%;
        flex-direction: column;
        gap: var(--space-xs);
    }
         .header-contact-left,
         .header-contact-right a{
            min-height: auto;
            min-width: auto;
         }
                 .header-contact a{
                    min-height: auto;
                 }
}

/* ========================================
   2. HERO SECTION - MOBILE FIXES
   ======================================== */

@media (max-width: 1024px) {
    .hero-flex {
        flex-direction: column;
        gap: var(--space-2xl);
        padding: var(--space-lg);
    }

    .hero-image {
        min-width: 100%;
        height: 350px;
        justify-content: center;
    }

    .hero-image-wrapper {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-bottom: var(--space-2xl);
    }

    .hero-flex {
        padding: var(--space-md) var(--space-xl);
    }

    .hero-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .hero-desc {
        font-size: 0.875rem;
    }

    .cta-btn {
        padding: var(--space-md) var(--space-lg);
        font-size: var(--font-size-base);
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        gap: var(--space-md);
        justify-content: center;
    }

    .stat-card {
        min-width: 120px;
        padding: var(--space-sm) var(--space-md);
    }

    .stat-icon {
        width: 36px !important;
        height: 36px !important;
    }

    .stat-title {
        font-size: 0.875rem;
    }

    .stat-desc {
        font-size: 0.75rem;
    }

    .hero-image {
        height: 280px;
    }

    .hero-image-wrapper {
        height: 280px;
    }

    .hero-play-btn {
        width: 60px;
        height: 60px;
    }

    .hero-play-btn svg {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-stats {
        grid-template-columns: 1fr 1fr;
        width: 100%;
        display: grid;
    }

    .stat-card {
        width: 100%;
    }

    .hero-image {
        height: 240px;
    }

    .hero-image-wrapper {
        height: 240px;
    }
}

/* ========================================
   3. WHY PHONICS - MOBILE FIXES
   ======================================== */

@media (max-width: 1024px) {
    .why-inner {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .circle-wrapper {
        max-width: 450px;
        margin: 0 auto;
    }

    .why-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
}

@media (max-width: 768px) {
    .why-phonics {
        padding: var(--space-2xl) var(--space-md);
    }

    .decor-arrow,
    .decor-planet {
        width: 60px;
        opacity: 0.5;
    }

    .why-phonics .section-title {
        font-size: 1.5rem;
    }

    .why-phonics .section-sub {
        font-size: var(--font-size-sm);
        margin-bottom: var(--space-xl);
    }

    .circle-wrapper {
        max-width: 350px;
        height: 350px;
        gap: 12px;
    }

    .quad {
        border-radius: var(--radius-md) !important;
    }

    .center-icon {
        width: 70px;
        height: 70px;
    }

    .center-icon img {
        width: 40px;
        height: 40px;
    }

    .method-list {
        gap: var(--space-md);
    }

    .method-list li {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: var(--space-md);
    }

    .method-icon {
        margin: 0 auto var(--space-md);
    }

    .why-cards {
        /*grid-template-columns: 1fr;*/
        gap: var(--space-md);
    }

    .why-card {
        padding: var(--space-lg);
    }

    .card-icon {
        width: 48px;
        height: 48px;
    }

    .why-card h4 {
        font-size: 0.875rem;
    }

    .why-card p {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .circle-wrapper {
        max-width: 280px;
        height: 280px;
        gap: 8px;
    }

    .decor-arrow,
    .decor-planet {
        display: none;
    }
}

/* ========================================
   4. OUR LEARNING - MOBILE FIXES
   ======================================== */

@media (max-width: 1024px) {
    .learning-environment {
        padding: var(--space-3xl) var(--space-md);
    }

    .le-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-xl);
    }
}

@media (max-width: 768px) {
    .learning-environment {
        padding: var(--space-2xl) var(--space-2xl);
        margin-top: 30px;
    }

    .le-header h2 {
        font-size: 1.5rem;
    }

    .le-header p {
        font-size: 0.875rem;
    }

    .le-illustration {
        display: none;
    }

    .le-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .le-item {
        padding: var(--space-md);
    }

    .le-icon {
        width: 70px;
        height: 70px;
    }

    .le-icon .inner {
        width: 58px;
        height: 58px;
    }

    .le-icon .inner img {
        width: 36px;
        height: 36px;
    }

    .le-item h3 {
        font-size: 1rem;
    }

    .le-item p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .le-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .le-icon {
        margin-bottom: var(--space-sm);
    }
}

/* ========================================
   5. OUR PROGRAMS - MOBILE FIXES
   ======================================== */

@media (max-width: 1024px) {
    .programs-section {
        margin-top: 150px;
    }

    .cloud-top {
        height: 150px;
        margin-top: -150px;
    }

    .programs-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
}

@media (max-width: 768px) {
    .programs-section {
        padding: var(--space-2xl) var(--space-md);
        margin-top: 100px;
    }

    .cloud-top {
        height: 100px;
        margin-top: -100px;
    }

    .cloud-bottom {
        height: 100px;
        bottom: -100px;
    }

    .rocket-decoration,
    .star-decoration {
        width: 100px;
        opacity: 0.3;
    }

    .programs-header h2 {
        font-size: 1.5rem;
    }

    .programs-header p {
        font-size: var(--font-size-sm);
    }

    .programs-grid {
        gap: var(--space-lg);
    }

    .program-card {
        border-radius: var(--radius-lg);
    }

    .program-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: var(--space-lg);
        gap: var(--space-md);
    }

    .program-icon {
        width: 60px;
        height: 80px;
    }

    .program-info h3 {
        font-size: var(--font-size-lg);
    }

    .program-body {
        padding: var(--space-lg);
    }

    .program-description {
        font-size: 0.8rem;
    }
    .program-course-duration {
    
        grid-template-columns:none;
        gap: 12px;
    
    }

    .program-features {
        gap: var(--space-xs);
    }

    .program-features li {
        font-size: 0.8rem;
    }

    .program-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: var(--space-md);
        gap: var(--space-md);
    }

    .program-meta {
        flex-direction: column;
        gap: var(--space-xs);
        align-items: center;
    }

    .program-price {
        font-size: 0.75rem;
    }

    .program-cta {
        width: 100%;
        padding: var(--space-sm) var(--space-md);
    }

    .programs-cta-section {
        padding: var(--space-xl) var(--space-md);
    }

    .programs-cta-section h3 {
        font-size: 1.25rem;
    }

    .programs-cta-section p {
        font-size: var(--font-size-sm);
    }
}

@media (max-width: 480px) {
    .programs-section {
        margin-top: 80px;
        padding-bottom: 10px;
    }

    .cloud-top {
        height: 80px;
        margin-top: -46px;
    }

    .cloud-bottom {
        height: 80px;
        bottom: -80px;
    }

    .rocket-decoration,
    .star-decoration {
        display: none;
    }

    .program-header {
        padding: var(--space-md);
    }

    .program-header .badge {
        font-size: 0.65rem;
        padding: 4px 8px;
    }
}

/* ========================================
   6. ONLINE DEMO - MOBILE FIXES
   ======================================== */

@media (max-width: 768px) {
    .demo-section {
        padding: var(--space-2xl) var(--space-md);
        margin-top: 70px;
    }

    .demo-top {
        border-radius: 24px;
        padding: var(--space-xl) var(--space-md) 80px;
        margin: 0 var(--space-md);
    }

    .cloud-left,
    .cloud-right {
        width: 80px;
        opacity: 0.5;
    }

    .rocket {
        width: 60px;
        left: 2%;
    }

    .demo-content h2 {
        font-size: 1.5rem;
        flex-direction: column;
        gap: var(--space-xs);
    }

    .demo-content h2::before,
    .demo-content h2::after {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: var(--font-size-base);
    }

    .desc-video {
        font-size: var(--font-size-sm);
    }

    .demo-btn {
        padding: var(--space-md) var(--space-xl);
        font-size: var(--font-size-base);
        width: 90%;
        max-width: 300px;
    }

    .demo-videos {
        margin-top: -60px;
        gap: var(--space-lg);
        padding: 0 var(--space-md) var(--space-2xl);
    }

    .video-card {
        width: 100%;
        max-width: 350px;
        height: 220px;
        border-radius: 24px 48px 0 48px;
    }

    .video-card::after {
        width: 56px;
        height: 56px;
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .demo-top {
        padding: var(--space-lg) var(--space-lg);
    }

    .cloud-left,
    .cloud-right,
    .rocket {
        display: none;
    }

    .demo-content h2 {
        font-size: 1.25rem;
    }

    .demo-videos {
        margin-top: -50px;
    }

    .video-card {
        max-width: 300px;
        height: 190px;
        border-radius: 20px 40px 0 40px;
    }

    .video-card::after {
        width: 50px;
        height: 50px;
        font-size: 1.125rem;
    }
}

/* ========================================
   7. WHO WE ARE - MOBILE FIXES
   ======================================== */

@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
}

@media (max-width: 768px) {
    .who-we-are {
        padding: var(--space-2xl) 0;
    }

    .sec-title {
        font-size: 1.5rem;
    }

    .sec-desc {
        font-size: var(--font-size-sm);
    }

    .cards-grid {
        gap: var(--space-lg);
        margin: var(--space-xl) 0;
    }

    .info-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        border-radius: 24px;
        padding: var(--space-lg);
        gap: var(--space-lg);
    }

    .who-card-img,
    .card-img {
        width: 140px;
        height: 140px;
        min-width: 140px;
    }

    .card-content h3 {
        font-size: var(--font-size-lg);
    }

    .card-content p {
        font-size: 0.8rem;
    }

    .card-content h4 {
        padding-left: 0;
        font-size: 0.875rem;
    }

    .card-content h4::before {
        display: none;
    }

    .card-content ul {
        padding-left: 30px;
        list-style: none;
        text-align: left;
    }

    .card-content ul li {
        font-size: 0.75rem;
        padding-left: var(--space-md);
    }
}

@media (max-width: 480px) {
    .info-card {
        padding: var(--space-md);
        gap: var(--space-md);
    }

    .who-card-img,
    .card-img {
        width: 120px;
        height: 120px;
        min-width: 120px;
    }
}

/* ========================================
   8. TESTIMONIALS - MOBILE FIXES
   ======================================== */

@media (max-width: 900px) {
    .testimonial-container {
        flex-direction: column;
        padding: var(--space-xl);
        gap: var(--space-xl);
    }

    .testimonial-left {
        padding-right: 0;
    }

    .testimonial-right .stats {
        flex-direction: column;
        gap: var(--space-md);
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .butterfly {
        width: 100px;
        bottom: -50px;
    }

    .arrow {
        width: 80px;
        top: -15px;
        right: 100px;
    }
}

@media (max-width: 768px) {
    .testimonial-section {
        padding: var(--space-2xl) var(--space-md);
        align-items: center;
    }

    .testimonial-container {
        width: 95%;
        border-radius: 24px;
        border-width: 4px;
        padding: var(--space-lg);
    }

    .testimonial-left::before {
        font-size: 60px;
        top: -20px;
    }

    .quote-text {
        font-size: var(--font-size-sm);
        padding-left: var(--space-md);
    }

    .author-info h4 {
        font-size: var(--font-size-lg);
    }

    .author-info p {
        font-size: var(--font-size-sm);
    }

    .title {
        font-size: 1.5rem;
    }

    .sub-heading {
        font-size: var(--font-size-lg);
    }

    .desc {
        font-size: var(--font-size-sm);
    }

    .testimonial-right .stat-card {
        flex-direction: row;
        padding: var(--space-md);
    }

    .testimonial-right .stat-card h3 {
        font-size: 1.25rem;
    }

    .testimonial-right .stat-card p {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .testimonial-container {
        padding: var(--space-xl);
    }

    .butterfly,
    .arrow {
        display: none;
    }

    .quote-text {
        font-size: 0.8rem;
    }

    .testimonial-right .stat-card {
        flex-direction: row;
        align-items: flex-end;
        text-align: left;
        padding: 0;
    }
}

/* ========================================
   9. FAQ - MOBILE FIXES
   ======================================== */

@media (max-width: 1024px) {
    .faq-content-wrapper {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .faq-contact-card {
        position: static;
        max-height: none;
    }
}

@media (max-width: 768px) {
    .faq-tab,
        .faq-card,
        .faq-left {
            min-width: 0;
            width: 100%;
        }
    .faq-section {
        padding: var(--space-2xl) var(--space-xl);
    }

    .faq-title {
        font-size: 1.5rem;
        flex-direction: column;
    }

    .faq-left {
        padding: var(--space-md);
        max-height: none;
    }

    .faq-tabs {
        gap: var(--space-xs);
    }

    .faq-tab {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.75rem;
    }

    .faq-question-btn {
        padding: var(--space-md);
    }

    .faq-number {
        min-width: 24px;
        font-size: 0.75rem;
    }

    .faq-question-text {
        font-size: 0.875rem;
    }

    .faq-answer {
        padding-left: var(--space-md);
    }

    .faq-item.active .faq-answer {
        padding-left: var(--space-md);
        padding-bottom: var(--space-md);
    }

    .faq-answer p {
        font-size: 0.8rem;
    }

    .faq-contact-card {
        padding: var(--space-xl);
    }

    .contact-card-title {
        font-size: var(--font-size-xl);
    }

    .contact-card-subtitle {
        font-size: var(--font-size-sm);
    }

    .contact-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .contact-label {
        font-size: var(--font-size-base);
    }

    .contact-info {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .faq-tabs {
        flex-wrap: wrap;
    }

    .faq-tab {
        flex: 1 1 48%;
        text-align: center;
    }

    .faq-contact-card {
        padding: var(--space-xl) var(--space-xl) 0 var(--space-xl);
    }

    .contact-methods {
        gap: var(--space-md);
    }
}

/* ========================================
   10. FOOTER - MOBILE FIXES
   ======================================== */

@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-2xl);
    }
}

@media (max-width: 768px) {
    .site-footer {

        padding-left: 30px;
        padding-right: 30px;
    }

    .footer-wave {
        top: -60px;
    }

    .footer-main {
        /*grid-template-columns: 1fr;*/
        gap: var(--space-xl);
        padding-bottom: var(--space-lg);
    }

    .footer-logo {
        height: 50px;
    }

    .footer-tagline {
        font-size: var(--font-size-base);
    }

    .footer-column h3 {
        font-size: var(--font-size-lg);
    }

    .footer-links {
        font-size: var(--font-size-sm);
    }
    
    .footer-links li {
        margin-bottom: 0;
    }
       .footer-links li a {
        min-height: 30px !important;
        min-width: 30px !important;
    }
    .footer-contact-item {
        font-size: 0.75rem;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-about p {
        font-size: 0.75rem;
    }
    .footer-links li {
        margin-bottom: 0;
    }

    .footer-contact-item {
        align-items: flex-start;
    }

    .footer-bottom {
        padding: var(--space-md) 0;
    }
}

/* ========================================
   11. SCROLL TO TOP - MOBILE
   ======================================== */

@media (max-width: 768px) {
    .scroll-top {
        bottom: var(--space-lg);
        right: var(--space-lg);
        width: 44px;
        height: 44px;
        display: none;
    }

    .scroll-top svg {
        width: 20px;
        height: 20px;
    }
}

/* ========================================
   12. GALLERY - MOBILE
   ======================================== */

@media (max-width: 768px) {
    .gallery-section {
        padding: var(--space-2xl) var(--space-md);
    }

    .gallery-title {
        font-size: 40px !important; 
        display: none;
    }

    .review-container {
        gap: var(--space-sm);
        margin: var(--space-xl);
    }
}

@media (max-width: 480px) {
    .gallery-title h2 {
        font-size: 40px;
    }

    .review-container {
        gap: var(--space-xs);
        margin: var(--space-xl);
    }
}

/* ========================================
   GLOBAL MOBILE IMPROVEMENTS
   ======================================== */

@media (max-width: 768px) {
    /* Reduce all animations on mobile for better performance */
    * {
        animation-duration: 0.3s !important;
        transition-duration: 0.2s !important;
    }
        .animate,
        .faq-item,
        .program-card,
        .why-card {
            transition-duration: 0.2s !important;
        }
                .faq-left {
                    overflow-y: visible;
                }

        .story-image img {
         margin-top: 0 !important;
        }

    /* Ensure images don't overflow */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Better touch targets */
    button,
    a {
        min-height: 44px;
        min-width: 44px;
    }

    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }

    /* Make all sections more compact */
    section {
        scroll-margin-top: 80px;
    }
}

@media (max-width: 480px) {
    /* Even smaller spacing for very small screens */
    :root {
        --container-padding: 12px;
    }

    /* Adjust font sizes for readability */
    body {
        font-size: 14px;
    }

    h1 {
        font-size: 1.5rem !important;
    }

    h2 {
        font-size: 1.25rem !important;
    }

    h3 {
        font-size: 1.125rem !important;
    }
}

/* ========================================
   LANDSCAPE ORIENTATION FIX
   ======================================== */

@media (max-width: 900px) and (orientation: landscape) {
    .hero-image {
        height: 250px;
    }

    .hero-image-wrapper {
        height: 250px;
    }

    .circle-wrapper {
        max-width: 300px;
        height: 300px;
    }
}