/* 5. Mosaico news*/
.m-news {
    padding: 80px;
}
.m-news.is-style-light {    
    background: #eff2f4;
}
.m-news h2 {
    font-size: 40px;
    margin-bottom: 20px;
}
.m-news__title {
    display: grid;
    grid-template-columns: 2fr 1fr;
    margin-bottom: 40px;
}
.m-news__title p{
    grid-row: 2;
}
.m-news__title .m-link {
    grid-row: 2;
    align-items: flex-start;
    justify-self: flex-end;
}
.m-news__list {
    display: grid;
    grid-row-gap: 30px;
    grid-template-columns: 380px 280px 280px;
    justify-content: space-between;
}

.m-news .item-0 {
    order: 1;
}
.m-news .item-1 {
    order: 2;
}
.m-news .item-2 {
    order: 5;
}
.m-news .item-3 {
    order: 3;
}
.m-news .item-4 {
    order: 4;
}
.m-news .item-5 {
    order: 6;
}

.m-news__list__item__category {
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    color: #005187;
    margin-bottom: 8px;
}

.m-news__list__item__category:hover {
    color: #005187;
}

.m-news__list__item {
    width: 100%;
    color: var(--font-color);
    /* cursor: pointer; */
}
.m-news__list__item:hover {
    text-decoration: none;
    color: var(--font-color);
}
.m-news__list__item .m-link::before {
    content: "";
    display: block;
    width: 100%;
    height: 0.025rem;
    background-color: var(--light-blue);
    transform-origin: left;
    transform: scale(0);
    transition: 0.3s linear;
    position: absolute;
    bottom: 0;
}
.m-news__list__item .m-link:hover::before {
    transform: scale(1);
}
.m-news__list__item .m-link:hover::after {
    transform: translateX(3px);
}
.m-news__list__item__image {
    display: block;
    margin-bottom: 16px;
    max-width: 100%;
}
.m-news__list__item__title {
    font-size: 20px;
    margin-bottom: 16px;
    font-weight: 500;
}

.m-news__list__item__date {
    display: inline-flex;
    height: 24px;
    background: var(--dark-blue);
    border-radius: 2px;
    font-size: 12px;
    color: #fff;
    padding: 4px;
    margin-bottom: 20px;
}
.m-news__list__item__date::before {
    display: block;
    content: "";
    width: 16px;
    height: 16px;
    background: url("../../../../assets/images/icons/ico-calendar-white.svg") no-repeat;
    margin-right: 4px;
}
.m-news__list__item:nth-child(1) {
    grid-row: span 4;
}
.m-news__list__item:nth-child(2) {
    grid-row: span 2;
}
.m-news__list__item:nth-child(5) {
    margin-top: -30px;
}
.m-news__list__item:nth-child(1) .m-news__list__item__image img{
   max-width: 384px;
}
.m-news__list__item:nth-child(2) .m-news__list__item__image img,
.m-news__list__item:nth-child(3) .m-news__list__item__image img{
    max-width: 280px;
    width: 270px;
    height: 150px;
    object-fit: cover;
 }
.m-news .carregar-mais {
    margin-top: 32px;
    width: 100%;
    border: 1px solid var(--light-blue);
    text-align: center;
    /* padding: 20px; */
    display: flex;
    align-items: center;
    height: 60px;
}
.m-news .carregar-mais a {
    color: var(--light-blue);
    text-decoration: none;
    font-weight: 700;
    font-style: normal;
    cursor: pointer;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.m-news .carregar-mais:hover a {
    color: #fff;
}

.m-news .carregar-mais:hover {
    background-color: var(--dark-blue);
}

@media (max-width: 1200px) {
    .m-news__list {
        grid-column-gap: 30px;
        grid-template-columns: 50% 50%;
        grid-row-gap: 30px;
    }
    .m-news__list__item:nth-child(1) {
        grid-row: span 3;
    }

    .m-news__list__item:nth-child(5) {
        margin-top: 0px;
    }
}
@media (max-width: 768px) {
    .link-noticias {
        margin-top: 40px;
    }
    
    .m-news {
        padding: 40px 0;
    }
    .m-news__title p{
        grid-row: 2;
        grid-column: span 2;
    }
    .m-news h2 {
        font-size: 32px;
        margin-bottom: 8px;
    }

    .m-news__list {
        grid-template-columns: 100%;
        grid-column-gap: 0px;
        grid-row-gap: 30px;
    }
    
    .m-posts + .m-link{
        justify-content: flex-end;        
    }

    .m-news__list__item__image img,
    .m-news__list__item:nth-child(1),
    .m-news__list__item:nth-child(2) {
        width: 100%;
        max-width: unset !important;
        height: 100%;
    }

    .m-news__list__item__date {
        width: 100%;
    }

    .m-news .item-0 {
        order: 1;
    }
    .m-news .item-1 {
        order: 2;
    }
    .m-news .item-2 {
        order: 3;
    }
    .m-news .item-3 {
        order: 4;
    }
    .m-news .item-4 {
        order: 5;
    }
    .m-news .item-5 {
        order: 6;
    }

}
