.home-first2 {
    background-color: var(--SECONDARY_MINOR_COLOR);
}

.home-first2 .container {
    max-width: var(--CONTAINER_WIDTH) !important;
    margin: 0px auto;
    padding: 60px 20px;
}

@media (min-width: 768px) {
    .home-first2__card-row {
        display: flex;
        justify-content: space-evenly;
        flex-wrap: wrap;
        margin: 0 -25px;
    }
}

.home-first2__row-item {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    opacity: 0;
}

@media (min-width: 768px) {
    .home-first2__row-item {
        margin-bottom: 0px;
        padding: 5px 25px;
        flex: 0 1 50%;
    }
}

@media (min-width: 992px) {
    .home-first2__row-item {
        flex: 0 0 50%;
    }
}

.home-first2__card {
    padding-top: 250px;
    position: relative;
    z-index: 1;
    flex: 1 1 100%;
}

.home-first2__picture {
    position: absolute;
    z-index: -1;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
}

.home-first2__picture img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

.home-first2__text-block {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px 20px;
    height: 100%;
}

@media (min-width: 768px) {
    .home-first2__text-block {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
}

@media (min-width: 768px) {
    .home-first2__text-block {
        padding: 30px 40px;
    }
}

.home-first2__text-block::before {
    content: "";
    display: block;
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
    background-color: var(--SECONDARY_MAJOR_COLOR);
}

.home-first2__titling {
    margin-bottom: 20px;
    color: var(--SECONDARY_MINOR_COLOR);
}

.home-first2__title {
    font-weight: 700;
    font-size: 22px;
    line-height: 140%;
    margin-bottom: 10px;
    font-family: var(--TITLE_FONT);
}

@media (min-width: 768px) {
    .home-first2__title {
        font-size: 32px;
    }
}

.home-first2__text {
    font-weight: normal;
    font-size: 14px;
    line-height: 140%;
    margin-bottom: 0px;
}

@media (min-width: 768px) {
    .home-first2__text {
        font-size: 16px;
    }
}

.home-first2__btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 15px 40px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 16px;
    text-decoration: var(--CONTAINER_WIDTH);
    background-color: var(--PRIMARY_MAJOR_COLOR);
    color: var(--PRIMARY_MINOR_COLOR);
}

@media (min-width: 576px) {
    .home-first2__btn {
        font-size: 18px;
    }
}

.home-first2__btn span {
    margin-right: 9px;
}

.home-first2__btn .bi {
    transition: all 0.3s ease 0s;
    font-size: 20px;
    color: var(--PRIMARY_MINOR_COLOR) !important;
}

@media (min-width: 768px) {
    .home-first2__btn {
        transition: all 0.3s ease 0s;
    }

    .home-first2__btn:hover {
        background-color: var(--PRIMARY_MINOR_COLOR);
        color: var(--PRIMARY_MAJOR_COLOR);
    }

    .home-first2__btn:hover .bi {
        color: var(--PRIMARY_MAJOR_COLOR) !important;
    }
}
