
.kompania-container{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-height: 770px;
    margin-bottom: 100px;
    margin-top: 100px;
}

.section {
    box-sizing: border-box;
    padding: 10px;
    text-align: center;
    margin-top: 50px; /* Adjusted for better spacing on mobile */
}

.section img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.text-content-and-link {
    display: flex;
    justify-content: space-between;
    /*flex-direction: column; !* Stack elements on smaller screens *!*/
}

.text-content {
    text-align: left; /* Default alignment */
}

.more-link {
    text-decoration: none;
    color: #EB192D;
    font-size: 13px;
    margin-top: 5px;
}

.text-content h2 {
    font-size: 35px;
    color: #EB192D;
    margin: 5px 0 30px;
}

.text-content p {
    margin: 5px 0 15px;
    font-size: 17px;
    width: 230px; /* Allow text to fill the column width */
}


.first-row {
    position: relative;
    top: -100px;
}
/* .mirenjohjet{
    margin-bottom: 30%;
} */

.certificate-2 img {
    width: 337px;
    height: 251px;
    display: block; /* Remove extra space under the image */
}
.certificate img {
    width: 225px;
    height: 301px;
    display: block; /* Remove extra space under the image */
    padding: 7px;
}

.red-section{
    height: 293px;
    background-color: #EB192D;
}

/* Add your responsive breakpoints here if needed */
@media (max-width: 768px) {
    .section {
        width: 50%;
    }

    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    .section {
        width: 100%;
    }

    .text-content {
        position: static;
        text-align: center;
    }
}
