/**
 * 9XO News & Blog landing page.
 * Loaded only on the News & Blog page when the blog module is enabled.
 * Design tokens mirror the About / Help Center pages: brand purple
 * #6c35e8 / #5222c4, lavender hero gradient, capsule buttons and chips,
 * white cards with soft shadows, unified capsule search.
 */

/* --------------------------------------------------------------------------
 * Neutralize Motta / child-theme page chrome (full-bleed module layout)
 * -------------------------------------------------------------------------- */

/* width:100% defeats Motta's fixed .container width so the hero band can
   bleed edge to edge (same neutralization the single-article CSS uses). */
.nxo-blog-landing-page .site-content > .container {
	width: 100%;
	max-width: none;
	padding-left: 0;
	padding-right: 0;
}

.nxo-blog-landing-page .content-area,
.nxo-blog-landing-page .site-main,
.nxo-blog-landing-page .hentry {
	margin: 0;
	padding: 0;
	max-width: none;
	width: 100%;
}

.nxo-blog-landing-page .entry-header,
.nxo-blog-landing-page .page-header {
	display: none !important;
}

.nxo-blog-landing-page .site-content {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

.nxo-blog-landing-page .entry-content {
	margin: 0;
}

.nxo-blog-landing-page .entry-content a {
	text-decoration: none;
}

/* --------------------------------------------------------------------------
 * Tokens
 * -------------------------------------------------------------------------- */

.nxo-blog {
	--nxo-blog-accent: #6c35e8;
	--nxo-blog-accent-dark: #5222c4;
	--nxo-blog-dark: #20212a;
	--nxo-blog-soft: #f3edff;
	--nxo-blog-soft-2: #eee9f7;
	--nxo-blog-text: #20212a;
	--nxo-blog-muted: #555765;
	--nxo-blog-border: #e9e6ef;
	--nxo-blog-surface: #ffffff;
	--nxo-blog-radius: 16px;
	--nxo-blog-shadow: 0 10px 30px rgba(30, 31, 40, 0.05);
	--nxo-blog-grad: linear-gradient(135deg, var(--nxo-blog-accent), var(--nxo-blog-accent-dark));
	--nxo-blog-btn-shadow: 0 12px 28px rgba(108, 53, 232, 0.25);
	color: var(--nxo-blog-text);
	background: #fff;
	line-height: 1.55;
}

.nxo-blog *,
.nxo-blog *::before,
.nxo-blog *::after {
	box-sizing: border-box;
}

.nxo-blog a:focus-visible,
.nxo-blog button:focus-visible,
.nxo-blog input:focus-visible {
	outline: 3px solid rgba(108, 53, 232, 0.45);
	outline-offset: 2px;
}

/* --------------------------------------------------------------------------
 * Hero band with organic curve
 * -------------------------------------------------------------------------- */

/* Gradient-only band (no imagery): brand-purple and soft-pink radial glows
   balance the right side over the lavender base, plus a white sheen top-left —
   same layered treatment as the Help Center hero. */
.nxo-blog-hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(620px 320px at 82% 24%, rgba(108, 53, 232, 0.12), transparent 70%),
		radial-gradient(480px 280px at 62% 88%, rgba(210, 92, 226, 0.1), transparent 70%),
		radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.9), transparent 32%),
		linear-gradient(135deg, #fbf8ff 0%, #eee9f7 48%, #e8dafd 100%);
}

.nxo-blog-hero__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: min(1180px, calc(100% - 40px));
	margin: 0 auto;
	padding: 34px 0 62px;
}

.nxo-blog-hero__content {
	flex: 0 1 620px;
	min-width: 0;
}

.nxo-blog-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-bottom: 16px;
	color: var(--nxo-blog-muted);
	font-size: 13px;
}

body.nxo-blog-landing-page .nxo-blog-breadcrumb a {
	color: var(--nxo-blog-accent-dark);
	text-decoration: none;
	transition: color 0.2s ease;
}

body.nxo-blog-landing-page .nxo-blog-breadcrumb a:hover {
	color: var(--nxo-blog-accent);
}

.nxo-blog-breadcrumb__current {
	color: var(--nxo-blog-dark);
	font-weight: 600;
}

.nxo-blog-hero__title {
	margin: 0 0 10px;
	font-size: clamp(32px, 3.8vw, 46px);
	font-weight: 800;
	letter-spacing: -1px;
	line-height: 1.05;
}

.nxo-blog-hero__title-a {
	color: var(--nxo-blog-dark);
}

.nxo-blog-hero__title-b {
	color: var(--nxo-blog-accent);
}

.nxo-blog-hero__subtitle {
	margin: 0 0 20px;
	max-width: 460px;
	color: var(--nxo-blog-muted);
	font-size: 15px;
	line-height: 1.7;
}

/* Unified site capsule search: 48px capsule, #e9e6ef border, gradient submit. */
.nxo-blog-search {
	position: relative;
	display: flex;
	align-items: center;
	max-width: 560px;
	padding: 4px 4px 4px 16px;
	border: 1px solid #e9e6ef;
	border-radius: 999px;
	background: var(--nxo-blog-surface);
	box-shadow: 0 10px 26px rgba(72, 42, 115, 0.1);
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.nxo-blog-search:focus-within {
	border-color: var(--nxo-blog-accent);
	box-shadow: 0 10px 26px rgba(72, 42, 115, 0.1), 0 0 0 3px rgba(108, 53, 232, 0.16);
}

.nxo-blog-search__icon {
	display: inline-flex;
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	color: var(--nxo-blog-muted);
}

.nxo-blog-search__icon svg {
	width: 100%;
	height: 100%;
}

/* Page-class prefix outranks Motta's global input styling. */
body.nxo-blog-landing-page .nxo-blog-search__field {
	flex: 1 1 auto;
	min-width: 0;
	height: 38px;
	min-height: 38px;
	padding: 0 12px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--nxo-blog-text);
	font-size: 14px;
	box-shadow: none;
	outline: none;
}

.nxo-blog-search__field::placeholder {
	color: #7a8090;
	opacity: 1;
}

.nxo-blog-search__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	height: 38px;
	min-height: 38px;
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	background: var(--nxo-blog-grad);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: none;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

body.nxo-blog-landing-page .nxo-blog-search__submit:hover {
	background: var(--nxo-blog-grad);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 8px 18px rgba(108, 53, 232, 0.3);
}

/* Rounded organic curve into the white content area. */
.nxo-blog-hero__curve {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	line-height: 0;
	pointer-events: none;
}

.nxo-blog-hero__curve svg {
	display: block;
	width: 100%;
	height: 44px;
}

/* --------------------------------------------------------------------------
 * Category filter chips
 * -------------------------------------------------------------------------- */

.nxo-blog-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	width: min(1180px, calc(100% - 40px));
	margin: 0 auto;
	padding: 18px 0 6px;
	scroll-margin-top: 110px;
}

body.nxo-blog-landing-page a.nxo-blog-chip {
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	padding: 7px 18px;
	border: 1px solid rgba(108, 53, 232, 0.28);
	border-radius: 999px;
	background: var(--nxo-blog-surface);
	color: var(--nxo-blog-accent-dark);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

body.nxo-blog-landing-page a.nxo-blog-chip:hover {
	border-color: var(--nxo-blog-accent);
	background: var(--nxo-blog-soft);
}

body.nxo-blog-landing-page a.nxo-blog-chip.is-active {
	border-color: transparent;
	background: var(--nxo-blog-soft-2);
	color: var(--nxo-blog-accent-dark);
	font-weight: 700;
}

/* --------------------------------------------------------------------------
 * Main layout: card grid + sidebar
 * -------------------------------------------------------------------------- */

.nxo-blog-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	align-items: start;
	gap: 24px;
	width: min(1180px, calc(100% - 40px));
	margin: 0 auto;
	padding: 18px 0 48px;
}

.nxo-blog-section-title {
	position: relative;
	margin: 0 0 18px;
	padding-left: 14px;
	color: var(--nxo-blog-dark);
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.4px;
}

.nxo-blog-section-title::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 4px;
	height: 20px;
	border-radius: 4px;
	background: var(--nxo-blog-grad);
}

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

/* Article cards. */

.nxo-blog-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--nxo-blog-border);
	border-radius: var(--nxo-blog-radius);
	background: var(--nxo-blog-surface);
	box-shadow: var(--nxo-blog-shadow);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nxo-blog-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 36px rgba(30, 31, 40, 0.1);
}

.nxo-blog-card__media {
	display: block;
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--nxo-blog-soft);
}

.nxo-blog-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.nxo-blog-card:hover .nxo-blog-card__media img {
	transform: scale(1.04);
}

.nxo-blog-card__body {
	position: relative;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	gap: 8px;
	padding: 20px 16px 16px;
}

.nxo-blog-card__badge {
	position: absolute;
	top: -13px;
	left: 14px;
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--nxo-blog-surface);
	border: 1px solid rgba(108, 53, 232, 0.25);
	color: var(--nxo-blog-accent);
	font-size: 11px;
	font-weight: 700;
	box-shadow: 0 4px 12px rgba(30, 31, 40, 0.08);
}

.nxo-blog-card__title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.2px;
}

body.nxo-blog-landing-page .nxo-blog-card__title a {
	color: var(--nxo-blog-dark);
	text-decoration: none;
	transition: color 0.2s ease;
}

body.nxo-blog-landing-page .nxo-blog-card__title a:hover {
	color: var(--nxo-blog-accent-dark);
}

.nxo-blog-card__excerpt {
	margin: 0;
	color: var(--nxo-blog-muted);
	font-size: 13px;
	line-height: 1.65;
}

.nxo-blog-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: auto 0 0;
	padding-top: 10px;
	border-top: 1px solid var(--nxo-blog-border);
	color: var(--nxo-blog-muted);
	font-size: 12px;
}

.nxo-blog-card__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.nxo-blog-card__meta-item svg {
	width: 14px;
	height: 14px;
}

/* Empty state. */

.nxo-blog-empty {
	padding: 40px 20px;
	border: 1px dashed var(--nxo-blog-border);
	border-radius: var(--nxo-blog-radius);
	text-align: center;
	color: var(--nxo-blog-muted);
}

.nxo-blog-empty p {
	margin: 0 0 16px;
}

/* Primary capsule button (shared). */

body.nxo-blog-landing-page a.nxo-blog-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 11px 22px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: var(--nxo-blog-grad);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	box-shadow: var(--nxo-blog-btn-shadow);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

body.nxo-blog-landing-page a.nxo-blog-btn:hover {
	transform: translateY(-2px);
	color: #fff;
}

/* Pagination — mirrors Motta's shop (.woocommerce-pagination) spec exactly:
   44px circles, current filled #1d2128 with white number, idle transparent
   with 2px #ecf0f4 border and #7c818b number (14px/500), 8px between circles,
   borderless shadowed chevron prev/next circles offset by 30px. */

.nxo-blog-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	margin-top: 28px;
}

.nxo-blog-pagination__page,
.nxo-blog-pagination__gap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0 4px;
	border-radius: 50%;
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
}

body.nxo-blog-landing-page a.nxo-blog-pagination__page {
	border: 2px solid #ecf0f4;
	background: transparent;
	color: #7c818b;
	text-decoration: none;
	transition: border-color 0.2s ease, color 0.2s ease;
}

body.nxo-blog-landing-page a.nxo-blog-pagination__page:hover {
	border-color: #1d2128;
	background: transparent;
	color: #1d2128;
}

.nxo-blog-pagination__page.is-current {
	border: 2px solid #1d2128;
	background: #1d2128;
	color: #fff;
}

/* Chevron prev/next: borderless white circles with the shop's soft shadow. */
body.nxo-blog-landing-page a.nxo-blog-pagination__nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0 4px;
	border: 0;
	border-radius: 100%;
	background: transparent;
	color: #7c818b;
	text-decoration: none;
	box-shadow: 0 2px 6px rgba(29, 33, 40, 0.16);
	transition: color 0.2s ease, box-shadow 0.2s ease;
}

body.nxo-blog-landing-page a.nxo-blog-pagination__nav--next {
	margin-left: 30px;
}

body.nxo-blog-landing-page a.nxo-blog-pagination__nav--prev {
	margin-right: 30px;
}

body.nxo-blog-landing-page a.nxo-blog-pagination__nav:hover {
	background: transparent;
	color: #1d2128;
	box-shadow: 0 4px 8px rgba(29, 33, 40, 0.16);
}

.nxo-blog-pagination__nav svg {
	width: 24px;
	height: 24px;
}

.nxo-blog-pagination__gap {
	width: auto;
	color: var(--nxo-blog-muted);
}

/* --------------------------------------------------------------------------
 * Sidebar
 * -------------------------------------------------------------------------- */

.nxo-blog-side {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.nxo-blog-card-box {
	padding: 20px 18px;
	border: 1px solid var(--nxo-blog-border);
	border-radius: var(--nxo-blog-radius);
	background: var(--nxo-blog-surface);
	box-shadow: var(--nxo-blog-shadow);
}

.nxo-blog-card-box__title {
	margin: 0 0 12px;
	color: var(--nxo-blog-dark);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
}

/* Popular topics. */

.nxo-blog-topics__list {
	display: flex;
	flex-direction: column;
	margin: 0 0 14px;
	padding: 0;
	list-style: none;
}

.nxo-blog-topics__list li {
	margin: 0;
	border-bottom: 1px solid var(--nxo-blog-border);
}

.nxo-blog-topics__list li:last-child {
	border-bottom: 0;
}

body.nxo-blog-landing-page a.nxo-blog-topics__link {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 52px;
	padding: 9px 4px;
	color: var(--nxo-blog-dark);
	text-decoration: none;
	border-radius: 10px;
	transition: background-color 140ms ease;
}

body.nxo-blog-landing-page a.nxo-blog-topics__link:hover {
	background: var(--nxo-blog-soft);
}

.nxo-blog-topics__icon {
	display: inline-flex;
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	padding: 7px;
	border-radius: 10px;
	background: var(--nxo-blog-soft);
	color: var(--nxo-blog-accent);
}

.nxo-blog-topics__icon svg {
	width: 100%;
	height: 100%;
}

.nxo-blog-topics__text {
	display: flex;
	flex-direction: column;
	gap: 1px;
	min-width: 0;
	flex: 1 1 auto;
}

.nxo-blog-topics__name {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
}

.nxo-blog-topics__link:hover .nxo-blog-topics__name {
	color: var(--nxo-blog-accent-dark);
}

.nxo-blog-topics__count {
	color: var(--nxo-blog-muted);
	font-size: 12px;
}

.nxo-blog-topics__arrow {
	display: inline-flex;
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	color: var(--nxo-blog-accent);
}

.nxo-blog-topics__arrow svg {
	width: 100%;
	height: 100%;
}

body.nxo-blog-landing-page a.nxo-blog-topics__all {
	width: 100%;
}

/* Popular tags. */

.nxo-blog-tags__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

body.nxo-blog-landing-page a.nxo-blog-tag {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: 5px 14px;
	border: 1px solid rgba(108, 53, 232, 0.28);
	border-radius: 999px;
	background: var(--nxo-blog-surface);
	color: var(--nxo-blog-accent-dark);
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

body.nxo-blog-landing-page a.nxo-blog-tag:hover {
	border-color: var(--nxo-blog-accent);
	background: var(--nxo-blog-soft);
}

/* --------------------------------------------------------------------------
 * Trust badges strip
 * -------------------------------------------------------------------------- */

.nxo-blog-trust {
	background: #fdf6ec;
}

.nxo-blog-trust__inner {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
	width: min(1180px, calc(100% - 40px));
	margin: 0 auto;
	padding: 26px 0;
}

.nxo-blog-trust__item {
	display: flex;
	align-items: center;
	gap: 14px;
}

.nxo-blog-trust__icon {
	display: inline-flex;
	flex: 0 0 auto;
	width: 46px;
	height: 46px;
	padding: 11px;
	border: 1.5px solid rgba(108, 53, 232, 0.4);
	border-radius: 50%;
	color: var(--nxo-blog-accent);
	background: #fff;
}

.nxo-blog-trust__icon svg {
	width: 100%;
	height: 100%;
}

.nxo-blog-trust__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.nxo-blog-trust__text strong {
	color: var(--nxo-blog-dark);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
}

.nxo-blog-trust__text span {
	color: var(--nxo-blog-muted);
	font-size: 12px;
	line-height: 1.5;
}

/* --------------------------------------------------------------------------
 * Responsive
 * -------------------------------------------------------------------------- */

@media (max-width: 1200px) {
	.nxo-blog-layout {
		grid-template-columns: minmax(0, 1fr) 300px;
		gap: 18px;
	}

	.nxo-blog-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 1024px) {
	.nxo-blog-layout {
		grid-template-columns: minmax(0, 1fr);
		width: min(1180px, calc(100% - 32px));
	}

	.nxo-blog-trust__inner {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.nxo-blog-hero__inner {
		width: min(100% - 28px, 1180px);
		padding: 18px 0 50px;
	}

	.nxo-blog-hero__title {
		font-size: 32px;
		letter-spacing: -0.5px;
	}

	.nxo-blog-search {
		max-width: none;
		flex-wrap: wrap;
		border-radius: 24px;
		padding: 8px;
	}

	body.nxo-blog-landing-page .nxo-blog-search__field {
		height: 44px;
		min-height: 44px;
		font-size: 14px;
	}

	.nxo-blog-search__submit {
		width: 100%;
		height: 44px;
		min-height: 44px;
	}

	.nxo-blog-cats {
		width: min(100% - 28px, 1180px);
		gap: 8px;
	}

	.nxo-blog-layout {
		width: min(100% - 28px, 1180px);
		padding-bottom: 36px;
	}

	.nxo-blog-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.nxo-blog-trust__inner {
		grid-template-columns: minmax(0, 1fr);
		width: min(100% - 28px, 1180px);
		gap: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nxo-blog-card,
	.nxo-blog-card__media img,
	.nxo-blog-search__submit,
	.nxo-blog-btn {
		transition: none;
	}
}
