/* Основные стили */
body {
    font-family: 'Nunito', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #15171D;
    overflow-x: hidden;
}

/* Блок хлебных крошек и заголовка */
.breadcrumb-and-title {
    max-width: 1280px;
    margin: auto;
    margin-top: 30px;
    padding: 50px 0;
    text-align: center;
    position: relative;
    z-index: 1002;
}

.breadcrumb {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.breadcrumb-item {
    color: #ccc;
    display: flex;
    align-items: center;
}

.breadcrumb-item i {
    margin-bottom: 3px;
    color: rgba(255, 255, 255, 0.61);
    margin: 0 10px;
    font-size: 7px;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.603);
    font-size: 14px;
    text-decoration: none;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #7775D1;
    font-size: 14px;
    text-decoration: none;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
}

h1 {
    font-family: 'Nunito', sans-serif;
    font-size: 42px;
    font-weight: 800;
    color: rgb(255, 255, 255);
    margin-top: 17px;
    margin-bottom: 18px;
    text-transform: uppercase;
}

/* Основное содержимое */
main.container {
    max-width: 1280px;
    margin: auto;
    margin-top: 40px;
    display: flex;
    position: relative;
    z-index: 1004;
}

.main-content {
    flex: 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

a.news-link {
    text-decoration: none;
}

.news-item {
    background-color: rgb(25 27 37);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.news-item .img-wrap {
    height: 145px;
    position: relative;
    overflow: hidden;
}

.news-item .img-wrap img {
    width: 100%;
    height: auto;
}

.news-item .img-wrap::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 50%, #15171D 100%);
    pointer-events: none;
}

.news-item .img-wrap .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 20%, #1b1d25 100%);
    pointer-events: none;
}

/* hover эффекты минимальные на старом стиле отсутствовали */

.news-item.important {
    border: 2px solid #F2C94C;
}

.news-item.important .icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: #F2C94C;
    border-radius: 0 6px 0 10px;
    right: 0;
    top: 0;
    z-index: 3;
}

.news-item.important .icon .fa {
    color: #8f772f;
    font-size: 24px;
    position: absolute;
    right: 16px;
    top: 17px;
}


.news-content {
    position: relative;
    padding: 16px;
    margin-top: -45px;
    z-index: 2;
}

.news-content h2 {
    font-size: 24px;
    margin: 0 0 10px;
    color: white;
    font-family: 'Nunito', sans-serif;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 2.4em;
    line-height: 1.2em;
}

.news-content p {
    font-size: 16px;
    margin: 0 0 10px;
    color: #8a88a2ab;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25em;
}

.author-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8em;
    color: #aaaaaa;
}

.sidebar {
    flex: 1;
    margin-left: 20px;
    padding: 10px 25px;
}

.sidebar h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: white;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
}

.top-articles {
    list-style: none;
    padding: 0;
    margin: 0;
}

.top-articles li {
    margin-top: 19px;
    padding-bottom: 26px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.062);
    display: inline-block;
}

.top-articles li .rank {
    display: inline-block;
    margin-right: 10px;
    position: relative;
}

.top-articles li .rank img {
    position: absolute;
    left: -25px;
    top: -31px;
}

.top-articles li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    position: relative;
    z-index: 2;
    display: inline-block;
    margin-top: -12px;
}

.top-articles li .author-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8em;
    color: #aaaaaa;
}

.tags {
    max-width: 1280px;
    display: flex;
    list-style-type: none;
    padding: 0;
    margin: auto;
}

.tags li {
    margin-right: 16px; /* Adjust spacing between tags as needed */
}

.tags a {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    border: 1px solid #444;
    border-radius: 24px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}

.tags a.tag-all {
    border-color: #7775D1;
}

.tags a:hover {

}

.tags a span {
    background-color: #444; /* Background color for the count */
    border-radius: 12px; /* Rounded corners for the count */
    padding: 4px 8px;
    margin-left: 8px;
    font-size: 14px; /* Adjust font size for the count */
    color: #ccc; /* Text color for the count */
}

/* Медиа-запросы для адаптивного дизайна */
@media (max-width: 1300px) {
    .top-articles li a {
        font-size: 16px;
    }
}

@media (max-width: 1100px) {
    main.container {
        flex-direction: column;
        padding: 0 30px;
    }

    .main-content {
        grid-template-columns: 1fr;
    }

    .sidebar {
        margin-left: 0;
        padding: 10px 20px;
    }

    .top-articles {
        max-width: 640px;
        margin: 0 auto;
    }
}

@media (max-width: 1024px) {
    .breadcrumb-and-title {
        padding: 30px 30px;
    }
    h1 {
        text-align: left;
    }
    nav.tags {
        width: 100%;
        padding: 0 30px;
    }

    ul.tags {
        width: 100%;
    }

    .breadcrumb {
        flex-direction: column;
        align-items: flex-start;
    }

    .breadcrumb-item i {
        margin: 0 5px;
    }

    .news-content h2 {
        font-size: 20px;
    }

    .news-content p {
        font-size: 14px;
    }

    .sidebar h2 {
        font-size: 24px;
    }

    .top-articles li a {
        font-size: 16px;
    }


}


@media (max-width: 845px) {
    ul.tags {
        flex-wrap: wrap;
    }
    .tags li {
        margin-bottom: 8px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 32px;
    }

    .breadcrumb {
        align-items: center;
    }

    .breadcrumb-item i {
        margin: 0 5px;
    }

    .news-content h2 {
        font-size: 18px;
    }

    .news-content p {
        font-size: 14px;
    }

    .sidebar h2 {
        font-size: 22px;
    }

    .top-articles li a {
        font-size: 16px;
    }
}

@media (max-width: 480px) {

    .tags a {
        font-size: 12px;
        padding: 5px 11px;
    }
    .tags li {
        margin-right: 6px;
    }

    nav.tags {
        padding: 0 10px;
    }

    main.container {
        padding: 0 10px;
    }

    .breadcrumb-and-title {
        margin-top: 100px;
        padding: 20px 10px;
    }

    h1 {
        font-size: 24px;
    }

    .news-content {
        padding: 12px;
    }

    .news-content h2 {
        font-size: 16px;
    }

    .news-content p {
        font-size: 12px;
    }

    .sidebar { padding: 0 12px; }
    .sidebar h2 { font-size: 20px; }

    .top-articles { max-width: 520px; margin: 0 auto; }
    .top-articles li { padding-bottom: 20px; }
    .top-articles li a { font-size: 14px; }
}

@media (max-width: 320px) {
    .breadcrumb-and-title {
        margin-top: 80px;
        padding: 15px 5px;
    }

    h1 {
        font-size: 20px;
    }

    .news-content {
        padding: 10px;
    }

    .news-content h2 {
        font-size: 14px;
    }

    .news-content p {
        font-size: 10px;
    }

    .sidebar h2 {
        font-size: 18px;
    }

    .top-articles li a {
        font-size: 12px;
    }
}
