.news-container {
    font-family: TypeNextCondensedProBold;
}

/* STYLE FOR NEWS GRID LOCATED IN HOME */
.grid-news-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 200px 200px;
    grid-column-gap: 10px;
    grid-row-gap: 10px;
}

.position-0 {
    grid-area: 1 / 1 / 3 / 3;
}

.position-1 {
    grid-area: 1 / 3 / 2 / 4;
}

.position-2 {
    grid-area: 1 / 4 / 2 / 5;
}

.position-3 {
    grid-area: 2 / 3 / 3 / 4;
}

.position-4 {
    grid-area: 2 / 4 / 3 / 5;
}

.new-card, .new-card-general {
    overflow: hidden;
    position: relative;
    padding: 0;
}

.new-card-general {
    aspect-ratio: 3/2;
    overflow: hidden;
}

    .new-card h6,
    .new-card-general p,
    .more-new-card-general p {
        width: 100%;
        text-align: center;
        position: absolute;
        bottom: 0;
        padding: 1rem;
        background-color: rgba(31, 55, 80, 0.5);
        color: #fff;
        font-size: 0.9rem;
        margin-bottom: 0;
    }

    .new-card img,
    .new-card-general img {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }

    .new-card-general:hover img,
    .new-card:hover img {
        transform: scale(1.125);
        transition: all 500ms;
    }

    .new-card-general:hover > a > h6,
    .new-card:hover > a > h6 {
        transition: all 500ms;
        background-color: #1C69D4;
    }

@media (max-width: 768px) {
    .grid-news-container {
        display: flex;
        flex-direction: column;
    }

    .new-card {
        aspect-ratio: 3/2;
        overflow: hidden;
    }
}

/* JAUNIMI VIEW VERSION 2 - ONLY APPLY FOR JAUNUMI VIEW (NEWS.CSHTML) */

.new-card-jaunumi {
    aspect-ratio: 3;
    overflow: hidden;
    position: relative;
    padding: 0;
}

    .new-card-jaunumi p {
        width: 100%;
        text-align: left;
        position: absolute;
        bottom: 15%;
        padding: 1rem;
        background-color: rgba(31, 55, 80, 0.5);
        color: #fff;
        font-size: 1rem;
        margin-bottom: 0 !important;
    }

    .new-card-jaunumi img {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }

    .new-card-jaunumi:hover img {
        transform: scale(1.125);
        transition: all 500ms;
    }

    .new-card-jaunumi:hover > a > h6 {
        transition: all 500ms;
        background-color: #1C69D4;
    }

@media (max-width: 768px) {
    .new-card-jaunumi {
        aspect-ratio: 3/2;
        overflow: hidden;
    }
}

/* Show more news logic and design with IS-ACTIVE class */

.more-new-card-general-container {
    opacity: 0;
    display: none;
}

.more-new-card-general {
    overflow: hidden;
    position: relative;
    aspect-ratio: 3/2;
    padding: 0;
}

    .more-new-card-general h6 {
        width: 100%;
        text-align: center;
        position: absolute;
        bottom: 0;
        padding: 1rem;
        background-color: rgba(31, 55, 80, 0.5);
        color: #fff;
        font-size: 0.9rem;
    }

    .more-new-card-general img {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }

    .more-new-card-general:hover img {
        transform: scale(1.125);
        transition: all 500ms;
    }

    .more-new-card-general:hover > a > h6 {
        transition: all 500ms;
        background-color: #1C69D4;
    }

.show-more-news-btn-container {
    display: flex;
    justify-content: center;
}

.more-news-btn {
    background-color: #1C69D4;
    color: #fff;
    width: 30%;
    border: none;
    padding: 1rem;
    border-radius: 4px;
    text-transform: uppercase;
}

@media (max-width:768px) {
    .more-news-btn {
        width: 100%;
    }
}

.more-news-btn::after {
    content: "Uzzināt vairāk";
}

/* SHOWING CLASS */

.news-btn-is-active::after {
    content: "rādīt mazāk";
}

.showing-news {
    display: block !important;
    animation: fadeIn 3.5s forwards;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}
