/* Language Section Styles */
/*#language-section {
    background-color: #E8F6FF;
    padding: 50px 0;
    color: black;
    text-align: center;
}*/

#language-section {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start; /* Align items to the right */
    justify-content: center;

    padding: 50px 50px;
    background-color: #310c0c;
    color: white;
    gap: 50px;
}

.language-image img {
    max-height: 400px; /* Set your desired maximum height */
    width: auto; /* Keeps the aspect ratio by adjusting width accordingly */
    object-fit: contain; /* Keeps the image contained within the specified height */
}

#language-section h2 {
    font-size: 2.5em;
    font-weight: 600;
    margin-bottom: 20px;
}

.language-content {
    display: grid;
    grid-template-columns: auto auto;
    gap: 50px;
    margin: 0 auto;
    max-width: 700px;
    justify-content: center;
}

.language-text {
    grid-column: 1 / -1;
    max-width: 600px;
}

@media (max-width: 768px) {

    #language-section {
        padding: 50px 40px;
        flex-direction: column-reverse; /* Stack text above the image */
    }

    .language-text {
        text-align: left; /* Center-align text */
    }

    .language-text p {
        margin: 0;
        padding: 0;
    }

    .language-image {
        text-align: center; /* Center-align the image */
    }

    #language-section h2 {
        font-size: 2em;
    }

}

