.image-buttons {
    position: relative;
    z-index: 1;
}

.image-buttons--homepage {
    padding-top: 69px;
}

.image-buttons--homepage::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 164px;
    bottom: 0;
    left: 0;
    background: #F7F9FB;
    z-index: -1;
}

.image-buttons__bottom {
    margin-top: 12px;
}

.image-buttons__headlines {
    padding-bottom: 16px;
    color: #23282D;
}

.image-button-item {
    margin-bottom: 16px;
}

.image-button {
    position: relative;
    height: 167px;
    display: block;
    overflow: hidden;
}

.image-button:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: #011F4B;
    opacity: 0.55;
}

.image-button__hover {
    position: absolute;
    padding: 20px 16px;
    width: 100%;
    left: 0;
    bottom: 0;
    z-index: 1;
    transition: all 0.4s ease-in-out;
}

.image-button__title {
    color: #fff;
    font-size: 18px;
    margin: 0;
    padding: 0;
    font-weight: 800;
    letter-spacing: 0em;
}

.image-buttons__top-content .image-buttons__title,
.image-buttons__top-content .image-buttons__description {
    width: 100%;
    padding: 0;
}

.image-buttons__top-content {
    margin-bottom: 16px;
}

.image-buttons__top-content .sub-heading {
    padding-right: 0;
}

.image-buttons__top-content .sub-heading::before {
    display: none;
}
@media (min-width: 768px) {
    .image-buttons--homepage {
        padding-top: 108px;
    }

    .image-buttons__wrap {
        padding: 0 58px;
    }
    
    .image-buttons--homepage::after {
        height: 196px;
    }
    
    
    .image-buttons__headlines {
        padding-bottom: 0;
    }
    
    .image-button-item {
        margin-bottom: 30px;
    }
    
    .image-button {
        height: 229px;
    }
    
    .image-button__hover {
        padding: 16px;
    }
    
    .image-button__title {
        font-size: 22px;
        letter-spacing: 0.05em;
    }
   
}


@media (min-width: 1200px) {
    .image-buttons--homepage {
        padding-top: 102px;
    }

    .image-buttons__wrap {
        padding: 0;
    }
    
    .image-buttons--homepage::after {
        height: 269px;
    }
    
    .image-buttons__headlines {
        padding-bottom: 32px;
        display: flex;
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .image-buttons__title {
        width: 508px;
    }

    .image-buttons__title h2 {
        margin-bottom: 0;
    }

    .image-buttons__description {
        width: calc(100% - 508px);
        padding-left: 32px;
    }
    
    .image-button {
        height: 481px;
    }

    .image-button:hover {
        text-decoration: none;
    }
    
    .image-button__hover {
        padding: 36px 33px 26px;
    }
    
    .image-button__title {
        font-size: 26px;
        margin-bottom: 14px;
        line-height: 1.1em;
        letter-spacing: 0;
    }

    .image-button__details p {
        color: var(--color-white);
        font-weight: 400;
        margin: 0 0 25px 0;
    }

    .image-button__details .btn {
        margin-bottom: 10px;
    }

    .image-button__details {
        opacity: 0;
        max-height: 0;
        transition: all 0.2s ease-in-out;
    }

    .image-button:hover .image-button__details {
        opacity: 1;
        max-height: 481px;
        transition: all 0.4s ease-in-out;
    }

    .image-button:hover::after {
        opacity: 0.8;
    }

    .image-button:hover .image-button__title {
        letter-spacing: 0.05em;
    }

    .image-buttons__top-content {
        margin-bottom: 32px;
    }

    .image-buttons__top-content h2 {
        margin-bottom: 15px;
    }
   
}


.image-buttons--innerpage .image-buttons__wrap {
    padding: 0;
    text-align: center;
}

.image-buttons--innerpage .image-button-item {
    margin-top: 0;
}

.image-buttons--innerpage .image-button {
    height: 215px;
}

.image-buttons--innerpage .image-button__hover {
    opacity: 0;
}

.image-buttons--innerpage .image-button:after {
    opacity: 0;
    background-color: #03396C;
}

.image-buttons--innerpage .image-buttons__title h4 {
    margin: 0;
}

.image-buttons--innerpage .image-buttons__headlines {
    padding-bottom: 40px;
    max-width: 832px;
    margin: 0 auto;
}


@media (min-width: 768px) {
    .image-buttons--innerpage .image-button {
        height: 211px;
    }

    
}

@media (min-width: 1200px) {
    .image-buttons--innerpage .image-button__title {
        font-size: 22px;
    }

    .image-buttons--innerpage .image-button {
        height: 412px;
    }

    .image-buttons--innerpage .image-button:after {
        opacity: 0.8;
        height: 0;
    }

    .image-buttons--innerpage .image-button:hover:after {
        height: 100%;
    }

    .image-buttons--innerpage .image-button:hover .image-button__hover {
        opacity: 1;
    }

    .image-button__hover h5 {
        font-size: 12px;
        color: #fff;
        font-weight: 400;
        text-transform: uppercase;
        margin-bottom: 8px;
    }

    .image-buttons--innerpage .image-buttons__description {
        width: 100%;
        padding-left: 0;
    }

    .image-buttons--innerpage .image-buttons__title {
        width: 100%;
    }

    .image-buttons--innerpage .image-buttons__headlines {
        padding-bottom: 60px;
    }

    .image-button.no-link{
        pointer-events: none;
    }
    .image-button__details p {
        width: 100%;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 7;
        -webkit-box-orient: vertical;
        /* background: #fff; */
    }
}

.image-buttons--homepage:has(+ .tab-select) {
    padding-bottom: 0;
}

@media (min-width: 1336px) {
    .image-button__details p {
        width: 100%;
    overflow: none;
    display:block;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    /* background: #fff; */
    }
}