/** NEWS SECTION **/
.ninfa-news-item {
	margin-bottom: 60px;
    background: #db9b49;
    position: relative;
    opacity: 1;
    max-width: 400px;
}

.ninfa-news-item:nth-child(4n+1),
.ninfa-news-item:nth-child(4n+1) .news-content {
    background: #db9b49;
}

.ninfa-news-item:nth-child(4n+2),
.ninfa-news-item:nth-child(4n+2) .news-content {
    background: #c2b582;
}

.ninfa-news-item:nth-child(4n+3),
.ninfa-news-item:nth-child(4n+3) .news-content {
    background: #80a9ab;
}

.ninfa-news-item:nth-child(4n+4),
.ninfa-news-item:nth-child(4n+4) .news-content {
    background: #9bb068;
}

.ninfa-news-item:nth-child(5n+5),
.ninfa-news-item:nth-child(5n+5) .news-content {
    background: #b49248;
}

.ninfa-news-item:nth-child(6n+6),
.ninfa-news-item:nth-child(6n+6) .news-content {
    background: #b49a75;
}

.ninfa-news-item:nth-child(7n+7),
.ninfa-news-item:nth-child(7n+7) .news-content {
    background: #7493b0;
}

.ninfa-news-item:nth-child(8n+8),
.ninfa-news-item:nth-child(8n+8) .news-content {
    background: #c37680;
}



.ninfa-news .news-flower {
    background: url('../SVGs/flowerBug-01.svg');
    width: 80px;
    height: 80px;
    background-color: transparent; /* Just to be safe */
    position: absolute;
    right: -70px;
    top: -70px;
    z-index: 10;

    /**
        right and bottom property must be recalculated base on the size of the gap of each grid
        the gap of grid + the difference between the size of the actual svg. 
    **/
}



.ninfa-news-item.inactive {
    display: none;
}




@-webkit-keyframes fadeInLeft {
    from {
        opacity:0;
        -webkit-transform: translatex(-10px);
        -moz-transform: translatex(-10px);
        -o-transform: translatex(-10px);
        transform: translatex(-10px);
    }
    to {
        opacity:1;
        -webkit-transform: translatex(0);
        -moz-transform: translatex(0);
        -o-transform: translatex(0);
        transform: translatex(0);
    }
}
@-moz-keyframes fadeInLeft {
    from {
        opacity:0;
        -webkit-transform: translatex(-10px);
        -moz-transform: translatex(-10px);
        -o-transform: translatex(-10px);
        transform: translatex(-10px);
    }
    to {
        opacity:1;
        -webkit-transform: translatex(0);
        -moz-transform: translatex(0);
        -o-transform: translatex(0);
        transform: translatex(0);
    }
}
@keyframes fadeInLeft {
    from {
        opacity:0;
        -webkit-transform: translatex(-100px);
        -moz-transform: translatex(-100px);
        -o-transform: translatex(-100px);
        transform: translatex(-100px);
    }
    to {
        opacity:1;
        -webkit-transform: translatex(0);
        -moz-transform: translatex(0);
        -o-transform: translatex(0);
        transform: translatex(0);
    }
}
.in-left {
    -webkit-animation-name: fadeInLeft;
    -moz-animation-name: fadeInLeft;
    -o-animation-name: fadeInLeft;
    animation-name: fadeInLeft;
    -webkit-animation-fill-mode: both;
    -moz-animation-fill-mode: both;
    -o-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-animation-duration: 1s;
    -moz-animation-duration: 1s;
    -o-animation-duration: 1s;
    animation-duration: 1s;
    -webkit-animation-delay: 1s;
    -moz-animation-delay: 1s;
    -o-animation-duration:1s;
    animation-delay: 1s;
}


.news-content {
    padding: 1em;
    text-align: center;
}


.news-content h2.news-title {
    font-family: 'Roboto Condensed',Helvetica,Arial,Lucida,sans-serif;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: .7px;
    font-size: 13px;
    color: #fff;
    line-height: 1.3;
    padding: 0;
    margin: 0 0 .1em 0;
}

.news-content .news-date, 
.news-content .news-category {
    color: #000;
    line-height: 1.2em;
}

.news-content .news-category {
    font-weight: 700 !important;
    font-family: 'Roboto Condensed',Helvetica,Arial,Lucida,sans-serif;
    font-size: 13px;
    margin-top: 2px;

}
.news-content .news-date {
    font-size: 12px !important;
    margin-top: 4px;
}

.news-corners {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
}

.ninfa-news .news-corner {
    background: url('../SVGs/cornerBite-01.svg');
    width: 24px;
    height: 24px;
}

.ninfa-news .corner1 {
    position: absolute;
    top: -2px;
    left: -2px;
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
}

.ninfa-news .corner2 {
    position: absolute;
    top: -2px;
    right: -2px;
    -webkit-transform: rotate(90deg);
    -moz-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    -o-transform: rotate(90deg);
    transform: rotate(90deg);
}

.ninfa-news .corner3 {
    position: absolute;
    bottom: -2px;
    right: -2px;
    -webkit-transform: rotate(180deg);
    -moz-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    -o-transform: rotate(180deg);
    transform: rotate(180deg);
}

.ninfa-news .corner4 {
    position: absolute;
    bottom: -2px;
    left: -2px;
    -webkit-transform: rotate(270deg);
    -moz-transform: rotate(270deg);
    -ms-transform: rotate(270deg);
    -o-transform: rotate(270deg);
    transform: rotate(270deg);
}


.ninfa-news .more-news {
    grid-column: span 3;
}

.more-news {
    max-width: 117px;
    text-align: center;
    margin: 0px auto 0;
}



#main-news, .temp-div {
    display: flex;
    column-gap: 60px;
    position: relative;
    flex-wrap: wrap;
}

.temp-div {
    display: none;
}


.ninfa-news-item {
    width: 30%;
    width: calc(33% - 40px);
}


@media screen and (min-width: 982px) {
    .ninfa-news-item:nth-child(3n+3) .news-flower,
    .ninfa-news-item:nth-child(1) .news-flower,
    .ninfa-news-item:nth-child(2) .news-flower {
        display: none !important;
    }
}




/* Tablets */
@media screen and (max-width : 980px) {
    .ninfa-news-item {
        width: 50%;
        width: calc(50% - 40px);
    }

    .ninfa-news-item:nth-child(2n+2) .news-flower,
    .ninfa-news-item:nth-child(1) .news-flower,
    .ninfa-news-item:nth-child(2) .news-flower {
        display: none !important;
    }
}


/* small devices */
@media (max-width : 768px) {
    .ninfa-news-item {
        width: 100%;
    }

    .ninfa-news-item .news-flower {
        display: none !important;
    }
}




/* TRYING TO FIX THAT CONTENT HEIGHT */
.news-cover {
    height: 22em;
}

.news-content {
    height: 8em;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: 0;
}



.the-cover-image {
    height: 14em;
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
}