/**
 * Featured Guides — cream canvas, borderless arrows, left-edge scoop image.
 */

.afj-guides {
	--afj-bg: #f4f1ea;
	--afj-ink: #0a0a0a;
	--afj-muted: #5c5c5c;
	--afj-lime: #d4ff00;
	--afj-ease: cubic-bezier(0.22, 1, 0.36, 1);

	width: 100vw !important;
	max-width: 100vw !important;
	margin-top: 0 !important;
	margin-block-start: 0 !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	box-sizing: border-box;
	background: var(--afj-bg);
	color: var(--afj-ink);
	padding: clamp(3.75rem, 7vw, 6rem) 0 clamp(3rem, 5.5vw, 4.5rem);
	font-family: var(--afj-font-body, "Plus Jakarta Sans", system-ui, sans-serif);
	overflow: hidden;
}

.afj-guides__inner {
	width: min(1180px, calc(100% - 3.5rem));
	margin-inline: auto;
}

.afj-guides__clip-svg {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
}

.afj-guides__empty {
	margin: 0;
	color: var(--afj-muted);
}

.afj-guides__slide {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(280px, 440px);
	column-gap: clamp(2rem, 4.5vw, 3.75rem);
	align-items: start;
	animation: afj-guides-in 0.55s var(--afj-ease) both;
}

.afj-guides__slide[hidden] {
	display: none !important;
}

.afj-guides__content {
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.afj-guides__eyebrow {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	margin-bottom: 2.25rem;
}

.afj-guides__eyebrow-text {
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--afj-ink);
}

.afj-guides__eyebrow-line {
	display: block;
	height: 1px;
	width: min(120px, 22vw);
	background: var(--afj-ink);
	flex-shrink: 0;
	opacity: 0.85;
	transform-origin: left center;
	animation: afj-guides-line 0.8s var(--afj-ease) both;
}

.afj-guides__layout {
	display: grid;
	grid-template-columns: 2.75rem minmax(0, 1fr);
	column-gap: clamp(1.35rem, 2.8vw, 2.25rem);
	align-items: start;
}

.afj-guides__rail {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.65rem;
	padding-top: 0.2rem;
}

.afj-guides__index {
	font-size: 1.35rem;
	font-weight: 800;
	letter-spacing: 0.01em;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.afj-guides__index-line {
	display: block;
	width: 2.35rem;
	height: 1px;
	background: var(--afj-ink);
}

/* Plain chevrons — no circle / border */
.afj-guides__nav {
	display: flex;
	align-items: center;
	gap: 0.1rem;
	margin-top: 0.15rem;
}

.afj-guides__nav-btn {
	width: auto;
	height: auto;
	min-width: 1.65rem;
	min-height: 1.65rem;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--afj-ink);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0.15rem;
	transition: opacity 0.25s var(--afj-ease);
}

.afj-guides__nav-btn svg {
	width: 18px;
	height: 18px;
	display: block;
}

.afj-guides__nav-btn:hover:not(:disabled) {
	opacity: 0.5;
	background: transparent;
	color: var(--afj-ink);
	transform: none;
}

.afj-guides__nav-btn:disabled {
	opacity: 0.22;
	cursor: default;
}

.afj-guides__nav-btn:focus-visible {
	outline: 2px solid var(--afj-ink);
	outline-offset: 3px;
}

.afj-guides__copy {
	min-width: 0;
	padding-top: 0;
}

.afj-guides__title {
	margin: 0 0 1.1rem;
	font-family: var(--afj-font-heading, "Plus Jakarta Sans", system-ui, sans-serif);
	font-size: clamp(1.9rem, 3.8vw, 2.85rem);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.038em;
	max-width: 13.5em;
}

.afj-guides__title a {
	color: inherit;
	text-decoration: none;
}

.afj-guides__excerpt {
	margin: 0 0 1.85rem;
	font-size: 1.02rem;
	line-height: 1.55;
	color: var(--afj-muted);
	max-width: 36ch;
	font-weight: 400;
}

.afj-guides__cta {
	display: inline-flex !important;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: auto;
	max-width: none;
	padding: 0.95rem 1.5rem;
	border-radius: 999px;
	background: var(--afj-lime);
	color: var(--afj-ink);
	font-size: 0.95rem;
	font-weight: 700;
	text-decoration: none;
	line-height: 1.2;
	white-space: nowrap;
	box-sizing: border-box;
	transition:
		transform 0.3s var(--afj-ease),
		box-shadow 0.3s var(--afj-ease),
		gap 0.3s var(--afj-ease);
}

.afj-guides__cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
	gap: 0.7rem;
}

.afj-guides__cta-arrow {
	display: inline-flex;
	transition: transform 0.3s var(--afj-ease);
}

.afj-guides__cta:hover .afj-guides__cta-arrow {
	transform: translateX(3px);
}

/*
 * Image: large top-left quarter-curve (SVG #afj-guides-scoop),
 * soft rounding on the other corners.
 */
.afj-guides__media {
	position: relative;
	overflow: hidden;
	width: 100%;
	height: 340px;
	margin-top: 0;
	background: #e6e2d8;
	isolation: isolate;
	align-self: start;
	/* Fallback if SVG clip unavailable */
	border-top-left-radius: min(11rem, 52%);
	border-top-right-radius: 1.15rem;
	border-bottom-right-radius: 1.15rem;
	border-bottom-left-radius: 1.15rem;
	clip-path: url(#afj-guides-scoop);
}

.afj-guides__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	transition: transform 0.7s var(--afj-ease);
}

.afj-guides__img--placeholder {
	background: linear-gradient(145deg, #ddd8ce, #c8c2b6);
	height: 100%;
}

.afj-guides__slide:hover .afj-guides__img {
	transform: scale(1.04);
}

@keyframes afj-guides-line {
	from { transform: scaleX(0); opacity: 0; }
	to { transform: scaleX(1); opacity: 1; }
}

@keyframes afj-guides-in {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.afj-guides *,
	.afj-guides *::before,
	.afj-guides *::after {
		animation: none !important;
		transition-duration: 0.01ms !important;
	}
}

@media (max-width: 900px) {
	.afj-guides__slide {
		grid-template-columns: 1fr;
		row-gap: 1.75rem;
	}

	.afj-guides__media {
		order: -1;
		margin-top: 0;
		max-width: 420px;
		justify-self: start;
		height: 340px;
	}

	.afj-guides__title {
		max-width: 18ch;
	}

	.afj-guides__eyebrow-line {
		width: min(160px, 36vw);
	}
}

@media (max-width: 560px) {
	.afj-guides__inner {
		width: calc(100% - 2rem);
	}

	.afj-guides__layout {
		grid-template-columns: 1fr;
		row-gap: 1rem;
	}

	.afj-guides__rail {
		flex-direction: row;
		align-items: center;
		gap: 0.85rem;
		padding-top: 0;
	}

	.afj-guides__index-line {
		width: 1.25rem;
	}

	.afj-guides__nav {
		margin-top: 0;
		margin-left: auto;
	}

	.afj-guides__title {
		max-width: none;
		font-size: clamp(1.65rem, 8vw, 2.1rem);
	}

	.afj-guides__media {
		max-width: none;
		width: 100%;
	}
}
