.tam-yayinlari-books-carousel {
	--tam-books-ink: var(--tam-ink, #132235);
	--tam-books-muted: var(--tam-muted, #607080);
	--tam-books-line: var(--tam-line, #dce4ec);
	--tam-books-paper: var(--tam-paper, #ffffff);
	--tam-books-primary: var(--tam-primary, #104c81);
	--tam-books-secondary: var(--tam-secondary, #0c3b66);
	--tam-books-accent: var(--tam-accent, #b9323d);
	position: relative;
	overflow: hidden;
	padding: clamp(28px, 4vw, 46px) 0;
	border: 0;
	border-radius: 0;
	background:
		linear-gradient(90deg, rgba(16, 76, 129, 0.1), transparent 24%) 0 0 / 100% 1px no-repeat,
		linear-gradient(90deg, transparent, rgba(16, 76, 129, 0.1) 76%) 0 100% / 100% 1px no-repeat;
	color: var(--tam-books-ink);
	font-family: inherit;
	box-shadow: none;
}

.tam-yayinlari-books-carousel *,
.tam-yayinlari-books-carousel *::before,
.tam-yayinlari-books-carousel *::after {
	box-sizing: border-box;
}

.tam-yayinlari-books-carousel a {
	font-family: inherit;
	text-decoration: none;
}

.tam-yayinlari-books-carousel h2,
.tam-yayinlari-books-carousel h3,
.tam-yayinlari-books-carousel p,
.tam-yayinlari-books-carousel span,
.tam-yayinlari-books-carousel button {
	font-family: inherit;
}

.tam-yayinlari-books-carousel__head {
	position: relative;
	z-index: 1;
	display: flex;
	gap: 20px;
	align-items: flex-end;
	justify-content: space-between;
	margin-bottom: 26px;
}

.tam-yayinlari-books-carousel__copy {
	max-width: 760px;
}

.tam-yayinlari-books-carousel__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin-bottom: 10px;
	color: var(--tam-books-accent);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1;
	text-transform: uppercase;
}

.tam-yayinlari-books-carousel__eyebrow::before {
	content: "";
	width: 28px;
	height: 2px;
	background: currentColor;
}

.tam-yayinlari-books-carousel__title {
	margin: 0;
	color: var(--tam-books-ink);
	font-size: clamp(30px, 3.6vw, 50px);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.02;
}

.tam-yayinlari-books-carousel__copy p {
	margin: 12px 0 0;
	max-width: 640px;
	color: var(--tam-books-muted);
	font-size: 15px;
	line-height: 1.65;
}

.tam-yayinlari-books-carousel__tools {
	display: flex;
	flex: 0 0 auto;
	gap: 10px;
	align-items: center;
}

.tam-yayinlari-books-carousel__all {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid rgba(16, 76, 129, 0.16);
	border-radius: 999px;
	background: rgba(16, 76, 129, 0.06);
	color: var(--tam-books-primary);
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
	transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.tam-yayinlari-books-carousel__all:hover,
.tam-yayinlari-books-carousel__all:focus {
	border-color: var(--tam-books-primary);
	background: var(--tam-books-primary);
	color: #fff;
}

.tam-yayinlari-books-carousel__nav {
	display: inline-flex;
	gap: 7px;
}

.tam-yayinlari-books-carousel__nav button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid rgba(16, 76, 129, 0.16);
	border-radius: 999px;
	background: #fff;
	color: var(--tam-books-primary);
	font-size: 28px;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 10px 22px rgba(19, 34, 53, 0.08);
	transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.tam-yayinlari-books-carousel__nav button:hover,
.tam-yayinlari-books-carousel__nav button:focus {
	transform: translateY(-1px);
	border-color: var(--tam-books-primary);
	background: var(--tam-books-primary);
	color: #fff;
}

.tam-yayinlari-books-carousel__nav button:disabled {
	opacity: 0.38;
	cursor: default;
	pointer-events: none;
}

.tam-yayinlari-books-carousel__viewport {
	position: relative;
	margin-right: min(-24px, -2vw);
}

.tam-yayinlari-books-carousel__track {
	display: flex;
	gap: 18px;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 4px clamp(22px, 3vw, 34px) 18px 0;
	scroll-behavior: smooth;
	scroll-padding-left: 2px;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	scrollbar-color: rgba(16, 76, 129, 0.25) transparent;
}

.tam-yayinlari-books-carousel__track::-webkit-scrollbar {
	height: 8px;
}

.tam-yayinlari-books-carousel__track::-webkit-scrollbar-thumb {
	border-radius: 999px;
	background: rgba(16, 76, 129, 0.24);
}

.tam-yayinlari-books-carousel__track::-webkit-scrollbar-track {
	background: transparent;
}

.tam-yayinlari-books-card {
	flex: 0 0 clamp(232px, 22vw, 292px);
	display: flex;
	flex-direction: column;
	min-height: 100%;
	overflow: hidden;
	border: 1px solid rgba(16, 76, 129, 0.1);
	border-radius: 24px;
	background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
	box-shadow: 0 14px 34px rgba(19, 34, 53, 0.08);
	scroll-snap-align: start;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.tam-yayinlari-books-card:hover {
	transform: translateY(-4px);
	border-color: rgba(16, 76, 129, 0.32);
	box-shadow: 0 22px 42px rgba(19, 34, 53, 0.14);
}

.tam-yayinlari-books-card__cover {
	position: relative;
	display: block;
	overflow: hidden;
	margin: 16px 16px 0;
	border-radius: 16px;
	background:
		linear-gradient(90deg, rgba(19, 34, 53, 0.18), rgba(255, 255, 255, 0.02) 10%, transparent 18%),
		linear-gradient(135deg, #e8eef5, #f8fafc);
	box-shadow: 0 14px 26px rgba(19, 34, 53, 0.12);
}

.tam-yayinlari-books-card__cover::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	z-index: 2;
	width: 9px;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.2), rgba(255, 255, 255, 0.08));
	mix-blend-mode: multiply;
	opacity: 0.42;
	pointer-events: none;
}

.tam-yayinlari-books-card__cover img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 4.2;
	object-fit: cover;
	transform: scale(1.001);
	transition: transform 0.22s ease;
}

.tam-yayinlari-books-card:hover .tam-yayinlari-books-card__cover img {
	transform: scale(1.035);
}

.tam-yayinlari-books-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 16px;
}

.tam-yayinlari-books-card__meta {
	margin-bottom: 8px;
	color: var(--tam-books-accent);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
	line-height: 1.35;
	text-transform: uppercase;
}

.tam-yayinlari-books-card h3 {
	margin: 0;
	color: var(--tam-books-ink);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.25;
}

.tam-yayinlari-books-card h3 a {
	color: inherit;
}

.tam-yayinlari-books-card h3 a:hover,
.tam-yayinlari-books-card h3 a:focus {
	color: var(--tam-books-primary);
}

.tam-yayinlari-books-card p {
	margin: 9px 0 0;
	color: var(--tam-books-muted);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.45;
}

.tam-yayinlari-books-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: auto;
	padding-top: 16px;
}

.tam-yayinlari-books-card__actions a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 0 13px;
	border: 1px solid rgba(16, 76, 129, 0.16);
	border-radius: 999px;
	background: #fff;
	color: var(--tam-books-ink);
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.tam-yayinlari-books-card__actions a:first-child {
	border-color: var(--tam-books-primary);
	background: var(--tam-books-primary);
	color: #fff;
}

.tam-yayinlari-books-card__actions a:hover,
.tam-yayinlari-books-card__actions a:focus {
	border-color: var(--tam-books-secondary);
	background: var(--tam-books-secondary);
	color: #fff;
}

.tam-yayinlari-books-carousel--empty {
	padding: 18px;
	border-radius: 14px;
	background: #f7f9fc;
	color: var(--tam-books-muted);
}

@media (max-width: 767px) {
	.tam-yayinlari-books-carousel {
		padding: 24px 0;
	}

	.tam-yayinlari-books-carousel__head {
		align-items: flex-start;
		flex-direction: column;
	}

	.tam-yayinlari-books-carousel__tools {
		width: 100%;
		justify-content: space-between;
	}

	.tam-yayinlari-books-carousel__viewport {
		margin-right: -20px;
	}

	.tam-yayinlari-books-carousel__track {
		gap: 14px;
		padding-right: 20px;
	}

	.tam-yayinlari-books-card {
		flex-basis: min(78vw, 286px);
	}
}
