:root {
    --color-border: #86959f;
}

.news-page {
    min-height: 100vh;
    color: #000000;
    line-height: 1.6;
}

.newspaper-header {
    text-align: center;
}

.newspaper-title {
    font-size: 64px;
    font-weight: bold;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Times New Roman', serif;
}

.newspaper-subtitle {
    font-size: 16px;
    margin: 10px 0 0 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: normal;
}

.news-container {
    max-width: 970px;
    margin: 0 auto;
    padding: 30px 20px;
    background: #ffffff;
}

.news-grid {
    -webkit-column-count: 3;
    -moz-column-count: 3;
    column-count: 3;
    -webkit-column-gap: 20px;
    -moz-column-gap: 20px;
    column-gap: 20px;
    padding: 20px 0;
}

.news-article-card {
    background: #ffffff;
    padding: 0;
    transition: transform 0.2s ease;
    overflow: hidden;
    break-inside: avoid;
    margin-bottom: 20px;
    display: block;
    width: 100%;
}


.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 2px solid var(--color-border);
}

.news-placeholder-image {
    width: 100%;
    height: 200px;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}

.news-placeholder-image::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 30%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.news-content {
    padding: 15px;
    border: 2px solid var(--color-border);
    border-top: none;
}

.news-title {
    font-size: 18px;
    font-weight: bold;
    color: #000000;
    margin: 0 0 12px 0;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666666;
    font-size: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 8px;
    /* text-transform: uppercase;
            font-weight: bold; */
}

.news-author {
    color: #000000;
    /* font-weight: bold; */
}

.news-short {
    color: #000000;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 13px;
}

.no-news {
    text-align: center;
    color: #000000;
    font-size: 18px;
    margin: 50px 0;
    padding: 40px;
    background: #ffffff;
    border: 2px solid var(--color-border);
    box-shadow: 3px 3px 0px var(--color-border);
}


.newspaper-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    padding: 10px 0;
    border-top: 2px solid var(--color-border);
    border-bottom: 2px solid var(--color-border);
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.newspaper-date,
.newspaper-page {
    color: #000000;
}

/* Responsive для колонок */
@media (max-width: 1024px) {
    .news-grid {
        -webkit-column-count: 2;
        -moz-column-count: 2;
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .news-grid {
        -webkit-column-count: 1;
        -moz-column-count: 1;
        column-count: 1;
    }

    .newspaper-title {
        font-size: 36px;
    }
}


.news-full-content strong {
    font-weight: bold;
}

.news-full-content ul {
    list-style-type: disc;
    padding-left: 1rem;
}

.news-full-content ol {
    list-style-type: decimal;
    padding-left: 1rem;
}

.news-full-title {
    padding-bottom: .5rem !important;
    margin-bottom: .5rem !important;
    margin-top: 1.5rem !important;
}

.news-full-content h2 {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: .5rem !important;
    margin-bottom: .5rem !important;
    margin-top: 1.5rem !important;
}

.data-block .news-article-card h2 {
    text-align: left !important;
    padding-bottom: 0 !important;
}

.data-block .news-placeholder-text {
    padding: 5px 15px !important;
}

.data-block .news-article-card h2::after {
    content: '';
    display: none;
    width: initial !important;
    height: initial !important;
    background: initial !important;
    margin: initial !important;
}

.news-full-image {
    max-width: 100%;
    max-height: 300px;
}

.news-placeholder-text {
    position: relative;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    font-size: 18px !important;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
    margin: 0;
    padding: 5px 15px !important;
    line-height: 1.3;
}

.news-placeholder-meta {
    position: relative;
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    z-index: 2;
    padding: 0 15px 15px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-placeholder-meta .news-author,
.news-placeholder-meta .news-date {
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    font-weight: normal;
}

.block--image-text img {
    float: left;
    margin-right: .5rem;
    margin-top: .25rem;
    margin-bottom: .25rem;
}

.news-placeholder-image {
    background-size: cover;
    background-position: center !important;
}



.news-article-card.featured-active .news-content {
    background: linear-gradient(135deg, #fff0f0 0%, #ffffff 100%);
}


.news-article-card.featured-active .news-title {
    color: #ff3535;
    font-weight: bold;
}

.news-featured-badge {
    display: block;
    background-color: #ffdfdf;
    color: #ff0000;
    padding: 3px;
}

/* Стили для системы голосования */
.news-voting-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid var(--color-border);
    position: relative;
}

.voting-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.vote-btn {
    background: #ffffff;
    border: 2px solid var(--color-border);
    padding: 0px 3px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    user-select: none;
}

.vote-btn:hover {
    background: #f0f8ff;
    border-color: #4a90e2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.vote-btn.active {
    background: #4a90e2;
    color: white;
    border-color: #4a90e2;
    box-shadow: 0 2px 4px rgba(74, 144, 226, 0.3);
}

.like-btn.active {
    background: #28a745;
    border-color: #28a745;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.dislike-btn.active {
    background: #dc3545;
    border-color: #dc3545;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.rating-display {
    color: #000000;
    text-align: center;
    padding: 8px 15px;
    background: #d6dee4;
    border-radius: 4px;
}

.voters-info-btn {
    background: #ffffff;
    border: 2px solid var(--color-border);
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666666;
    font-weight: bold;
}

.voters-info-btn:hover {
    background: #f0f8ff;
    border-color: #4a90e2;
    color: #4a90e2;
}

.voters-popup {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 2px solid var(--color-border);
    border-radius: 4px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 200px;
    margin-top: 5px;
}

.voters-popup::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--color-border);
}

.voters-popup::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid white;
}

.voters-list {
    max-height: 150px;
    overflow-y: auto;
}

.voter-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
}

.voter-item:last-child {
    border-bottom: none;
}

.voter-name {
    font-size: 13px;
    color: #000000;
    font-weight: normal;
    text-transform: initial;
    letter-spacing: 0px;
}

.voter-icon {
    font-size: 14px;
}

.no-voters {
    text-align: center;
    color: #666666;
    font-size: 13px;
    padding: 10px;
    font-style: italic;
}

/* Responsive стили для голосования */
@media (max-width: 768px) {
    .voting-controls {
        gap: 8px;
    }

    .vote-btn {
        font-size: 16px;
    }

    .rating-display {
        font-size: 14px;
        padding: 6px 12px;
    }

    .voters-info-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .voters-popup {
        min-width: 180px;
    }
}
