/* Rankzix Content System — shared archive stylesheet.
   Loaded on the Blog archive, Category archive, and Author archive
   (never on single posts, which have their own hero in single-post.css).
   Covers: breadcrumb styling, hero bands, the Featured Article, section
   titles, pagination, and the shared CTA "band" component.
   Brand font: Manrope, reused from the site's existing global font load —
   no new Google Fonts request is made here. */

:root {
	--rzcs-blue: #2563EB;
	--rzcs-navy: #0F172A;
	--rzcs-white: #FFFFFF;
	--rzcs-bg: #F8FAFC;
	--rzcs-light-blue: #EFF6FF;
	--rzcs-border: #E2E8F0;
	--rzcs-font: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.rzcs-blog-hero,
.rzcs-category-hero,
.rzcs-featured-article,
.rzcs-latest-articles,
.rzcs-cta-band-wrap {
	font-family: var(--rzcs-font);
}

.rzcs-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ---------- Focus states ---------- */
a:focus-visible,
button:focus-visible {
	outline: 2px solid var(--rzcs-blue);
	outline-offset: 2px;
	border-radius: 2px;
}

/* ---------- Rank Math breadcrumb styling (shared across all three
   archive templates) — the plugin never generates this markup, only
   styles it. ---------- */
.rzcs-breadcrumb-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px 20px 0;
}
.rzcs-breadcrumb-wrap p,
.rzcs-breadcrumb-wrap .rank-math-breadcrumb {
	font-size: 14px;
	color: #475569;
	margin: 0;
	line-height: 1.6;
}
.rzcs-breadcrumb-wrap a {
	color: #475569;
	text-decoration: none;
}
.rzcs-breadcrumb-wrap a:hover {
	color: var(--rzcs-blue);
}

/* ---------- Blog / Category hero — the ACTUAL Editorial Backlinks hero
   treatment: #0B0F19 base + radial-gradient(circle at center,
   rgba(37,99,235,0.18) 0%, transparent 70%) blue glow. Kept compact
   (not the service page's tall height) but otherwise the real dark
   visual family, not a light adaptation. ---------- */
.rzcs-blog-hero,
.rzcs-category-hero {
	text-align: center;
	padding: 20px 0 32px;
	background-color: #0B0F19;
	background-image: radial-gradient(circle at center, rgba(37,99,235,0.18) 0%, transparent 70%);
}
.rzcs-blog-hero .rzcs-breadcrumb-wrap,
.rzcs-category-hero .rzcs-breadcrumb-wrap {
	text-align: left;
	padding-top: 0;
	padding-bottom: 20px;
}
.rzcs-blog-hero .rzcs-breadcrumb-wrap p,
.rzcs-blog-hero .rzcs-breadcrumb-wrap .rank-math-breadcrumb,
.rzcs-category-hero .rzcs-breadcrumb-wrap p,
.rzcs-category-hero .rzcs-breadcrumb-wrap .rank-math-breadcrumb {
	color: #94A3B8;
}
.rzcs-blog-hero .rzcs-breadcrumb-wrap a,
.rzcs-category-hero .rzcs-breadcrumb-wrap a {
	color: #93C5FD;
}
.rzcs-blog-hero .rzcs-breadcrumb-wrap a:hover,
.rzcs-category-hero .rzcs-breadcrumb-wrap a:hover {
	color: #FFFFFF;
}
.rzcs-blog-eyebrow,
.rzcs-category-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--rzcs-light-blue);
	border: 1px solid #DBEAFE;
	border-radius: 999px;
	padding: 6px 16px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin-bottom: 16px;
}
.rzcs-eyebrow-text {
	background-image: linear-gradient(90deg, #2563EB, #60A5FA);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: var(--rzcs-blue);
}
.rzcs-eyebrow-icon {
	width: 13px;
	height: 13px;
	flex-shrink: 0;
	stroke: #2563EB;
}
.rzcs-h1-accent {
	background-image: linear-gradient(90deg, #2563EB, #60A5FA);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: var(--rzcs-blue);
}
.rzcs-blog-h1 {
	font-weight: 800;
	font-size: 32px;
	line-height: 1.2;
	color: #FFFFFF;
	max-width: 720px;
	margin: 0 auto 16px;
}
.rzcs-blog-sub {
	max-width: 560px;
	margin: 0 auto;
	color: #94A3B8;
	font-size: 16px;
	line-height: 1.6;
}

/* ---------- Featured Article (Blog only) ---------- */
.rzcs-featured-article {
	padding: 0 0 48px;
}
.rzcs-featured-grid {
	display: flex;
	flex-direction: column;
	gap: 24px;
	background: var(--rzcs-white);
	border: 1px solid var(--rzcs-border);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}
.rzcs-featured-media {
	display: block;
	aspect-ratio: 16 / 9;
}
.rzcs-featured-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.rzcs-featured-content {
	padding: 8px 24px 28px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.rzcs-featured-label {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--rzcs-blue);
	margin: 0;
}
.rzcs-featured-title {
	display: block;
	font-size: 22px;
	font-weight: 700;
	color: var(--rzcs-navy);
	text-decoration: none;
	line-height: 1.3;
}
.rzcs-featured-title:hover {
	color: var(--rzcs-blue);
}
.rzcs-featured-excerpt {
	font-size: 15px;
	color: #64748B;
	line-height: 1.6;
	margin: 0;
}
.rzcs-featured-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #64748B;
}
.rzcs-meta-author {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #64748B;
	text-decoration: none;
}
.rzcs-meta-author:hover {
	color: var(--rzcs-blue);
}
.rzcs-author-avatar {
	border-radius: 50%;
}
.rzcs-meta-dot {
	color: #CBD5E1;
}
.rzcs-featured-readmore {
	display: inline-block;
	margin-top: 6px;
	font-size: 14px;
	font-weight: 600;
	color: var(--rzcs-blue);
	text-decoration: none;
}
.rzcs-featured-readmore:hover {
	text-decoration: underline;
}

/* ---------- Explore by Topic (Blog) ---------- */
.rzcs-topics {
	padding: 0 0 40px;
}
/* Category-only: the Topics section sits directly above the article
   grid there (unlike Blog, where Featured Guide sits between them), so
   the combined 40px+40px padding stacked to ~80px. Scoped to the
   category body class only — Blog's Topics spacing is untouched. */
body.category .rzcs-topics {
	padding-bottom: 12px;
}
.rzcs-topics-heading {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #64748B;
	margin: 0 0 14px;
}
.rzcs-topic-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.rzcs-topic-pill {
	display: inline-flex;
	align-items: center;
	background: var(--rzcs-white);
	border: 1px solid var(--rzcs-border);
	border-radius: 999px;
	padding: 8px 18px;
	font-size: 14px;
	font-weight: 600;
	color: var(--rzcs-navy);
	text-decoration: none;
	transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.rzcs-topic-pill:hover {
	border-color: var(--rzcs-blue);
	color: var(--rzcs-blue);
}
.rzcs-topic-pill-active {
	background: var(--rzcs-blue);
	border-color: var(--rzcs-blue);
	color: var(--rzcs-white);
}
.rzcs-topic-pill-active:hover {
	color: var(--rzcs-white);
}

/* ---------- Section title (Latest Articles / Author articles) ---------- */
.rzcs-latest-articles,
.rzcs-author-articles {
	padding: 40px 0 48px;
}
.rzcs-section-title {
	font-size: 22px;
	font-weight: 700;
	color: var(--rzcs-navy);
	margin: 0 0 20px;
}
.rzcs-author-empty {
	color: #64748B;
	font-size: 15px;
	background: var(--rzcs-bg);
	border: 1px dashed var(--rzcs-border);
	border-radius: 14px;
	padding: 40px 24px;
	text-align: center;
}

/* ---------- Pagination (shared: Blog / Category / Author) ---------- */
.rzcs-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 32px;
}
.rzcs-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--rzcs-border);
	border-radius: 8px;
	text-decoration: none;
	color: var(--rzcs-navy);
	font-size: 14px;
}
.rzcs-pagination .page-numbers:hover {
	border-color: var(--rzcs-blue);
	color: var(--rzcs-blue);
}
.rzcs-pagination .page-numbers.current {
	background: var(--rzcs-blue);
	border-color: var(--rzcs-blue);
	color: var(--rzcs-white);
}

/* ---------- Shared CTA "band" — one bottom CTA on Blog/Category/Author.
   Same design family as the single-post sidebar/end CTAs: Deep Navy
   background, Primary Blue button, subtle shadow, no gradients. ---------- */
.rzcs-cta-band-wrap {
	padding: 8px 0 56px;
}
.rzcs-cta-band {
	position: relative;
	overflow: hidden;
	background: linear-gradient(155deg, var(--rzcs-navy) 0%, #172554 100%);
	color: var(--rzcs-white);
	border-radius: 16px;
	border: 1px solid rgba(37,99,235,0.3);
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12), 0 0 32px rgba(37,99,235,0.10);
	padding: 32px;
	display: flex;
	flex-direction: column;
	gap: 20px;
	align-items: flex-start;
}
.rzcs-cta-band::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(circle, rgba(96,165,250,0.35) 1.5px, transparent 1.5px);
	background-size: 26px 26px;
	background-position: right -6px top -6px;
	background-repeat: no-repeat;
	width: 45%;
	left: auto;
	right: 0;
	opacity: 0.4;
	pointer-events: none;
}
.rzcs-cta-band-text {
	position: relative;
	max-width: 480px;
}
.rzcs-cta-band .rzcs-cta-arrow {
	display: inline-block;
	transition: transform 200ms ease;
}
.rzcs-cta-band .rzcs-cta-title {
	font-size: 20px;
	font-weight: 700;
	color: var(--rzcs-white);
	margin: 0 0 8px;
}
.rzcs-cta-band .rzcs-cta-text {
	font-size: 14px;
	color: #CBD5E1;
	margin: 0;
	line-height: 1.6;
}
.rzcs-cta-band .rzcs-cta-button {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--rzcs-blue);
	color: var(--rzcs-white);
	font-weight: 600;
	font-size: 15px;
	padding: 15px 28px;
	border-radius: 8px;
	text-decoration: none;
	min-height: 56px;
	box-sizing: border-box;
	width: 100%;
	text-align: center;
	transition: transform 200ms ease, background-color 200ms ease, box-shadow 200ms ease;
}
.rzcs-cta-band .rzcs-cta-button:visited {
	color: var(--rzcs-white);
}
.rzcs-cta-band .rzcs-cta-button:hover,
.rzcs-cta-band .rzcs-cta-button:focus-visible,
.rzcs-cta-band .rzcs-cta-button:active {
	background: #1D4ED8;
	color: var(--rzcs-white);
}
.rzcs-cta-band .rzcs-cta-button:hover,
.rzcs-cta-band .rzcs-cta-button:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 8px 18px rgba(37,99,235,0.3);
}
.rzcs-cta-band .rzcs-cta-button:hover .rzcs-cta-arrow,
.rzcs-cta-band .rzcs-cta-button:focus-visible .rzcs-cta-arrow {
	transform: translateX(3px);
}
.rzcs-cta-band .rzcs-cta-button:active {
	transform: translateY(0);
	box-shadow: none;
}
@media (prefers-reduced-motion: reduce) {
	.rzcs-cta-band .rzcs-cta-button {
		transition: background-color 200ms ease;
	}
	.rzcs-cta-band .rzcs-cta-button:hover,
	.rzcs-cta-band .rzcs-cta-button:focus-visible,
	.rzcs-cta-band .rzcs-cta-button:active {
		transform: none;
	}
	.rzcs-cta-band .rzcs-cta-button:hover .rzcs-cta-arrow,
	.rzcs-cta-band .rzcs-cta-button:focus-visible .rzcs-cta-arrow {
		transform: none;
	}
}


/* =========================================================
   BREAKPOINT — TABLET / SMALL LAPTOP, 768px through 1199px
   ========================================================= */
@media (min-width: 768px) and (max-width: 1199px) {
	.rzcs-container,
	.rzcs-breadcrumb-wrap {
		padding-left: 32px;
		padding-right: 32px;
	}
	.rzcs-blog-h1 {
		font-size: 38px;
	}
	.rzcs-featured-grid {
		flex-direction: row;
		align-items: stretch;
	}
	.rzcs-featured-media {
		flex: 0 0 42%;
		aspect-ratio: auto;
	}
	.rzcs-featured-content {
		flex: 1;
		padding: 24px 28px;
		justify-content: center;
	}
}

/* =========================================================
   BREAKPOINT — DESKTOP, 1200px and above
   ========================================================= */
@media (min-width: 1200px) {
	.rzcs-container,
	.rzcs-breadcrumb-wrap {
		max-width: 1200px;
		padding-left: 24px;
		padding-right: 24px;
	}
	.rzcs-blog-h1 {
		font-size: 44px;
	}
	.rzcs-featured-grid {
		flex-direction: row;
		align-items: stretch;
	}
	.rzcs-featured-media {
		flex: 0 0 48%;
		aspect-ratio: auto;
	}
	.rzcs-featured-content {
		flex: 1;
		padding: 32px 40px;
		justify-content: center;
	}
	.rzcs-featured-title {
		font-size: 26px;
	}
	.rzcs-cta-band {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		padding: 36px 40px;
	}
	.rzcs-cta-band .rzcs-cta-button {
		width: auto;
		flex-shrink: 0;
	}
}
