/* ============================================
   LATEST NEWS — page-specific styles only.
   NOTE: .links-grid / .link-btn now come from
   common.css (gradient buttons, auto-fit grid).
   ============================================ */

/* ---------- News list ---------- */
.news-list {
    list-style: none;
}

.news-item {
    margin-bottom: var(--space-6);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow var(--transition);
}

.news-item:hover {
    box-shadow: var(--shadow-hover);
}

.news-item a {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: var(--space-5);
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
    font-size: 0.875rem;
}

.news-category {
    background: #4a90e2;
    color: #fff;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-sm);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.news-date {
    color: var(--text-light);
    font-style: italic;
}

.news-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 var(--space-2) 0;
    line-height: 1.4;
    color: var(--text);
    overflow-wrap: anywhere;
}

.news-list .news-summary {
    color: var(--text-light);
    margin: 0 0 var(--space-3) 0;
    line-height: 1.6;
}

.news-priority {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.news-priority.high {
    background: #e74c3c;
    color: #fff;
}

.news-priority.medium {
    background: #f39c12;
    color: #fff;
}

.news-priority.low {
    background: #95a5a6;
    color: #fff;
}

/* ---------- News detail ---------- */
.news-title-section {
    margin-bottom: var(--space-6);
}

.news-badge {
    display: inline-block;
    background: #4a90e2;
    color: #fff;
    padding: var(--space-1) var(--space-4);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: var(--space-3);
}

.news-title-section .news-category {
    display: block;
    background: none;
    color: var(--text-light);
    padding: 0;
    font-size: 1rem;
    margin-top: var(--space-2);
    text-transform: none;
}

.news-info-bar {
    background: var(--card);
    padding: var(--space-5);
    border-radius: var(--radius);
    margin-bottom: var(--space-6);
    border: 1px solid var(--border);
}

.news-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-4);
}

.news-info-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-width: 0;
}

.news-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.news-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    font-weight: 500;
}

.news-value {
    font-weight: 600;
    color: var(--text);
    overflow-wrap: anywhere;
}

.news-image-section {
    margin: var(--space-6) 0;
    text-align: center;
}

.news-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    display: none; /* shown by JS when a real image exists */
}

.news-content-section {
    margin: var(--space-6) 0;
    line-height: 1.8;
}

/* summary box (detail page only — list summary stays plain) */
.news-content-section .news-summary {
    font-size: 1.0625rem;
    color: var(--text);
    margin-bottom: var(--space-6);
    padding: var(--space-4);
    background: var(--card);
    border: 1px solid var(--border);
    border-left: 4px solid #4a90e2;
    border-radius: var(--radius-sm);
}

.news-full-content {
    color: var(--text);
    overflow-wrap: anywhere;
}

.news-full-content h2,
.news-full-content h3,
.news-full-content h4 {
    margin: var(--space-6) 0 var(--space-3) 0;
    color: var(--text);
}

.news-full-content p {
    margin-bottom: var(--space-4);
}

.news-full-content ul,
.news-full-content ol {
    margin: var(--space-4) 0;
    padding-left: var(--space-6);
}

.news-tags {
    margin: var(--space-6) 0;
    padding: var(--space-4);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.news-tag {
    display: inline-block;
    background: var(--bg);
    color: var(--text-light);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-sm);
    margin-right: var(--space-2);
    margin-bottom: var(--space-2);
    font-size: 0.875rem;
}

.news-links-section {
    margin: var(--space-8) 0;
}

.news-links-section > h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: var(--space-4);
    text-transform: lowercase;
}

/* news "not found" keeps its card look (base state in common.css) */
.news-not-found {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin: var(--space-8) 0;
}

@media (max-width: 768px) {
    .news-item a {
        padding: var(--space-4) var(--space-3);
    }

    .news-title {
        font-size: 1.1rem;
    }

    .news-info-bar {
        padding: var(--space-4) var(--space-3);
    }

    .news-badge {
        font-size: 0.75rem;
    }
}