
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .hero-content .container {
        gap: 6rem;
    }
    
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem;
    }
    
    .activities-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .testimonials-slider {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-title {
        font-size: 3.2rem;
    }
    
    .section-title {
        font-size: 2.8rem;
    }
    
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .activities-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .testimonials-slider {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .container {
        padding: 0 30px;
    }
    
    .hero {
        padding-top: 100px;
    }
    
    .hero-content .container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-img-wrapper {
        transform: none;
        padding: 5px;
        max-width: 100%;
        margin-left: 0;
    }
    
    .hero-main-image {
        height: 280px;
        object-fit: cover;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .activities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-slider {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 2rem;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-medium);
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .container {
        padding: 0 25px;
    }
    
    .hero {
        min-height: 80vh;
        padding-top: 110px;
    }
    
    .hero-content .container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-main-image {
        height: 240px;
        object-fit: cover;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
    }
    
    .program-card {
        padding: 2rem;
    }
    
    .activities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .activity-card {
        padding: 2rem;
    }
    
    .testimonials-slider {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 2rem;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-medium);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }
}

@media screen and (max-width: 430px) and (max-height: 950px),
       screen and (max-width: 450px) and (min-height: 800px) {
    .container {
        padding: 0 12px;
    }
    
    .header {
        padding: 0.5rem 0;
        position: fixed;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        z-index: 1000;
    }
    
    .nav-toggle {
        position: relative;
        z-index: 1001;
        margin-right: 8px;
    }
    
    .nav-menu {
        position: fixed;
        top: 65px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 65px);
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 2rem;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-medium);
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }
    
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
        z-index: 1001;
    }
    
    .whatsapp-float a {
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    
    .back-to-top {
        bottom: 80px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        z-index: 1001;
    }
    
    .floating-elements {
        position: fixed;
        bottom: 15px;
        right: 15px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        z-index: 1001;
    }
    
    .whatsapp-float,
    .back-to-top {
        max-width: calc(100vw - 30px);
        max-height: calc(100vh - 30px);
    }
}

@media (max-width: 575.98px) {
    .container {
        padding: 0 15px;
    }
    
    .header {
        padding: 0.5rem 0;
    }
    
    .nav-logo {
        font-size: 1.3rem;
    }
    
    .nav-logo img {
        width: 40px;
        height: 40px;
    }
    
    .hero {
        min-height: 70vh;
        padding-top: 120px;
    }
    
    .hero-content .container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
        justify-content: center;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 280px;
        justify-content: center;
        text-align: center;
    }
    
    .hero-image-container {
        height: 350px;
    }
    
    .hero-image-container img {
        height: 350px;
    }
    
    .hero-img-wrapper {
        transform: none;
        padding: 5px;
        max-width: 100%;
        margin-left: 0;
    }
    
    .hero-main-image {
        height: 320px;
        object-fit: cover;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    .about {
        padding: 50px 0;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .feature {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .about-image img {
        height: 350px;
    }
    
    .about-stats {
        position: relative;
        bottom: auto;
        left: auto;
        justify-content: center;
        margin-top: 1rem;
    }
    
    .stat {
        padding: 0.8rem;
        min-width: 80px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .programs {
        padding: 50px 0;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .program-card {
        padding: 2rem 1.5rem;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .program-icon {
        margin: 0 auto 1.5rem;
    }
    
    .program-content {
        text-align: center;
        width: 100%;
    }
    
    .program-card .btn {
        margin: 1rem auto 0;
        display: block;
        width: fit-content;
    }
    
    .program-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .program-content h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .detail {
        padding: 0.6rem;
        margin-bottom: 0.8rem;
    }
    
    .detail i {
        font-size: 1rem;
    }
    
    .detail span {
        font-size: 0.9rem;
    }
    
    .activities {
        padding: 50px 0;
    }
    
    .activities-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .activity-card {
        padding: 2rem 1.5rem;
    }
    
    .activity-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .activity-card h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
    
    .activity-card p {
        font-size: 0.9rem;
    }
    
    .gallery {
        padding: 50px 0;
    }
    
    .gallery-filter {
        gap: 0.5rem;
        margin-bottom: 2rem;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    .testimonials {
        padding: 50px 0;
    }
    
    .testimonials-slider {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonial-card {
        padding: 2rem 1.5rem;
    }
    
    .testimonial-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .testimonial-author {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .testimonial-author img {
        width: 50px;
        height: 50px;
    }
    
    .contact {
        padding: 50px 0 30px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-item {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .contact-details {
        text-align: center;
        width: 100%;
    }
    
    .contact-details h3 {
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    .contact-details p {
        text-align: center;
        margin: 0;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
        text-align: center;
    }
    
    .contact-form .btn {
        margin: 0 auto;
        display: block;
        width: fit-content;
        min-width: 200px;
    }
    
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    .footer {
        padding: 40px 0 15px;
    }
    
    .footer {
        padding: 40px 0 15px;
        margin-top: 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        align-items: start;
    }
    
    .footer-section {
        margin-bottom: 1.5rem;
    }
    
    .footer-section h3 {
        margin-bottom: 1rem;
        color: var(--primary-color);
    }
    
    .footer-contact p {
        margin-bottom: 0.8rem;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        gap: 0.8rem;
        text-align: left;
    }
    
    .footer-contact i {
        color: var(--primary-color);
        width: 20px;
        min-width: 20px;
        text-align: center;
        margin-top: 2px;
    }
    
    .footer-logo {
        justify-content: center;
        margin-bottom: 1rem;
    }
    
    .footer-logo img {
        width: 40px;
        height: 40px;
    }
    
    .footer-logo span {
        font-size: 1.3rem;
    }
    
    .footer-section h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .footer-bottom {
        padding-top: 1.5rem;
    }
    
    .footer-bottom p {
        font-size: 0.9rem;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float a {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .back-to-top {
        bottom: 80px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .modal-content {
        max-width: 95%;
        max-height: 85%;
    }
    
    .modal-close {
        font-size: 1.5rem;
        top: -30px;
    }
    
    .modal-nav {
        padding: 0 10px;
    }
    
    .modal-prev,
    .modal-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 2rem;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-medium);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
        width: 100%;
        text-align: center;
    }

    .nav-link {
        display: block;
        padding: 0.8rem;
        font-size: 1.1rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .floating-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .shape {
        display: none;
    }
}

@media (max-width: 767.98px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding-top: 80px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .about,
    .programs,
    .activities,
    .gallery,
    .testimonials,
    .contact {
        padding: 30px 0;
    }
    
    .whatsapp-float {
        bottom: 12px;
        right: 12px;
    }
    
    .back-to-top {
        bottom: 60px;
        right: 12px;
    }
}

@media screen and (max-height: 430px) and (min-width: 800px) and (orientation: landscape) {
    .header {
        height: 55px;
        padding: 0.2rem 0;
    }
    
    .nav-menu {
        top: 55px;
        height: calc(100vh - 55px);
    }
    
    .hero {
        min-height: 100vh;
        padding-top: 75px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .whatsapp-float {
        bottom: 10px;
        right: 10px;
    }
    
    .whatsapp-float a {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .back-to-top {
        bottom: 65px;
        right: 10px;
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 430px) and (min-height: 800px) {
    .container {
        padding: 0 10px;
        max-width: 100%;
    }
    
    .header {
        padding: 0.3rem 0;
        height: 60px;
    }
    
    .nav-logo {
        font-size: 1.2rem;
    }
    
    .nav-logo img {
        width: 35px;
        height: 35px;
    }
    
    .nav-toggle {
        display: flex;
        position: relative;
        z-index: 1002;
        margin-right: 5px;
    }
    
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 1.5rem;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-medium);
        z-index: 1001;
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 0.8rem 0;
        width: 90%;
        text-align: center;
    }
    
    .nav-link {
        display: block;
        padding: 1rem;
        font-size: 1.1rem;
        border-radius: 10px;
        transition: all 0.3s ease;
    }
    
    .nav-link:hover {
        background: var(--light-bg);
        color: var(--primary-color);
    }
    
    .whatsapp-float {
        bottom: 15px;
        right: 10px;
        z-index: 1000;
    }
    
    .whatsapp-float a {
        width: 52px;
        height: 52px;
        font-size: 1.6rem;
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    }
    
    .back-to-top {
        bottom: 75px;
        right: 10px;
        width: 42px;
        height: 42px;
        font-size: 1rem;
        z-index: 1000;
    }
    
    .hero {
        min-height: 85vh;
        padding-top: 80px;
    }
    
    .hero-content .container {
        text-align: center;
    }
    
    .hero-title {
        font-size: 1.9rem;
        line-height: 1.2;
        margin-bottom: 0.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.6rem;
        align-items: center;
        justify-content: center;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 260px;
        text-align: center;
    }
    
    .about,
    .programs,
    .activities,
    .gallery,
    .testimonials,
    .contact {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.7rem;
        margin-bottom: 0.6rem;
        text-align: center;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
        text-align: center;
    }
    
    .program-card {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .program-icon {
        margin: 0 auto 1rem;
    }
    
    .contact-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.2rem;
    }
    
    .contact-icon {
        margin: 0 auto 0.8rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .contact-details {
        text-align: center;
        width: 100%;
    }
    
    .contact-details h3,
    .contact-details p {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .gallery-item img {
        height: 220px;
        object-fit: cover;
    }
    
    .modal-content {
        max-width: 95vw;
        max-height: 85vh;
        margin: 0 10px;
    }
    
    .modal-close {
        top: -25px;
        right: -10px;
        font-size: 1.3rem;
        width: 30px;
        height: 30px;
    }
}

@media screen and (max-width: 375px) {
    .container {
        padding: 0 8px;
    }
    
    .whatsapp-float {
        bottom: 12px;
        right: 8px;
    }
    
    .whatsapp-float a {
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
    }
    
    .back-to-top {
        bottom: 68px;
        right: 8px;
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
    
    .hero-title {
        font-size: 1.7rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .btn {
        max-width: 240px;
        font-size: 0.85rem;
        text-align: center;
    }
    
    .hero-buttons {
        align-items: center;
        justify-content: center;
    }
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-image-container img,
    .about-image img,
    .gallery-item img,
    .testimonial-author img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

@media print {
    .header,
    .whatsapp-float,
    .back-to-top,
    .nav-toggle,
    .modal {
        display: none !important;
    }
    
    .hero {
        padding-top: 90px;
    }
    
    .section-title {
        color: #000 !important;
    }
    
    .btn {
        border: 2px solid #000 !important;
        color: #000 !important;
        background: transparent !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
}
