.latest-news-slider {
    background: var(--latest-news-background);
}

.news-carousel-wrapper {
    overflow: hidden;
}

.news-carousel-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: calc(30% + 2rem);
    height: 100%;
    background: linear-gradient(90deg, var(--latest-news-background) 70%, #f2f4f700 100%);
}

.news-title {
    width: 125px;
    height: 125px;
    background-color: var(--carousel-title-color);
    color: var(--text-color);
    position: absolute;
    z-index: 9992;
    line-height: 1;
}

.icon-carousel-arrow {
    background: var(--icon-carousel-arrow);
    background-repeat: no-repeat;
    width: 2rem;
    height: 6rem;
}

.news-carousel-track.is-shifting .news-card {
    transform: translateX(-6px) scale(0.995);
    transition: all 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Card */
.news-carousel-track .news-card {
    background: var(--main-light-color);
    color: var(--main-dark-color);
    line-height: 1.25;
    width: 275px;
    transition: all 0.2s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.news-carousel-track .news-card span {
    font-size: .85rem;
}

.news-card__meta {
    font-size: 0.65rem;
    color: #6c7a8c;
}

.news-card a {
    text-decoration: none;
    color: inherit;
}

.news-card a:hover {
    text-decoration: none;
    color: inherit;
}

.news-card__content a span {
    color: inherit;
}

.img-slider {
    object-fit: cover;
    object-position: center;
}

/* Responsive */
@media (min-width: 1400px) {
    .news-title {
        left: 25%;
    }
}

@media (min-width: 1200px) {
    .news-title {
        left: 15%;
    }
}

.news-card {
    overflow: hidden;
}

.news-card__content {
    flex: 1;
    min-width: 0;
    /* Essential for text truncation in flex containers */
    padding-right: 10px;
}

.news-card__content a span {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-card>a {
    flex-shrink: 0;
    /* Prevent the image link from shrinking */
}

.img-slider {
    object-fit: cover;
    /* Ensure image scaling doesn't distort */
}