.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 50px; /* Reduced padding to tighten up space */
    background-image: linear-gradient(to top, rgb(174, 140, 202), #f5e1a9);
    max-height: 300px; /* Limit the overall height of the footer */
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 400px; /* Adjusted max-width */
    margin-right: 15px; /* Reduced right margin */
}

#stanford-logo {
    width: 100%; /* Ensure the logo scales with container */
    max-width: 400px; /* Size adjustment */
}

#stanford-logo,
.sponsor-logo {
    transition: transform 0.3s ease-in-out;
}

#stanford-logo:hover,
.sponsor-logo:hover {
    transform: scale(1.1);
    cursor: pointer;
}

.icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: #3f2b96; 
}

.logo img {
    transform: scale(1.5);
    transition: 0.6s;
    margin: 10px;
}

.logo:hover {
    transform: scale(1.6);
    opacity: 0.5; 
    cursor: pointer;
}

.footer-right {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px; /* Reduced gap between sponsor logos */
    max-width: calc(100% - 400px); /* Adjusted width for sponsor logos */
}

.sponsor-logo {
    flex: 1 1 auto;
    max-width: 150px; /* Reduced max width */
    height: auto; /* Ensure aspect ratio is maintained */
    object-fit: contain; /* Maintain aspect ratio */
    padding: 5px; /* Reduced padding */
    margin: 0; /* Remove margin */
}

.licenses {
    text-align: center;
    padding: 10px; 
    background-color: rgb(174, 140, 202);
    color: #fff;
    font-size: 14px; 
    font-family: 'DM Sans', sans-serif;
    color: #3f2b96;
}

/* Media query for smaller screens */
@media (max-width: 850px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-right {
        justify-content: center;
    }

    .sponsor-logo {
        max-width: 100px;
    }
}
