/* News cards (homepage + news page) and article page */
.news-hero { background: linear-gradient(180deg, #eef2ff 0%, #f5f7ff 60%, #ffffff 100%); }
#mobileMenu a { display: block; padding: .75rem 1rem; color: #374151; border-radius: .5rem; }
#mobileMenu a:hover { background: #f3f4f6; color: #4361ee; }

.news-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid #eef2f7; border-radius: 1.25rem; overflow: hidden; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.news-card:hover { transform: translateY(-6px); border-color: rgba(67,97,238,.3); box-shadow: 0 24px 50px -28px rgba(67,97,238,.45); }
.news-card__media { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #eef2ff, #e0e7ff); overflow: hidden; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.news-card:hover .news-card__media img { transform: scale(1.04); }
.news-card__placeholder { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; font-size: 2.5rem; color: rgba(67,97,238,.45); }
.news-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem; }
.news-card__body time { font-size: .8rem; font-weight: 600; color: #4361ee; margin-bottom: .5rem; }
.news-card__body h3 { font-size: 1.15rem; font-weight: 700; color: #111827; line-height: 1.4; margin-bottom: .5rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card__body p { color: #4b5563; font-size: .95rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card__more { margin-top: auto; padding-top: 1rem; font-size: .9rem; font-weight: 600; color: #4361ee; display: inline-flex; align-items: center; gap: .25rem; }

.article-cover { width: 100%; border-radius: 1.25rem; margin-bottom: 2.5rem; box-shadow: 0 24px 50px -30px rgba(15,23,42,.4); }
.article-body p { font-size: 1.1rem; line-height: 1.85; color: #374151; margin-bottom: 1.4rem; overflow-wrap: anywhere; }
.article-cta { margin-top: 3rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.75rem 2rem; border-radius: 1.25rem; color: #fff; background: linear-gradient(135deg, #3f37c9, #4361ee 60%, #4895ef); }
.article-cta strong { display: block; font-size: 1.2rem; }
.article-cta span { color: rgba(255,255,255,.85); }

/* Grid that keeps one or two cards centered instead of leaving an empty column */
.news-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.news-grid > * { flex: 0 1 100%; min-width: 0; }
@media (min-width: 640px) { .news-grid > * { flex-basis: calc((100% - 1.5rem) / 2); } }
@media (min-width: 1024px) { .news-grid > * { flex-basis: calc((100% - 3rem) / 3); } }
