/* style_news.css — стили для нового архива новостей wservices.ru */

.news-archive-wrap {
    font-family: Verdana, Helvetica, serif;
    font-size: 11px;
    color: #000;
    background: #F5F9FD;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #D1E2F5;
    margin: 15px auto;
    max-width: 1000px;
    box-sizing: border-box;
    line-height: 12pt;
}

.news-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 15px;
    align-items: start;
}

/*
@media (max-width: 800px) {
    .news-layout { grid-template-columns: 1fr; }
}
*/

/*
@media (max-width: 800px) {
    .news-layout { grid-template-columns: 1fr; }
    .news-sidebar { position: static; order: -1; }
    .news-nav-box { max-height: 200px; overflow-y: auto; }
}
*/

/* Боковая навигация */
.news-sidebar {
    position: sticky;
    top: 15px;
}

.news-nav-box {
    background: #fff;
    border: 1px solid #D1E2F5;
    border-radius: 6px;
    padding: 12px;
    box-sizing: border-box;
}

.news-nav-title {
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #5E8ACA;
    margin-bottom: 10px;
}

.news-year-form {
    display: block;
    margin-bottom: 4px;
}

.news-year-btn {
    width: 100%;
    box-sizing: border-box;
    padding: 6px 10px;
    border: 1px solid #D1E2F5;
    background: #fff;
    color: #0C446B;
    border-radius: 4px;
    text-align: left;
    font-family: Verdana, Helvetica, serif;
    font-weight: bold;
    font-size: 11px;
    cursor: pointer;
    transition: 0.15s;
    display: block;
}
.news-year-btn:hover {
    background: #F5F9FD;
    border-color: #659DFF;
    color: #659DFF;
}
.news-year-btn.active {
    background: #659DFF;
    border-color: #659DFF;
    color: #fff;
    font-weight: bold;
}

.news-months-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    margin: 6px 0 10px 0;
    padding-left: 8px;
    border-left: 2px solid #D1E2F5;
}

.news-month-btn {
    padding: 4px 2px;
    text-align: center;
    border: 1px solid #D1E2F5;
    border-radius: 3px;
    color: #5E8ACA;
    font-family: Verdana, Helvetica, serif;
    font-size: 10px;
    transition: 0.15s;
    background: #F5F9FD;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

.news-month-btn.has-news {
    background: #fff;
    border-color: #D1E2F5;
    color: #0C446B;
}
.news-month-btn.has-news:hover {
    background: #F5F9FD;
    border-color: #659DFF;
    color: #659DFF;
}
.news-month-btn.active {
    background: #659DFF;
    border-color: #659DFF;
    color: #fff;
    font-weight: bold;
}
.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 #D1E2F5;
    border-radius: 6px;
    padding: 15px;
    box-sizing: border-box;
    min-height: 300px;
}

.news-list-title {
    font-family: "Trebuchet MS", Verdana, Helvetica, serif;
    font-size: 14px;
    font-weight: bold;
    color: #0C446B;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #D1E2F5;
    padding-bottom: 8px;
}

.news-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #D1E2F5;
    text-align: justify;
}
.news-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.news-item-title {
    font-size: 12px;
    font-weight: bold;
    color: #0C446B;
    margin-bottom: 5px;
    text-decoration: none;
    display: block;
    line-height: 12pt;
}
.news-item-title:hover {
    color: #659DFF;
}

.news-item-desc {
    font-size: 11px;
    color: #5E8ACA;
    font-style: italic;
    margin-bottom: 6px;
    line-height: 12pt;
    text-align: justify;
}

.news-item-date {
    font-size: 10px;
    color: #5E8ACA;
    font-family: Verdana, Helvetica, serif;
    text-align: left;
}

.news-empty {
    text-align: center;
    color: #5E8ACA;
    padding: 40px 15px;
    font-size: 11px;
    font-style: italic;
}

/* Пагинация */
.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.news-pag-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 24px;
    padding: 0 6px;
    border: 1px solid #D1E2F5;
    border-radius: 3px;
    font-family: Verdana, Helvetica, serif;
    font-size: 11px;
    text-decoration: none;
    color: #0C446B;
    background: #fff;
    transition: 0.15s;
    cursor: pointer;
    box-sizing: border-box;
}

.news-pag-btn:hover {
    background: #F5F9FD;
    border-color: #659DFF;
    color: #659DFF;
}

.news-pag-btn.active {
    background: #659DFF;
    color: #fff;
    border-color: #659DFF;
    font-weight: bold;
    cursor: default;
}

.news-pag-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    padding: 0 4px;
    color: #5E8ACA;
    font-size: 11px;
    font-weight: bold;
}

.news-year-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.news-year-count {
    color: #c0c0c0;
    font-size: 8px;
}
.news-year-btn.active .news-year-count {
    color: #e0e0e0;
}