/* style_news.css — стили для архива новостей */

.news-archive-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 14px;
    color: #2a2018;
    background: #fdf8f2;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #f0e2d0;
    margin: 20px auto;
    max-width: 1000px;
    box-sizing: border-box;
}

.news-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 20px;
    align-items: start;
}

@media (max-width: 800px) {
    .news-layout { grid-template-columns: 1fr; }
}

/* Боковая навигация */
.news-sidebar {
    position: sticky;
    top: 20px;
}

.news-nav-box {
    background: #fff;
    border: 1px solid #f0e2d0;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 1px 4px rgba(138,75,31,0.05);
}

.news-nav-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #8a7a6a;
    margin-bottom: 12px;
}

.news-year-form {
    display: block;
    margin-bottom: 4px;
}

/*
.news-year-btn {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e8d8c4;
    background: #fff;
    color: #2a2018;
    border-radius: 6px;
    text-align: left;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    transition: 0.15s;
}
*/

.news-year-btn {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 12px;
    border: 1px solid #e8d8c4;
    background: #fff;
    color: #2a2018;
    border-radius: 6px;
    text-align: left;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    transition: 0.15s;
    display: block;
}
.news-year-btn:hover {
    background: #fdf2e6;
    border-color: #e8862f;
    color: #c0561a;
}
.news-year-btn.active {
    background: #e8862f;
    border-color: #e8862f;
    color: #fff;
    font-weight: 700;
}

.news-months-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin: 8px 0 12px 0;
    padding-left: 10px;
    border-left: 2px solid #f0e2d0;
}

.news-month-btn {
    padding: 6px 2px;
    text-align: center;
    border: 1px solid #f0e2d0;
    border-radius: 4px;
    color: #b0a090;
    font-size: 11px;
    transition: 0.15s;
    background: #fcfcfc;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

.news-month-btn.has-news {
    background: #fff;
    border-color: #e8d8c4;
    color: #2a2018;
}
.news-month-btn.has-news:hover {
    background: #fdf2e6;
    border-color: #e8862f;
    color: #c0561a;
}
.news-month-btn.active {
    background: #FFEECF;
    border-color: #FFD283;
    color: #c0561a;
    font-weight: 700;
}
.news-month-btn.empty {
    cursor: default;
    border-style: dashed;
    opacity: 0.6;
}

/* Основной блок с новостями */
.news-main {
    min-width: 0;
}

.news-list-box {
    background: #fff;
    border: 1px solid #f0e2d0;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 1px 4px rgba(138,75,31,0.05);
    min-height: 400px;
}

.news-list-title {
    font-size: 18px;
    font-weight: 700;
    color: #8a4b1f;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #f5ebdf;
    padding-bottom: 10px;
}

.news-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #f0e2d0;
    text-align: justify; /* Justify для текста */
}
.news-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.news-item-title {
    font-size: 15px;
    font-weight: 600;
    color: #0C446B;
    margin-bottom: 6px;
    text-decoration: none;
    display: block;
    line-height: 1.4;
}
.news-item-title:hover {
    color: #659DFF;
}

.news-item-desc {
    font-size: 13px;
    color: #6b7a8a;
    font-style: italic;
    margin-bottom: 8px;
    line-height: 1.5;
    text-align: justify; /* Justify */
}

.news-item-date {
    font-size: 11px;
    color: #b0a090;
    font-family: monospace;
    text-align: left;
}

.news-empty {
    text-align: center;
    color: #b0a090;
    padding: 60px 20px;
    font-size: 14px;
}

/* Пагинация */
.news-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.news-pag-btn {
    padding: 6px 12px;
    border: 1px solid #e8d8c4;
    border-radius: 6px;
    font-size: 13px;
    text-decoration: none;
    color: #2a2018;
    background: #fff;
    transition: 0.15s;
    cursor: pointer;
}
.news-pag-btn:hover {
    background: #fdf2e6;
    border-color: #e8862f;
    color: #c0561a;
}
.news-pag-btn.active {
    background: #e8862f;
    color: #fff;
    border-color: #e8862f;
    font-weight: 600;
}

/* Пагинация new */
.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.news-pag-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    border: 1px solid #e8d8c4;
    border-radius: 4px;
    font-size: 13px;
    text-decoration: none;
    color: #2a2018;
    background: #fff;
    transition: 0.15s;
    cursor: pointer;
    box-sizing: border-box;
}

.news-pag-btn:hover {
    background: #fdf2e6;
    border-color: #e8862f;
    color: #c0561a;
}

.news-pag-btn.active {
    background: #e8862f;
    color: #fff;
    border-color: #e8862f;
    font-weight: 600;
    cursor: default;
}

.news-pag-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    padding: 0 4px;
    color: #b0a090;
    font-size: 13px;
    font-weight: 600;
}