/* CoreStack Club News */

.cs-club-news {
    width: 100%;
}


/* ========================================
   NEWS ITEM - DESKTOP
======================================== */

.cs-news-item {
    display: grid;
    grid-template-columns: minmax(0, 330px) minmax(0, 1fr);
    gap: 30px;
    align-items: center;

    padding-bottom: 22px;
    margin-bottom: 22px;

    border-bottom: 1px solid #dddddd;
}

.cs-news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}


/* IMAGE */

.cs-news-image {
    width: 100%;
    aspect-ratio: 1.46 / 1;
    overflow: hidden;
    border-radius: 16px;
}

.cs-news-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* CONTENT */

.cs-news-content {
    min-width: 0;
}

.cs-news-title {
    margin: 0 0 12px 0;

    font-family: "Montserrat", Arial, sans-serif;
    font-size: 23px;
    font-weight: 600;
    line-height: 1.14;
    letter-spacing: 0.024em;

    color: var(--cs-dark, #062A46);
    text-transform: none;
}

.cs-news-excerpt {
    margin: 0;

    font-family: "Montserrat", Arial, sans-serif;
    font-size: 15.5px;
    font-weight: 400;
    line-height: 1.42;

    color: #111111;
}


/* DATE */

.cs-news-date {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-top: 15px;

    font-family: "Montserrat", Arial, sans-serif;
    font-size: 14.5px;
    font-weight: 700;

    color: var(--cs-primary, #1379A3);
}


/* CSS CALENDAR ICON */

.cs-news-calendar {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 18px;
    height: 18px;
    flex: 0 0 18px;

    color: currentColor;
}

.cs-news-calendar svg {
    display: block;
    width: 100%;
    height: 100%;
}


/* ========================================
   LAPTOP
======================================== */

@media (min-width: 1025px) and (max-width: 1500px) {

    .cs-news-item {
        grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
        gap: 24px;

        padding-bottom: 18px;
        margin-bottom: 18px;
    }

    .cs-news-image {
        border-radius: 14px;
    }

    .cs-news-title {
        margin-bottom: 9px;
        font-size: 19px;
        line-height: 1.14;
        letter-spacing: 0.022em;
    }

    .cs-news-excerpt {
        font-size: 13.5px;
        line-height: 1.4;
    }

    .cs-news-date {
        gap: 7px;
        margin-top: 11px;
        font-size: 12.5px;
    }

    .cs-news-calendar {
        width: 16px;
        height: 16px;
        flex: 0 0 16px;
    }
}


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

@media (max-width: 1024px) {

    .cs-news-item {
        grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
        gap: 20px;

        padding-bottom: 18px;
        margin-bottom: 18px;
    }

    .cs-news-title {
        margin-bottom: 9px;
        font-size: 21px;
    }

    .cs-news-excerpt {
        font-size: 15px;
    }

    .cs-news-date {
        gap: 7px;
        margin-top: 12px;
        font-size: 13px;
    }

    .cs-news-calendar {
        width: 17px;
        height: 17px;
        flex: 0 0 17px;
    }
}


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

@media (max-width: 767px) {

    .cs-news-item {
        grid-template-columns: 1fr;
        gap: 13px;

        padding-bottom: 22px;
        margin-bottom: 22px;
    }

    .cs-news-image {
        aspect-ratio: 16 / 9;
        border-radius: 13px;
    }

    .cs-news-title {
        margin-bottom: 10px;

        font-size: 18px;
        line-height: 1.14;
        letter-spacing: 0.020em;
    }

    .cs-news-excerpt {
        font-size: 14.5px;
        line-height: 1.45;
    }

    .cs-news-date {
        gap: 8px;
        margin-top: 14px;

        font-size: 14px;
    }

    .cs-news-calendar {
        width: 19px;
        height: 19px;
        flex: 0 0 19px;
    }
}

/* Homepage news links */
.cs-news-image-link {
    display: block;
    width: 100%;
    color: inherit;
    text-decoration: none;
}

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

.cs-news-title a:hover,
.cs-news-title a:focus {
    color: var(--cs-primary, #1379A3);
}
