.afg-book-showcase {
	--afg-book-navy: #102a61;
	--afg-book-blue: #2b5ca8;
	--afg-book-gold: #e5a526;
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(circle at 9% 18%, rgba(229, 165, 38, .1), transparent 25%),
		linear-gradient(180deg, #fff 0%, #f4f7fc 100%) !important;
}

.afg-book-showcase *,
.afg-book-showcase *::before,
.afg-book-showcase *::after {
	box-sizing: border-box;
}

.afg-book-showcase .afg-section-head {
	align-items: center;
	margin-bottom: 30px;
}

.afg-book-showcase .afg-link-more {
	font-weight: 950;
}

.afg-book-showcase__intro {
	max-width: 670px;
	margin: 10px 0 0;
	color: #5b687d;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.9;
}

.afg-book-showcase__stage {
	position: relative;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 28px;
	background:
		radial-gradient(circle at 16% 12%, rgba(70, 122, 205, .42), transparent 34%),
		linear-gradient(125deg, #0a204e, #163b79 68%, #1e4d91);
	box-shadow: 0 34px 80px -54px rgba(8, 29, 70, .85);
}

.afg-book-showcase__stage::before,
.afg-book-showcase__stage::after {
	content: "";
	position: absolute;
	border: 1px solid rgba(255, 255, 255, .09);
	border-radius: 50%;
	pointer-events: none;
}

.afg-book-showcase__stage::before {
	top: -170px;
	left: -110px;
	width: 420px;
	height: 420px;
}

.afg-book-showcase__stage::after {
	right: 28%;
	bottom: -300px;
	width: 550px;
	height: 550px;
}

.afg-book-showcase__viewport {
	position: relative;
	z-index: 1;
	min-height: 430px;
}

.afg-book-showcase__slide {
	position: absolute;
	inset: 0;
	display: grid;
	grid-template-columns: minmax(320px, .9fr) minmax(0, 1.1fr);
	align-items: center;
	gap: clamp(36px, 6vw, 90px);
	min-height: 430px;
	padding: 42px clamp(40px, 6vw, 86px) 68px;
	opacity: 0;
	pointer-events: none;
	transform: translateX(-20px);
	transition: opacity .38s ease, transform .5s cubic-bezier(.16, 1, .3, 1);
}

.afg-book-showcase__slide.is-active {
	position: relative;
	opacity: 1;
	pointer-events: auto;
	transform: translateX(0);
}

.afg-book-showcase__cover {
	position: relative;
	display: grid;
	place-items: center;
	min-width: 0;
	padding: 24px;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 22px;
	background: rgba(255, 255, 255, .1);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 30px 60px -38px rgba(0, 0, 0, .8);
	backdrop-filter: blur(15px) saturate(130%);
	-webkit-backdrop-filter: blur(15px) saturate(130%);
}

.afg-book-showcase__cover img {
	display: block;
	width: 100%;
	max-width: 520px;
	height: 270px;
	border-radius: 12px;
	background: #f2f5fa;
	object-fit: contain;
	box-shadow: 0 24px 44px -28px rgba(0, 0, 0, .72);
}

.afg-book-showcase__edition {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 1;
	padding: 6px 10px;
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: 999px;
	background: rgba(7, 24, 57, .68);
	color: rgba(255, 255, 255, .88);
	font-size: 10px;
	font-weight: 850;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.afg-book-showcase__content {
	max-width: 560px;
	color: #fff;
}

.afg-book-showcase__meta {
	margin: 0 0 14px;
	color: #ffd478 !important;
	font-size: 12px !important;
	font-weight: 900 !important;
}

.afg-book-showcase__content h3 {
	margin: 0 0 16px;
	color: #fff;
	font-size: clamp(24px, 3vw, 39px);
	font-weight: 950;
	line-height: 1.55;
	text-wrap: balance;
}

.afg-book-showcase__content > p:not(.afg-book-showcase__meta) {
	max-width: 500px;
	margin: 0 0 25px;
	color: rgba(255, 255, 255, .74);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.9;
}

.afg-book-showcase__content > a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 18px;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 14px 34px -22px rgba(0, 0, 0, .8);
	color: var(--afg-book-navy) !important;
	font-size: 12px;
	font-weight: 900;
	text-decoration: none !important;
	transition: background-color .2s ease, transform .2s ease;
}

.afg-book-showcase__content > a:hover,
.afg-book-showcase__content > a:focus-visible {
	background: #fff5dd;
	transform: translateY(-2px);
}

.afg-book-showcase__controls {
	position: absolute;
	bottom: 20px;
	left: 50%;
	z-index: 4;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 5px;
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 999px;
	background: rgba(5, 20, 51, .4);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	transform: translateX(-50%);
}

.afg-book-showcase__controls button {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	cursor: pointer;
	transition: background-color .18s ease;
}

.afg-book-showcase__controls button:hover,
.afg-book-showcase__controls button:focus-visible {
	background: rgba(255, 255, 255, .24);
}

.afg-book-showcase__controls p {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 2px;
	min-width: 64px;
	margin: 0;
	color: rgba(255, 255, 255, .7);
	direction: ltr;
	font-size: 12px;
	font-weight: 800;
}

.afg-book-showcase__controls strong {
	color: #fff;
	font-size: 16px;
}

.afg-book-showcase__shelf {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	padding: 18px 4px 16px;
	scrollbar-color: #315b91 #e8edf5;
	scrollbar-width: thin;
	scrollbar-gutter: stable;
	scroll-snap-type: x proximity;
	overscroll-behavior-inline: contain;
	-webkit-overflow-scrolling: touch;
}

.afg-book-showcase__shelf::-webkit-scrollbar {
	height: 10px;
}

.afg-book-showcase__shelf::-webkit-scrollbar-track {
	border-radius: 999px;
	background: #e8edf5;
	box-shadow: inset 0 1px 2px rgba(16, 42, 97, .1);
}

.afg-book-showcase__shelf::-webkit-scrollbar-thumb {
	min-width: 54px;
	border: 2px solid #e8edf5;
	border-radius: 999px;
	background: linear-gradient(90deg, #173c78, #3b6ca8);
}

.afg-book-showcase__shelf::-webkit-scrollbar-thumb:hover {
	background: linear-gradient(90deg, #c78309, #e6a21a);
}

.afg-book-showcase__shelf::-webkit-scrollbar-button {
	display: none;
}

.afg-book-showcase__tab {
	display: grid;
	grid-template-columns: 68px minmax(0, 1fr);
	align-items: center;
	flex: 0 0 230px;
	gap: 12px;
	min-height: 86px;
	padding: 9px;
	border: 1px solid #dbe3ef;
	border-radius: 14px;
	background: rgba(255, 255, 255, .88);
	color: #223450;
	text-align: right;
	cursor: pointer;
	scroll-snap-align: start;
	transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.afg-book-showcase__tab:hover,
.afg-book-showcase__tab:focus-visible {
	border-color: rgba(43, 92, 168, .42);
	background: #fff;
}

.afg-book-showcase__tab.is-active {
	border-color: var(--afg-book-blue);
	background: #edf3fd;
	box-shadow: 0 10px 24px -20px rgba(16, 42, 97, .7);
}

.afg-book-showcase__tab img {
	display: block;
	width: 68px;
	height: 66px;
	border-radius: 9px;
	background: #eef2f8;
	object-fit: cover;
}

.afg-book-showcase__tab span {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	font-size: 11px;
	font-weight: 850;
	line-height: 1.75;
}

.afg-book-showcase :is(a, button):focus-visible {
	outline: 3px solid rgba(229, 165, 38, .72);
	outline-offset: 3px;
}

@media screen and (max-width: 900px) {
	.afg-book-showcase__slide {
		grid-template-columns: minmax(260px, .9fr) minmax(0, 1.1fr);
		gap: 30px;
		padding-inline: 36px;
	}

	.afg-book-showcase__cover img {
		height: 230px;
	}
}

@media screen and (max-width: 700px) {
	.afg-book-showcase .afg-section-head {
		align-items: stretch;
	}

	.afg-book-showcase .afg-link-more {
		align-self: flex-start;
	}

	.afg-book-showcase__viewport,
	.afg-book-showcase__slide {
		min-height: 0;
	}

	.afg-book-showcase__slide {
		grid-template-columns: 1fr;
		gap: 22px;
		padding: 22px 20px 84px;
	}

	.afg-book-showcase__cover {
		padding: 16px;
	}

	.afg-book-showcase__cover img {
		height: auto;
		max-height: 245px;
		aspect-ratio: 4 / 3;
	}

	.afg-book-showcase__content {
		max-width: none;
	}

	.afg-book-showcase__content h3 {
		font-size: 23px;
	}

	.afg-book-showcase__content > p:not(.afg-book-showcase__meta) {
		margin-bottom: 18px;
	}

	.afg-book-showcase__tab {
		grid-template-columns: 58px minmax(0, 1fr);
		flex-basis: 205px;
		min-height: 78px;
	}

	.afg-book-showcase__tab img {
		width: 58px;
		height: 58px;
	}
}

@media screen and (max-width: 420px) {
	.afg-book-showcase__stage {
		border-radius: 20px;
	}

	.afg-book-showcase__content h3 {
		font-size: 20px;
	}

	.afg-book-showcase__content > a {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.afg-book-showcase__slide,
	.afg-book-showcase__content > a,
	.afg-book-showcase__controls button,
	.afg-book-showcase__tab {
		transition: none !important;
	}

	.afg-book-showcase__shelf {
		scroll-behavior: auto !important;
	}
}
