@media screen and (max-width: 992px) {
    .hero-content {
        width: 95%;
        padding: 30px;
    }

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

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

@media screen and (max-width: 900px) {
    .nav-content {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
    }
    .logo {
        flex: 1 1 auto;
    }
}

@media screen and (max-width: 768px) {
    .nav-content {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        padding: 0.5rem;
        position: relative;
    }

    /* Toggle button styles */
    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        font-size: 2rem;
        cursor: pointer;
        padding: 0.5rem 0.5rem 0.5rem 0;
        color: var(--primary, #7e57c2);
        z-index: 1100;
        transition: color 0.3s;
        margin-right: 0.5rem;
    }

    .logo {
        flex: 1 1 auto;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    /* Hide nav-links by default */
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 4px 16px rgba(0,0,0,0.08);
        border-radius: 0 0 12px 12px;
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: stretch;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transition: max-height 0.4s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.3s;
    }

    /* Show nav-links when open */
    .nav-links.open {
        max-height: 500px;
        opacity: 1;
        pointer-events: auto;
        transition: max-height 0.4s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.3s;
    }

    .nav-links a.button {
        width: 100%;
        min-width: 120px;
        margin: 5px 0;
        padding: 10px 15px;
        font-size: 1rem;
        text-align: left;
    }

    .hero-content {
        padding: 25px;
    }

    .hero-content h1 {
        font-size: 2rem;
        text-align: center;
    }

    .hero-content p {
        font-size: 1rem;
        text-align: center;
        line-height: 1.4;
    }

    .cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }

    .stats-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        flex-direction: column;
    }

    .about-content {
        padding: 2rem 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }

    .steps-container {
        flex-direction: column;
        gap: 2rem;
    }

    .featured-partners {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .logo-partner {
        height: 80px;
        padding: 15px;
    }

    .logo-partner img {
        max-width: 100px;
        max-height: 50px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1rem;
    }

    .footer-col {
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    .nav-toggle {
        font-size: 1.7rem;
        padding: 0.5rem 0.2rem 0.5rem 0;
    }

    .nav-links a.button {
        width: 100%;
        min-width: unset;
        font-size: 0.95rem;
        padding: 10px 10px;
    }

    .hero-content {
        padding: 20px;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .cta-button {
        width: 100%;
        text-align: center;
    }

    .featured-partners {
        grid-template-columns: 1fr;
    }

    .partners-grid {
        grid-template-columns: 1fr;
    }

    .logo-partner {
        height: 70px;
    }

    .logo-partner img {
        max-width: 90px;
        max-height: 45px;
    }

    .service-card {
        padding: 20px 15px;
    }

    .footer-container {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media screen and (min-width: 769px) {
    .nav-toggle {
        display: none !important;
    }
    .nav-links {
        display: flex !important;
        position: static !important;
        flex-direction: row !important;
        opacity: 1 !important;
        max-height: none !important;
        pointer-events: auto !important;
        background: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        width: auto !important;
    }
    .nav-links a.button {
        width: auto !important;
        min-width: 120px;
        margin: 5px;
        padding: 8px 15px;
        font-size: 0.9rem;
        text-align: center;
    }
}
