@media (max-width: 1024px) {
    .mobile-menu {
        padding-top: 180px;
        width: 80%;
    }
    
    .about-container {
        grid-template-columns: 1fr;
    }
    
    .contact-map-container {
        grid-template-columns: 1fr;
    }
    
    .schedule-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links.left,
    .nav-links.right {
        display: none;
    }
  
    .nav__toggle {
        display: flex;
    }
    
    .logo-container {
        position: static;
        transform: none;
    }

    .theme-button {
        top: 110px;
        left: 15px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 767px) {
    .nav-links.left, 
    .nav-links.right {
        display: none;
    }

    .nav__toggle {
        display: flex;
        order: 2;
        margin-left: auto;
        margin-right: 15px;
    }

    .logo-container {
        order: 1;
        margin-right: auto;
        margin-left: 15px;
    }

    .mobile-nav-links {
        display: flex;
        justify-content: center;
        width: 100%;
        position: fixed;
        top: 100px;
        left: 0;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(5px);
        padding: 10px 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        z-index: 998;
    }
    
    .dark-mode .mobile-nav-links {
        background-color: rgba(30, 30, 30, 0.95);
    }

    .mobile-nav-links .menu-links {
        display: flex;
        gap: 15px;
        padding: 0 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .mobile-nav-links .menu-links a {
        font-size: 1rem;
        padding: 5px 10px;
        border-radius: 4px;
        transition: all 0.3s ease;
    }
    
    .mobile-nav-links .menu-links a:hover {
        background-color: rgba(230, 57, 70, 0.1);
    }
    
    .dark-mode .mobile-nav-links .menu-links a:hover {
        background-color: rgba(230, 57, 70, 0.2);
    }
}

@media (max-width: 767px) {
    .section {
        padding: 50px 15px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }

    .testimonials-scroll-wrapper {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 20px;
        padding-bottom: 20px;
        width: 100%;
    }
    
    .testimonials-scroll-wrapper::-webkit-scrollbar {
        display: none;
    }
    
    .testimonials-grid {
        display: flex;
        width: 100%;
        scroll-snap-type: x mandatory;
        overflow-x: auto;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        gap: 0;
    }
    
    .testimonial-card {
        flex: 0 0 85%;
        scroll-snap-align: start;
        position: relative;
        margin-right: 20px;
    }
    
    .testimonials-container {
        overflow: hidden;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-links {
        justify-content: flex-start;
    }

    .contact-info-container {
        padding: 15px;
        margin: 0 15px 15px;
    }

    .map-wrapper {
        margin: 0 15px;
        height: 350px;
    }

    .mobile-menu {
        width: 85%;
    }

    .theme-button {
        top: 105px;
    }
}

@media (min-width: 768px) {
    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
        overflow: visible;
    }
    
    .gallery-item {
        flex: none;
        margin-right: 0;
    }
}

@media (min-width: 768px) {
    .testimonials-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }
    
    .testimonial-card {
        width: auto;
    }
}

@media (min-width: 768px) {
    .mobile-only { display: none; }
    .desktop-only { display: block; }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.8rem;
    }
    
    .logo-top {
        font-size: 1.8rem;
    }
    
    .logo-bottom {
        font-size: 1.4rem;
    }

    .logo-container {
        position: static;
        transform: none;
        order: 1;
        margin-right: auto;
        margin-left: 10px;
    }
    
    .nav__toggle {
        order: 2;
        margin-left: auto;
        margin-right: 10px;
    }
    
    .mobile-menu {
        width: 65%;
        padding: 12px;
    }

    .mobile-nav-links {
        top: 90px;
    }
    
    .mobile-nav-links .menu-links {
        gap: 10px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .mobile-menu {
        width: 90%;
        padding: 50px;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }

    .contact-map-container {
        gap: 20px;
    }

    .map-wrapper {
        height: 300px;
    }

    .theme-button {
        top: 110px;
        width: 40px;
        height: 40px;
    }

    .theme-button i {
        font-size: 1.2rem;
    }
}

@media (max-width: 400px) {
    .logo-container {
        margin-left: 8px;
    }
    
    .nav__toggle {
        margin-right: 8px;
    }
    
    .mobile-menu {
        width: 70%;
        right: 5px;
        padding: 50px;
        border-radius: 8px 0 0 8px;
    }
    
    .theme-button {
        left: 10px;
        top: 110px;
        width: 38px;
        height: 38px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .programs-container {
        grid-template-columns: 1fr;
    }
    
    .testimonials-container {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .practice-schedule {
        grid-template-columns: 1fr;
    }
    
    .menu-links a {
        font-size: 1.1rem;
    }

    .contact-map-container {
        padding: 0 10px;
    }
    
    .map-wrapper {
        margin: 0;
        height: 250px;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .contact-info-container {
        margin: 20px 0 0;
        padding: 15px;
        border-radius: 8px;
    }

    .hero {
        min-height: 500px;
    }

    .hero-content {
        padding: 0 15px;
    }
}

/* Extra Small Mobile Styles ....since the map wants to be weird about it */
@media (max-width: 360px) {
    .contact-map-container {
        padding: 0 8px;
    }
    
    .map-wrapper {
        height: 220px;
    }
    
    .contact-info-container {
        padding: 12px;
    }
    
    .contact-item {
        flex-direction: column;
        gap: 5px;
    }
    
    .contact-item i {
        margin-top: 0;
    }

    .logo {
        font-size: 1.6rem;
    }
    
    .logo-top {
        font-size: 1.6rem;
    }
    
    .logo-bottom {
        font-size: 1.2rem;
    }
    
    .mobile-menu {
        width: 75%;
        right: 3px;
        padding: 50px;
    }
    
    .menu-links a {
        font-size: 1.1rem;
        padding: 6px 8px;
    }
}

/* Landscape Orientation for Mobile and Tablet */
@media (max-width: 1024px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .contact-map-container {
        grid-template-columns: 1fr 1fr;
    }

    .map-wrapper,
    .contact-info-container {
        margin: 0;
    }

    .theme-button {
        top: 100px;
    }
}

/* Very Small Mobile Landscape */
@media (max-height: 700px) and (orientation: landscape) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .hero-buttons .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .nav-bar {
        height: 80px;
    }

    .nav-container {
        height: 80px;
    }

    .theme-button {
        top: 90px;
        width: 36px;
        height: 36px;
    }
}

/* iPad Pro specific adjustments */
@media (width: 1024px) and (height: 1366px) {
    .hero-title {
        font-size: 4rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .contact-map-container {
        grid-template-columns: 1fr 1fr;
        max-width: 900px;
        margin: 40px auto 0;
    }
}