/* =========================================================
   NEWS SECTION
========================================================= */

.news-section {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #fff;
    box-sizing: border-box;
}


/* =========================================================
   HEADER
========================================================= */

.news-section-header {
    width: 96%;
    margin: 0 auto;
    padding: 8px 0 5px;
}

.news-title-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-icon {
    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #1e3a8a;
    background: #eff6ff;

    border: 1px solid #dbeafe;
    border-radius: 6px;

    font-size: 13px;
}

.news-section-title {
    margin: 0;

    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
}

.news-section-title span {
    color: #1e3a8a;
}

.news-section-title em {
    color: #dc2626;
    font-style: normal;
}

.news-section-header::after {
    content: "";

    display: block;

    width: 100%;
    height: 1px;

    margin-top: 7px;

    background: #e2e8f0;
}


/* =========================================================
   FLICKITY CAROUSEL
========================================================= */

.main-carousel-2 {
    width: 96%;

    margin: 0 auto;

    padding: 6px 0 12px;

    overflow: hidden;

    box-sizing: border-box;
}


/*
IMPORTANT:
Flickity creates and controls these elements.
*/

.main-carousel-2 .flickity-viewport {
    width: 100%;
    overflow: hidden;
}

.main-carousel-2 .flickity-slider {
    width: 100%;
}


/* =========================================================
   CAROUSEL CELL
========================================================= */

.main-carousel-2 .carousel-cell-2 {

    width: 290px;

    margin-right: 16px;

    box-sizing: border-box;

    flex-shrink: 0;
}


/* =========================================================
   CARD
========================================================= */

.news-card {

    display: block;

    width: 100%;

    color: inherit;
    text-decoration: none;

    background: #fff;

    border: 1px solid #e2e8f0;
    border-radius: 7px;

    overflow: hidden;

    box-sizing: border-box;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

.news-card:hover {

    color: inherit;
    text-decoration: none;

    transform: translateY(-2px);

    border-color: #cbd5e1;

    box-shadow:
        0 4px 12px rgba(15, 23, 42, .08);
}


/* =========================================================
   IMAGE
========================================================= */

.news-image-wrapper {

    width: 100%;
    height: 200px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f8fafc;

    overflow: hidden;
}

.news-image {

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .25s ease;
}

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


/* =========================================================
   CONTENT
========================================================= */

.news-content {

    min-height: 58px;

    display: flex;
    align-items: center;

    padding: 10px 12px;

    box-sizing: border-box;
}

.news-title {

    width: 100%;

    margin: 0;

    color: #1e3a8a;

    font-family: "Segoe UI", Arial, sans-serif;

    font-size: 13px;
    font-weight: 600;

    line-height: 1.4;

    text-align: left;

    overflow: hidden;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.news-card:hover .news-title {
    color: #dc2626;
}


/* =========================================================
   FLICKITY BUTTONS
========================================================= */

.main-carousel-2 .flickity-button {

    width: 34px;
    height: 34px;

    background: #fff;

    border: 1px solid #cbd5e1;

    border-radius: 50%;

    box-shadow:
        0 2px 7px rgba(15, 23, 42, .12);

    transition:
        background-color .2s ease,
        border-color .2s ease;
}

.main-carousel-2 .flickity-button:hover {

    background: #1e3a8a;

    border-color: #1e3a8a;
}

.main-carousel-2 .flickity-button-icon {
    fill: #475569;
}

.main-carousel-2 .flickity-button:hover .flickity-button-icon {
    fill: #fff;
}

.main-carousel-2 .flickity-button:disabled {
    opacity: .35;
}


/* =========================================================
   DOTS
========================================================= */

.main-carousel-2 .flickity-page-dots {

    position: relative;

    bottom: auto;

    margin-top: 10px;

    padding: 0;
}

.main-carousel-2 .flickity-page-dots .dot {

    width: 7px;
    height: 7px;

    margin: 0 4px;

    background: #cbd5e1;

    opacity: 1;
}

.main-carousel-2 .flickity-page-dots .dot.is-selected {
    background: #1e3a8a;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 768px) {

    .news-section-header,
    .main-carousel-2 {
        width: 94%;
    }

    .main-carousel-2 .carousel-cell-2 {
        width: 260px;
        margin-right: 12px;
    }

    .news-image-wrapper {
        height: 175px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 576px) {

    .news-section-header {
        width: 100%;
        padding-left: 10px;
        padding-right: 10px;
    }

    .main-carousel-2 {

        width: 100%;

        padding-left: 10px;
        padding-right: 10px;
    }

    .main-carousel-2 .carousel-cell-2 {

        width: calc(100vw - 55px);

        max-width: 290px;

        margin-right: 10px;
    }

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

    .news-title {
        font-size: 11.5px;
    }

    .main-carousel-2 .flickity-button {

        width: 28px;
        height: 28px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .main-carousel-2 .carousel-cell-2 {

        width: calc(100vw - 35px);

        margin-right: 8px;
    }

    .news-image-wrapper {
        height: 165px;
    }
}
