:root {
    --COLOR1: #d70000;
    --COLOR2: #a00000;
    --COLOR3: #f2f2f2;
    --COLOR4: #282828;
}

html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.news-main .news {
    display: flex;
    width: 100%;
    color: #f2f2f2;
    border-top: 1px solid rgb(77, 77, 77);
    padding-top: 100px;
    flex-direction: column;
    align-items: center;
    margin-bottom: 70px;
}

.news-main .section_text_p1 {
    font-size: 1em;
}

.news-main .title {
    font-size: 2em;
}

.news-main .left,
.right {
    width: 50%;
    max-width: 50%;
}

.news-main .content {
    width: 70%;
    max-width: 70%;
    display: flex;
    margin-top: 3em;
    align-items: flex-start;
}

.news-main .left {
    display: flex;
    flex-direction: column;
    background-color: #202020;
    min-height: 816px;
}

.news-main .item {
    height: 100px;
    background-color: #202020;
    cursor: pointer;
    transition: all 300ms ease;
    display: flex;
    border-bottom: 2px solid #424242;
}

.news-main .item:hover {
    background-color: #222222;
}

.news-main .item .img {
    height: 100px;
    width: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.news-main .item .img img {
    height: 80px;
    width: 80px;
    object-fit: cover;
    margin-left: 10px;
}

.news-main .left .left-content {
    width: 100%;
    padding: 1em;
    position: relative;
}

.news-main .pagination-controls {
    margin-top: auto;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding-top: 1em;
    padding-bottom: 1em;
}

.news-main .pagination-controls span {
    display: flex;
    width: 100px;
    height: 30px;
    justify-content: center;
    align-items: center;
}

.news-main .pagination-controls button {
    width: 100px;
    font-weight: 600;
    transition: all 300ms ease;
    border-radius: 2rem;
    height: 30px;
    cursor: pointer;
    border: none;
    color: #f2f2f2;
    background-color: #a00000;
}

.news-main .pagination-controls button:hover {
    background-color: #d70000;
}

.news-main .item.selected {
    background-color: #333333;
    font-weight: bold;
}

.news-main .right-content {
    width: 100%;
    min-height: 816px;
    max-height: 816px;
    overflow-y: scroll;
    background-color: #333333;
    border-radius: 0 1em 1em 0;
}

.news-main .right h2 {
    text-align: center;
    padding: 1em;
}

.news-main .right .img {
    width: 100%;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.news-main .right .img img {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
}

.news-main .right p,
.right a {
    padding: 1em;
}

.news-main .right a {
    text-decoration: none;
    color: #a00000;
}

.news-main .new-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: #d40101;
    font-weight: bolder;
}

@media screen and (max-width: 1400px) {
    .news-main .content {
        width: 80%;
        max-width: 80%;
    }
}

@media screen and (max-width: 1300px) {
    .news-main .content {
        width: 90%;
        max-width: 90%;
    }
}

@media screen and (max-width: 1000px) {
    .news-main .content {
        flex-direction: column;
    }

    .news-main .left,
    .right {
        width: 100%;
        max-width: 100%;
    }

    .news-main .left {
        order: 2;
    }

    .news-main .right {
        order: 1;
    }

    .news-main .right-content {
        border-radius: 1em 1em 0 0;
    }
    .news-main .left {
    border-top: 4px solid #202020;
}
}

@media screen and (max-width: 700px) {
    .news-main .title {
        font-size: 1.5em;
    }
}

@media screen and (max-width: 500px) {
    .news-main .left-content h3 {
        font-size: 1em;
    }

    .news-main .right .img {
        width: 100%;
        height: 200px;
    }

    .news-main .right .img img {
        width: 200px;
        height: 200px;
        object-fit: cover;
        border-radius: 15px;
    }
    .news-main .right {
        min-height: 600px;
        max-height: 600px;
    }
    .news-main .right-content {
    min-height: 600px;
        max-height: 600px;
}
.news-main .right-content p{
    font-size: 0.8em;
}
}
@media screen and (max-width: 400px) {
    .news-main .left-content h3 {
        font-size: 0.6em;
    }
    .news-main .pagination-controls span {
    font-size: 0.8em;
}

.news-main .pagination-controls button {
    height: 20px;
    font-size: 0.8em;
    width: 75px;
}
.news-main .pagination-controls {
    gap: 5px;
}
}