.slider-custom {
    position: relative;
    z-index: 999;
    height: 700px;
    margin-bottom: 0 !important;
}

.slider-custom .flickity-page-dots {
    bottom: 30%;
    text-align: center;
     transform: unset !important;
    -webkit-transform: unset !important;
    left: 0 !important;
}


.flickity-viewport, .slider-custom .nectar-recent-post-slide {
    height: 700px !important;
}

.slider-content-custom .inner-wrap a, .slider-content-custom .inner-wrap p {
    color: #000 !important;
}
.slider-content-custom .inner-wrap p.post-author {
    font-weight: 500;
    font-size: 1em;
}

.slider-content-custom .container{
    width: 100% !important;
}


.slider-content-custom {
    position: relative;
    z-index: 999;
    height: 100%;
}

.slider-content-custom .recent-post-container {
    position: relative !important;
}

.slider-content-custom .container:before{
    display: none !important;
}

.slider-content-custom .recent-post-container .inner-wrap {
    bottom: 0;
    top: 0;
    min-height: 240px;
    position: relative !important;
    left: auto;
    width: auto;
    pointer-events: all;
    transition: all .3s linear;
    display: block;
    z-index: 100;
    color: #0a0a0a;
    transform: unset !important;
    -webkit-transform: unset !important;

}

.wpb_row:not(.full-width-content) .wpb_column:not(.vc_col-sm-12) .nectar-recent-posts-slider .inner-wrap {
    padding: 25px !important;
    padding-left: 4px !important;
}

.slider-img-custom{
    height: 512px;
    position: relative !important;
}

.slider-img-custom .nectar-recent-post-bg {
    max-height: 512px;
}

.post-author {
    font-size: 14px;
    color: #fff;
    margin-top: 20px;
}


.post-author a {
    text-decoration: none;
}

.slider-custom .inner-wrap .strong {
    font-size: 18px;
}

.slider-img-custom .nectar-recent-post-bg:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0));
    z-index: 2;
    pointer-events: none;
    top: 80%;
}

.nectar-recent-posts-slider .container .category-slider-custom a:first-child {
    margin-left: 0;
}

.nectar-recent-posts-slider .container .category-slider-custom span {
    display: inline-block;
    position: relative;
    padding-right: 10px;
    z-index: 10;
    font-family: Open Sans;
    font-size: 14px !important;
    font-weight: 500 !important;
}

.category-slider-custom {
    letter-spacing: 2px;
    text-transform: capitalize;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    display: block;
    line-height: 12px;
    font-size: 14px;
    font-weight: 500;
}

.nectar-recent-posts-slider .flickity-page-dots .dot:before{
    background-color: #fff !important;
}

.nectar-recent-posts-slider .flickity-page-dots .dot.is-selected:before{
    background-color: #982c1f !important;
}
.flickity-page-dots{
    width:100% !important;
}
.flickity-page-dots .dot{
    opacity: 1 !important;
 
}

.truncate-1-lines {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Chỉ tablet (ngang hoặc dọc) */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .slider-img-custom{
        height:  400px;
    }
    
    .slider-img-custom .nectar-recent-post-bg {
        max-height: 400px !important;
    }

    .slider-custom {
        max-height: 560px;
        margin-bottom: 25px !important;
    }
    
    .flickity-viewport, .slider-custom .nectar-recent-post-slide {
    height: 560px !important;
}


}


@media screen and (max-width: 575.98px) {
    .slider-content-custom .recent-post-container .inner-wrap  {
        top: 0 !important;
    }

    .slider-img-custom{
        height:  228px;
    }

    .slider-img-custom .nectar-recent-post-bg {
        max-height: 228px;
    }

    .slider-custom {
        max-height: 441px;
        margin-bottom: 25px !important;
    }

    .slider-custom .flickity-page-dots {
        bottom: 67%;
    }
}