/* ===== News feed ===== */
#news-feed { margin: 0 auto; }

.news-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(13,59,102,0.06);
    transition: box-shadow .2s, transform .2s;
    display: flex;
    flex-direction: column;
}
.news-item:hover { box-shadow: 0 6px 20px rgba(13,59,102,0.12); transform: translateY(-2px); }

.news-item .news-cover {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    margin: 0;
    display: block;
    background: #f1f5f9;
}
.news-item .news-body { padding: 20px 22px 22px; }

.news-item h2,
.news-item h4 {
    margin: 0 0 6px;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
}
.news-item h2 a,
.news-item h4 a { color: #0d3b66; text-decoration: none; }
.news-item h2 a:hover,
.news-item h4 a:hover { color: #1e5fa0; }

.news-date {
    color: #94a3b8;
    font-size: 1rem;
    margin-bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.news-date::before { content: '📅'; font-size: 1rem; }

.news-content { line-height: 1.75; color: #334155; font-size: 1rem; overflow: hidden; }
.news-content img {
    max-width: 100% !important;
    max-height: 400px !important;
    width: auto !important;
    height: auto !important;
    border-radius: 6px;
    margin: 12px 0;
    object-fit: contain;
}
.news-content img.align-left, .news-content img[style*="float: left"] { max-width: 50% !important; max-height: 300px !important; margin-right: 16px; }
.news-content img.align-right, .news-content img[style*="float: right"] { max-width: 50% !important; max-height: 300px !important; margin-left: 16px; }
.news-content p { margin: 0 0 12px; overflow: hidden; }
.news-content h2, .news-content h3 { color: #0d3b66; margin: 18px 0 10px; }
.news-content table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.news-content table td, .news-content table th { border: 1px solid #dee2e6; padding: 8px 10px; }
.news-content blockquote {
    border-left: 4px solid #0d6efd;
    margin: 12px 0;
    padding: 8px 16px;
    color: #475569;
    background: #f8fafc;
    border-radius: 0 6px 6px 0;
}

/* ===== Single news ===== */
.news-single {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 32px;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(13,59,102,0.06);
}
.news-type-badge { margin-bottom: 12px; }
.news-type-badge a {
    display: inline-block;
    background: #e0ecff;
    color: #0d3b66;
    padding: 4px 14px;
    border-radius: 16px;
    font-size: 1rem;
    text-decoration: none;
    font-weight: 600;
}
.news-type-badge a:hover { background: #c8dcf5; }
.news-single .news-cover-large {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    display: block;
}
.news-single h1 {
    color: #0d3b66;
    font-size: 1.9rem;
    font-weight: 800;
    margin: 0 0 8px;
    line-height: 1.25;
}
.news-single .news-date { margin-bottom: 24px; font-size: 1rem; }
.news-single .news-content { font-size: 1rem; }

/* ===== Subscribe box ===== */
.subscribe-box {
    background: linear-gradient(135deg, #f0f7ff 0%, #e0ecff 100%);
    border: 1px solid #c8dcf5;
    border-radius: 12px;
    padding: 24px;
    margin: 32px auto;
    text-align: center;
}
.subscribe-box h4 {
    margin: 0 0 6px;
    color: #0d3b66;
    font-weight: 700;
    font-size: 1rem;
}
.subscribe-box p.sub-desc { color: #475569; font-size: 1rem; margin: 0 0 16px; }
.subscribe-box form { max-width: 420px; margin: 0 auto; }

/* ===== Load more button ===== */
#news-more-btn {
    padding: 12px 36px;
    border-radius: 24px;
    font-weight: 600;
    border: 2px solid #0d3b66;
    color: #0d3b66;
    background: #fff;
    transition: all .2s;
}
#news-more-btn:hover {
    background: #0d3b66;
    color: #fff;
}
#news-more-wrap { margin: 28px 0; }

/* ===== News module (block) ===== */
.news-feed-module h3 {
    color: #0d3b66;
    font-weight: 700;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}
.news-feed-module .news-item { margin-bottom: 16px; }
.news-feed-module .news-item h4 { font-size: 1rem; }

/* ===== Empty state ===== */
.news-empty {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}
.news-empty::before {
    content: '📰';
    display: block;
    font-size: 3rem;
    margin-bottom: 12px;
}

/* ===== Loader animation ===== */
#news-loader .spinner-border { width: 2.5rem; height: 2.5rem; }

/* ===== Responsive ===== */
@media (max-width: 640px) {
    .news-item .news-body { padding: 16px; }
    .news-single { padding: 20px; }
    .news-single h1 { font-size: 1.5rem; }
    .news-item h2, .news-item h4 { font-size: 1rem; }
}