/* ==========================================================
   Blog — blog.css  (archive index + single post)
   ========================================================== */

/* ----------------------------------------------------------
   SHARED HERO
   ---------------------------------------------------------- */
.blog-hero {
	position: relative;
	background: linear-gradient(135deg, #011530 0%, var(--color-navy) 55%, #01284e 100%);
	padding: 5.5rem 0 4.5rem;
	overflow: hidden;
}

.blog-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
	background-size: 52px 52px;
	-webkit-mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, black 10%, transparent 72%);
	mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, black 10%, transparent 72%);
	pointer-events: none;
}

.blog-hero::after {
	content: '';
	position: absolute;
	bottom: -30%;
	left: 50%;
	transform: translateX(-50%);
	width: 640px;
	height: 360px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(2, 138, 134, 0.16) 0%, transparent 65%);
	filter: blur(48px);
	pointer-events: none;
}

.blog-hero__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.blog-hero__eyebrow {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--color-teal);
}

.blog-hero__h1 {
	font-family: var(--font-heading);
	font-size: clamp(2.5rem, 6vw, 5.5rem);
	line-height: 1.04;
	color: var(--color-white);
	letter-spacing: 0.02em;
	text-transform: uppercase;
	margin: 0;
}

.blog-hero__h1-accent {
	color: var(--color-teal);
}

.blog-hero__sub {
	font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
	font-weight: 500;
	color: rgba(255, 255, 255, 0.68);
	line-height: 1.75;
	margin: 0;
	max-width: 62ch;
}

/* ----------------------------------------------------------
   FILTER BAR
   ---------------------------------------------------------- */
.blog-filters {
	margin-top: 4rem;
	padding-top: 3rem;
	border-top: 1px solid rgba(1, 33, 65, 0.1);
}

.blog-filters__row {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.blog-filters__group {
	display: flex;
	align-items: baseline;
	gap: 0.25rem 1.25rem;
	flex-wrap: wrap;
}

.blog-filters__label {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #8a9bb0;
	margin-right: 0.5rem;
	white-space: nowrap;
}

.blog-filter-btn {
	display: inline-block;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1;
	color: var(--color-teal);
	background: rgba(2, 138, 134, 0.08);
	border: 1px solid rgba(2, 138, 134, 0.25);
	border-radius: 999px;
	padding: 0.4em 1em;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.blog-filter-btn:hover {
	background: rgba(223, 116, 74, 0.12);
	border-color: rgba(223, 116, 74, 0.45);
	color: var(--color-coral);
}

.blog-filter-btn.is-active {
	background: var(--color-teal);
	border-color: var(--color-teal);
	color: #fff;
	pointer-events: none;
}

.blog-filter-btn--author {
	color: var(--color-navy);
	background: rgba(1, 33, 65, 0.06);
	border-color: rgba(1, 33, 65, 0.2);
}

.blog-filter-btn--author:hover {
	background: rgba(223, 116, 74, 0.12);
	border-color: rgba(223, 116, 74, 0.45);
	color: var(--color-coral);
}

.blog-filter-btn--author.is-active {
	background: var(--color-navy);
	border-color: var(--color-navy);
	color: #fff;
}

/* ----------------------------------------------------------
   ARCHIVE GRID
   ---------------------------------------------------------- */
.blog-archive {
	padding: 5rem 0 6rem;
	background: #F2F6FB;
}

.blog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	margin-bottom: 3.5rem;
}

/* ----------------------------------------------------------
   POST CARD
   ---------------------------------------------------------- */
.blog-card {
	background: var(--color-white);
	border-radius: 16px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow:
		0 0 0 1px rgba(1, 33, 65, 0.06),
		0 4px 16px rgba(1, 33, 65, 0.07);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.blog-card:hover {
	transform: translateY(-4px);
	box-shadow:
		0 0 0 1px rgba(1, 33, 65, 0.08),
		0 12px 40px rgba(1, 33, 65, 0.13);
}

.blog-card__img-wrap {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 9;
}

.blog-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.blog-card:hover .blog-card__img {
	transform: scale(1.04);
}

.blog-card__img-placeholder {
	aspect-ratio: 16 / 9;
	background: linear-gradient(135deg, #011530 0%, var(--color-navy) 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 255, 255, 0.25);
}

.blog-card__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.875rem;
	padding: 1.625rem 1.75rem 2rem;
}

.blog-card__meta {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.blog-card__cat {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--color-teal);
	background: rgba(2, 138, 134, 0.1);
	padding: 0.25rem 0.625rem;
	border-radius: 100px;
	transition: background 0.18s, color 0.18s;
}

.blog-card__cat:hover {
	background: var(--color-teal);
	color: var(--color-white);
}

.blog-card__date {
	font-size: 0.8125rem;
	font-weight: 600;
	color: #8a9bb0;
}

.blog-card__title {
	font-family: var(--font-heading);
	font-size: clamp(1.125rem, 1.4vw, 1.375rem);
	line-height: 1.25;
	color: var(--color-navy);
	margin: 0;
	letter-spacing: 0.01em;
}

.blog-card__title a {
	color: inherit;
	transition: color 0.2s ease;
}

.blog-card__title a:hover {
	color: var(--color-teal);
}

.blog-card__excerpt {
	font-size: 0.9375rem;
	font-weight: 500;
	color: #4a5d72;
	line-height: 1.7;
	margin: 0;
	flex: 1;
}

.blog-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: auto;
	padding-top: 0.25rem;
}

.blog-card__author {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	font-size: 0.8125rem;
	font-weight: 600;
	color: #6b7f94;
	transition: color 0.18s;
}

.blog-card__author:hover {
	color: var(--color-teal);
}

.blog-card__read-more {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--color-teal);
	transition: gap 0.2s ease;
	flex-shrink: 0;
}

.blog-card__read-more:hover {
	gap: 0.65rem;
	color: var(--color-teal);
}

/* ----------------------------------------------------------
   PAGINATION
   ---------------------------------------------------------- */
.blog-pagination .nav-links {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.blog-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 0.75rem;
	border-radius: 8px;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--color-navy);
	background: var(--color-white);
	border: 1px solid rgba(1, 33, 65, 0.12);
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
	background: var(--color-teal);
	color: var(--color-white);
	border-color: var(--color-teal);
}

/* ----------------------------------------------------------
   BLOG CTA BAND
   ---------------------------------------------------------- */
.blog-cta-band {
	padding: 6rem 0;
	background: linear-gradient(135deg, #011530 0%, var(--color-navy) 55%, #01284e 100%);
	position: relative;
	overflow: hidden;
}

.blog-cta-band::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
	background-size: 52px 52px;
	pointer-events: none;
}

.blog-cta-band__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 4rem;
	align-items: center;
}

.blog-cta-band__h2 {
	font-family: var(--font-heading);
	font-size: clamp(2rem, 3.5vw, 3.5rem);
	line-height: 1.06;
	color: var(--color-white);
	margin: 0;
	text-transform: uppercase;
}

.blog-cta-band__sub {
	font-size: 1.125rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.65);
	line-height: 1.75;
	margin: 0.875rem 0 0;
	max-width: 56ch;
}

.blog-cta-band__action {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.75rem;
	flex-shrink: 0;
}

.blog-cta-band__disclaimer {
	font-size: 0.875rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.38);
	margin: 0;
}

/* ----------------------------------------------------------
   SINGLE POST HERO
   ---------------------------------------------------------- */
.single-hero {
	position: relative;
	background: linear-gradient(135deg, #011530 0%, var(--color-navy) 55%, #01284e 100%);
	padding: 5.5rem 0 4.5rem;
	overflow: hidden;
}

.single-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
	background-size: 52px 52px;
	-webkit-mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, black 10%, transparent 72%);
	mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, black 10%, transparent 72%);
	pointer-events: none;
}

.single-hero__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	max-width: 900px;
}

.single-hero__meta {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.single-hero__cat {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.11em;
	text-transform: uppercase;
	color: var(--color-teal);
	background: rgba(2, 138, 134, 0.15);
	border: 1px solid rgba(2, 138, 134, 0.3);
	padding: 0.3rem 0.75rem;
	border-radius: 100px;
}

.single-hero__date {
	font-size: 0.875rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.45);
}

.single-hero__author {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.55);
	transition: color 0.18s;
}

.single-hero__author:hover {
	color: var(--color-teal);
}

.single-hero__author svg {
	flex-shrink: 0;
}

.single-hero__h1 {
	font-family: var(--font-heading);
	font-size: clamp(2rem, 5vw, 4rem);
	line-height: 1.1;
	color: var(--color-white);
	letter-spacing: 0.02em;
	text-transform: uppercase;
	margin: 0;
}

.single-hero__excerpt {
	font-size: clamp(1rem, 1.5vw, 1.25rem);
	font-weight: 500;
	color: rgba(255, 255, 255, 0.65);
	line-height: 1.75;
	margin: 0;
}

/* ----------------------------------------------------------
   SINGLE POST CONTENT
   ---------------------------------------------------------- */
.single-content {
	padding: 5rem 0 6rem;
	background: var(--color-white);
}

.single-content__inner {
	max-width: 780px;
}

.single-content__featured-img {
	margin-bottom: 2.5rem;
	border-radius: 16px;
	overflow: hidden;
}

.single-content__featured-img img {
	width: 100%;
	height: auto;
	display: block;
}

/* Post body typography */
.single-content__body {
	font-size: 1.125rem;
	font-weight: 500;
	color: #2e3f52;
	line-height: 1.85;
}

.single-content__body p {
	margin-bottom: 1.5rem;
}

.single-content__body h2 {
	font-family: var(--font-heading);
	font-size: clamp(1.5rem, 2.5vw, 2.25rem);
	color: var(--color-navy);
	margin: 2.5rem 0 1rem;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--color-teal);
	display: inline-block;
}

.single-content__body h3 {
	font-family: var(--font-heading);
	font-size: clamp(1.25rem, 2vw, 1.75rem);
	color: var(--color-navy);
	margin: 2rem 0 0.875rem;
	letter-spacing: 0.02em;
}

.single-content__body ul,
.single-content__body ol {
	padding-left: 0;
	margin: 1.25rem 0 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
}

.single-content__body ul li,
.single-content__body ol li {
	padding-left: 1.5rem;
	position: relative;
	list-style: none;
}

.single-content__body ul li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.6em;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--color-teal);
}

.single-content__body ol {
	counter-reset: post-ol;
}

.single-content__body ol li {
	counter-increment: post-ol;
}

.single-content__body ol li::before {
	content: counter(post-ol) ".";
	position: absolute;
	left: 0;
	top: 0;
	font-weight: 700;
	color: var(--color-teal);
	font-size: 0.9375rem;
}

.single-content__body strong {
	font-weight: 700;
	color: var(--color-navy);
}

.single-content__body blockquote {
	font-size: 1.1875rem;
	font-weight: 600;
	font-style: italic;
	color: var(--color-navy);
	border-left: 4px solid var(--color-coral);
	padding: 1.25rem 1.5rem;
	margin: 2rem 0;
	background: rgba(223, 116, 74, 0.055);
	border-radius: 0 12px 12px 0;
	line-height: 1.7;
}

.single-content__body a {
	color: var(--color-teal);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Post footer nav */
.single-content__footer {
	margin-top: 3.5rem;
	padding-top: 2rem;
	border-top: 1px solid rgba(1, 33, 65, 0.1);
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.single-content__tags {
	font-size: 0.875rem;
	font-weight: 600;
	color: #6b7f94;
}

.single-content__tags .single-tag-label {
	color: var(--color-navy);
}

.single-content__tags a {
	color: var(--color-teal);
}

.single-content__nav {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
}

.single-nav-prev a,
.single-nav-next a {
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--color-navy);
	transition: color 0.2s;
}

.single-nav-prev a:hover,
.single-nav-next a:hover {
	color: var(--color-teal);
}

.single-nav-next {
	text-align: right;
	margin-left: auto;
}

/* ----------------------------------------------------------
   BLOG EMPTY STATE
   ---------------------------------------------------------- */
.blog-empty {
	text-align: center;
	padding: 5rem 0;
	font-size: 1.125rem;
	color: #6b7f94;
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1100px) {
	.blog-grid { grid-template-columns: repeat(2, 1fr); }
	.blog-cta-band__inner { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 900px) {
	.blog-hero    { padding: 4rem 0 3.5rem; }
	.blog-archive { padding: 4rem 0 5rem; }
	.blog-cta-band { padding: 4.5rem 0; }
	.single-hero  { padding: 4rem 0 3.5rem; }
	.single-content { padding: 4rem 0 5rem; }
}

@media (max-width: 680px) {
	.blog-grid { grid-template-columns: 1fr; gap: 1.5rem; }
	.blog-hero  { padding: 3.5rem 0 3rem; }
	.blog-archive { padding: 3rem 0 4rem; }
	.single-hero { padding: 3rem 0 2.5rem; }
	.single-content { padding: 3rem 0 4rem; }
	.single-content__nav { flex-direction: column; }
	.single-nav-next { text-align: left; margin-left: 0; }
}
