/* Full-width news list with optional scroll on the news page */
.module-news .news-list {
    margin-top: 0;
    max-height: 1000px;
    overflow-y: auto;
    padding-right: 10px;
    margin-left: 0;
}

.module-news .news-header,
.module-news .news-article {
    margin-left: 0;
}

.module-news .news-header {
    display: none;
}

.module-news .news-list-header {
    margin-top: 0;
    margin-left: 0;
    margin-bottom: 20px;
}

.module-news .news-list-header .header-text {
    color: #b1e1ee;
    margin: 0;
    display: block;
    padding: 1rem 0;
    font-size: 1.625rem;
    font-family: var(--font-family-secondary);
    text-transform: uppercase;
}

.module-news .news-list-header .header-text span {
    font-size: 1.5rem;
    font-family: var(--font-family-quaternary);
    vertical-align: middle;
}

.module-news {
    --news-offset-x: -100px;
    --news-offset-y: 0px;
}

.module-news .news-list-header,
.module-news .news-list {
    position: relative;
    left: var(--news-offset-x);
    top: var(--news-offset-y);
}

.module-news .news-list::-webkit-scrollbar {
    width: 8px;
}

.module-news .news-list::-webkit-scrollbar-track {
    background: rgba(10, 16, 20, 0.4);
}

.module-news .news-list::-webkit-scrollbar-thumb {
    background: rgba(120, 200, 200, 0.35);
    border-radius: 999px;
}

.module-news .news-list::-webkit-scrollbar-thumb:hover {
    background: rgba(120, 200, 200, 0.5);
}

/* Home page: compact news preview */
.module-home .news-list-header {
    display: none;
}

.module-home .news-list {
    display: grid;
    grid-template-columns: repeat(2, 400px);
    column-gap: 200px;
    row-gap: 20px;
    margin-top: 0.5rem;
    margin-left: 0;
    justify-content: start;
    position: relative;
    left: -100px;
}

.module-home .news-header {
    margin-top: 675px;
    margin-left: 0;
    position: relative;
    left: -100px;
    transform: translateY(-30px);
}

.module-home .news-header .header-text {
    padding: 0.25rem 0;
    font-size: 1.6rem;
}

.module-home .news-header .header-text span {
    font-size: 1.4rem;
}

.module-home .news-article {
    margin: 0;
    margin-left: 0;
    padding: 0.6rem !important;
    display: flex;
    flex-direction: column;
    width: 400px;
    height: 250px;
    overflow: hidden;
    position: relative;
    border-radius: 16px;
}

.module-home .news-article .row {
    height: 100%;
}

.module-home .news-article .row > [class*="col-"] {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.module-home .news-article .article-body,
.module-home .news-article .article-foot {
    margin: 0.5rem 0 0 0;
}

.module-home .news-article .article-metadata {
    display: none;
}

.module-home .news-article .article-content {
    font-size: 0.85rem;
    line-height: 1.15;
    display: block;
}

.module-home .news-article .article-body {
    flex: 1 1 auto;
    overflow: hidden;
}

.module-home .news-article .article-foot {
    margin-top: auto;
}

.module-home .news-article .article-title a {
    font-size: 0.9rem;
    line-height: 1.15;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.module-home .news-article .btn-readmore {
    font-size: 0.7rem;
    padding: 0.35rem 0.6rem;
    line-height: 1;
}

@media screen and (max-width: 992px) {
    .module-home .news-list {
        grid-template-columns: repeat(auto-fit, 400px);
        justify-content: center;
    }
}

.module-home .news-article [thumbnail] {
    display: none;
}
