:root 
{
    --transition-anim: all .1s linear;
    --light-gray: #efefef;
}

#content {
    justify-content: flex-start;
}

.news-main-section
{
    width: 100%;

    display: grid;
    flex: 1;

    background-color: var(--light-gray);
}

/* NEWS HEADER */
.news-header-block
{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 10px 10px 10px;

    min-height: 500px;
    height: 100%;
    width: 100%;
    color: var(--white-font-color);

    background-color: black;
    background-image: url("/static/img/background_news.jpg");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
}

h1.news-header-title
{
    font-size: 55px;
    opacity: 80%;

    margin-bottom: 10px;
}

/* FRESH NEWS */
.fresh-news-grid
{
    display: grid;
    grid-template-rows: auto;
    grid-gap: 30px;
    justify-content: center;
    padding: 20px;
}

a.fresh-news-item
{
    background-color: var(--white-font-color);

    display: grid;

    width: 100%;
    height: 100%;

    padding: 5px;
    border-radius: var(--border-radius);
    text-decoration: none;
}

.fresh-news-item-icon
{
    min-width: 180px;
    max-width: 390px;
    width: 100%;
    min-height: 105px;
    max-height: 210px;
    height: 100%;
    overflow: hidden;

    background-color: var(--light-gray);
}

.fresh-news-item-icon img {
    width: 100%;
    height: 100%;
    border-radius: 5px;
    transition: var(--transition-anim);
}

a.fresh-news-item:hover .fresh-news-item-icon img
{
    transform: scale(1.05);
}

.fresh-news-item-desc-block
{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0 10px;
    margin-top: 5px;
}

h2.fresh-news-item-title
{
    font-size: 22px;
    color: var(--black-font-color);
}

p.fresh-news-item-date
{
    color: var(--inactive-link-color);
    margin-top: 10px;
}

/* LAST NEWS */
.last-news-block
{
    width: 100%;
    padding: 20px 0;
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.last-news-list
{
    width: 100%;
    min-height: 150px;
    background-color: var(--light-gray);
}

h3.last-news-header
{
    margin-bottom: 20px;
    font-size: 22px;
}

a.last-news-item
{
    display: grid;
    grid-template-columns: 260px 1fr;
    grid-gap: 20px;
    padding: 20px;
    border-bottom: 1px solid var(--span-font-color);

    transition: var(--transition-anim);
}

a.last-news-item:hover
{
    background-color: var(--light-gray);
    margin-left: 10px;
}

a.last-news-item:first-child
{
    border-top: 1px solid var(--span-font-color);
}

.last-news-item-icon
{
    display: flex;

    width: 260px;
    height: 140px;
    margin-right: 30px;

    background-color: var(--light-gray);
}
.last-news-item-icon img {
    width: 100%;
    border-radius: 5px;
}

.last-news-item-desc-block {
    display: grid;
}

h2.last-news-item-title
{
    font-size: 22px;
    color: var(--black-font-color);
    align-self: start;
}

p.last-news-item-description
{
    color: var(--article-category-color);
}

p.last-news-item-date
{
    color: var(--inactive-link-color);
    margin-top: 10px;
    align-self: end;
}

/* LOAD NEWS BUTTON */
button.green-btn
{
    min-width: 150px;
    z-index: 30 !important;
    margin-top: 20px;
    transition: var(--transition-anim) !important;
    outline: none;
}

button.green-btn::before 
{
    background-size: auto  100%, auto 100%, calc(100% - 30px) 100% !important;
}

button.green-btn.hide
{
    opacity: 0 !important;
    pointer-events: none;
}

/* NEWS-ARTICLE STYLES */
.pages_content-wrapper {
    margin: 120px 0 60px 0;
    width: 100%;
    max-width: 1200px;
    text-align: justify;
    display: grid;
    justify-content: center;
    grid-gap: 60px;
    padding: 0 10px;
}

.pages_article-wrapper {
    width: 100%;
}

.pages_article-wrapper p.cdx-block.ce-paragraph
{
    text-align: justify !important;
    overflow-wrap: break-word;
    text-indent: 20px;
    margin-bottom: 10px;
}

.pages_article-header
{
    margin-bottom: 20px;
}

h1.pages_mainTitle
{
    text-align: left;
}

p.pages_article-time {
    color: var(--inactive-link-color);
}

.pages_article-icon
{
    max-width: 640px;
    width: 100%;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.pages_article-icon img 
{
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
}

.cdx-quote-blockquote {

    color: var(--article-category-color);
    font-style: italic;
    margin: 0 20px 20px;
    padding-left: 10px;
    border-left: 3px solid var(--inactive-link-color);
}

/* NEWS SIDEBAR */
h2.pages_article-sidebar-title
{
    text-align: center;
    font-size: 22px;
    margin-bottom: 20px;
}

a.pages_article-sidebar-news-link
{
    display: grid;
    grid-template-columns: 130px auto;
    grid-template-rows: 70px;
    grid-gap: 10px;

    border-bottom: 1px solid var(--black-font-color);
    padding: 20px;
    transition: var(--transition-anim);
}

a.pages_article-sidebar-news-link:hover
{
    background-color: #f2f2f2;
}

a.pages_article-sidebar-news-link:first-child
{
    border-top: 1px solid var(--black-font-color);
}

a.pages_article-sidebar-news-link:last-child
{
    border-bottom: none;
}

a.pages_article-sidebar-news-link.current {
    background-color: #f2f2f2;
}

.pages_article-sidebar-news-icon
{
    display: flex;
    width: 130px;
    height: 70px;
    margin-right: 15px;

    background-color: var(--light-gray);
}

.pages_article-sidebar-news-icon img 
{
    width: 100%;
    height: 100%;
    border-radius: 5px;
}

.pages_article-sidebar-news-item-desc-block
{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

h2.pages_article-sidebar-news-item-title
{
    color: var(--black-font-color);
    font-size: 16px;
    text-align: left;
}

p.pages_article-sidebar-news-item-date
{
    color: var(--inactive-link-color);
    font-size: 14px;
}

/* TODO: REMOVE */
.wp-block-image img {
    width: 100%;
}

.ce-image
{
    border-radius: var(--border-radius);
    overflow: hidden;
}

.ce-image img {
    width: 100%;
    margin: 15px 0;
    border-radius: var(--border-radius);
}

.cdx-list
{
    /* margin-left: 15px; */
    margin: 15px 0 15px 15px;
}

/* MEDIA QUERIES */
@media screen and (max-width: 700px) {
    /* FRESH NEWS */
    .fresh-news-grid
    {
        grid-template-columns: minmax(260px, 390px) !important;
    }

    a.fresh-news-item:last-child
    {
        grid-column: 1 !important;
        width: 100% !important;
    }

    /* LAST NEWS */
    .last-news-block
    {
        width: 100% !important;
    }

    a.last-news-item
    {
        grid-template-columns:130px 1fr;
    }

    .last-news-item-icon
    {
        max-width: 130px;
        max-height: 70px;
    }
}

@media screen and (max-width: 700px) and (orientation: landscape) {
    /* FRESH NEWS */
    .fresh-news-grid
    {
        grid-template-columns: repeat(2, minmax(260px, 390px)) !important;
    }

    a.fresh-news-item:last-child
    {
        grid-column: 1 / span 2 !important;
        max-width: 390px !important;
        width: 50% !important;
        margin: 0 auto !important;
    }
}

@media screen and (max-width: 926px) {
    /* FRESH NEWS */
    .fresh-news-grid
    {
        grid-template-columns: repeat(2, minmax(calc(50% - 30px), 390px));
    }

    a.fresh-news-item:last-child
    {
        grid-column: 1 / span 2;
        max-width: 390px;
        width: calc(50% - 15px);
        margin: 0 auto;
    }

    /* NEWS-ARTICLE */
    .pages_content-wrapper
    {
        grid-template-columns: minmax(auto, 640px);
    }
}

@media screen and (min-width: 927px) {
    /* FRESH NEWS */
    .fresh-news-grid
    {
        grid-template-columns: repeat(2, minmax(260px, 390px));
    }

    a.fresh-news-item:last-child
    {
        grid-column: 1 / span 2;
        max-width: 390px;
        width: 100%;
        margin: 0 auto;
    }

    /* LAST NEWS */
    .last-news-block_inner {
        max-width: 884px;
    }

    /* NEWS-ARTICLE */
    .pages_content-wrapper
    {
        grid-template-columns: minmax(auto, 640px) minmax(auto, 330px);
    }
}

@media screen and (min-width: 1024px) {
    /* LAST NEWS */
    .last-news-block_inner {
        max-width: 980px;
    }
}

@media screen and (min-width: 1080px) {
    /* NEWS-ARTICLE */
    .pages_content-wrapper
    {
        grid-template-columns: 640px minmax(auto, 410px);
    }
}

@media screen and (min-width: 1180px) {
    /* NEWS HEADER */
    .news-header-block
    {
        min-height: 540px;
    }
    /* LAST NEWS */
    .last-news-block_inner {
        max-width: 1060px;
    }
}

@media screen and (min-width: 1320px) {

    /* FRESH NEWS */
    .fresh-news-grid
    {
        grid-template-columns: repeat(3, minmax(260px, 390px));
    }
    
    a.fresh-news-item:last-child
    {
        grid-column: 3;
        width: 100%;
    }
    
    /* LAST NEWS */
    .last-news-block_inner {
        max-width: 1320px;
    }
}