/* =========================================
   Homepage News
   ========================================= */

.home-news-section {
    padding: 42px 0 72px;
    background: #f4f7fb;
    overflow: hidden;
}

.home-news-container {
    width: min(1400px, calc(100% - 64px));
    margin: 0 auto;
}


/* =========================================
   Header
   ========================================= */

.home-news-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;

    margin-bottom: 46px;
}

.home-news-eyebrow {
    display: none;
}

.home-news-title {
    margin: 0;

    color: #17202b;

    font-size: clamp(38px, 4vw, 50px);
    line-height: 1;
    font-weight: 800;
}

.home-news-title span {
    color: #0066cc;
}

.home-news-actions {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}

.home-news-nav {
    width: 52px;
    height: 52px;

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

    border-radius: 7px;
    border: none;
    background: #0066cc;
    color: #ffffff;
    cursor: pointer;

    font-size: 26px;
    line-height: 1;
    font-weight: 500;

    transition:
        background .25s ease,
        transform .25s ease,
        opacity .25s ease;
}

.home-news-nav:hover {
    background: #0050a5;
    transform: translateY(-2px);
}

.home-news-nav:disabled {
    cursor: default;
    opacity: .45;
    transform: none;
}

/* =========================================
   News Slider
   ========================================= */

.home-news-slider {
    overflow: hidden;
}

.home-news-track {
    display: flex;
    gap: 40px;

    will-change: transform;

    transition:
        transform .65s cubic-bezier(.22,.61,.36,1);
}


/* =========================================
   Card
   ========================================= */

.home-news-item {
    flex: 0 0 calc((100% - 80px) / 3);

    min-width: 0;

    border: none;
    border-radius: 0;
    background: transparent;
    overflow: hidden;

    transition:
        transform 0.25s ease;
}

.home-news-item:hover {
    transform: translateY(-3px);
}

.home-news-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;

    color: inherit;
    text-decoration: none;
}

.home-news-image {
    display: block;

    aspect-ratio: 16 / 9.05;
    overflow: hidden;

    background: #eef1f4;
}

.home-news-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.35s ease;
}

.home-news-item:hover .home-news-image img {
    transform: scale(1.04);
}

.home-news-content {
    display: flex;
    flex-direction: column;
    flex: 1;

    padding: 24px 0 0;
}

.home-news-date {
    color: #66758a;

    font-size: 16px;
    line-height: 1.4;
}


/* =========================================
   Title
   ========================================= */

.home-news-card-title {
    display: block;

    margin: 0 0 12px;

    color: #17202b;

    font-size: 22px;
    line-height: 1.35;
    font-weight: 800;
}

.home-news-card-link .home-news-card-title {
    color: #17202b;

    transition: color 0.2s ease;
}

.home-news-card-link:hover .home-news-card-title {
    color: #0066cc;
}


/* =========================================
   Read More
   ========================================= */

.home-news-footer {
    margin-top: auto;
}

.home-news-read-more {
    display: none;
}

.home-news-read-more:hover {
    color: #0066cc;
}

.home-news-empty {
    margin: 0;

    color: #64748b;

    font-size: 15px;
}

/* =========================================
   Tablet
   ========================================= */

@media (max-width: 900px) {

    .home-news-container {
        width: calc(100% - 50px);
    }

    .home-news-header {
        margin-bottom: 34px;
    }

    .home-news-track {
        gap: 32px;
    }

    .home-news-item {
        flex-basis: calc((100% - 32px) / 2);
    }

}


/* =========================================
   Mobile
   ========================================= */

@media (max-width: 600px) {

    .home-news-section {
        padding: 38px 0 58px;
    }

    .home-news-container {
        width: calc(100% - 36px);
    }

    .home-news-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;

        margin-bottom: 28px;
    }

    .home-news-title {
        font-size: 36px;
    }

    .home-news-actions {
        display: none;
    }

    .home-news-track {
        gap: 34px;
    }

    .home-news-item {
        flex-basis: 100%;
        padding: 0;
    }

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

    .home-news-content {
        padding: 18px 0 0;
    }

    .home-news-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

}
