/**
 * Blog + News styling (RoidOcean) — Phase 9.
 * Mirrors the source /blog card grid and /news vertical list.
 * Tokens: navy #103178, orange #F59E0B, section bg #f8faff, font Jost.
 */

:root {
	--ro-navy: #103178;
	--ro-orange: #f59e0b;
	--ro-bg: #f8faff;
}

.ro-blog-wrap,
.ro-news-wrap,
.ro-post-wrap {
	background: var(--ro-bg);
	font-family: "Jost", "PT Sans", Raleway, Roboto, sans-serif;
	padding: 28px 0 56px;
}

.ro-blog-container,
.ro-post-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 16px;
}

.ro-post-container {
	max-width: 820px;
}

/* ---- Breadcrumb ---- */
.ro-blog-crumb {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #6b7280;
	margin-bottom: 18px;
}
.ro-blog-crumb a {
	color: #6b7280;
	text-decoration: none;
	transition: color .2s;
}
.ro-blog-crumb a:hover { color: var(--ro-orange); }
.ro-blog-crumb__cur { color: #111827; font-weight: 500; }

/* ---- Blog header ---- */
.ro-blog-head { margin-bottom: 26px; }
.ro-blog-head__title,
.ro-news-head__title {
	font-size: 30px;
	font-weight: 700;
	color: var(--ro-navy);
	margin: 0 0 8px;
}
.ro-blog-head__sub {
	color: #6b7280;
	font-size: 15px;
	margin: 0;
}

/* ---- Blog card grid ---- */
.ro-blog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}
@media (max-width: 900px) { .ro-blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .ro-blog-grid { grid-template-columns: 1fr; } }

.ro-blog-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #f3f4f6;
	border-radius: 12px;
	overflow: hidden;
	text-decoration: none;
	transition: box-shadow .3s, border-color .3s, transform .3s;
	height: 100%;
}
.ro-blog-card:hover {
	box-shadow: 0 10px 24px rgba(16, 49, 120, .10);
	border-color: #e5e7eb;
	transform: translateY(-2px);
}
.ro-blog-card__media {
	position: relative;
	height: 176px;
	background: #eef2fb;
	flex-shrink: 0;
	overflow: hidden;
}
.ro-blog-card__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .3s;
}
.ro-blog-card:hover .ro-blog-card__media img { transform: scale(1.05); }
.ro-blog-card__ph { width: 100%; height: 100%; background: linear-gradient(135deg, #dbe4f7, #eef2fb); }

.ro-blog-card__body {
	padding: 16px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}
.ro-blog-card__date { font-size: 12px; color: #6b7280; }
.ro-blog-card__title {
	margin: 8px 0 0;
	font-size: 16px;
	font-weight: 600;
	color: #111827;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color .2s;
}
.ro-blog-card:hover .ro-blog-card__title { color: var(--ro-navy); }
.ro-blog-card__excerpt {
	margin: 8px 0 0;
	font-size: 14px;
	color: #4b5563;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	flex-grow: 1;
}
.ro-blog-card__meta {
	margin-top: 16px;
	font-size: 12px;
	color: #6b7280;
	display: flex;
	align-items: center;
	gap: 6px;
}

/* ---- News list ---- */
.ro-news-head { margin-bottom: 14px; }
.ro-news-count { color: #6b7280; font-size: 14px; margin: 0 0 16px; }
.ro-news-list { display: flex; flex-direction: column; gap: 12px; }

.ro-news-item {
	display: flex;
	align-items: center;
	gap: 16px;
	background: #fff;
	border: 1px solid #f3f4f6;
	border-radius: 12px;
	padding: 16px;
	text-decoration: none;
	transition: border-color .2s, box-shadow .2s;
}
.ro-news-item:hover {
	border-color: rgba(16, 49, 120, .2);
	box-shadow: 0 4px 12px rgba(16, 49, 120, .06);
}
.ro-news-item__main { flex: 1; min-width: 0; }
.ro-news-item__date {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: #6b7280;
	margin-bottom: 6px;
}
.ro-news-item__title {
	margin: 0 0 4px;
	font-size: 16px;
	font-weight: 600;
	color: #111827;
	line-height: 1.35;
	transition: color .2s;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.ro-news-item:hover .ro-news-item__title { color: var(--ro-navy); }
.ro-news-item__teaser {
	margin: 0;
	font-size: 13px;
	color: #6b7280;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.ro-news-item__arrow {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #f8faff;
	color: var(--ro-navy);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .2s, color .2s;
}
.ro-news-item:hover .ro-news-item__arrow { background: var(--ro-navy); color: #fff; }

/* ---- Single post / article ---- */
.ro-post-badge {
	display: inline-block;
	background: var(--ro-orange);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	padding: 3px 10px;
	border-radius: 999px;
	margin-bottom: 10px;
}
.ro-post-title {
	font-size: 32px;
	line-height: 1.2;
	font-weight: 700;
	color: var(--ro-navy);
	margin: 0 0 12px;
}
.ro-post-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	font-size: 13px;
	color: #6b7280;
	margin-bottom: 22px;
}
.ro-post-meta i { color: var(--ro-orange); margin-right: 4px; }
.ro-post-hero {
	border-radius: 14px;
	overflow: hidden;
	margin-bottom: 26px;
}
.ro-post-hero img { width: 100%; height: auto; display: block; }

.ro-post-body {
	font-size: 16px;
	line-height: 1.75;
	color: #374151;
}
.ro-post-body h2 { font-size: 24px; color: var(--ro-navy); margin: 32px 0 12px; }
.ro-post-body h3 { font-size: 20px; color: var(--ro-navy); margin: 26px 0 10px; }
.ro-post-body p { margin: 0 0 18px; }
.ro-post-body a { color: var(--ro-navy); text-decoration: underline; }
.ro-post-body img { max-width: 100%; height: auto; border-radius: 10px; margin: 18px 0; }
.ro-post-body ul, .ro-post-body ol { margin: 0 0 18px; padding-left: 22px; }
.ro-post-body li { margin-bottom: 8px; }
.ro-post-body blockquote {
	border-left: 4px solid var(--ro-orange);
	background: #fff;
	margin: 22px 0;
	padding: 14px 20px;
	color: #4b5563;
	border-radius: 0 10px 10px 0;
}

.ro-post-back { margin-top: 34px; }
.ro-post-back a {
	color: var(--ro-navy);
	font-weight: 600;
	text-decoration: none;
}
.ro-post-back a:hover { color: var(--ro-orange); }

/* ---- Pagination ---- */
.ro-blog-pagination { margin-top: 34px; }
.ro-blog-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	margin: 0 4px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #fff;
	color: var(--ro-navy);
	text-decoration: none;
	font-size: 14px;
}
.ro-blog-pagination .page-numbers.current {
	background: var(--ro-navy);
	color: #fff;
	border-color: var(--ro-navy);
}
.ro-blog-pagination .page-numbers:hover:not(.current) { border-color: var(--ro-navy); }

.ro-blog-empty { color: #6b7280; font-size: 15px; padding: 40px 0; }
