﻿.news-page,
.news-article-page,
.news-form-wrap {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    gap: 1.25rem;
}

.news-header,
.news-form-intro {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    padding: 1.35rem;
    border-radius: 24px;
    border: 1px solid var(--eco-border);
    background: radial-gradient(circle at 82% 18%, rgba(75, 181, 122, 0.2) 0%, rgba(75, 181, 122, 0) 42%), linear-gradient(135deg, #ffffff 0%, #f2fcf6 50%, #e6f8ee 100%);
    box-shadow: var(--shadow-1);
}

.news-kicker {
    display: inline-flex;
    width: fit-content;
    padding: .2rem .7rem;
    border-radius: 999px;
    background: rgba(44, 155, 96, .16);
    color: var(--eco-green-dark);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: .45rem;
}
.news-header h1,
.news-form-intro h1 {
    margin: 0;
    color: var(--eco-green-dark);
    font-size: clamp(1.5rem, 2.5vw, 2.15rem);
}
.news-header p,
.news-form-intro p {
    margin: .45rem 0 0;
    color: var(--eco-muted);
    max-width: 62ch;
}

.news-add-btn,
.read-more-btn,
.share-btn,
.delete-btn,
.like-btn,
.apply-filter {
    border: 0;
    border-radius: 999px;
    padding: .58rem .98rem;
    text-decoration: none;
    background: linear-gradient(135deg, #2c9b60, #1f7f4f);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 10px 22px rgba(28, 111, 69, 0.24);
}

    .news-add-btn:hover,
    .read-more-btn:hover,
    .apply-filter:hover {
        transform: translateY(-1px);
        box-shadow: 0 13px 24px rgba(28, 111, 69, 0.3);
    }

.delete-btn {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.share-btn {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.like-btn {
    background: linear-gradient(135deg, #475569, #334155);
}

    .like-btn.active {
        background: #dc2626;
    }

.news-card-content h3 {
    margin: 0;
}

.news-card-content p {
    margin: 0;
    line-height: 1.5;
}


.news-category {
    display: inline-block;
    width: fit-content;
    padding: .18rem .56rem;
    background: rgba(236, 254, 255, .92);
    color: #155e75;
    border-radius: 999px;
    font-size: .79rem;
    font-weight: 700;
}

.news-filters {
    display: grid;
    gap: .85rem;
    border-radius: 20px;
    border: 1px solid var(--eco-border);
    background: linear-gradient(150deg, rgba(255, 255, 255, .96) 0%, #effaf4 100%);
    padding: 1rem;
    box-shadow: var(--shadow-1);
}

.news-filter-search {
    display: grid;
    gap: .35rem;
    font-size: .8rem;
    color: var(--eco-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.news-filters input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: .75rem;
    padding: .7rem .85rem;
}

    .news-filters input:focus {
        border-color: rgba(30, 115, 57, 0.5);
        box-shadow: 0 0 0 .2rem rgba(30, 115, 57, 0.14);
        outline: none;
    }

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
  
}
.pill {
    padding: .43rem .78rem;
    border-radius: 999px;
    background: #f1f5f9;
    text-decoration: none;
    color: #0f172a;
    font-weight: 600;
}

    .pill.active {
        background: linear-gradient(135deg, #2c9b60, #1f7f4f);
        color: #fff;
    }

.news-grid,
.recommended-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1rem;
}

.news-card {
    border: 1px solid var(--eco-border);
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 14px 30px rgba(16, 47, 30, 0.08);
    transition: transform .2s ease, box-shadow .2s ease;
}

    .news-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 18px 36px rgba(16, 47, 30, 0.13);
    }

    .news-card img,
    .article-main-image {
        width: 100%;
        height: 198px;
        object-fit: cover;
    }

.news-card-content {
    padding: .95rem;
    display: grid;
    gap: .54rem;
}

    .news-card-content h3,
    .news-card-content p {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .news-card-content h3 {
        -webkit-line-clamp: 2;
    }

    .news-card-content p {
        -webkit-line-clamp: 3;
    }

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem .8rem;
    color: #475569;
    font-size: .9rem;
}
.news-empty {
    border: 1px dashed rgba(23, 104, 67, .34);
    border-radius: 16px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.9);
}
.news-filter-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem;
}

.clear-filter {
    border: 1px solid rgba(37, 87, 51, 0.22);
    border-radius: 999px;
    padding: .52rem .95rem;
    text-decoration: none;
    color: #0f5132;
    font-weight: 700;
    background: #fff;
}

.news-result-info {
    margin: 0;
    color: #475569;
    display: flex;
    align-items: center;
    gap: .65rem;
    flex-wrap: wrap;
}

.news-active-filter {
    border: 1px solid rgba(44, 155, 96, .3);
    border-radius: 999px;
    background: rgba(44, 155, 96, .12);
    color: #166534;
    font-size: .85rem;
    font-weight: 700;
    padding: .18rem .65rem;
}

.news-article-page {
    background: linear-gradient(160deg, #ffffff 0%, #f6fcf8 100%);
    border: 1px solid var(--eco-border);
    border-radius: 24px;
    padding: 1.3rem;
    box-shadow: var(--shadow-1);
}

.article-header,
.article-content,
.article-actions,
.article-comments,
.recommended-news {
    padding: 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(37, 87, 51, 0.12);
}

.article-header h1 {
    margin: .2rem 0;
}

.article-meta {
    color: #475569;
    display: flex;
    gap: 1rem;
}

.article-content {
    white-space: pre-line;
    line-height: 1.7;
}

.article-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    align-items: center;
}

.comment-form,
.news-form-card {
    border: 1px solid #dceee2;
    border-radius: 1rem;
    padding: 1rem;
    display: grid;
    gap: .9rem;
    background: linear-gradient(160deg, #ffffff 0%, #f6fcf8 100%);
    box-shadow: 0 14px 30px rgba(16, 47, 30, 0.08);
}

.news-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
}

.news-form-field {
    display: grid;
    gap: .4rem;
    border: 1px solid rgba(37, 87, 51, 0.14);
    border-radius: 14px;
    padding: .7rem;
    background: rgba(255, 255, 255, 0.85);
}

    .news-form-field > span:first-child {
        font-size: .82rem;
        font-weight: 800;
        color: var(--eco-muted);
        text-transform: uppercase;
        letter-spacing: .03em;
    }

.news-form-field--full {
    grid-column: 1 / -1;
}

.news-input {
    width: 100%;
    border: 1px solid rgba(37, 87, 51, 0.22);
    border-radius: .72rem;
    padding: .62rem .74rem;
    font-size: .95rem;
    background: #fff;
}

    .news-input:focus {
        border-color: rgba(30, 115, 57, 0.55);
        box-shadow: 0 0 0 .2rem rgba(30, 115, 57, 0.14);
        outline: none;
    }
.news-validation {
    color: #b91c1c;
    font-weight: 600;
}

.comment-form input,
.comment-form textarea,
.news-form-card input,
.news-form-card textarea,
.news-form-card select {
    width: 100%;
}

.comment-form input,
.comment-form textarea {
    border: 1px solid #cbd5e1;
    border-radius: .72rem;
    padding: .62rem .74rem;
    font-size: .96rem;
}

    .comment-form input:focus,
    .comment-form textarea:focus {
        border-color: rgba(30, 115, 57, 0.55);
        box-shadow: 0 0 0 .2rem rgba(30, 115, 57, 0.14);
        outline: none;
    }

.comment-form textarea {
    min-height: 110px;
    resize: vertical;
}

.comment-submit-btn {
    border: 0;
    border-radius: .7rem;
    background: linear-gradient(135deg, #2c9b60, #1f7f4f);
    color: #fff;
    font-weight: 700;
    padding: .62rem .9rem;
}

.comment-list {
    display: grid;
    gap: .5rem;
}
.comment-item {
    border-bottom: 1px solid #e2e8f0;
    padding: .7rem 0;
    display: grid;
    gap: .25rem;
}

.news-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: .6rem;
}
@media (max-width: 768px) {
    .news-header,
    .news-form-intro {
        align-items: stretch;
        flex-direction: column;
    }

    
    .news-form-grid {
        grid-template-columns: 1fr;
    }

    .news-form-actions,
    .news-filter-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .news-article-page {
        padding: .8rem;
        flex-direction: column;
    }
}
