/* --- Sponsors Section Custom Styles --- */

/* Add vertical space at the bottom of the sponsors section */
#partners {
    padding-bottom: 5rem; 
}

/* 1. Layout & Centering */
#partners .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end; /* Vertically aligns logos of different heights */
    text-align: center;
}

/* 2. Container for the link and image */
.partners-link {
    display: inline-block;
    margin: 0 auto;
    border: none !important;
    background: none !important;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.partners-link:hover {
    opacity: 0.7;
}

/* 3. Image Styling & Sizing */
.partners-image {
    display: block;
    margin: 0 auto;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    
    /* CONTROL LOGO SIZE HERE */
    max-width: 250px; 
}

.partners-image img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
    background: transparent !important;
    border: none !important;
}

/* 4. Mobile Responsiveness */
@media screen and (max-width: 736px) {
    /* Ensures logos center on mobile when they stack */
    #partners .col-12-medium {
        display: flex;
        justify-content: center;
        margin-bottom: 3rem; /* Spacing between stacked logos */
    }
    
    #partners .col-12-medium:last-child {
        margin-bottom: 0;
    }

    .partners-image {
        max-width: 200px; /* Slightly smaller logos on phones */
    }
}