/* 1RR blog templates — home.php, single.php, archive.php.
 * Shares card styles with 1rr-home-sections.css (.rr-blog-grid / .rr-blog-card).
 */

.rr-blog-main {
	background: #fafaf7;
	padding: 40px 16px 80px;
	min-height: 60vh;
}

.rr-blog-inner {
	max-width: 1200px;
	margin: 0 auto;
}

.rr-blog-header {
	max-width: 720px;
	margin: 0 auto 32px;
	text-align: center;
}

.rr-blog-header h1 {
	margin: 0 0 10px;
	font-size: clamp(1.6rem, 3vw, 2.25rem);
	font-weight: 700;
	color: #004274;
}

.rr-blog-sub {
	color: #4b5563;
	font-size: 1rem;
	line-height: 1.5;
}

.rr-blog-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px;
	gap: 32px;
}

@media (max-width: 900px) {
	.rr-blog-layout { grid-template-columns: 1fr; }
}

/* The .rr-blog-grid / .rr-blog-card styles live in 1rr-home-sections.css and
 * carry over unchanged on the blog pages. */

.rr-blog-empty {
	padding: 48px 24px;
	background: #fff;
	border-radius: 10px;
	text-align: center;
	box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}

.rr-blog-empty h2 {
	margin: 0 0 8px;
	color: #004274;
	font-size: 1.25rem;
}

.rr-blog-empty p {
	margin: 0;
	color: #6b7280;
}

.rr-blog-pagination {
	margin-top: 32px;
}

.rr-blog-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
}

.rr-blog-pagination a,
.rr-blog-pagination .current {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 6px;
	background: #fff;
	color: #004274;
	text-decoration: none;
	border: 1px solid #e5e7eb;
	font-size: 14px;
}

.rr-blog-pagination .current {
	background: #004274;
	color: #fff;
	border-color: #004274;
}

/* Sidebar */

.rr-blog-sidebar {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.rr-blog-widget {
	background: #fff;
	border-radius: 10px;
	padding: 16px 18px;
	box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}

.rr-blog-widget h3 {
	margin: 0 0 10px;
	font-size: 0.95rem;
	font-weight: 700;
	color: #004274;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.rr-blog-cats {
	list-style: none;
	padding: 0;
	margin: 0;
}

.rr-blog-cats li {
	padding: 6px 0;
	border-bottom: 1px dashed #e5e7eb;
	display: flex;
	justify-content: space-between;
	font-size: 14px;
}

.rr-blog-cats li:last-child { border-bottom: 0; }

.rr-blog-cats a {
	color: #1a2433;
	text-decoration: none;
}

.rr-blog-cats a:hover { color: #F54343; }

.rr-blog-cat-count {
	color: #9ca3af;
	font-variant-numeric: tabular-nums;
}

/* ----- Single post ----- */

.rr-post {
	background: #fff;
	max-width: 780px;
	margin: 0 auto;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.rr-post-hero {
	margin: 0;
}

.rr-post-hero-img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	background: #e5e7eb;
}

.rr-post-inner {
	padding: 28px clamp(20px, 4vw, 48px) 48px;
}

.rr-post-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 12px;
}

.rr-post-cat-chip {
	display: inline-block;
	padding: 3px 10px;
	background: #e6f4fb;
	color: #004274;
	border-radius: 12px;
	font-size: 12.5px;
	font-weight: 500;
	text-decoration: none;
}

.rr-post-cat-chip:hover { background: #b5e0f2; }

.rr-post-title {
	margin: 0 0 12px;
	font-size: clamp(1.5rem, 3.4vw, 2.25rem);
	line-height: 1.2;
	color: #1a2433;
}

.rr-post-meta {
	color: #6b7280;
	font-size: 14px;
	margin-bottom: 24px;
}

.rr-post-dot { margin: 0 8px; }

.rr-post-content {
	color: #1a2433;
	font-size: 1rem;
	line-height: 1.65;
}

.rr-post-content p { margin: 0 0 1em; }
.rr-post-content h2 { margin: 1.6em 0 0.5em; font-size: 1.35rem; color: #004274; }
.rr-post-content h3 { margin: 1.3em 0 0.4em; font-size: 1.15rem; color: #004274; }
.rr-post-content a { color: #00aeff; }
.rr-post-content a:hover { color: #F54343; }
.rr-post-content ul, .rr-post-content ol { padding-left: 22px; margin: 0 0 1em; }
.rr-post-content blockquote {
	margin: 1.2em 0;
	padding: 12px 18px;
	border-left: 3px solid #00aeff;
	background: #f0f9ff;
	color: #1e3a5f;
}
.rr-post-content img { max-width: 100%; height: auto; border-radius: 8px; }

.rr-post-tags {
	margin-top: 32px;
	padding-top: 18px;
	border-top: 1px solid #e5e7eb;
	color: #6b7280;
	font-size: 14px;
}

.rr-post-tags a { color: #004274; }

.rr-post-related {
	max-width: 1200px;
	margin: 48px auto 0;
	padding: 0 16px;
}

.rr-post-related h2 {
	margin: 0 0 16px;
	font-size: 1.3rem;
	font-weight: 700;
	color: #004274;
}
