html, body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
}

.grid-container {
    display: grid;
    height: 100vh;
    width: 100vw;
    box-sizing: border-box;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    gap: 20px;
    padding: 20px;
    margin: 0 auto;
}

.body-font {
    font-size: 1.5em;
    color: #fdeede;
}

.small-font {
    font-size: 1.0em;
    color: #fdeede;
}

.main-text {
    grid-column: 1 / -1;
    background-color: #59B7A6;
    padding: 20px;
    color: #282663;
}

.contact-info {
    grid-column: 1;
    grid-row: 2;
    padding: 20px;
    color: #282663;
}

    .contact-info h2, .partner-brands h3 {
        color: #E5752D;
    }

    .contact-info a {
        color: #59B7A6;
        text-decoration: none;
        font-weight: bold;
    }

        .contact-info a:hover {
            text-decoration: underline;
        }

.logo-socials {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #FDEEDE;
}

.partner-brands {
    grid-column: 3;
    grid-row: 2;
    color: #FDEEDE;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .partner-brands h3 {
        color: #E5752D;
        width: 100%;
        text-align: center;
    }

.brand-img-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    justify-items: center;
    align-items: center;
    width: 100%;
}

    .brand-img-container img {
        width: auto;
        max-width: 90%;
        max-height: 120px;
    }

.cta-button {
    background-color: #E5752D;
    color: #FDEEDE;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.socials {
    display: flex;
    gap: 20px;
}

    .socials img {
        max-width: 50px;
    }

*,
*::before,
*::after {
    box-sizing: inherit;
}

/* Mobile responsive layout */
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr; /* One column */
        grid-template-rows: auto; /* Auto row height */
    }

    .main-text,
    .contact-info,
    .logo-socials,
    .partner-brands {
        grid-column: 1; /* All items in the first column */
        grid-row: auto; /* Automatic placement in rows */
    }

        .logo-socials img {
            width: 80%; /* Adjust the logo size on mobile */
            margin: 0 auto; /* Center the logo */
        }

    .brand-img-container {
        grid-template-columns: 1fr; /* One column for logos */
        gap: 10px;
    }
}
