/* WCS_HOME_NEWS_GRADIENT_V2 */

/* Gradient across the text area of homepage news cards */
.homepage-news .newscards > a {
    background: linear-gradient(
        180deg,
        #05080d 0%,
        #17212d 45%,
        #344353 100%
    ) !important;
    border-radius: 9px;
    overflow: hidden;
    transition: box-shadow .2s ease;
}

.homepage-news .newscards > a:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}

.homepage-news .newscards > a img {
    display: block;
    object-fit: cover;
}

.homepage-news .newscards > a h4,
.homepage-news .newscards > a small {
    position: relative;
    z-index: 1;
}

/* WCS_HOME_NEWS_PHOTO_GRADIENT_V3 */

.homepage-news .newscards > a {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(
        180deg,
        #080d13 0%,
        #172331 55%,
        #344353 100%
    ) !important;
}

/* Keep photographs proportional */
.homepage-news .newscards > a > img {
    display: block;
    width: 100%;
    object-fit: cover;
}

/* Soft transition between photograph and card content */
.homepage-news .newscards > a::before {
    content: "";
    position: absolute;
    top: 115px;
    left: 0;
    right: 0;
    height: 75px;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(8,13,19,0) 0%,
        rgba(8,13,19,.22) 35%,
        rgba(8,13,19,.58) 70%,
        rgba(8,13,19,.85) 100%
    );
}

.homepage-news .newscards > a > span,
.homepage-news .newscards > a > h4,
.homepage-news .newscards > a > small {
    position: relative;
    z-index: 2;
}

@media (max-width: 600px) {
    .homepage-news .newscards > a::before {
        top: 115px;
        height: 75px;
    }
}

/* WCS_HOME_NEWS_META_ROW_V1 */

.homepage-news .newscards > a {
    display: flex !important;
    flex-direction: column !important;
}

.homepage-news .newscards > a > h4 {
    flex: 1 0 auto;
}

.homepage-news .newscards > a > .wcs-news-meta-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    width: 100%;
    margin-top: auto;
    padding: 5px 9px 10px;
    position: relative;
    z-index: 3;
}

.homepage-news .newscards .wcs-news-meta-row > .wcs-news-category {
    display: inline-flex !important;
    align-items: center;
    position: static !important;
    width: auto !important;
    max-width: 60%;
    margin: 0 !important;
    padding: 4px 8px !important;
    border-radius: 5px;
    background: #3478e5 !important;
    color: #fff !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
    white-space: nowrap;
}

.homepage-news .newscards .wcs-news-meta-row > .wcs-news-time {
    display: block !important;
    position: static !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #d5deea !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
    text-align: right;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .homepage-news .newscards > a > .wcs-news-meta-row {
        gap: 5px !important;
        padding: 5px 7px 9px;
    }

    .homepage-news .newscards .wcs-news-meta-row > .wcs-news-time {
        font-size: 11px !important;
    }
}
