:root {
    --max-width-news: 1080px;
}

.main-container {
    /*background-color: var(--color-background);*/
}

.news-image {
    display: flex;
    background-color: var(--color-background);
    align-items: center;
    height: 100vh;
    max-height: 720px;
}

.news-image>.news-cover-text {
    margin-top: 2rem;
    width: 40%;
    padding: 3rem;
}

.news-cover-image {
    width: 60%;
    flex: 1;
    overflow: hidden;
    height: 100%;
}

.news-cover-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.news-image .image-mobile {
    display: none;
}

.news-container {
    width: 100%;
    max-width: var(--max-width-news);
    margin: auto;
    padding: 4rem 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.news-item {
    width: calc(25% - 1.25rem);
    display: flex;
    flex-direction: column;
    background-color: #fff;
    transition: transform 250ms;
}

.news-item:hover {
    transform: translateY(-1rem);
}

.news-item-image {
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.news-item-image a {
    display: flex;
    height: 100%;
}

.news-item-image img {
    height: 100%;
}

.news-item-text {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-item-text a {
    text-decoration: none;
    flex: 1;
}

.news-item-text .news-item-date {
    font-size: 1rem;
}

.news-item-text h3 {
    font-size: 1.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;

}

.news-item-text .news-item-abstract {
    padding-bottom: 2rem;
    line-height: 1.5;
    display: none;
}

.news-item-text .news-item-detail {
    font-size: 1.125rem;
    text-decoration: none;
    font-weight: bold;
    margin-top: 1rem;
}

.news-item-text .news-item-detail::after {
    content: "";
    position: relative;
    margin-left: 0.5rem;
    display: inline-block;
    vertical-align: middle;
    background-color: var(--color-button);
    mask-image: url("/assets/icons/arrow_outward.svg");
    mask-size: contain;
    width: 1.75rem;
    height: 1.75rem;
}


/*************************************************************************************************/

.cover-image {
    position: relative;
    overflow: hidden;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    max-height: 50vh;
    overflow: hidden;
    align-items: center;
    justify-content: center;
}

.cover-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to right, var(--color-main-opacity), transparent);
}

.cover-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0003;
}

.cover-image .image-mobile {
    display: none;
}

.cover-image img {
    vertical-align: middle;
    width: 100%;
}

.cover-image .news-cover-overlay {
    position: absolute;
    max-width: var(--max-width-news);
    width: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-shadow: 0 0 0.25rem #000;
    padding: 1rem;
    z-index: 1;
}

.news-image h1 {
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-image .news-item-abstract {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.news-image .news-date {
    font-size: 1.25rem;
    color: var(--color-button);
}

.news-item-content {
    max-width: var(--max-width-news);
    margin: auto;
    padding: 4rem 1rem;
    line-height: 1.8;
}

.news-item-content h2 {

    font-weight: bold;
    margin-bottom: 0.5rem;
}

.news-item-content h3 {
    font-weight: bold;
    margin-bottom: 0.75rem;
}

.news-item-content ul {
    padding: 1rem 0;
}

.news-item-content ul li {
    margin-left: 2rem;
}

.news-item-content .text-border {
    padding: 1.5rem 3rem;
    margin-bottom: 2rem;
    background-color: #f6f6f6;
}

.news-item-content table {
    display: block;
    max-width: 100%;
}

@media only screen and (max-width: 1280px) {
    .news-cover-image {
        overflow: hidden;
        height: 100%;
    }
}

@media only screen and (max-width: 960px) {
    .news-image {
        height: auto;
        max-height: none;
        flex-direction: column-reverse;
    }
    .news-image>.news-cover-text {
        width: 100%;
        margin-top: 0;
        padding: 2rem 4%;
    }

    .news-cover-image {
        width: 100%;
    }

    .news-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

@media only screen and (max-width: 800px) {
    .news-item {
        flex-direction: column;
        max-width: 480px;
        margin: auto;
    }

    .news-item-image,
    .news-item-text {
        width: 100%;
    }
}