﻿.news-container {
    max-width: 1540px;
    margin: 0 auto
}
.news-container-inner {
    display: flex;
    gap: 50px
}
.news-sidebar-navigation {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}
.news-link-separator {
    width: 7px;
    height: 7px;
    background-color: #3F3F3F;
    border-radius: 20px;
}
.news-sidebar-link {
    font-size: 24px;
    font-weight: 400;
    color: #3F3F3F;
    opacity: 0.6;
    text-decoration: none;
    transition: opacity .3s ease, transform .3s ease
}
    .news-sidebar-link.active {
        opacity: 1
    }
    .news-sidebar-link:active {
        opacity: 1;
        transform: translateY(0px)
    }
    .news-sidebar-link:hover {
        opacity: 0.8;
        transform: translateY(-2px)
    }
.news-container-items {
    max-width: 920px;
}
.news-container-item {
    display: flex;
    flex-direction: column;
    gap: 30px;
    color: #3F3F3F
}
.news-item-date {
    font-size: 16px;
    font-weight: 300;
}
.news-item-main-title {
    font-size: 72px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 20px;
}
.news-item-title {
    font-size: 32px;
    font-weight: 700;
}
.news-item-user-creator {
    display: flex;
    align-items: center;
    gap: 10px;
}
.news-item-user-avatar {
    display: flex;
    width: 43px;
    height: 43px;
    justify-content: center;
    align-items: center;
    background-color: #D9D9D9;
    border-radius: 43px;
}
.news-item-user-name {
    font-size: 16px;
    font-weight: 300;
}
.news-item-text {
    font-size: 16px;
    font-weight: 300;
    margin-bottom: 20px;
}
.news-item-image-container {
    width: 100%;
    max-height: 535px;
    padding: 220px 0;
    text-align: center;
    background-color: #D9D9D9;
    color: #000;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}
.news-item-quote-text {
    margin-top: 20px;
    padding-left: 20px;
    border-left: 3px solid #3F3F3F
}
.news-item-social-media {
    display: flex;
    align-items: center;
    padding: 25px 0;
    border-top: 1px solid #3F3F3F;
    border-bottom: 1px;
    gap: 25px
}
.news-item-more-text {
    font-size: 16px;
    font-weight: 500;
}
.news-item-social-link img {
    max-width: 25px
}
.news-item-social-links {
    display: flex;
    gap: 15px;
}
.news-item-social-link {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #3F3F3F;
    border-radius: 16px;
    transition: opacity .3s ease
}
    .news-item-social-link:hover {
        opacity: 0.6
    }
.news-item-source-link{
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 10px;
}
.news-item-source-link a {
    text-decoration: none;
    color: #535353;
    transition: opacity .3s ease;
    display: inline-block;
    max-width: 200px; /* Подберите подходящую ширину */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.news-item-source-link a:hover {
        opacity: 0.6
    }
.news-container-content #html-container img {
    margin-top: 20px;
}
.news-container-content #html-container p {
    max-width: 920px;
    word-break: break-word
}
.news-item-bottom-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.news-item-source-link img {
    margin-right: 5px
}
.articles-month-header {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 30px
}
.articles-month-group {
    margin-bottom: 30px;
    margin-top: 30px;
}
.type-useful .BigNewsCont {
    position: relative;
    background-color: #40BFC8;
}
    .type-useful .BigNewsCont::before {
        content: "";
        position: absolute;
        right: 0;
        bottom: 0;
        width: 156px;
        height: 105px;
        background-image: url('../img/type-useful-stars.png');
        background-size: cover;
        background-repeat: no-repeat;
    }
.type-useful .NewsDate, .type-useful .BigNewsDesc, .type-useful .BigNewsTitle {
    color: #fff
}
.article-item-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}
.article-item-container:nth-child(even) {
    flex-direction: row-reverse;
}
    .article-item-container .BigNewsCont {
        max-height: 530px;
        max-width: 750px;
        width: 100%;
        height: 100%
    }
        .article-item-container .BigNewsCont .BigNewsDesc {
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
            white-space: wrap;
            text-overflow: ellipsis;
            max-height: 57px;
        }
        .normal-group-rest, .mirrored-group-first {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px
        }
        .mirrored-group-first {
            direction: rtl;
        }
        .mirrored-group-first .BigNewsTitle, .mirrored-group-first .NewsTag,  .mirrored-group-first .NewsDate{
             direction: ltr;
        }
        .normal-group-rest .BigNewsCont, .mirrored-group-first .BigNewsCont {
            max-height: 255px;
            max-width: 480px;
            width: 100%;
            height: 100%
        }

        .normal-group-rest .BigNewsCont .BigNewsDesc,
        .mirrored-group-first .BigNewsCont .BigNewsDesc,
        .normal-group-rest .BigNewsCont .BigNews-greystick,
        .mirrored-group-first .BigNewsCont .BigNews-greystick {
            display: none
        }
#accountPageLink {
    flex-grow: 1;
    height: fit-content;
}
.CheckboxNewsFilter{
    display: none;
}
.NewsCheckbox{
    display: flex;
    gap: 10px;
    align-items: center;
}
.checkbox-button {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 42px;
    border-radius: 12px;
    color: #E96C4B;
    font-weight: 700;
    border: 2px #E96C4B solid;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: transparent;
    position: relative;
    overflow: hidden;
}
.checkbox-label {
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 16px;
    width: 100%;
    text-align: center;
}
/* Анимация для активного состояния */
.checkbox-button.active {
    background-color: #E96C4B;
    color: white;
}

    .checkbox-button.active .checkbox-label {
        color: white;
    }

/* Эффект при наведении */
.checkbox-button:not(.active):hover {
    background-color: rgba(233, 108, 75, 0.1);
}
.EditBtnArticle{
    height: 48px;
    margin-top: 16px;
    margin-bottom: 16px;
}
.DeleteBtnArticle {
    height: 48px;
}


@media (max-width: 1600px) {
    .news-container {
        max-width: 1290px;
        margin: 0 auto
    }
}
@media (max-width: 1380px) {
    .news-container {
        max-width: 1128px;
        margin: 0 auto
    }
    .news-item-main-title{
        font-size: 48px;
    }
    .normal-group-rest, .mirrored-group-first {
        gap: 12px
    }

    .article-item-container {
        gap: 12px;
        margin-bottom: 12px;
    }

        .article-item-container .BigNewsCont {
            max-height: 500px;
            max-width: 420px;
            width: 100%;
            height: 500px
        }

    .normal-group-rest .BigNewsCont, .mirrored-group-first .BigNewsCont {
        max-height: 244px;
        max-width: 312px;
        width: 100%;
        height: 100%
    }

    .news-container-content #html-container p {
        max-width: 635px;
    }
    .news-container-content #html-container img {
        max-width: 635px;
    }
    .news-container-items {
        max-width: 635px;
    }
}
    @media (max-width: 1200px) {
        .news-container {
        max-width: 964px;
        margin: 0 auto
    }
        .news-container-content #html-container p {
            max-width: 450px;
        }
        .news-container-content #html-container img {
            max-width: 450px;
        }
        .news-container-items {
            max-width: 450px;
        }
        .NewRuTeenBtn-primary {
            height: auto;
            padding: 6px 14px
        }
    .normal-group-rest, .mirrored-group-first {
        gap: 13px
    }
    .article-item-container {
        gap: 13px;
        margin-bottom: 13px;
    }
    .article-item-container .BigNewsCont {
        max-height: 500px;
        max-width: 329px;
        width: 100%;
        height: 500px;
    }
    .article-item-container .BigNewsCont .BigNews-imgcont {
        max-height: 275px;
        max-width: 299px;
    }
    .article-item-container .BigNewsCont .BigNews-img {
        width: 100%;
        height: 100%;
    }
    .normal-group-rest .BigNewsCont, .mirrored-group-first .BigNewsCont {
        max-height: 244px;
        max-width: 273px;
        width: 100vw;
        height: 244px;
    }
    .normal-group-rest .BigNewsCont .BigNews-imgcont, .mirrored-group-first .BigNewsCont .BigNews-imgcont {
        max-height: 89px;
    }
}
@media (max-width: 1024px) {
    .news-container-inner {
        flex-direction: column
    }
    .NewRuTeenBtn-primary {
        max-width: 215px;
        font-size: 17px;
    }
    .news-container-content #html-container p {
        max-width: 590px;
    }
    .news-container-content #html-container img {
        max-width: 100%;
    }
    .news-container-items {
        max-width: 590px;
    }
    .news-container {
        max-width: 716px;
        margin: 0 auto
    }
    .normal-group-rest, .mirrored-group-first {
        grid-template-columns: 1fr;
        gap: 12px
    }
    .article-item-container {
        gap: 12px;
        margin-bottom: 12px;
    }
    .article-item-container .BigNewsCont {
        max-height: 500px;
        max-width: 476px;
        width: 100%;
        height: 100%;
    }
     .article-item-container .BigNewsCont .BigNews-imgcont {
        max-height: 312px;
        max-width: 446px;
    }
    .article-item-container .BigNewsCont .BigNews-img {
        width: 100%;
        height: 100%;
    }
    .normal-group-rest .BigNewsCont, .mirrored-group-first .BigNewsCont {
        max-height: 244px;
        max-width: 232px;
        width: 100vw;
        height: 100%
    }
    .normal-group-rest .BigNewsCont .BigNews-imgcont, .mirrored-group-first .BigNewsCont .BigNews-imgcont {
        max-height: 89px;
        max-width: 202px;
    }
    .article-item-container .BigNewsDesc {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        max-height: 4.5em;
    }
}
@media (max-width: 768px) {
    .news-item-main-title{
        font-size: 48px;
    }
    .news-item-bottom-actions{
        flex-direction: column-reverse;
        gap: 20px;
        align-items: start;
    }
    .news-container {
        max-width: 620px;
        margin: 0 auto
    }
    #accountPageLink {
        max-width: 336px;
    }
    .normal-group-rest, .mirrored-group-first {
        grid-template-columns: 1fr;
        gap: 20px
    }
    .article-item-container {
        justify-content: center;
        gap: 20px;
        margin-bottom: 12px;
    }
    .article-item-container .BigNewsCont {
        max-height: 500px;
        max-width: 336px;
        width: 100vw;
        height: 500px;
    }

        .article-item-container .BigNewsCont .BigNews-imgcont {
            max-height: 312px;
            max-width: 446px;
        }

        .article-item-container .BigNewsCont .BigNews-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

    .normal-group-rest .BigNewsCont, .mirrored-group-first .BigNewsCont {
        max-height: 244px;
        max-width: 232px;
        width: 100vw;
        height: 244px
    }

        .normal-group-rest .BigNewsCont .BigNews-imgcont, .mirrored-group-first .BigNewsCont .BigNews-imgcont {
            max-height: 89px;
            max-width: 202px;
        }

    .article-item-container .BigNewsDesc {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        max-height: 4.5em;
    }
    .NewsCheckbox{
        flex-direction: column;
    }
    .SearchMenu{
        width: unset;
    }
    #CreateBtn {
        width: 100%;
        max-width: 100%;
    }
    #ArticlesSerchMenu{
        margin-bottom: 10px;
    }
    .BigNewsDesc{
        display: none !important;
    }
}
@media (max-width: 575px) {
    #accountPageLink {
        max-width: none;
    }
    .mirrored-group-first {
        direction: ltr;
    }
        .mirrored-group-first .BigNewsTitle, .mirrored-group-first .NewsTag, .mirrored-group-first .NewsDate {
            direction: ltr;
        }
    .article-item-container:nth-child(even) {
        flex-direction: column;
    }
    .news-container {
        max-width: 524px;
        padding: 0 10px;
        margin: 0 auto
    }
    .article-item-container {
        flex-direction: column;
    }
    .normal-group-rest, .mirrored-group-first {
        display: flex;
        flex-direction: column;
    }
        .normal-group-rest .BigNewsCont .BigNewsDesc,
        .mirrored-group-first .BigNewsCont .BigNewsDesc {
            display: block
        }
        .normal-group-rest .BigNewsCont, .mirrored-group-first .BigNewsCont {
            max-height: 320px;
            max-width: 524px;
            width: 100%;
            height: 100%
        }
            .normal-group-rest .BigNewsCont .BigNews-imgcont, .mirrored-group-first .BigNewsCont .BigNews-imgcont, .article-item-container .BigNewsCont .BigNews-imgcont {
                max-height: 300px;
                height: 100%;
                max-width: 100%;
            }
    .article-item-container .BigNewsCont {
        max-height: 400px;
        max-width: 524px;
        width: 100%;
        height: 100%;
    }
    .normal-group-rest .BigNewsCont .BigNewsDesc, .mirrored-group-first .BigNewsCont .BigNewsDesc, .article-item-container .BigNewsDesc {
        max-width: 304px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        word-wrap:break-word;
        max-height: 30px !important
    }
    #CreateBtn {
        width: 100%;
        max-width: 100%;
    }
    #ArticlesSerchMenu {
        margin-bottom: 10px;
    }
    .BigNewsDesc {
        display: none !important;
    }
}
@media (max-width: 360px) {
    .article-item-container:nth-child(even) {
        flex-direction: column;
    }
    .news-container-content #html-container p {
        max-width: 341px;
    }
    .news-container-content #html-container img {
        max-width: 341px;
    }
    .news-container-items {
        max-width: 341px;
    }
    .news-item-social-links {
        gap: 10px
    }
    .news-item-social-media {
        gap: 15px
    }
    .news-item-more-text {
        font-size: 14px
    }
    .news-container {
        max-width: 360px;
        margin: 0 16px
    }

    .article-item-container {
        flex-direction: column;
    }

    .normal-group-rest, .mirrored-group-first {
        display: flex;
        flex-direction: column;
    }

        .normal-group-rest .BigNewsCont .BigNewsDesc,
        .mirrored-group-first .BigNewsCont .BigNewsDesc {
            display: block
        }

        .normal-group-rest .BigNewsCont, .mirrored-group-first .BigNewsCont {
            max-height: 320px;
            max-width: 340px;
            width: 100%;
            height: 100%
        }

            .normal-group-rest .BigNewsCont .BigNews-imgcont, .mirrored-group-first .BigNewsCont .BigNews-imgcont {
                max-height: 186px;
                max-width: 310px;
            }

    .article-item-container .BigNewsCont {
        max-height: 320px;
        max-width: 340px;
        width: 100%;
        height: 100%;
    }
    .normal-group-rest .BigNewsCont .BigNewsDesc, .mirrored-group-first .BigNewsCont .BigNewsDesc, .article-item-container .BigNewsDesc {
        display: none
    }
    #CreateBtn {
        width: 100%;
        max-width: 100%;
    }
    #ArticlesSerchMenu {
        margin-bottom: 10px;
    }
    .BigNewsDesc {
        display: none !important;
    }
}