/* ═══════════════════════════════════════════════════════
   СТИЛИ НОВОСТЕЙ — news.css
   Подключается после site.css.
   Страницы: главная (блок «Новини»), /news, /news/view
   ═══════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────
   1. ЗАГОЛОВОК СЕКЦИИ «НОВИНИ»
   ───────────────────────────────────────── */

.news-section {
    padding: 40px 0 60px;
}

.news-section .section-title,
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.news-section .section-title h2 {
    font-size: 32px;
    font-weight: 700;
    color: #101e2f;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0;
    padding-bottom: 16px;
    position: relative;
    display: inline-block;
}

.news-section .section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #7ed957;
    border-radius: 2px;
    margin: 14px auto 0;
}

/* ─────────────────────────────────────────
   2. СЕТКА НОВОСТЕЙ — 2 карточки в ряд
   ───────────────────────────────────────── */

.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 30px;
}

/* ─────────────────────────────────────────
   3. КАРТОЧКА НОВОСТИ
   ───────────────────────────────────────── */

.news-card {
    background: #ffffff;
    border: 1px solid #e3e8ef;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(16, 30, 47, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: row;
    min-height: 200px;
    transition: box-shadow .25s, transform .25s, border-color .25s;
}

.news-card:hover {
    box-shadow: 0 14px 32px rgba(16, 30, 47, 0.1);
    border-color: #7ed957;
    transform: translateY(-3px);
}

/* ─────────────────────────────────────────
   4. КАРТИНКА
   ───────────────────────────────────────── */

.news-card__image-link {
    display: block;
    flex: 0 0 180px;
    overflow: hidden;
    background: #f5f7fa;
}

.news-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.news-card:hover .news-card__image {
    transform: scale(1.06);
}

/* ─────────────────────────────────────────
   5. ТЕКСТОВАЯ ЧАСТЬ
   ───────────────────────────────────────── */

.news-card__body {
    flex: 1 1 auto;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

/* Дата */
.news-card__date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #7ed957;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
}

.news-card__date i {
    font-size: 14px;
    line-height: 1;
}

/* Заголовок */
.news-card__title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: #101e2f;
    margin: 0 0 14px;
    flex: 1 1 auto;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color .15s;
}

.news-card__title a:hover {
    color: #4a8f2b;
    text-decoration: none;
}

/* Ссылка «Детальніше» */
.news-card__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: #4a8f2b;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    align-self: flex-start;
    margin-top: auto;
    transition: color .15s, gap .15s;
}

.news-card__more i {
    transition: transform .15s;
}

.news-card__more:hover {
    color: #7ed957;
    text-decoration: none;
}

.news-card__more:hover i {
    transform: translateX(4px);
}

/* ─────────────────────────────────────────
   6. КНОПКА «ІНШІ НОВИНИ»
   ───────────────────────────────────────── */

.news-all-link {
    text-align: center;
    margin-top: 20px;
}

.news-all-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 32px;
    background: linear-gradient(135deg, #7ed957, #4a8f2b);
    color: #ffffff !important;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none !important;
    box-shadow: 0 6px 18px rgba(126, 217, 87, 0.3);
    transition: filter .15s, transform .1s, box-shadow .15s;
}

.news-all-link a:hover {
    filter: brightness(1.06);
    box-shadow: 0 10px 26px rgba(126, 217, 87, 0.45);
    transform: translateY(-1px);
    color: #ffffff !important;
}

.news-all-link a u {
    text-decoration: none;
}

/* ─────────────────────────────────────────
   7. СТРАНИЦА /news — список новостей
   ───────────────────────────────────────── */

.news-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 30px;
}

/* ─────────────────────────────────────────
   8. СТРАНИЦА /news/view/{id} — детальная
   ───────────────────────────────────────── */

.news-detail-page {
    max-width: 900px;
    margin: 0 auto;
}

.news-detail__title {
    font-size: 28px;
    font-weight: 700;
    color: #101e2f;
    line-height: 1.3;
    margin: 0 0 14px;
}

.news-detail__meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #7ed957;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 22px;
}

.news-detail__image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 6px 20px rgba(16, 30, 47, 0.08);
}

.news-detail__content {
    font-size: 15px;
    line-height: 1.75;
    color: #4a5568;
}

.news-detail__content p {
    margin: 0 0 14px;
    text-indent: 0;
}

.news-detail__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    padding: 12px 26px;
    background: #f5f7fa;
    border: 1px solid #e3e8ef;
    border-radius: 9px;
    color: #4a5568;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all .15s;
}

.news-detail__back:hover {
    background: rgba(126, 217, 87, 0.12);
    border-color: #7ed957;
    color: #4a8f2b;
    text-decoration: none;
}

/* ─────────────────────────────────────────
   9. ПАГИНАЦИЯ
   ───────────────────────────────────────── */

.news-pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.news-pagination .pagination {
    display: flex;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-pagination .pagination li a,
.news-pagination .pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    background: #ffffff;
    border: 1.5px solid #e3e8ef;
    border-radius: 8px;
    color: #4a5568;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all .15s;
}

.news-pagination .pagination li a:hover {
    border-color: #7ed957;
    color: #4a8f2b;
    background: rgba(126, 217, 87, 0.06);
}

.news-pagination .pagination li.active a,
.news-pagination .pagination li.active span {
    background: linear-gradient(135deg, #7ed957, #4a8f2b);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(126, 217, 87, 0.3);
}

/* ─────────────────────────────────────────
   10. МОБИЛЬНАЯ АДАПТАЦИЯ
   ───────────────────────────────────────── */

@media (max-width: 992px) {
    .news-grid,
    .news-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .news-card {
        flex-direction: column;
        min-height: auto;
    }

    .news-card__image-link {
        flex: 0 0 200px;
        width: 100%;
    }

    .news-card__body {
        padding: 16px 18px;
    }

    .news-card__title {
        font-size: 15px;
        -webkit-line-clamp: 4;
    }

    .news-section .section-title h2 {
        font-size: 24px;
    }

    .news-detail__title {
        font-size: 22px;
    }

    .news-detail__content {
        font-size: 14px;
    }

    .news-all-link a {
        padding: 11px 24px;
        font-size: 12px;
    }
}

/* ═══════════════════════════════════════════════════════
   СПИСОК НОВОСТЕЙ (/site/news)
   ═══════════════════════════════════════════════════════ */

.news-list-section {
    padding: 40px 0 60px;
    background: #f5f7fa;
}

.news-page-title {
    font-size: 32px;
    font-weight: 700;
    color: #101e2f;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 40px;
    padding-bottom: 16px;
    position: relative;
}

.news-page-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #7ed957;
    border-radius: 2px;
    margin: 14px auto 0;
}

/* Контейнер списка */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto 30px;
}

/* Карточка новости — горизонтальная, с двумя колонками */
.news-item {
    display: grid;
    grid-template-columns: 380px 1fr;
    background: #ffffff;
    border: 1px solid #e3e8ef;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(16, 30, 47, 0.05);
    transition: box-shadow .25s, transform .25s, border-color .25s;
}

.news-item:hover {
    box-shadow: 0 16px 40px rgba(16, 30, 47, 0.1);
    border-color: #7ed957;
    transform: translateY(-3px);
}

/* Картинка — слева */
.news-item__image-link {
    display: block;
    overflow: hidden;
    background: #f5f7fa;
}

.news-item__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.news-item:hover .news-item__image {
    transform: scale(1.05);
}

/* Текстовая часть — справа */
.news-item__body {
    padding: 28px 34px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

/* Дата */
.news-item__date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 700;
    color: #7ed957;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.news-item__date i {
    font-size: 15px;
    line-height: 1;
}

/* Заголовок */
.news-item__title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
    color: #101e2f;
    margin: 0 0 14px;
    flex: 0 0 auto;
}

.news-item__title a {
    color: inherit;
    text-decoration: none;
    transition: color .15s;
}

.news-item__title a:hover {
    color: #4a8f2b;
    text-decoration: none;
}

/* Выдержка из текста */
.news-item__excerpt {
    font-size: 14.5px;
    line-height: 1.7;
    color: #4a5568;
    flex: 1 1 auto;
    max-height: 200px;
    overflow: hidden;
    position: relative;
    margin-bottom: 16px;
}

/* Затемнение снизу выдержки */
.news-item__excerpt::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 40px;
    background: linear-gradient(180deg, transparent, #ffffff);
    pointer-events: none;
}

.news-item__excerpt p {
    margin: 0 0 10px !important;
    text-indent: 0 !important;
    font-size: 14.5px !important;
    line-height: 1.7 !important;
    color: #4a5568 !important;
    text-align: left !important;
}

/* Убираем обрезку у детального просмотра */
.news-item__excerpt--full {
    max-height: none;
    overflow: visible;
}

.news-item__excerpt--full::after {
    display: none;
}

/* Футер карточки — «перегляди» + «детальніше» */
.news-item__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid #edf0f3;
    margin-top: auto;
}

/* Перегляди */
.news-item__views {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #6c757d;
}

.news-item__views i {
    color: #7ed957;
    font-size: 15px;
}

.news-item__views b {
    color: #101e2f;
    font-weight: 700;
}

/* Кнопка «Детальніше» */
.news-item__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #7ed957, #4a8f2b);
    color: #ffffff !important;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(126, 217, 87, 0.3);
    transition: filter .15s, transform .1s, box-shadow .15s;
    white-space: nowrap;
}

.news-item__more:hover {
    filter: brightness(1.06);
    box-shadow: 0 8px 22px rgba(126, 217, 87, 0.45);
    transform: translateY(-1px);
    color: #ffffff !important;
}

.news-item__more i {
    transition: transform .15s;
}

.news-item__more:hover i {
    transform: translateX(4px);
}

/* Пагинация */
.news-pagination {
    display: flex;
    justify-content: center;
    margin: 40px auto 0;
}

.news-pagination .pagination {
    display: flex;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-pagination .pagination li {
    display: inline-block;
}

.news-pagination .pagination li a,
.news-pagination .pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    background: #ffffff;
    border: 1.5px solid #e3e8ef;
    border-radius: 9px;
    color: #4a5568;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all .15s;
}

.news-pagination .pagination li a:hover {
    border-color: #7ed957;
    color: #4a8f2b;
    background: rgba(126, 217, 87, 0.08);
}

.news-pagination .pagination .active a,
.news-pagination .pagination .active span {
    background: linear-gradient(135deg, #7ed957, #4a8f2b);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(126, 217, 87, 0.3);
}

.news-pagination .pagination .disabled span {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ─── Мобильная адаптация ─── */
@media (max-width: 992px) {
    .news-item {
        grid-template-columns: 1fr;
    }

    .news-item__image-link {
        height: 240px;
    }

    .news-item__body {
        padding: 22px 24px;
    }

    .news-item__title {
        font-size: 19px;
    }
}

@media (max-width: 640px) {
    .news-list-section {
        padding: 24px 0 40px;
    }

    .news-page-title {
        font-size: 24px;
        margin-bottom: 28px;
    }

    .news-item__image-link {
        height: 200px;
    }

    .news-item__body {
        padding: 18px 18px 22px;
    }

    .news-item__title {
        font-size: 17px;
    }

    .news-item__excerpt,
    .news-item__excerpt p {
        font-size: 13.5px !important;
    }

    .news-item__footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .news-item__more {
        width: 100%;
        justify-content: center;
    }

    .news-pagination .pagination li a,
    .news-pagination .pagination li span {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 13px;
    }
}

/* ═══════════════════════════════════════════════════════
   ДЕТАЛЬНАЯ НОВОСТЬ (/news/view/{id})
   ═══════════════════════════════════════════════════════ */

.news-detail-section {
    padding: 40px 0 60px;
    background: #f5f7fa;
}

.news-detail {
    background: #ffffff;
    border: 1px solid #e3e8ef;
    border-radius: 16px;
    padding: 44px 52px 40px;
    max-width: 900px;
    margin: 0 auto 30px;
    box-shadow: 0 8px 28px rgba(16, 30, 47, 0.06);
    position: relative;
    overflow: hidden;
}

/* Дата — зелёная, сверху */
.news-detail__date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 700;
    color: #7ed957;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.news-detail__date i {
    font-size: 15px;
    line-height: 1;
}

/* Заголовок */
.news-detail__title {
    font-size: 30px;
    font-weight: 700;
    color: #101e2f;
    line-height: 1.25;
    text-align: left;
    margin: 0 0 24px;
    padding: 0 0 18px;
    border-bottom: 2px solid #7ed957;
    letter-spacing: -0.01em;
}

/* Картинка — обтекает справа */
.news-detail__image-wrap {
    float: right;
    max-width: 340px;
    margin: 0 0 20px 24px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(16, 30, 47, 0.08);
    background: #f5f7fa;
}

.news-detail__image {
    display: block;
    width: 100%;
    height: auto;
    transition: transform .5s ease;
}

.news-detail__image:hover {
    transform: scale(1.04);
}

/* Контент статьи */
.news-detail__content {
    font-size: 15px;
    line-height: 1.75;
    color: #4a5568;
    text-align: justify;
    hyphens: auto;
}

/* Абзацы */
.news-detail__content p {
    font-size: 15px !important;
    line-height: 1.75 !important;
    color: #4a5568 !important;
    margin: 0 0 14px !important;
    text-indent: 0 !important;
    text-align: justify;
}

/* Подзаголовки внутри контента */
.news-detail__content h3,
.news-detail__content h4,
.news-detail__content h5 {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #101e2f !important;
    margin: 24px 0 12px !important;
    padding: 0 !important;
    border: none !important;
    text-align: left !important;
    line-height: 1.4 !important;
}

/* Жирный текст */
.news-detail__content strong,
.news-detail__content b {
    color: #101e2f !important;
    font-weight: 700 !important;
}

/* Списки */
.news-detail__content ul,
.news-detail__content ol {
    font-size: 15px;
    line-height: 1.75;
    color: #4a5568;
    padding-left: 24px;
    margin: 0 0 14px;
}

.news-detail__content ul li,
.news-detail__content ol li {
    margin-bottom: 6px;
}

.news-detail__content ul li::marker {
    color: #7ed957;
    font-weight: 700;
}

/* Ссылки внутри контента */
.news-detail__content a {
    color: #4a8f2b !important;
    text-decoration: none !important;
    font-weight: 600;
    border-bottom: 1px dashed rgba(126, 217, 87, 0.5);
    transition: color .15s, border-color .15s;
}

.news-detail__content a:hover {
    color: #7ed957 !important;
    border-bottom-style: solid;
    border-bottom-color: #7ed957;
}

/* Кнопка «Назад до новин» */
.news-detail__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
    padding: 12px 26px;
    background: #f5f7fa;
    border: 1px solid #e3e8ef;
    border-radius: 9px;
    color: #4a5568 !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all .15s;
    clear: both;
}

.news-detail__back:hover {
    background: rgba(126, 217, 87, 0.1);
    border-color: #7ed957;
    color: #4a8f2b !important;
    text-decoration: none !important;
}

.news-detail__back i {
    font-size: 15px;
    transition: transform .15s;
}

.news-detail__back:hover i {
    transform: translateX(-4px);
}

/* Сброс float после контента */
.news-detail::after {
    content: '';
    display: table;
    clear: both;
}

/* ─── Мобильный ─── */
@media (max-width: 768px) {
    .news-detail-section {
        padding: 20px 0 40px;
    }

    .news-detail {
        padding: 24px 20px 28px;
        border-radius: 12px;
        margin: 16px 12px 20px;
    }

    .news-detail__title {
        font-size: 21px;
        padding-bottom: 14px;
        margin-bottom: 18px;
    }

    .news-detail__date {
        font-size: 11.5px;
    }

    .news-detail__image-wrap {
        float: none;
        max-width: 100%;
        margin: 0 auto 20px;
    }

    .news-detail__content,
    .news-detail__content p {
        font-size: 14px !important;
        text-align: left;
    }

    .news-detail__back {
        width: 100%;
        justify-content: center;
    }
}

/* ═══════════════════════════════════════════════════════
   АДМИНКА — просмотр новости (/news/view?from=admin)
   ═══════════════════════════════════════════════════════ */

.admin-news-view {
    background: #ffffff;
    border: 1px solid #e3e8ef;
    border-radius: 12px;
    padding: 24px 28px;
    box-shadow: 0 1px 3px rgba(27, 44, 66, 0.04);
    max-width: 900px;
}

.admin-news-view__meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #7a8a9e;
    margin-bottom: 4px;
}

.admin-news-view__meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.admin-news-view__meta i {
    color: #7ed957;
    font-size: 16px;
}

.admin-news-view__image-wrap {
    margin: 20px 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e3e8ef;
}

.admin-news-view__image {
    display: block;
    width: 100%;
    height: auto;
}

.admin-news-view__content {
    font-size: 15px;
    line-height: 1.75;
    color: #212529;
    margin-top: 18px;
}

.admin-news-view__content p {
    margin: 0 0 14px;
}

.admin-news-view__content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 8px 0;
}

.admin-news-view__content h1,
.admin-news-view__content h2,
.admin-news-view__content h3 {
    color: #101e2f;
    margin: 20px 0 12px;
    font-weight: 700;
}

.admin-news-view__content a {
    color: #4a8f2b;
    text-decoration: none;
    font-weight: 600;
}

.admin-news-view__content a:hover {
    color: #7ed957;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .admin-news-view {
        padding: 18px 16px;
        border-radius: 10px;
    }

    .admin-news-view__meta {
        gap: 12px;
        font-size: 12px;
    }
}

/* ═══════════════════════════════════════════════════════
   АДМИНКА — форма новости (/news/create, /news/update)
   ═══════════════════════════════════════════════════════ */

.admin-news-form {
    background: #ffffff;
    border: 1px solid #e3e8ef;
    border-radius: 12px;
    padding: 28px 32px;
    box-shadow: 0 1px 3px rgba(27, 44, 66, 0.04);
    max-width: 900px;
}

.admin-news-form__section {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    color: #101e2f;
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #7ed957;
}

.admin-news-form__section i {
    color: #7ed957;
    font-size: 20px;
}

.admin-news-form__field { margin-bottom: 18px; }

.admin-news-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 18px;
}

@media (max-width: 768px) {
    .admin-news-form__row { grid-template-columns: 1fr; gap: 0; }
}

.admin-news-form__col { min-width: 0; }

.admin-news-form__label {
    display: block;
    font-size: 13px;
    color: #495057;
    font-weight: 600;
    margin-bottom: 6px;
}

.admin-news-form .form-control,
.admin-news-form__input {
    display: block !important;
    width: 100% !important;
    height: 44px !important;
    padding: 10px 14px !important;
    background: #f9fafb !important;
    border: 1.5px solid #e3e8ef !important;
    border-radius: 9px !important;
    font-size: 14px !important;
    color: #212529 !important;
    box-shadow: none !important;
    transition: border-color .15s, box-shadow .15s, background .15s !important;
}

.admin-news-form .form-control:focus,
.admin-news-form__input:focus {
    background: #ffffff !important;
    border-color: #7ed957 !important;
    box-shadow: 0 0 0 4px rgba(126, 217, 87, 0.15) !important;
    outline: none !important;
}

.admin-news-form .control-label,
.admin-news-form label {
    font-size: 13px;
    color: #495057;
    font-weight: 600;
    margin-bottom: 6px;
}

.admin-news-form__file {
    display: block;
    width: 100%;
    padding: 10px 12px;
    background: #f9fafb;
    border: 1.5px dashed #c8d2dc;
    border-radius: 9px;
    font-size: 13px;
    color: #495057;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

.admin-news-form__file:hover {
    border-color: #7ed957;
    background: rgba(126, 217, 87, 0.04);
}

.admin-news-form__result {
    margin-top: 10px;
    font-size: 13px;
    color: #4a8f2b;
}

.admin-news-form__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #edf0f3;
}

.admin-news-form__btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 12px 26px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    border-radius: 9px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    border: 2px solid transparent !important;
    line-height: 1 !important;
}

.admin-news-form__btn.btn-success {
    background: linear-gradient(135deg, #7ed957, #4a8f2b) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 6px 18px rgba(126, 217, 87, 0.3) !important;
}

.admin-news-form__btn.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(126, 217, 87, 0.45) !important;
    color: #ffffff !important;
}

.admin-news-form__btn.btn-outline-secondary {
    background: transparent !important;
    color: #6c757d !important;
    border-color: #d5dae3 !important;
}

.admin-news-form__btn.btn-outline-secondary:hover {
    background: #f5f7fa !important;
    color: #101e2f !important;
    border-color: #c8d2dc !important;
    transform: translateY(-1px);
}

.admin-news-form__btn i { font-size: 16px; line-height: 1; }

@media (max-width: 768px) {
    .admin-news-form { padding: 20px 16px; border-radius: 10px; }
    .admin-news-form__actions { flex-direction: column; gap: 8px; }
    .admin-news-form__btn { justify-content: center; width: 100%; }
}

/* ═══════════════════════════════════════════════════════
   Kartik DateTimePicker — нормальные стрелки ‹ › для BS4
   ═══════════════════════════════════════════════════════ */

/* Общие стили для ячеек навигации */
.datetimepicker table.table-condensed > thead > tr > th.prev,
.datetimepicker table.table-condensed > thead > tr > th.next,
.datetimepicker table.table-condensed > thead > tr > th.switch {
    background: transparent !important;
    border: none !important;
    color: #4a8f2b !important;
    font-weight: 700 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    cursor: pointer !important;
    vertical-align: middle !important;
    text-align: center !important;
    padding: 6px 8px !important;
    border-radius: 6px !important;
    transition: background .15s, color .15s !important;
    position: relative !important;
    width: 32px !important;
    min-width: 32px !important;
}

.datetimepicker table.table-condensed > thead > tr > th.prev:hover,
.datetimepicker table.table-condensed > thead > tr > th.next:hover,
.datetimepicker table.table-condensed > thead > tr > th.switch:hover {
    background: rgba(126, 217, 87, 0.15) !important;
    color: #2f6b1a !important;
}

/* Символы стрелок — крупные, заменяют невидимые glyphicon */
.datetimepicker table.table-condensed > thead > tr > th.prev::before {
    content: "‹" !important;
    font-size: 22px !important;
    line-height: 1 !important;
    display: block !important;
    font-weight: 400 !important;
    color: #4a8f2b !important;
}

.datetimepicker table.table-condensed > thead > tr > th.next::before {
    content: "›" !important;
    font-size: 22px !important;
    line-height: 1 !important;
    display: block !important;
    font-weight: 400 !important;
    color: #4a8f2b !important;
}

/* Кнопка-переключатель (Січень 2025) — по центру, крупнее */
.datetimepicker table.table-condensed > thead > tr > th.switch {
    width: auto !important;
    min-width: 120px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #101e2f !important;
    padding: 6px 14px !important;
}

/* Верхний ряд (кнопки закрытия/сегодня) */
.datetimepicker .datepicker-switch,
.datetimepicker .prev,
.datetimepicker .next,
.datetimepicker .today,
.datetimepicker .clear {
    background: transparent !important;
    border: none !important;
    color: #4a8f2b !important;
    cursor: pointer !important;
    padding: 6px 10px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    transition: background .15s, color .15s !important;
}

.datetimepicker .datepicker-switch:hover,
.datetimepicker .prev:hover,
.datetimepicker .next:hover,
.datetimepicker .today:hover,
.datetimepicker .clear:hover {
    background: rgba(126, 217, 87, 0.15) !important;
    color: #2f6b1a !important;
}

/* Сам календарь — тень, скругление, белый фон */
.datetimepicker.dropdown-menu,
.datepicker.dropdown-menu {
    background: #ffffff !important;
    border: 1px solid #e3e8ef !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 32px rgba(16, 30, 47, 0.15) !important;
    padding: 10px !important;
    z-index: 1000 !important;
}

/* Ячейки дней — зелёный акцент */
.datetimepicker table.table-condensed > tbody > tr > td.day:hover,
.datetimepicker table.table-condensed > tbody > tr > td.hour:hover,
.datetimepicker table.table-condensed > tbody > tr > td.minute:hover {
    background: rgba(126, 217, 87, 0.15) !important;
    color: #2f6b1a !important;
    border-radius: 6px !important;
}

.datetimepicker table.table-condensed > tbody > tr > td.active,
.datetimepicker table.table-condensed > tbody > tr > td.active:hover {
    background: #7ed957 !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
}

.datetimepicker table.table-condensed > tbody > tr > td.today {
    background: rgba(126, 217, 87, 0.2) !important;
    color: #2f6b1a !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
}

/* Скрываем пустые glyphicon-иконки */
.datetimepicker .glyphicon,
.datepicker .glyphicon {
    display: none !important;
}

/* Стрелки в фильтре — то же самое (для kartik\date\DatePicker) */
.datepicker table.table-condensed > thead > tr > th.prev::before {
    content: "‹" !important;
    font-size: 22px !important;
    color: #4a8f2b !important;
}

.datepicker table.table-condensed > thead > tr > th.next::before {
    content: "›" !important;
    font-size: 22px !important;
    color: #4a8f2b !important;
}
/* ═══════════════════════════════════════════════════════
   KARTIK DATETIMEPICKER — фикс стрелок (структура: th.prev/next с текстом « »)
   ═══════════════════════════════════════════════════════ */

/* Прячем встроенные символы « » через font-size: 0 */
.datetimepicker table > thead > tr:first-child > th.prev,
.datetimepicker table > thead > tr:first-child > th.next {
    font-size: 0 !important;             /* скрывает текст « » внутри */
    line-height: 1 !important;
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 36px !important;
    vertical-align: middle !important;
    text-align: center !important;
    color: transparent !important;       /* прячем « » если что-то осталось */
    cursor: pointer !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 6px !important;
    transition: background 0.15s, color 0.15s !important;
    position: relative !important;
}

.datetimepicker table > thead > tr:first-child > th.prev:hover,
.datetimepicker table > thead > tr:first-child > th.next:hover {
    background: rgba(126, 217, 87, 0.15) !important;
}

/* Свои крупные стрелки */
.datetimepicker table > thead > tr:first-child > th.prev::before {
    content: "‹" !important;
    display: inline-block !important;
    font-size: 26px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    color: #4a8f2b !important;
    vertical-align: middle !important;
}

.datetimepicker table > thead > tr:first-child > th.next::before {
    content: "›" !important;
    display: inline-block !important;
    font-size: 26px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    color: #4a8f2b !important;
    vertical-align: middle !important;
}

/* Заголовок «Січень 2025» — по центру */
.datetimepicker table > thead > tr:first-child > th.switch {
    width: auto !important;
    min-width: 130px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #101e2f !important;
    text-align: center !important;
    vertical-align: middle !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    background: transparent !important;
    border: none !important;
    transition: background 0.15s, color 0.15s !important;
}

.datetimepicker table > thead > tr:first-child > th.switch:hover {
    background: rgba(126, 217, 87, 0.15) !important;
    color: #4a8f2b !important;
}

/* Сам календарь — белая карточка */
.datetimepicker.dropdown-menu {
    background: #ffffff !important;
    border: 1px solid #e3e8ef !important;
    border-radius: 10px !important;
    box-shadow: 0 12px 32px rgba(16, 30, 47, 0.12) !important;
    padding: 10px 12px !important;
}

/* Дни недели */
.datetimepicker table > thead > tr > th.dow {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #7a8a9e !important;
    text-transform: none !important;
    padding: 6px 4px !important;
    background: transparent !important;
    border: none !important;
}

/* Дни — зелёный акцент */
.datetimepicker table > tbody > tr > td.day:hover {
    background: rgba(126, 217, 87, 0.15) !important;
    color: #4a8f2b !important;
    border-radius: 6px !important;
}

.datetimepicker table > tbody > tr > td.day.active,
.datetimepicker table > tbody > tr > td.day.active:hover {
    background: #7ed957 !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
}

.datetimepicker table > tbody > tr > td.day.today {
    background: rgba(126, 217, 87, 0.2) !important;
    color: #2f6b1a !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
}

/* Скрываем всё, что могло быть внутри th.prev/next — иконки, глифы */
.datetimepicker th.prev *,
.datetimepicker th.next *,
.datetimepicker th.prev .glyphicon,
.datetimepicker th.next .glyphicon {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════
   Картинка новости — radio + file input
   ═══════════════════════════════════════════════════════ */

.admin-news-form__img-switch {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
    padding: 10px 14px;
    background: #f9fafb;
    border: 1.5px solid #e3e8ef;
    border-radius: 9px;
}

.admin-news-form__radio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #495057;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    transition: color .15s;
}

.admin-news-form__radio:hover {
    color: #4a8f2b;
}

/* Скрываем стандартный radio */
.admin-news-form__radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Кастомный кружок */
.admin-news-form__radio span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    padding-left: 26px;
    cursor: pointer;
    line-height: 1.3;
}

.admin-news-form__radio span::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 2px solid #c8d2dc;
    border-radius: 50%;
    background: #ffffff;
    transition: border-color .15s, background .15s, box-shadow .15s;
    box-sizing: border-box;
}

.admin-news-form__radio span::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #7ed957;
    transition: transform .15s;
    box-sizing: border-box;
}

/* Выбранный radio */
.admin-news-form__radio input[type="radio"]:checked + span::before {
    border-color: #7ed957;
    box-shadow: 0 0 0 4px rgba(126, 217, 87, 0.15);
}

.admin-news-form__radio input[type="radio"]:checked + span::after {
    transform: translateY(-50%) scale(1);
}

.admin-news-form__radio input[type="radio"]:checked + span {
    color: #4a8f2b;
    font-weight: 600;
}

/* Блоки preset/custom */
.admin-news-form__img-block {
    margin-top: 10px;
}

/* File input — стилизованный */
.admin-news-form__file {
    display: block;
    width: 100%;
    padding: 10px 12px;
    background: #f9fafb;
    border: 1.5px dashed #c8d2dc;
    border-radius: 9px;
    font-size: 13px;
    color: #495057;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    box-sizing: border-box;
}

.admin-news-form__file:hover {
    border-color: #7ed957;
    background: rgba(126, 217, 87, 0.04);
}

/* Превью */
.admin-news-form__img-preview img {
    max-width: 220px;
    max-height: 160px;
    border-radius: 10px;
    border: 1px solid #e3e8ef;
    box-shadow: 0 4px 14px rgba(27, 44, 66, 0.06);
    display: block;
    object-fit: cover;
}

/* Сообщение о загрузке */
.admin-news-form__result {
    margin-top: 8px;
    font-size: 13px;
}

.admin-news-form__result span {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    background: #f5f7fa;
}

/* Заглушка для новости без картинки */
.news-card__image--placeholder,
.news-item__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f7fa;
    color: #7ed957;
    font-size: 42px;
}

.news-card__image--placeholder i,
.news-item__image--placeholder i {
    line-height: 1;
}