﻿
.newslistWrapper { display: flex; justify-content: space-between; align-items: flex-start; }
.newslistContainer.half { width: 49%; }
.videoDiv { width: 49%; position: sticky; top: 50px; }
.newsHtml { margin: 40px 0 0 0; }
    .newsHtml h1 { font-size: 22px; }

.newslistContainer.noImages .newslist { flex-wrap: wrap; display: flex; gap: 20px 2%; }
    .newslistContainer.noImages .newslist .newslistItem .image { display: none; }
.newslistContainer.noImages .newslistItem { width: 40%; border-top: 1px solid #ffffff20; padding: 20px 0 0; }
.newslistContainer.noImages .firstArticle { display: none; }
.newslistContainer.noImages .newslistItem:first-child,
.newslistContainer.noImages .newslistItem:nth-child(2) { border-top: none; }
.newslistContainer.noImages .newslist .newslistItem span.rub { height: auto; }

.filterDiv { display: flex; justify-content: space-between; align-items: center; margin: 0 0 50px 0; }
    .filterDiv .links a { display: inline-block; padding: 15px 25px; border-radius: 50px; background: #ffffff08; color: #fff !important; margin: 0 10px 0 0; font-weight: 400; font-size: 12px; font-family: 'Montserrat', sans-serif; }
        .filterDiv .links a.selected { background: var(--purple); }

.content.white .filterDiv .links a { color: var(--purple) !important; }
    .content.white .filterDiv .links a.selected { color: #fff !important; }


.sortDiv { border: 1px solid var(--purple); border-radius: 50px; padding: 7.5px 10px; font-size: 12px; width: 190px; box-sizing: border-box; position: relative; cursor: pointer; font-weight: 400; }
    .sortDiv .select { display: flex; justify-content: space-between; align-items: center; font-weight: 400; }
        .sortDiv .select .up { display: none; }
.sortPopup { position: absolute; top: 55px; right: 0; width: 100%; background: #ffffff80; padding: 20px; box-sizing: border-box; border-radius: 8px; display: none; }
    .sortPopup ul { list-style: none; padding: 0; margin: 0; }
        .sortPopup ul li { font-size: 12px; margin: 0 0 20px 0; cursor: pointer; }
            .sortPopup ul li.selected { color: var(--purple); }
            .sortPopup ul li:last-child { margin: 0; }

.sortDiv.open .sortPopup { display: block; }
.sortDiv.open .select .down { display: none; }
.sortDiv.open .select .up { display: inline; }

.sortDiv .sortPopup a { color: #fff !important; }
    .sortDiv .sortPopup a.selected { color: var(--purple) !important; }

.content.white .sortDiv .select { color: var(--purple); }
.content.white .sortPopup { background: #00000080; z-index: 2; }
    .content.white .sortPopup ul li { color: #fff; }
        .content.white .sortPopup ul li.selected { color: var(--purple); }
#sortOrderDDL { display: none; }

.firstArticle { margin: 0 0 50px 0; }
    .firstArticle a { display: flex; justify-content: space-between; align-items: center; }
    .firstArticle .image { width: 48%; }
        .firstArticle .image img { width: 100%; max-height: 400px; object-fit: contain; border-radius: 20px; }
    .firstArticle .text { width: 48%; }
        .firstArticle .text.full { width: 100%; }
        .firstArticle .text span { display: block; font-weight: 400; }
            .firstArticle .text span.rub { font-size: 16px; color: #fff; margin: 0 0 15px 0; }
            .firstArticle .text span.preamble { font-size: 14px; color: var(--stroke); margin: 0 0 0px 0; line-height: 1.4; }
            .firstArticle .text span.link { color: var(--purple); }
            .firstArticle .text span.author { color: #fff; font-size: 14px; }
        .firstArticle .text .notRead { background: #ff0000ff; color: #fff; padding: 5px 10px; border-radius: 10px; display: inline-block; margin: 0 0 10px 0; width: auto; }

.content.white .firstArticle .text span.preamble,
.content.white .newslist .newslistItem span.preamble,
.content.white .firstArticle .text span.rub,
.content.white .newslist .newslistItem span.rub,
.content.white .newslist .newslistItem span.author { color: #000; }

.newslist { display: flex; justify-content: flex-start; gap: 40px 2%; flex-wrap: wrap; }
    .newslist .newslistItem { width: 32%; }
        .newslist .newslistItem a { display: block; }
        .newslist .newslistItem .image { height: 260px; overflow: hidden; border-radius: 15px; display: block; margin: 0 0 20px 0; }
            .newslist .newslistItem .image img { height: 100%; width: 100%; object-fit: cover; }
        .newslist .newslistItem span { display: block; }
            .newslist .newslistItem span.rub { font-size: 16px; color: #fff; margin: 0 0 10px 0; height: 64px; line-height: 1.2; overflow: hidden; font-weight: 400; }
            .newslist .newslistItem span.preamble { font-size: 12px; color: var(--stroke); margin: 0 0 30px 0; line-height: 1.4; font-weight: 400; }
            .newslist .newslistItem span.link { color: var(--purple); }
            .newslist .newslistItem span.author { color: #fff; font-size: 14px; }
        .newslist .newslistItem .notRead { background: #ff0000ff; color: #fff; padding: 5px 10px; border-radius: 10px; display: inline-block; margin: 0 0 10px 0; width: auto; font-size: 12px; }

.newslistContainer.half .newslist { flex-direction: column; }
    .newslistContainer.half .newslist .newslistItem { width: 100%; border-top: 1px solid #ffffff20; padding: 20px 0 0 0; }
        .newslistContainer.half .newslist .newslistItem .image { height: auto; }
        .newslistContainer.half .newslist .newslistItem span.rub { height: auto; }

#popup { text-align: center; }
    #popup h2,
    #popup p { color: #000; max-width: 800px; text-align: center; }
        #popup p.last { margin: 0; }
    #popup button { border: none; padding: 10px 25px; border-radius: 10px; cursor: pointer; text-align: center; margin: auto; text-transform: uppercase; }
        #popup button:hover { opacity: 0.9; }
#jaBtn { background: #11a800; color: #fff; }
#nejBtn { background: #a80f00; color: #fff; }


@media only screen and (max-width: 1100px) {
    #sortOrderDDL { display: block; }
    .links { display: none; }
}

@media only screen and (max-width: 900px) {
    .newslist .newslistItem .image { height: 130px; }
    .newslist .newslistItem span.rub { font-size: 14px; }
    .newslist .newslistItem span.preamble { margin: 0 0 10px 0; }
    .newslist .newslistItem span.author { color: #fff; font-size: 12px; }
    .firstArticle .text span.rub { margin: 0 0 15px 0; }
    .firstArticle .text span.preamble { margin: 0 0 15px 0; }
    .firstArticle .text span.author { color: #fff; font-size: 12px; }
}

@media only screen and (max-width: 670px) {
    .newslistWrapper { flex-direction: column-reverse; }
    .newslistContainer.half { width: 100%; }
    .newslistContainer.noImages .newslistItem { width: 100%; }

    .videoDiv { width: 100%; margin: 0 0 15px 0; position: relative; top: 0; }

    .filterDiv { display: block; }
        .filterDiv .sortDiv { border: none; border-top: 1px solid var(--stroke); border-radius: 0; width: 100%; margin: 0 0 20px 0; padding: 20px 0; }
            .filterDiv .sortDiv .select { padding: 0 20px; }
    .sortPopup { position: relative; top: 0px; margin: 15px 0 0 0; }
    .newslist .newslistItem { width: 49%; }
    .firstArticle a { flex-wrap: wrap; }
    .firstArticle .image { width: 100%; margin: 0 0 15px 0; }
    .firstArticle .text { width: 100%; }
}

@media only screen and (max-width: 480px) {
    .newslist .newslistItem { width: 100%; }
        .newslist .newslistItem .image { max-height: 220px; height: auto; }
        .newslist .newslistItem span.rub { height: auto; }
}
