/* image with description block */
.custom-block{
    background-color: #FFF;
    padding: 15px;
}

.custom-block.first-block{
    border-radius: 20px 20px 0 0;
}

.custom-block.last-block{
    border-radius: 0 0 20px 20px;
}

@media (min-width: 768px) {
    .custom-block{
        padding: 60px;
    }
}

.image-with-description-block {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
}

.image-with-description-block .image-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

@media (min-width: 1200px) {
    .image-with-description-block .image-container {
        border-radius: 20px;
    }
}

.image-with-description-block .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 230px;
}

.image-with-description-block .text-container {
    width: 100%;
    padding: 1rem 0;
}

.image-with-description-block .text-container h2,
.image-with-description-block .text-container h3{
    font-size: 1.5rem;
    color: #000;
    font-family: 'Rubik', sans-serif;
}

@media (min-width: 1200px) {
    .image-with-description-block .text-container h2,
    .image-with-description-block .text-container h3{
        font-size: 1.75rem;
    }
}

.image-with-description-block .text-container h2 strong,
.image-with-description-block .text-container h3 strong{
    font-weight: 500;
}

.image-with-description-block .text-container h2::after,
.image-with-description-block .text-container h3::after{
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #98d4bb;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .image-with-description-block {
        flex-direction: row;
        gap: 0rem;
    }
    .image-with-description-block:nth-child(even) {
        flex-direction: row-reverse;
    }

    .image-with-description-block .text-container {
        margin-left: 32px;
    }

    .image-with-description-block:nth-child(even) .text-container {
        margin-left: 0;
        margin-right: 32px;
    }

    .image-with-description-block .image-container img {
        max-height: 100%;
    }

}

@media (min-width: 1024px) {
    .image-with-description-block .text-container {
        margin-left: 64px;
    }
    .image-with-description-block:nth-child(even) .text-container {
        margin-left: 0;
        margin-right: 64px;
    }
}