/**
 * Post archive and single post layouts.
 *
 * @package Neuro_AI
 */

.neuro-posts-archive-main,
.neuro-single-post-main {
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

.neuro-posts-hero {
	position: relative;
	box-sizing: border-box;
	margin: 32px 15px 0 !important;
	padding: clamp(48px, 6vw, 80px) clamp(22px, 5vw, 72px);
	border-radius: 25px;
	background:
		radial-gradient(circle at 84% 18%, rgba(56, 107, 183, 0.4), transparent 29%),
		radial-gradient(circle at 12% 88%, rgba(241, 79, 68, 0.34), transparent 32%),
		#1f1f1f;
	color: #fff;
	overflow: hidden;
}

.neuro-posts-hero::after {
	position: absolute;
	right: clamp(-80px, -5vw, -30px);
	bottom: clamp(-110px, -8vw, -55px);
	width: clamp(210px, 30vw, 440px);
	height: clamp(210px, 30vw, 440px);
	border: 1px solid rgba(255, 255, 255, 0.13);
	border-radius: 50%;
	box-shadow:
		0 0 0 35px rgba(255, 255, 255, 0.035),
		0 0 0 70px rgba(255, 255, 255, 0.025);
	content: "";
	pointer-events: none;
}

.neuro-posts-hero__inner {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	width: 100%;
	max-width: var(--wp--style--global--wide-size, 1200px) !important;
	margin: 0 auto !important;
}

.neuro-post-breadcrumbs {
	margin: 0 0 24px !important;
	color: rgba(255, 255, 255, 0.7);
	font-family: var(--wp--preset--font-family--manrope);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.5;
}

.neuro-post-breadcrumbs ol {
	gap: 0;
}

.neuro-post-breadcrumbs a {
	color: inherit;
	text-decoration: none;
}

.neuro-post-breadcrumbs a:hover,
.neuro-post-breadcrumbs a:focus {
	color: #fff;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.22em;
}

.neuro-post-breadcrumbs [aria-current="page"] {
	color: #fff;
}

.neuro-posts-eyebrow,
.neuro-single-post-categories {
	margin: 0 0 20px !important;
	color: #ff796f;
	font-family: var(--wp--preset--font-family--manrope);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.12em;
	line-height: 1.4;
	text-transform: uppercase;
}

.neuro-posts-hero__title,
.neuro-posts-hero .wp-block-query-title {
	max-width: 900px;
	margin: 0 !important;
	color: #fff;
	font-family: var(--wp--preset--font-family--sora);
	font-size: clamp(42px, 7vw, 86px);
	font-weight: 500;
	letter-spacing: -0.045em;
	line-height: 1.04;
}

.neuro-posts-hero__intro {
	max-width: 680px;
	margin: 28px 0 0 !important;
	color: rgba(255, 255, 255, 0.78);
	font-family: var(--wp--preset--font-family--manrope);
	font-size: clamp(17px, 1.5vw, 20px);
	line-height: 1.7;
}

.neuro-posts-hero__intro:empty {
	display: none;
}

.neuro-posts-listing {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--wp--style--global--wide-size, 1200px) !important;
	margin: 0 auto !important;
	padding: clamp(68px, 8vw, 112px) clamp(20px, 4vw, 40px);
}

.neuro-posts-query {
	width: 100%;
	max-width: none !important;
}

.neuro-posts-query .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(22px, 2.5vw, 34px);
	margin: 0;
	padding: 0;
}

.neuro-posts-query .wp-block-post {
	display: flex;
	min-width: 0;
}

.neuro-post-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	min-width: 0;
	border: 1px solid rgba(17, 17, 17, 0.08);
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 16px 45px rgba(17, 17, 17, 0.07);
	overflow: hidden;
	transition:
		box-shadow 0.3s ease,
		transform 0.3s ease;
}

.neuro-post-card:hover,
.neuro-post-card:focus-within {
	box-shadow: 0 24px 60px rgba(17, 17, 17, 0.13);
	transform: translateY(-5px);
}

.neuro-post-card__image {
	position: relative;
	width: 100%;
	margin: 0 !important;
	background: var(--wp--preset--color--base-alter, #f0f2f4);
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.neuro-post-card__image a,
.neuro-post-card__image img {
	display: block;
	width: 100%;
	height: 100%;
}

.neuro-post-card__image img {
	object-fit: cover;
	transition: transform 0.45s ease;
}

.neuro-post-card:hover .neuro-post-card__image img {
	transform: scale(1.035);
}

.neuro-post-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	box-sizing: border-box;
	padding: clamp(24px, 2.5vw, 34px);
}

.neuro-post-card__categories {
	margin: 0 0 17px !important;
	color: var(--wp--preset--color--accent, #f14f44);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	line-height: 1.5;
	text-transform: uppercase;
}

.neuro-post-card__categories a {
	color: inherit;
	text-decoration: none;
}

.neuro-post-card__categories a:hover,
.neuro-post-card__categories a:focus {
	color: var(--wp--preset--color--secondary, #386bb7);
}

.neuro-post-card__title {
	margin: 0 !important;
	font-family: var(--wp--preset--font-family--sora);
	font-size: clamp(22px, 2vw, 29px);
	font-weight: 600;
	letter-spacing: -0.025em;
	line-height: 1.25;
}

.neuro-post-card__title a {
	color: var(--wp--preset--color--contrast, #111);
	text-decoration: none;
}

.neuro-post-card__title a:hover,
.neuro-post-card__title a:focus {
	color: var(--wp--preset--color--accent, #f14f44);
}

.neuro-post-card__excerpt {
	margin: 18px 0 0 !important;
	color: #666;
	font-size: 15px;
	line-height: 1.7;
}

.neuro-post-card__excerpt > p {
	margin: 0;
}

.neuro-post-card__excerpt .wp-block-post-excerpt__more-text {
	margin: 22px 0 0;
}

.neuro-post-card__excerpt .wp-block-post-excerpt__more-link {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	color: var(--wp--preset--color--contrast, #111);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.02em;
	text-decoration: none;
}

.neuro-post-card__excerpt .wp-block-post-excerpt__more-link::after {
	font-size: 17px;
	content: "\2192";
	transition: transform 0.2s ease;
}

.neuro-post-card__excerpt .wp-block-post-excerpt__more-link:hover,
.neuro-post-card__excerpt .wp-block-post-excerpt__more-link:focus {
	color: var(--wp--preset--color--accent, #f14f44);
}

.neuro-post-card__excerpt .wp-block-post-excerpt__more-link:hover::after,
.neuro-post-card__excerpt .wp-block-post-excerpt__more-link:focus::after {
	transform: translateX(4px);
}

.neuro-post-card__meta {
	gap: 8px 18px !important;
	margin: auto 0 0 !important;
	padding-top: 26px;
	color: #777;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.03em;
	line-height: 1.5;
}

.neuro-post-card__meta .wp-block-post-date,
.neuro-post-card__meta .wp-block-post-author-name {
	position: relative;
	margin: 0;
}

.neuro-post-card__meta .wp-block-post-author-name::before {
	margin-right: 18px;
	color: #c4c4c4;
	content: "/";
}

.neuro-post-card__meta a {
	color: inherit;
	text-decoration: none;
}

.neuro-post-card__meta a:hover,
.neuro-post-card__meta a:focus {
	color: var(--wp--preset--color--accent, #f14f44);
}

.neuro-posts-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: fit-content;
	max-width: 100%;
	gap: 6px !important;
	margin: clamp(45px, 6vw, 72px) 0 0 !important;
	margin-right: auto !important;
	margin-left: auto !important;
	padding: 7px;
	border: 1px solid rgba(17, 17, 17, 0.08);
	border-radius: 999px;
	background: var(--wp--preset--color--base-alter, #f0f2f4);
	box-shadow: 0 12px 35px rgba(17, 17, 17, 0.08);
}

.neuro-posts-pagination .wp-block-query-pagination-numbers {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
}

.neuro-posts-pagination .page-numbers,
.neuro-posts-pagination .wp-block-query-pagination-previous,
.neuro-posts-pagination .wp-block-query-pagination-next {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 44px;
	height: 44px;
	margin: 0;
	padding: 0 15px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: transparent;
	color: var(--wp--preset--color--contrast, #111);
	font-size: 13px;
	font-weight: 800;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition:
		background-color 0.2s ease,
		border-color 0.2s ease,
		box-shadow 0.2s ease,
		color 0.2s ease,
		transform 0.2s ease;
}

.neuro-posts-pagination .page-numbers {
	padding: 0;
}

.neuro-posts-pagination .wp-block-query-pagination-previous,
.neuro-posts-pagination .wp-block-query-pagination-next {
	gap: 8px;
	background: #fff;
	box-shadow: 0 4px 14px rgba(17, 17, 17, 0.07);
}

.neuro-posts-pagination .page-numbers.current {
	border-color: var(--wp--preset--color--accent, #f14f44);
	background: var(--wp--preset--color--accent, #f14f44);
	color: #fff;
	box-shadow: 0 7px 18px rgba(241, 79, 68, 0.3);
}

.neuro-posts-pagination a:hover,
.neuro-posts-pagination a:focus-visible {
	border-color: var(--wp--preset--color--contrast, #111);
	background: var(--wp--preset--color--contrast, #111);
	color: #fff;
	box-shadow: 0 7px 18px rgba(17, 17, 17, 0.18);
	transform: translateY(-2px);
}

.neuro-posts-pagination a:focus-visible {
	outline: 3px solid rgba(56, 107, 183, 0.35);
	outline-offset: 2px;
}

.neuro-posts-pagination .wp-block-query-pagination-previous-arrow,
.neuro-posts-pagination .wp-block-query-pagination-next-arrow {
	margin: 0;
	font-size: 17px;
	line-height: 1;
}

.neuro-posts-empty {
	box-sizing: border-box;
	max-width: 680px;
	margin: 0 auto;
	padding: clamp(38px, 6vw, 70px);
	border-radius: 24px;
	background: var(--wp--preset--color--base-alter, #f0f2f4);
	text-align: center;
}

.neuro-posts-empty h2,
.neuro-posts-empty p {
	margin: 0;
}

.neuro-posts-empty p {
	margin-top: 12px;
}

/* Single post. */
.neuro-single-post-hero {
	box-sizing: border-box;
	margin: 32px 15px 0 !important;
	padding: clamp(48px, 6vw, 80px) clamp(20px, 5vw, 60px);
	border-radius: 25px;
	background:
		radial-gradient(circle at 82% 20%, rgba(56, 107, 183, 0.22), transparent 28%),
		var(--wp--preset--color--base-alter, #f0f2f4);
	overflow: hidden;
}

.neuro-single-post-hero__inner {
	box-sizing: border-box;
	margin: 0 auto !important;
	text-align: center;
}

.neuro-single-post-hero .neuro-post-breadcrumbs {
	display: flex;
	justify-content: center;
	color: #6b6b6b;
}

.neuro-single-post-hero .neuro-post-breadcrumbs a:hover,
.neuro-single-post-hero .neuro-post-breadcrumbs a:focus,
.neuro-single-post-hero .neuro-post-breadcrumbs [aria-current="page"] {
	color: var(--wp--preset--color--contrast, #111);
}

.neuro-single-post-categories {
	margin-bottom: 24px !important;
}

.neuro-single-post-categories a {
	color: inherit;
	text-decoration: none;
}

.neuro-single-post-title {
	margin: 0 !important;
	color: var(--wp--preset--color--contrast, #111);
	font-family: var(--wp--preset--font-family--sora);
	font-size: clamp(38px, 6vw, 74px);
	font-weight: 500;
	letter-spacing: -0.045em;
	line-height: 1.08;
}

.neuro-single-post-meta {
	gap: 8px 22px !important;
	margin: 28px 0 0 !important;
	color: #686868;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.035em;
}

.neuro-single-post-meta .wp-block-post-date,
.neuro-single-post-meta .wp-block-post-author-name {
	margin: 0;
}

.neuro-single-post-meta .wp-block-post-author-name::before {
	margin-right: 22px;
	color: #b0b0b0;
	content: "/";
}

.neuro-single-post-meta a {
	color: inherit;
	text-decoration: none;
}

.neuro-single-post-meta a:hover,
.neuro-single-post-meta a:focus {
	color: var(--wp--preset--color--accent, #f14f44);
}

.neuro-single-post-featured {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--wp--style--global--wide-size, 1200px) !important;
	margin: clamp(42px, 6vw, 80px) auto 0 !important;
	padding: 0 clamp(20px, 4vw, 40px);
}

.neuro-single-post-featured:not(:has(.wp-block-post-featured-image)) {
	display: none;
}

.neuro-single-post-featured .wp-block-post-featured-image {
	width: 100%;
	max-width: none !important;
	margin: 0 !important;
	border-radius: 24px;
	overflow: hidden;
}

.neuro-single-post-featured img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 680px;
	object-fit: cover;
}

.neuro-single-post-content-wrap {
	box-sizing: border-box;
	width: 100%;
	max-width: 920px !important;
	margin: 0 auto !important;
	padding:
		clamp(52px, 7vw, 90px) clamp(20px, 4vw, 40px)
		clamp(72px, 9vw, 120px);
}

.neuro-single-post-content {
	width: 100%;
	max-width: none !important;
	margin: 0 !important;
	color: var(--wp--preset--color--text, #333);
	font-size: clamp(17px, 1.25vw, 19px);
	line-height: 1.82;
}

.neuro-single-post-content > * {
	max-width: 100%;
}

.neuro-single-post-content > * + * {
	margin-top: clamp(22px, 3vw, 32px) !important;
}

.neuro-single-post-content :where(h2, h3, h4, h5, h6) {
	margin-bottom: 0;
	color: var(--wp--preset--color--contrast, #111);
	font-family: var(--wp--preset--font-family--sora);
	font-weight: 600;
	letter-spacing: -0.025em;
	line-height: 1.22;
}

.neuro-single-post-content h2 {
	font-size: clamp(31px, 4vw, 46px);
}

.neuro-single-post-content h3 {
	font-size: clamp(25px, 3vw, 35px);
}

.neuro-single-post-content :where(p, ul, ol, blockquote) {
	margin-bottom: 0;
}

.neuro-single-post-content :where(ul, ol) {
	padding-left: 1.35em;
}

.neuro-single-post-content li + li {
	margin-top: 0.5em;
}

.neuro-single-post-content a {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

.neuro-single-post-content blockquote {
	box-sizing: border-box;
	padding: clamp(24px, 4vw, 38px);
	border-left: 4px solid var(--wp--preset--color--accent, #f14f44);
	border-radius: 0 18px 18px 0;
	background: var(--wp--preset--color--base-alter, #f0f2f4);
}

.neuro-single-post-content :where(img, video, iframe) {
	max-width: 100%;
	height: auto;
}

.neuro-single-post-content .wp-block-image img,
.neuro-single-post-content .wp-block-cover,
.neuro-single-post-content .wp-block-gallery {
	border-radius: 18px;
	overflow: hidden;
}

.neuro-single-post-content .alignwide {
	width: min(1040px, calc(100vw - 40px));
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.neuro-single-post-content .alignfull {
	width: 100vw;
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.neuro-single-post-content .wp-block-table {
	overflow-x: auto;
}

.neuro-single-post-content .wp-block-table table {
	width: 100%;
	border-collapse: collapse;
}

.neuro-single-post-content .wp-block-table :where(th, td) {
	padding: 13px 16px;
	border-color: rgba(17, 17, 17, 0.14);
	text-align: left;
}

.neuro-single-post-footer {
	margin: clamp(54px, 7vw, 82px) 0 0 !important;
}

.neuro-single-post-tags {
	margin: 0 !important;
	color: #777;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.8;
}

.neuro-single-post-tags a {
	display: inline-block;
	margin: 4px 3px;
	padding: 7px 12px;
	border-radius: 999px;
	background: var(--wp--preset--color--base-alter, #f0f2f4);
	color: var(--wp--preset--color--contrast, #111);
	text-decoration: none;
}

.neuro-single-post-tags a:hover,
.neuro-single-post-tags a:focus {
	background: var(--wp--preset--color--accent, #f14f44);
	color: #fff;
}

.neuro-single-post-separator {
	margin: 34px 0 !important;
	border-color: rgba(17, 17, 17, 0.13);
}

.neuro-single-post-navigation {
	align-items: stretch !important;
	gap: 18px !important;
	margin: 0 !important;
}

.neuro-single-post-navigation .wp-block-post-navigation-link {
	display: flex;
	flex: 1 1 50%;
	margin: 0;
}

.neuro-single-post-navigation .wp-block-post-navigation-link:last-child {
	justify-content: flex-end;
	text-align: right;
}

.neuro-single-post-navigation a {
	display: inline-flex;
	align-items: center;
	box-sizing: border-box;
	min-height: 54px;
	padding: 12px 20px;
	border: 1px solid rgba(17, 17, 17, 0.12);
	border-radius: 999px;
	color: var(--wp--preset--color--contrast, #111);
	font-size: 13px;
	font-weight: 800;
	line-height: 1.35;
	text-decoration: none;
}

.neuro-single-post-navigation a:hover,
.neuro-single-post-navigation a:focus {
	border-color: var(--wp--preset--color--contrast, #111);
	background: var(--wp--preset--color--contrast, #111);
	color: #fff;
}

@media (max-width: 900px) {

	.neuro-posts-query .wp-block-post-template {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {

	.neuro-posts-hero,
	.neuro-single-post-hero {
		margin: 16px 8px 0 !important;
		border-radius: 20px;
	}

	.neuro-posts-query .wp-block-post-template {
		grid-template-columns: 1fr;
	}

	.neuro-posts-pagination {
		flex-wrap: wrap !important;
		justify-content: space-between;
		width: 100%;
		padding: 7px;
		border-radius: 22px;
	}

	.neuro-posts-pagination .wp-block-query-pagination-numbers {
		flex: 1 0 100%;
		flex-wrap: wrap;
		justify-content: center;
		box-sizing: border-box;
		padding: 2px 0 9px;
		border-bottom: 1px solid rgba(17, 17, 17, 0.08);
	}

	.neuro-posts-pagination .wp-block-query-pagination-previous,
	.neuro-posts-pagination .wp-block-query-pagination-next {
		flex: 0 1 auto;
		margin-top: 1px;
	}

	.neuro-post-card__meta .wp-block-post-author-name::before,
	.neuro-single-post-meta .wp-block-post-author-name::before {
		display: none;
	}

	.neuro-single-post-navigation {
		flex-direction: column;
	}

	.neuro-single-post-navigation .wp-block-post-navigation-link,
	.neuro-single-post-navigation a {
		width: 100%;
	}

	.neuro-single-post-navigation .wp-block-post-navigation-link:last-child {
		justify-content: flex-start;
		text-align: left;
	}
}

@media (prefers-reduced-motion: reduce) {

	.neuro-post-card,
	.neuro-post-card__image img,
	.neuro-post-card__excerpt .wp-block-post-excerpt__more-link::after,
	.neuro-posts-pagination a {
		transition: none;
	}
}
