@import url(../variables.css);

.carousel h2 {
    position: relative;
    text-transform: uppercase;
    color: var(--gray-primary);
    font-weight: 800;
    padding: 20px 0;
}
.carousel h2::before {
    position: absolute;
    content: '';
    left: 0;
    bottom: 0;
    background: var(--bg-gradient-right);
    height: 6px;
    width: 100%;
}
.owl-stage {
    display: flex;
    height: 100%;
}
.owl-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 20px;
    max-height: 100%;
    justify-content: center;
}
/* .card-container {
    height: 100%;
    width: 100%;
} */
.card-carousel {
    overflow: hidden; 
    
    display: flex;
    flex-direction: column;
    /* justify-content: space-between; */
    
    /* box-shadow: var(--shadow-strong); */
    box-shadow: -7px 9px 8px #00000040;
    border-radius: 5px;
    
    top: 695px;
    left: 287px;
    height: 453px;
    width: 290px;

    background: #E9E9E9 0% 0% no-repeat padding-box;
    opacity: 1;
}
.card-carousel .text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: inherit;
}
.card-carousel .text .body {
    overflow: hidden;
    display: -webkit-box;
    font-size: 18px;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}
.card-carousel .image {
    overflow: inherit;

    min-height: 260px;
    width: 100%;
}
.card-carousel .image img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}
.card-carousel .title,
.card-carousel .body {
    text-align: justify;
    hyphens: auto;
}
.card-carousel .title {
    text-align: center;
}
.card-carousel .title h4 { 
    font-weight: 800;
    /* color: var(--gray-primary); */
    text-transform: uppercase;
}

@media (max-width: 1400px) {
    .card-carousel {
        width: 300px;
        height: 535px;
    }
}

@media (max-width: 992px) {
    .card-carousel {
        width: 280px;

    }
}

@media (max-width: 768px) {
    .card-carousel {
        width: 295px;
        height: 530px;
    }
    .owl-nav button.owl-prev,
    .owl-nav button.owl-next {
        top: 100%;
    }
    .owl-nav button.owl-prev {
        left: 45%;
    }
    .owl-nav button.owl-next {
        right: 45%;
    }
}