.news-posts {
    display: grid;
    gap: 1.8rem;
    margin-top: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.news-card {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 24px;
    padding: 1.8rem;
    box-shadow: 0 20px 45px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    position: relative;
}

.news-card:hover,
.news-card.selected {
    transform: translateY(-6px);
    background: rgba(255,255,255,0.16);
    border-color: rgba(255,215,0,0.4);
}

.news-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.news-card h3 {
    font-size: 1.4rem;
    line-height: 1.3;
    margin: 0;
}

.news-card-date {
    color: #ffd700;
    font-size: 0.95rem;
    font-weight: 700;
}

.news-card-description {
    color: #e5e5e5;
    line-height: 1.7;
    margin-bottom: 1.4rem;
    min-height: 3.5rem;
}

.news-card-footer {
    color: #ffd700;
    font-size: 0.95rem;
    font-weight: 600;
}

.news-detail {
    margin-top: 2rem;
    width: 100%;
    max-width: 980px;
    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 30px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.4);
    padding: 2rem;
    backdrop-filter: blur(18px);
}

.news-detail.hidden {
    display: none;
}

.news-detail-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.news-detail-header h3 {
    font-size: 2rem;
    margin: 0.3rem 0 0;
}

.news-detail-date {
    color: #ffd700;
    font-weight: 700;
}

.news-detail-summary {
    color: #ddd;
    font-size: 1.05rem;
    line-height: 1.8;
}

.news-detail-body p {
    color: #e8e6e6;
    line-height: 1.9;
    margin-bottom: 1rem;
}

.news-detail-section {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 1.4rem;
}

.news-detail-section h4 {
    margin-top: 0;
    margin-bottom: 0.9rem;
    color: #fff;
}

.news-detail-subsection ul {
    list-style: disc;
    padding-left: 1.4rem;
}

.news-detail-note {
    color: #f0db4f;
    font-style: italic;
}

.news-detail-note-text {
    margin: 0;
}

.news-detail-footer {
    color: #ddd;
    line-height: 1.75;
}

.btn-small {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
}

@media(max-width:768px) {
    .news-card {
        padding: 1.4rem;
    }

    .news-card h3 {
        font-size: 1.25rem;
    }

    .news-detail {
        padding: 1.4rem;
    }

    .news-detail-header h3 {
        font-size: 1.5rem;
    }
}
