body {
    background-color: #FFFFFF;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    margin-bottom: 30px;
    text-align: center;
}

.investor-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    width: 100%;
    max-width: 1200px;
    flex-wrap: wrap;
}

.investor {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    width: 30%; /* Start with 30% for 3 columns, will adjust for smaller screens */
    min-width: 200px; /* Ensure a minimum width for each investor box */
}

.investor img {
    display: block;
    margin-bottom: 10px;
    max-width: 100%; /* Ensure image doesn't overflow its container */
    height: auto;
}

.investor a {
    text-decoration: none;
    color: #000;
    font-weight: bold;
}

.investor a:hover {
    text-decoration: underline;
}

/* Styles for different logo sizes */
.logo-large {
    max-width: 400px;
    max-height: 200px;
}

.logo-medium {
    max-width: 300px;
    max-height: 155px;
}

.logo-small {
    max-width: 150px;
    max-height: 75px;
}

/* Adjust for smaller screens - make it 2 columns */
@media (max-width: 992px) {
    .investor {
        width: 45%; /* Adjust to 45% for 2 columns on medium screens */
        margin-right: 5%; /* Add some margin to the right */
        margin-left: 5%; /* Add some margin to the left */
    }
    .investor-row {
        gap: 20px;
    }
}

/* On very small screens, make it 1 column */
@media (max-width: 768px) {
    .investor {
        width: 90%; /* Take up almost full width on small screens */
        margin-right: 5%;
        margin-left: 5%;
    }
    .investor-row {
        flex-direction: column; /* Stack investors vertically */
        align-items: center; /* Center them horizontally */
        gap: 20px;
    }
}
