/* Insights landing page — dynamic Insights tree (Insights + sub-categories). Loaded by page-insights.php. Self-contained. */

/* ── Layout ── */
.cdmo-insights { max-width: 1200px; margin: 0 auto; padding: 30px 20px 64px; }

.cdmo-insights-hero { background: #f7f8f9; border-radius: 10px; padding: 36px 40px; margin-bottom: 40px; }
.cdmo-insights-hero__title { font-size: 24px; font-weight: 700; color: #1d2b44; margin: 0 0 12px; }
.cdmo-insights-hero__text { color: #6b7280; font-size: 14px; line-height: 1.7; margin: 0; max-width: 1100px; }

.cdmo-insights-layout { display: flex; gap: 30px; align-items: flex-start; }
.cdmo-insights-side { flex: 0 0 320px; max-width: 320px; }
.cdmo-insights-main { flex: 1; min-width: 0; }

/* ── Browse sidebar (provided design) ── */
.browse-news { background: #f7f9fc; border-radius: 14px; padding: 25px; border: 1px solid #e5e8ef; font-family: Arial, sans-serif; }
.browse-news h3 { font-size: 20px; margin: 0 0 20px; font-weight: 700; color: #1d2b44; }

.news-list { list-style: none; padding: 0; margin: 0; }
.news-list li { border-radius: 8px; margin-bottom: 8px; transition: .25s; }
.news-list li a { display: flex; align-items: center; padding: 12px 14px; color: #1d2b44; text-decoration: none; }

.news-list li .icon { margin-right: 10px; display: flex; align-items: center; color: #3aa0d8; }
.news-list li svg { width: 16px; height: 16px; stroke: currentColor; }

.news-list li.active { background: #3aa0d8; }
.news-list li.active a,
.news-list li.active .icon,
.news-list li.active .count { color: #fff; }

.news-list li:not(.active):hover { background: #ffffff; box-shadow: 0 2px 6px rgba(0,0,0,0.05); }

.news-list li .text { flex: 1; font-size: 15px; }
.news-list li .count { font-size: 14px; color: #777; }

/* ── Featured cards ── */
.cdmo-insights-featured { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-bottom: 30px; }
.cdmo-feat-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.cdmo-feat-card__img { border-radius: 10px; overflow: hidden; margin-bottom: 14px; aspect-ratio: 16 / 9; background: #f1f3f5; }
.cdmo-feat-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cdmo-feat-card__date { display: inline-flex; align-items: center; gap: 6px; color: #6b7280; font-size: 14px; }
.cdmo-feat-card__date svg { width: 14px; height: 14px; }
.cdmo-feat-card__title { font-size: 20px; font-weight: 600; color: #1d2b44; margin: 10px 0 8px; line-height: 1.35; }
.cdmo-feat-card:hover .cdmo-feat-card__title { color: #2a7be4; }
.cdmo-feat-card__excerpt { font-size: 14px; color: #6b7280; margin: 0; line-height: 1.6; }

/* ── "More Insights" heading ── */
.cdmo-insights-more { font-size: 36px; font-weight: 700; color: #1d2b44; margin: 10px 0 0; }

/* ── Card grid (matches the News design) ── */
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-top: 20px; }
.news-card { display: flex; align-items: stretch; background: #f5f6f8; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.08); transition: all .2s ease; }
.news-card:hover { transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0,0,0,0.12); }
.news-image { width: 120px; height: auto; flex-shrink: 0; overflow: hidden; display: block; }
.news-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-content { flex: 1; padding: 16px; }
.news-category { color: #2a7be4; font-size: 13px; font-weight: 500; margin-right: 8px; }
.news-category a { color: #2a7be4; text-decoration: none; }
.news-category a:hover { text-decoration: underline; }
.news-date { font-size: 13px; color: #777; }
.news-title { font-size: 16px; font-weight: 600; margin-top: 8px; line-height: 1.4; }
.news-title a { text-decoration: none; color: #222; }
.news-title a:hover { color: #2a7be4; }

/* ── Pagination ── */
.news-pagination { text-align: center; margin-top: 40px; }
.news-pagination .page-numbers { display: inline-block; margin: 0 6px; padding: 8px 12px; background: #f1f1f1; border-radius: 6px; text-decoration: none; color: #333; font-size: 14px; }
.news-pagination .page-numbers:hover { background: #e3e3e3; }
.news-pagination .current { background: #2a7be4; color: #fff; }
.news-pagination .dots { background: transparent; }

.cdmo-insights-empty { background: #f7f9fb; border: 1px solid #e7eaee; border-radius: 12px; padding: 40px; text-align: center; color: #4a5568; }

/* ── Responsive ── */
@media (max-width: 1024px) {
	.cdmo-insights-layout { flex-direction: column; }
	.cdmo-insights-side { flex-basis: auto; max-width: none; width: 100%; }
}
@media (max-width: 768px) {
	.cdmo-insights-hero { padding: 28px 22px; }
	.cdmo-insights-featured { grid-template-columns: 1fr; }
	.news-grid { grid-template-columns: 1fr; }
	.news-image { width: 90px; }
	.news-title { font-size: 15px; }
	.cdmo-insights-more { font-size: 28px; }
}
