/**
 * Blog index, article cards, archives and search results.
 * The main Blog page uses a B2B resource-center layout; generic archives retain
 * the same card component without inheriting the full Blog hero.
 */

/* Shared archive grid and post card. */
.post-list {
	display: grid;
	padding: 60px 0 80px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 26px;
}

.post-card {
	display: flex;
	min-width: 0;
	overflow: hidden;
	flex-direction: column;
	border: 1px solid var(--color-line);
	border-radius: 18px;
	background: var(--color-white);
	box-shadow: 0 10px 30px rgba(11, 29, 58, .055);
	transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.post-card:hover {
	border-color: rgba(47, 125, 50, .42);
	box-shadow: 0 18px 42px rgba(11, 29, 58, .09);
	transform: translateY(-3px);
}

.post-card-image {
	display: block;
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f7f8f6;
}

.post-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-card-image--fallback {
	display: flex;
	padding: 28px;
	flex-direction: column;
	justify-content: flex-end;
	background:
		radial-gradient(circle at 84% 16%, rgba(93, 174, 85, .28), transparent 29%),
		linear-gradient(145deg, #0B1D3A 0%, #112C4E 58%, #204B45 100%);
	color: #fff;
}

.post-card-image--fallback::before,
.post-card-image--fallback::after {
	position: absolute;
	border: 1px solid rgba(255, 255, 255, .13);
	border-radius: 50%;
	content: "";
}

.post-card-image--fallback::before {
	top: -46px;
	right: -38px;
	width: 180px;
	height: 180px;
}

.post-card-image--fallback::after {
	top: -10px;
	right: 0;
	width: 104px;
	height: 104px;
}

.post-card-image--fallback span,
.post-card-image--fallback strong,
.post-card-image--fallback i {
	position: relative;
	z-index: 1;
}

.post-card-image--fallback span {
	margin-bottom: 10px;
	color: #9FDB8F;
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .13em;
}

.post-card-image--fallback strong {
	max-width: 280px;
	font-size: clamp(1.35rem, 2.1vw, 1.75rem);
	line-height: 1.16;
}

.post-card-image--fallback i {
	display: block;
	width: 52px;
	height: 2px;
	margin-top: 20px;
	background: #8DCE7D;
}

.post-card-body {
	display: flex;
	padding: 28px;
	flex: 1;
	flex-direction: column;
}

.post-card-category,
.ahm-blog-post-taxonomy {
	margin-bottom: 13px;
	color: var(--color-secondary-text);
	font-size: .75rem;
	font-weight: 800;
	letter-spacing: .09em;
	line-height: 1.4;
	text-transform: uppercase;
}

.post-card-category a,
.ahm-blog-post-taxonomy a {
	color: inherit;
}

.post-card h2,
.post-card h3 {
	margin: 0 0 13px;
	color: var(--color-primary);
	font-size: clamp(1.28rem, 1.65vw, 1.55rem);
	line-height: 1.28;
	letter-spacing: -.025em;
}

.post-card h2 a,
.post-card h3 a {
	color: inherit;
}

.post-card-excerpt {
	margin: 0;
	color: var(--color-muted);
	font-size: .94rem;
	line-height: 1.7;
}

.post-card-footer {
	display: flex;
	margin-top: auto;
	padding-top: 24px;
	align-items: flex-end;
	justify-content: space-between;
	gap: 18px;
}

.post-meta,
.ahm-blog-post-details {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 7px;
	color: var(--color-muted);
	font-size: .81rem;
	line-height: 1.45;
}

.post-card-footer .text-link {
	flex: 0 0 auto;
}

.post-card-footer .text-link,
.ahm-blog-featured-link {
	color: var(--color-secondary-text);
	font-weight: 780;
}

.post-card-footer .text-link:hover,
.post-card-footer .text-link:focus-visible,
.ahm-blog-featured-link:hover,
.ahm-blog-featured-link:focus-visible {
	color: #76B96A;
}

.pagination {
	padding-bottom: 70px;
}

.nav-links {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.page-numbers {
	display: inline-flex;
	min-width: 44px;
	min-height: 44px;
	padding: 7px 13px;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--color-line);
	border-radius: 10px;
	background: #fff;
	color: var(--color-primary);
	font-size: .9rem;
	font-weight: 700;
}

.page-numbers.current {
	border-color: var(--color-secondary);
	background: var(--color-secondary-strong);
	color: #fff;
}

/* Blog hero. */
.ahm-blog-index,
.ahm-blog-category {
	overflow-x: clip;
	background: #fff;
}

.ahm-blog-hero {
	position: relative;
	overflow: hidden;
	padding: clamp(64px, 6.8vw, 90px) 0 clamp(60px, 6vw, 82px);
	background:
		radial-gradient(circle at 94% 8%, rgba(93, 174, 85, .16), transparent 26%),
		linear-gradient(135deg, #F8FBF8 0%, #F2F7F3 56%, #EDF5EF 100%);
}

.ahm-blog-hero::before {
	position: absolute;
	top: -180px;
	right: -130px;
	width: 480px;
	height: 480px;
	border: 1px solid rgba(47, 125, 50, .12);
	border-radius: 50%;
	content: "";
}

.ahm-blog-hero > .container,
.ahm-blog-category-hero > .container {
	position: relative;
	z-index: 1;
}

.ahm-blog-hero-grid {
	display: grid;
	position: relative;
	grid-template-columns: minmax(0, 1.18fr) minmax(390px, .68fr);
	gap: clamp(52px, 6vw, 88px);
	align-items: center;
}

.ahm-blog-hero-copy h1 {
	max-width: 980px;
	margin: 0;
	color: var(--color-primary);
	font-size: clamp(3rem, 4.25vw, 4.3rem);
	line-height: 1.04;
	letter-spacing: -.05em;
}

.ahm-blog-hero-copy h1 span {
	display: block;
}

.ahm-blog-breadcrumbs {
	margin-bottom: 24px;
}

.ahm-blog-hero-intro {
	max-width: 760px;
	margin: 24px 0 0;
	color: var(--color-muted);
	font-size: clamp(1.04rem, 1.25vw, 1.18rem);
	line-height: 1.72;
}

.ahm-blog-hero-actions {
	display: flex;
	margin-top: 30px;
	flex-wrap: wrap;
	gap: 12px;
}

.ahm-blog-hero-panel {
	position: relative;
	overflow: hidden;
	padding: 32px;
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 22px;
	background: linear-gradient(150deg, #0B1D3A 0%, #102848 68%, #173E42 100%);
	box-shadow: 0 26px 66px rgba(11, 29, 58, .16);
	color: #fff;
}

.ahm-blog-panel-heading,
.ahm-blog-panel-list {
	position: relative;
	z-index: 1;
}

.ahm-blog-hero-panel .eyebrow {
	margin-bottom: 8px;
	color: #9FDB8F;
}

.ahm-blog-hero-panel h2 {
	max-width: 420px;
	margin: 0;
	color: #fff;
	font-size: clamp(1.6rem, 2vw, 2rem);
	line-height: 1.18;
	letter-spacing: -.035em;
}

.ahm-blog-panel-intro {
	max-width: 460px;
	margin: 14px 0 0;
	color: rgba(255, 255, 255, .7);
	font-size: .9rem;
	line-height: 1.65;
}

.ahm-blog-panel-list {
	display: grid;
	margin-top: 25px;
	border-top: 1px solid rgba(255, 255, 255, .12);
}

.ahm-blog-panel-item {
	display: grid;
	min-height: 66px;
	padding: 15px 0;
	grid-template-columns: 9px minmax(0, 1fr);
	gap: 14px;
	align-items: start;
	border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.ahm-blog-panel-dot {
	width: 7px;
	height: 7px;
	margin-top: 8px;
	border-radius: 50%;
	background: #8DCE7D;
	box-shadow: 0 0 0 4px rgba(141, 206, 125, .08);
}

.ahm-blog-panel-item strong,
.ahm-blog-panel-item small {
	display: block;
}

.ahm-blog-panel-item strong {
	color: rgba(255, 255, 255, .96);
	font-size: .93rem;
	line-height: 1.45;
}

.ahm-blog-panel-item small {
	margin-top: 4px;
	color: rgba(255, 255, 255, .62);
	font-size: .78rem;
	line-height: 1.48;
}

/* Shared Blog section heading. */
.ahm-blog-section-heading {
	max-width: 920px;
	margin-bottom: 42px;
}

.ahm-blog-section-heading h2 {
	max-width: 760px;
	margin: 0;
	color: var(--color-primary);
	font-size: clamp(2.25rem, 4vw, 3.65rem);
	line-height: 1.08;
	letter-spacing: -.045em;
}

.ahm-blog-section-description {
	max-width: 800px;
	margin: 17px 0 0;
	color: var(--color-muted);
	font-size: 1rem;
	line-height: 1.72;
}

.ahm-blog-section-heading--compact {
	margin-bottom: 36px;
}

.ahm-blog-section-heading--compact h2 {
	font-size: clamp(2.1rem, 3.6vw, 3.25rem);
}

/* Featured article. */
.ahm-blog-featured-section {
	padding: clamp(82px, 8vw, 118px) 0;
}

.ahm-blog-featured-card {
	display: grid;
	overflow: hidden;
	grid-template-columns: minmax(0, 1.12fr) minmax(430px, .88fr);
	border: 1px solid var(--color-line);
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 22px 62px rgba(11, 29, 58, .085);
}

.ahm-blog-featured-media {
	display: block;
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f7f8f6;
}

.ahm-blog-featured-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ahm-blog-featured-media--fallback {
	display: flex;
	padding: clamp(38px, 5vw, 66px);
	flex-direction: column;
	justify-content: flex-end;
	background:
		radial-gradient(circle at 82% 18%, rgba(141, 206, 125, .28), transparent 29%),
		linear-gradient(145deg, #0B1D3A 0%, #123050 57%, #1E514A 100%);
	color: #fff;
}

.ahm-blog-featured-media--fallback::before,
.ahm-blog-featured-media--fallback::after {
	position: absolute;
	border: 1px solid rgba(255, 255, 255, .13);
	border-radius: 50%;
	content: "";
}

.ahm-blog-featured-media--fallback::before {
	top: -90px;
	right: -70px;
	width: 340px;
	height: 340px;
}

.ahm-blog-featured-media--fallback::after {
	top: -20px;
	right: 12px;
	width: 190px;
	height: 190px;
}

.ahm-blog-fallback-kicker,
.ahm-blog-featured-media--fallback strong,
.ahm-blog-fallback-lines {
	position: relative;
	z-index: 1;
}

.ahm-blog-fallback-kicker {
	margin-bottom: 16px;
	color: #A5DD95;
	font-size: .78rem;
	font-weight: 820;
	letter-spacing: .13em;
	text-transform: uppercase;
}

.ahm-blog-featured-media--fallback strong {
	max-width: 500px;
	font-size: clamp(2.4rem, 4.8vw, 4.75rem);
	line-height: 1.02;
	letter-spacing: -.05em;
}

.ahm-blog-fallback-lines {
	display: block;
	width: min(62%, 340px);
	height: 34px;
	margin-top: 34px;
	border-top: 2px solid #8DCE7D;
	border-bottom: 1px solid rgba(255, 255, 255, .25);
}

.ahm-blog-featured-body {
	display: flex;
	padding: clamp(38px, 5vw, 66px);
	flex-direction: column;
	justify-content: center;
}

.ahm-blog-featured-body h3 {
	margin: 0;
	color: var(--color-primary);
	font-size: clamp(2rem, 3.2vw, 3.25rem);
	line-height: 1.08;
	letter-spacing: -.045em;
}

.ahm-blog-featured-body h3 a {
	color: inherit;
}

.ahm-blog-featured-excerpt {
	margin: 24px 0 0;
	color: var(--color-muted);
	font-size: 1.02rem;
	line-height: 1.75;
}

.ahm-blog-featured-body .ahm-blog-post-details {
	margin-top: 26px;
}

.ahm-blog-featured-link {
	margin-top: 28px;
}

/* Latest articles. */
.ahm-blog-latest-section {
	padding: clamp(78px, 7vw, 108px) 0;
	background: var(--color-surface);
}

.ahm-blog-post-grid {
	padding: 0;
}

.ahm-blog-pagination {
	padding: 42px 0 0;
}

.ahm-blog-pagination:empty {
	display: none;
}

.ahm-blog-empty-section {
	padding: 96px 0;
}

.ahm-blog-empty-card {
	max-width: 900px;
	padding: clamp(38px, 5vw, 64px);
	border: 1px solid var(--color-line);
	border-radius: 24px;
	background: var(--color-surface);
}

.ahm-blog-empty-card h2 {
	margin: 0;
	font-size: clamp(2rem, 3.6vw, 3.2rem);
	line-height: 1.1;
}

.ahm-blog-empty-card > p:not(.eyebrow) {
	max-width: 680px;
	margin: 20px 0 28px;
	color: var(--color-muted);
	line-height: 1.72;
}

/* Curated Blog category archives. */
.ahm-blog-category-hero {
	position: relative;
	overflow: hidden;
	padding: clamp(68px, 7vw, 96px) 0;
	background:
		radial-gradient(circle at 92% 12%, rgba(93, 174, 85, .13), transparent 28%),
		linear-gradient(135deg, #F8FBF8 0%, #F1F7F3 100%);
}

.ahm-blog-category-hero::after {
	position: absolute;
	right: -120px;
	bottom: -190px;
	width: 420px;
	height: 420px;
	border: 1px solid rgba(47, 125, 50, .11);
	border-radius: 50%;
	content: "";
}

.ahm-blog-category-hero-grid {
	display: grid;
	position: relative;
	z-index: 1;
	grid-template-columns: minmax(0, 1.08fr) minmax(360px, .7fr);
	gap: clamp(52px, 6vw, 86px);
	align-items: center;
}

.ahm-blog-category-copy h1 {
	max-width: 820px;
	margin: 0;
	color: var(--color-primary);
	font-size: clamp(3rem, 5vw, 4.85rem);
	line-height: 1.03;
	letter-spacing: -.052em;
}

.ahm-blog-category-copy > p:not(.eyebrow) {
	max-width: 790px;
	margin: 24px 0 0;
	color: var(--color-muted);
	font-size: clamp(1.04rem, 1.3vw, 1.18rem);
	line-height: 1.72;
}

.ahm-blog-category-back {
	margin-top: 28px;
	color: var(--color-secondary-text);
	font-weight: 780;
	transition: color .2s ease;
}

.ahm-blog-category-back:hover,
.ahm-blog-category-back:focus-visible {
	color: #78B968;
}

.ahm-blog-category-focus {
	position: relative;
	overflow: hidden;
	padding: 32px;
	border-radius: 22px;
	background: linear-gradient(150deg, #0B1D3A 0%, #112A4A 72%, #173E42 100%);
	box-shadow: 0 24px 62px rgba(11, 29, 58, .15);
	color: #fff;
}

.ahm-blog-category-focus > * {
	position: relative;
	z-index: 1;
}

.ahm-blog-category-focus .eyebrow {
	color: #9FDB8F;
}

.ahm-blog-category-focus h2 {
	margin: 0;
	color: #fff;
	font-size: clamp(1.55rem, 2vw, 2rem);
	line-height: 1.2;
	letter-spacing: -.035em;
}

.ahm-blog-category-focus-list {
	display: grid;
	margin-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, .12);
}

.ahm-blog-category-focus-list div {
	display: grid;
	min-height: 58px;
	padding: 15px 0;
	grid-template-columns: 8px minmax(0, 1fr);
	gap: 13px;
	align-items: center;
	border-bottom: 1px solid rgba(255, 255, 255, .12);
	color: rgba(255, 255, 255, .86);
	font-size: .9rem;
	font-weight: 650;
	line-height: 1.5;
}

.ahm-blog-category-focus-list div span {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #8DCE7D;
}

.ahm-blog-category-articles {
	padding: clamp(78px, 7vw, 108px) 0;
	background: var(--color-surface);
}

.ahm-blog-category-empty {
	display: flex;
	min-height: 280px;
	padding: clamp(34px, 4vw, 52px);
	align-items: center;
	justify-content: space-between;
	gap: 42px;
	border: 1px solid var(--color-line);
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 14px 38px rgba(11, 29, 58, .055);
}

.ahm-blog-category-empty h3 {
	max-width: 760px;
	margin: 0;
	color: var(--color-primary);
	font-size: clamp(2rem, 3.5vw, 3.25rem);
	line-height: 1.08;
	letter-spacing: -.042em;
}

.ahm-blog-category-empty p:not(.eyebrow) {
	max-width: 760px;
	margin: 18px 0 0;
	color: var(--color-muted);
	line-height: 1.72;
}

.ahm-blog-category-empty .button {
	flex: 0 0 auto;
}

/* Blog conversion CTA. */
.ahm-blog-cta-section {
	padding: clamp(78px, 8vw, 116px) 0;
	background: #fff;
}

.ahm-blog-cta-card {
	display: grid;
	position: relative;
	overflow: hidden;
	padding: clamp(42px, 5vw, 68px);
	grid-template-columns: minmax(0, 1fr) minmax(280px, .38fr);
	gap: 70px;
	align-items: center;
	border-radius: 24px;
	background: linear-gradient(140deg, #0B1D3A 0%, #122849 68%, #173B42 100%);
	box-shadow: 0 24px 64px rgba(11, 29, 58, .14);
	color: #fff;
}

.ahm-blog-cta-card::after {
	position: absolute;
	right: -110px;
	bottom: -150px;
	width: 360px;
	height: 360px;
	border: 1px solid rgba(141, 206, 125, .17);
	border-radius: 50%;
	content: "";
}

.ahm-blog-cta-copy,
.ahm-blog-cta-actions {
	position: relative;
	z-index: 1;
}

.ahm-blog-cta-card .eyebrow {
	color: #9FDB8F;
}

.ahm-blog-cta-card h2 {
	max-width: 850px;
	margin: 0;
	color: #fff;
	font-size: clamp(2.25rem, 4vw, 3.8rem);
	line-height: 1.06;
	letter-spacing: -.045em;
}

.ahm-blog-cta-card p:not(.eyebrow) {
	max-width: 820px;
	margin: 22px 0 0;
	color: rgba(255, 255, 255, .8);
	font-size: 1rem;
	line-height: 1.72;
}

.ahm-blog-cta-points {
	display: flex;
	margin-top: 26px;
	flex-wrap: wrap;
	gap: 18px 28px;
}

.ahm-blog-cta-points span {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	color: rgba(255, 255, 255, .9);
	font-size: .82rem;
	font-weight: 700;
}

.ahm-blog-cta-points span::before {
	color: #9FDB8F;
	content: "✓";
}

.ahm-blog-cta-actions {
	display: grid;
	gap: 12px;
}

.ahm-blog-cta-actions .button {
	width: 100%;
}

.ahm-blog-cta-actions .button--outline {
	border-color: rgba(255, 255, 255, .45);
	color: #fff;
}

.ahm-blog-cta-actions .button--outline:hover {
	border-color: #fff;
	background: #fff;
	color: var(--color-primary);
}

@media (max-width: 1180px) {
	.ahm-blog-hero-grid,
	.ahm-blog-category-hero-grid {
		grid-template-columns: minmax(0, 1fr) minmax(350px, .75fr);
		gap: 46px;
	}

	.ahm-blog-featured-card {
		grid-template-columns: minmax(0, 1fr) minmax(380px, .86fr);
	}

	.post-card-footer {
		align-items: flex-start;
		flex-direction: column;
		gap: 14px;
	}
}

@media (max-width: 980px) {
	.ahm-blog-hero-grid,
	.ahm-blog-category-hero-grid,
	.ahm-blog-featured-card,
	.ahm-blog-cta-card {
		grid-template-columns: 1fr;
	}

	.ahm-blog-hero-panel,
	.ahm-blog-category-focus {
		max-width: 720px;
	}

	.ahm-blog-featured-media {
		min-height: 0;
	}

	.ahm-blog-cta-card {
		gap: 36px;
	}

	.ahm-blog-cta-actions {
		max-width: 440px;
	}

	.ahm-blog-category-empty {
		align-items: flex-start;
		flex-direction: column;
	}

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

@media (max-width: 767px) {
	.ahm-blog-hero {
		padding: 54px 0 62px;
	}

	.ahm-blog-hero-grid {
		gap: 36px;
	}

	.ahm-blog-hero-copy h1 {
		font-size: clamp(2.55rem, 12vw, 3.55rem);
	}

	.ahm-blog-hero-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.ahm-blog-hero-actions .button {
		width: 100%;
	}

	.ahm-blog-hero-panel {
		padding: 26px;
		border-radius: 20px;
	}

	.ahm-blog-panel-item {
		min-height: 60px;
		padding: 14px 0;
	}

	.ahm-blog-panel-item strong {
		font-size: .9rem;
	}

	.ahm-blog-panel-item small {
		font-size: .76rem;
	}

	.ahm-blog-featured-section,
	.ahm-blog-latest-section,
	.ahm-blog-category-articles,
	.ahm-blog-cta-section {
		padding: 66px 0;
	}

	.ahm-blog-category-hero {
		padding: 56px 0 62px;
	}

	.ahm-blog-category-hero-grid {
		gap: 34px;
	}

	.ahm-blog-category-copy h1 {
		font-size: clamp(2.55rem, 12vw, 3.6rem);
	}

	.ahm-blog-category-focus {
		padding: 26px;
		border-radius: 20px;
	}

	.ahm-blog-section-heading {
		margin-bottom: 30px;
	}

	.ahm-blog-featured-card {
		border-radius: 18px;
	}

	.ahm-blog-featured-media {
		aspect-ratio: 4 / 3;
	}

	.ahm-blog-featured-body {
		padding: 30px 24px 34px;
	}

	.ahm-blog-featured-body h3 {
		font-size: clamp(1.75rem, 8vw, 2.35rem);
	}

	.ahm-blog-fallback-lines {
		margin-top: 24px;
	}

	.post-list {
		padding: 42px 0 64px;
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.ahm-blog-post-grid {
		padding: 0;
	}

	.post-card-body {
		padding: 24px;
	}

	.ahm-blog-category-empty {
		min-height: 0;
		padding: 30px 24px;
		border-radius: 18px;
		gap: 28px;
	}

	.ahm-blog-category-empty .button {
		width: 100%;
	}

	.ahm-blog-cta-card {
		padding: 34px 24px;
		border-radius: 18px;
	}

	.ahm-blog-cta-points {
		align-items: flex-start;
		flex-direction: column;
		gap: 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.post-card,
	.post-card-image img,
	.ahm-blog-featured-media img {
		transition: none;
	}
}
