/**
 * @file
 * Styles for the News Carousel block.
 */

.zinco-news-carousel-wrapper {
    background-color: #ffffff;
    position: relative;
}

.zinco-news-carousel {
    position: relative;
    padding: 0;
}

/* Carousel Controls */
.carousel-controls-wrapper {
    position: absolute;
    top: 50%;
    width: 100%;
    left: 0;
    z-index: 10;
    transform: translateY(-50%);
    pointer-events: none;
}

.zinco-news-carousel .carousel-control-prev,
.zinco-news-carousel .carousel-control-next {
    width: 45px;
    height: 45px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.zinco-news-carousel-wrapper:hover .carousel-control-prev,
.zinco-news-carousel-wrapper:hover .carousel-control-next {
    opacity: 1;
}

.zinco-news-carousel .carousel-control-prev {
    left: -60px;
}

.zinco-news-carousel .carousel-control-next {
    right: -60px;
}

.zinco-news-carousel .carousel-control-prev:hover,
.zinco-news-carousel .carousel-control-next:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    color: #1e293b;
}

.zinco-news-carousel .carousel-control-prev-icon i,
.zinco-news-carousel .carousel-control-next-icon i {
    font-size: 16px;
    color: #64748b;
}

/* News Card */
.news-card {
    background: #f8f9fa;
    border-radius: 4px;
    /* Flatter cards as per image */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.news-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card-image {
    width: 100%;
    height: 250px;
    /* Adjusting height for better aspect ratio */
    overflow: hidden;
    position: relative;
    background: #e2e8f0;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-body {
    padding: 2rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-title {
    font-family: "Open Sans", sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-date {
    color: #94a3b8;
    font-size: 1rem;
    margin-top: auto;
}


@media (max-width: 991px) {
    .zinco-news-carousel .carousel-control-prev {
        left: 10px;
    }

    .zinco-news-carousel .carousel-control-next {
        right: 10px;
    }
}