﻿.news-carousel {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.news-viewer {
    width: 100%;
    display: grid;
    gap: 18px;
}

    .news-viewer.news-count-1 {
        grid-template-columns: 1fr;
        max-width: 760px;
    }

    .news-viewer.news-count-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-viewer.news-count-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .news-viewer.news-count-4 {
        grid-template-columns: repeat(4, 1fr);
    }

.news-card-wrap {
    display: none;
    min-width: 0;
}

    .news-card-wrap.news-visible {
        display: block;
    }

.news-card {
    height: 100%;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,0.12);
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.news-image {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
}

.news-date {
    font-size: 13px;
    color: #777;
    margin: 16px 20px 6px 20px;
}

.news-title {
    font-size: 22px;
    line-height: 1.2;
    margin: 0 20px 10px 20px;
    color: #222;
}

.news-synopsis {
    font-size: 15px;
    line-height: 1.45;
    margin: 0 20px 18px 20px;
    color: #444;
    flex-grow: 1;
}

.read-more {
    display: inline;
    align-self: flex-start;
    margin-left: 20px;
    padding: 0;
    background: none;
    color: #003366;
    text-decoration: underline;
    border-radius: 0;
    font-weight: 600;
}

    .read-more:hover {
        background: none;
        color: #00509e;
        text-decoration: underline;
    }

.news-arrow {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    background: #003366;
    color: #fff;
    font-size: 30px;
    line-height: 42px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.25);
}

    .news-arrow:hover {
        background: #00509e;
    }

    .news-arrow:disabled {
        opacity: 0.35;
        cursor: default;
    }

@media screen and (max-width: 700px) {
    .news-carousel {
        position: relative;
        gap: 0;
    }

    .news-arrow {
        position: absolute;
        top: 105px;
        transform: translateY(-50%);
        z-index: 10;
        opacity: 0.9;
    }

    .news-arrow-left {
        left: 8px;
    }

    .news-arrow-right {
        right: 8px;
    }

    .news-title {
        font-size: 21px;
    }

    .news-synopsis {
        font-size: 15px;
    }
}

@media screen and (min-width: 1300px) {
    .news-carousel {
        max-width: 1500px;
    }

    .news-image {
        height: 190px;
    }

    .news-title {
        font-size: 20px;
    }

    .news-synopsis {
        font-size: 14px;
    }
}
