

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .nav-container { padding: 0 1.5rem; }
    .grid-container { padding-left: 1%; }
    .grid { grid-template-columns: repeat(3, minmax(220px, 1fr)); gap: 1.5rem; }
    .grid-2 { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
    .dissemination-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
}

@media (max-width: 768px) {
    :root { --nav-height: 60px; }
    body { padding-top: var(--nav-height); }
    nav { height: var(--nav-height); padding: 0.5rem 0; }
    .nav-container { padding: 0 1rem;  justify-content: space-between; display: flex; }
    .row {
        flex-direction: column;
        align-items: center;
    }
    .hamburger { display: flex; }

    nav ul {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        align-items: right;
        padding: 1rem 0;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
        transform: translateY(-10px);
    }

    nav ul.active {
        max-height: 500px;
        opacity: 1;
        transform: translateY(0);
    }

    .grid {
        grid-template-columns: repeat(1, minmax(250px, 1fr));
    }

    nav li { margin: 0.5rem 0; width: 100%; text-align: center; }

    #home { height: calc(105vh - var(--nav-height)); }
    #home h1 { font-size: 2rem; }
    #home p { font-size: 1rem; }

    .grid, .dissemination-grid { grid-template-columns: 1fr; gap: 1rem; }
    section { padding: 3rem 1rem; }
    section h2 { font-size: 2rem; }
    section h3 { font-size: 1.5rem; }
    table { font-size: 0.9rem; overflow-x: auto; display: block; }
    th, td { padding: 0.5rem; }
    .card, .dissemination-card, .gallery-card { padding: 1.5rem; }
    .gallery-card i { font-size: 3rem; }
    .gallery-card h4 { font-size: 1.5rem; }

    .footer-logo {
        width: 280px;
        height: auto;
    }
    
}

@media (max-width: 480px) {
    #home { padding: 0 1rem; }
    .logo-placeholder { width: 120px; height: 120px; font-size: 3rem; }
    .nav-container { 
        padding: 0 0.5rem; display: flex;
        flex-direction: row;
        justify-content: space-between; 
    }

    footer {
        margin: auto;
    }

    footer .contact {
        flex-direction: column;
    }
    #home h1 { font-size: 1.8rem; }
    section { padding: 2rem 0.5rem; }

    .flex-box {
        flex-direction: column;
        align-items: center;
    }

    .contact-div {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-logo {
        margin-bottom: 1rem;
        width: 320px;
        height: auto;
    }
}




@media (max-width: 600px) {
    .partner-slide-group {
        grid-template-columns: 1fr;   /* 1 image per row */
        gap: 10px;
    }

    .partner-slides img {
        height: 120px;               /* bigger and clear on mobile */
    }

    .prev, .next {
        font-size: 22px;             /* smaller arrows */
        padding: 6px;
    }
}