/* impeccable-disable design-system-radius side-tab */
/* Blog index + single post */

.blog-hero {
	position: relative;
	overflow: hidden;
	padding: 120px 0 72px;
	background: linear-gradient(125deg, var(--navy-deep) 0%, var(--navy) 55%, #0d2040 100%);
}

.blog-hero__grid {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 60px;
	background:
		repeating-linear-gradient(90deg, rgba(200, 137, 47, 0.04) 0, rgba(200, 137, 47, 0.04) 1px, transparent 1px, transparent 60px),
		repeating-linear-gradient(0deg, rgba(200, 137, 47, 0.04) 0, rgba(200, 137, 47, 0.04) 1px, transparent 1px, transparent 30px);
	pointer-events: none;
}

.blog-hero__inner {
	position: relative;
	z-index: 2;
	max-width: 900px;
}

.blog-hero__title {
	font-family: var(--font-display);
	font-weight: 900;
	line-height: 1.05;
	letter-spacing: -0.04em;
	color: #fff;
	font-size: clamp(40px, 5.5vw, 72px);
	margin: 0 0 20px;
}

.blog-hero__lead {
	font-size: 17px;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.6);
	max-width: 560px;
	margin: 0;
}

.blog-featured {
	background: var(--off-white);
	padding: 64px 0 0;
}

.blog-featured__card {
	display: grid;
	grid-template-columns: 1fr 1fr;
	background: var(--card);
	border-radius: 20px;
	overflow: hidden;
	border: 1px solid rgba(11, 27, 51, 0.08);
	box-shadow: 0 8px 40px rgba(11, 27, 51, 0.07);
}

.blog-featured__media {
	position: relative;
	display: block;
	min-height: 380px;
	background: var(--navy);
	overflow: hidden;
	text-decoration: none;
}

.blog-featured__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.blog-featured__badge {
	position: absolute;
	top: 20px;
	left: 20px;
	background: rgba(200, 137, 47, 0.15);
	border: 1px solid rgba(200, 137, 47, 0.4);
	border-radius: 100px;
	padding: 4px 12px;
	font-size: 11px;
	font-weight: 700;
	color: var(--bronze);
	letter-spacing: 0.06em;
}

.blog-featured__body {
	padding: 48px 44px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.blog-featured__title {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: clamp(22px, 2.5vw, 32px);
	line-height: 1.2;
	letter-spacing: -0.03em;
	margin: 0 0 16px;
}

.blog-featured__title a {
	color: var(--navy);
	text-decoration: none;
}

.blog-featured__excerpt {
	font-size: 15px;
	color: var(--slate);
	line-height: 1.7;
	margin: 0 0 28px;
}

.blog-featured__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
}

.blog-index {
	background: var(--off-white);
	padding: 64px 0 80px;
}

.blog-featured + .blog-index {
	padding-top: 64px;
}

.blog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

.blog-card {
	background: var(--card);
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid rgba(11, 27, 51, 0.08);
	box-shadow: 0 4px 20px rgba(11, 27, 51, 0.05);
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.blog-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 40px rgba(46, 139, 255, 0.12), 0 0 0 1.5px rgba(46, 139, 255, 0.25);
	border-color: rgba(46, 139, 255, 0.3);
}

.blog-card__media {
	position: relative;
	padding-top: 56.25%;
	overflow: hidden;
	background: var(--navy);
}

.blog-card__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.blog-card__body {
	padding: 24px 24px 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.blog-card__category {
	display: inline-flex;
	align-self: flex-start;
	background: rgba(46, 139, 255, 0.1);
	border: 1px solid rgba(46, 139, 255, 0.3);
	border-radius: 100px;
	padding: 3px 10px;
	font-size: 11px;
	font-weight: 700;
	color: var(--electric-blue);
	letter-spacing: 0.05em;
	margin-bottom: 12px;
}

.blog-card__category--on-dark {
	background: rgba(46, 139, 255, 0.2);
	border-color: rgba(46, 139, 255, 0.5);
}

.blog-card__title {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 18px;
	line-height: 1.3;
	letter-spacing: -0.02em;
	color: var(--navy);
	margin: 0 0 10px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.blog-card__excerpt {
	font-size: 14px;
	color: var(--slate);
	line-height: 1.65;
	flex: 1;
	margin: 0 0 20px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.blog-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-top: 1px solid rgba(11, 27, 51, 0.07);
	padding-top: 16px;
	gap: 12px;
}

.blog-card__meta {
	font-size: 12px;
	color: var(--slate);
}

.blog-card__meta strong {
	color: var(--navy);
	font-weight: 600;
}

.blog-card__read {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 700;
	color: var(--electric-blue);
}

.blog-pagination {
	margin-top: 56px;
	text-align: center;
}

.blog-pagination .nav-links {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: center;
}

.blog-pagination a,
.blog-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.blog-pagination a {
	background: var(--card);
	border: 1px solid rgba(11, 27, 51, 0.12);
	color: var(--navy);
}

.blog-pagination a:hover {
	border-color: rgba(46, 139, 255, 0.3);
	color: var(--electric-blue);
}

.blog-pagination .current {
	background: var(--electric-blue);
	border: 1px solid var(--electric-blue);
	color: #fff;
}

.blog-empty {
	text-align: center;
	padding: 80px 0;
}

.blog-single {
	padding: 0;
	margin: 0;
	background: transparent;
}

.blog-single__hero {
	position: relative;
	min-height: clamp(380px, 48vw, 560px);
	background: var(--navy);
	overflow: hidden;
}

.blog-single__hero .node-network {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.blog-single__hero-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	z-index: 1;
}

.blog-single__hero-overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	background: linear-gradient(to bottom, rgba(7, 17, 31, 0.72) 0%, rgba(11, 27, 51, 0.55) 40%, rgba(11, 27, 51, 0.82) 75%, rgba(7, 17, 31, 0.97) 100%);
}

.blog-single__hero-fallback {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(125deg, var(--navy-deep) 0%, var(--navy) 100%);
}

.blog-single__hero-inner {
	position: absolute;
	inset: auto 0 0;
	z-index: 3;
	max-width: 840px;
	margin: 0 auto;
	padding: 88px 24px 40px;
}

.blog-single__title {
	font-family: var(--font-display);
	font-weight: 900;
	font-size: clamp(24px, 3.5vw, 46px);
	line-height: 1.1;
	letter-spacing: -0.03em;
	color: #fff;
	margin: 0 0 20px;
}

.blog-single__meta {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	color: rgba(255, 255, 255, 0.55);
	font-size: 13px;
}

.blog-single__author {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: rgba(255, 255, 255, 0.9);
	font-weight: 600;
	font-size: 14px;
}

.blog-single__avatar {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--electric-blue), var(--mural-purple));
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 12px;
	color: #fff;
}

.blog-single__body {
	background: #fff;
	padding: 64px 0 80px;
}

.blog-single__content {
	max-width: 720px;
	margin: 0 auto;
	font-size: 17px;
	line-height: 1.75;
}

.wp-content h2 {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: clamp(22px, 2.5vw, 30px);
	letter-spacing: -0.03em;
	color: var(--navy);
	line-height: 1.2;
	margin: 48px 0 16px;
}

.wp-content h3 {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(18px, 2vw, 22px);
	letter-spacing: -0.02em;
	color: var(--navy);
	line-height: 1.3;
	margin: 36px 0 12px;
}

.wp-content p {
	font-size: 17px;
	color: var(--navy);
	line-height: 1.8;
	margin: 0 0 22px;
}

.wp-content strong {
	font-weight: 700;
	color: var(--navy);
}

.wp-content a {
	color: var(--electric-blue);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.wp-content a:hover {
	color: var(--electric-blue-hover);
}

.wp-content ul,
.wp-content ol {
	font-size: 17px;
	color: var(--navy);
	line-height: 1.8;
	margin: 0 0 22px;
	padding-left: 24px;
}

.wp-content ul li,
.wp-content ol li {
	margin-bottom: 8px;
}

.wp-content blockquote {
	border-left: 4px solid var(--bronze);
	margin: 32px 0;
	padding: 16px 24px;
	background: rgba(200, 137, 47, 0.04);
	border-radius: 0 8px 8px 0;
}

.wp-content blockquote p {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 19px;
	color: var(--bronze);
	font-style: italic;
	line-height: 1.5;
	margin: 0;
}

.wp-content code {
	font-family: var(--font-mono);
	font-size: 14px;
	background: var(--secondary-surface);
	color: var(--navy);
	padding: 2px 7px;
	border-radius: 5px;
}

.wp-content pre {
	background: var(--navy);
	color: rgba(255, 255, 255, 0.78);
	padding: 24px 28px;
	border-radius: 10px;
	overflow-x: auto;
	font-family: var(--font-mono);
	font-size: 14px;
	line-height: 1.7;
	margin: 28px 0;
}

.wp-content figure {
	margin: 36px 0;
}

.wp-content figure img {
	width: 100%;
	border-radius: 10px;
	display: block;
}

.wp-content figcaption {
	font-size: 13px;
	color: var(--slate);
	margin-top: 10px;
	text-align: center;
	font-style: italic;
}

@media (max-width: 1000px) {
	.blog-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.blog-featured__card {
		grid-template-columns: 1fr;
	}
}

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

	.blog-featured__body {
		padding: 32px 24px;
	}
}

/* Override legacy phillai.css .blog-single padding that breaks hero under nav */
body.single-post article.blog-single {
	padding: 0;
	background: transparent;
}

.blog-single__hero::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 120px;
	background: linear-gradient(to bottom, rgba(7, 17, 31, 0.88), transparent);
	z-index: 2;
	pointer-events: none;
}

body.single-post .site-header:not(.is-scrolled) {
	background: transparent;
	border-bottom-color: transparent;
}
