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

.zinco-news-carousel-wrapper {
    padding: 60px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

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

/* Carousel Controls */
.zinco-news-carousel .carousel-control-prev,
.zinco-news-carousel .carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    opacity: 0.8;
    transition: all 0.3s ease;
}

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

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

.zinco-news-carousel .carousel-control-prev:hover,
.zinco-news-carousel .carousel-control-next:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.zinco-news-carousel .carousel-control-prev-icon,
.zinco-news-carousel .carousel-control-next-icon {
    background-image: none;
    width: auto;
    height: auto;
}

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

/* Carousel Indicators */
.zinco-news-carousel .carousel-indicators {
    bottom: -40px;
}

.zinco-news-carousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #6c757d;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.zinco-news-carousel .carousel-indicators button.active {
    opacity: 1;
    background-color: #0d6efd;
    transform: scale(1.2);
}

/* News Card */
.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

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

.news-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.1);
}

.news-card-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-card-image-placeholder i {
    font-size: 60px;
    color: rgba(255, 255, 255, 0.8);
}

.news-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 12px;
}

.news-card-date i {
    font-size: 16px;
}

.news-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-card-excerpt {
    font-size: 15px;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-card-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0d6efd;
    font-weight: 600;
    font-size: 14px;
    transition: gap 0.3s ease;
}

.news-card:hover .news-card-read-more {
    gap: 12px;
}

.news-card-read-more i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-read-more i {
    transform: translateX(4px);
}

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

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

    .news-card-image {
        height: 200px;
    }
}

@media (max-width: 767px) {
    .zinco-news-carousel-wrapper {
        padding: 40px 0;
    }

    .news-card-image {
        height: 180px;
    }

    .news-card-title {
        font-size: 18px;
    }

    .news-card-excerpt {
        font-size: 14px;
    }
}