.pdf-library-page {
	background: #f8f6fb url("../../img/book-pattern.png");
	min-height: 400px;
	padding: 48px 0;
}

.pdf-library-header {
	margin: 0 auto 34px;
	max-width: 920px;
	text-align: right;
}

.pdf-library-hero {
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 244, 255, 0.92) 55%, rgba(232, 255, 236, 0.72) 100%);
	border: 1px solid rgba(140, 74, 232, 0.14);
	border-radius: 24px;
	box-shadow: 0 18px 44px rgba(26, 5, 54, 0.1);
	overflow: hidden;
	padding: 34px 38px;
	position: relative;
}

.pdf-library-hero::after {
	background: rgba(140, 74, 232, 0.08);
	border-radius: 999px;
	content: "";
	height: 150px;
	left: -48px;
	position: absolute;
	top: -58px;
	width: 150px;
}

.pdf-library-hero-kicker {
	color: #8c4ae8;
	display: block;
	font-size: 13px;
	font-weight: bold;
	margin-bottom: 10px;
}

.pdf-library-header .h1 {
	color: #1a0536;
	font-size: 34px;
	font-weight: bold;
	margin: 0 0 12px;
}

.pdf-library-hero p {
	color: #5f5668;
	font-size: 15px;
	line-height: 2;
	margin: 0;
	max-width: 760px;
}

.pdf-library-intro {
	color: #666;
	font-size: 15px;
	line-height: 1.7;
	margin: 22px auto 0;
	max-width: 760px;
	text-align: center;
}

.pdf-library-level {
	margin-bottom: 30px;
}

.pdf-library-level-title {
	margin-bottom: 18px;
	text-align: center;
}

.pdf-library-level-title span {
	background: #fff;
	border: 1px solid rgba(140, 74, 232, 0.16);
	border-radius: 999px;
	box-shadow: 0 5px 14px rgba(64, 0, 149, 0.06);
	color: #400095;
	display: inline-block;
	font-size: 15px;
	font-weight: bold;
	padding: 7px 22px;
	position: relative;
}

.pdf-library-level-title span::after {
	background: linear-gradient(90deg, rgba(140, 74, 232, 0), rgba(140, 74, 232, 0.36), rgba(140, 74, 232, 0));
	border-radius: 999px;
	bottom: -9px;
	content: "";
	height: 2px;
	left: 50%;
	position: absolute;
	transform: translateX(-50%);
	width: 86px;
}

.pdf-library-grid {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 4px 10px 18px;
	scroll-behavior: smooth;
	scroll-padding-inline: 10px;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
}

.pdf-library-grid::-webkit-scrollbar {
	height: 7px;
}

.pdf-library-grid::-webkit-scrollbar-track {
	background: rgba(64, 0, 149, 0.07);
	border-radius: 30px;
}

.pdf-library-grid::-webkit-scrollbar-thumb {
	background: rgba(140, 74, 232, 0.34);
	border-radius: 30px;
}

.pdf-library-card {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 6px 18px rgba(26, 5, 54, 0.09);
	flex: 0 0 235px;
	overflow: hidden;
	scroll-snap-align: start;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pdf-library-card:hover {
	box-shadow: 0 10px 24px rgba(26, 5, 54, 0.14);
	transform: translateY(-3px);
}

.pdf-library-card-link {
	color: inherit;
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
}

.pdf-library-card-link:hover,
.pdf-library-card-link:focus {
	color: inherit;
	text-decoration: none;
}

.pdf-library-cover {
	background: linear-gradient(135deg, #1a0536 0%, #8c4ae8 100%);
	aspect-ratio: 3 / 4;
	border-radius: 8px 8px 5px 5px;
	box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.18);
	overflow: hidden;
	position: relative;
}

.pdf-library-pdf-mark {
	background: rgba(255, 255, 255, 0.76);
	border: 1px solid rgba(64, 0, 149, 0.08);
	border-radius: 999px;
	color: rgba(64, 0, 149, 0.72);
	font-size: 9px;
	font-weight: bold;
	letter-spacing: 0;
	line-height: 1;
	padding: 4px 6px;
	position: absolute;
	right: 8px;
    left: auto;
    top: 8px;
	z-index: 2;
}

.pdf-library-card.is-image-only .pdf-library-cover {
	border-radius: 8px;
}

.pdf-library-cover-img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.pdf-library-placeholder {
	align-items: center;
	color: #fff;
	display: flex;
	flex-direction: column;
	height: 100%;
	justify-content: center;
	padding: 12px;
	text-align: center;
}

.pdf-library-placeholder-icon {
	align-items: center;
	background: rgba(255, 255, 255, 0.14);
	border: 2px solid rgba(255, 255, 255, 0.28);
	border-radius: 50%;
	display: flex;
	font-size: 26px;
	height: 54px;
	justify-content: center;
	margin-bottom: 10px;
	width: 54px;
}

.pdf-library-card-body {
	display: flex;
	flex-direction: column;
	padding: 6px 10px 10px;
}

.pdf-library-card-title {
	color: #1a0536;
	display: -webkit-box;
	font-size: 13px;
	font-weight: bold;
	line-height: 1.45;
	margin: 0;
	min-height: 2.9em;
	overflow: hidden;
	text-overflow: ellipsis;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.pdf-library-card-description {
	color: #777;
	display: -webkit-box;
	font-size: 11px;
	line-height: 1.55;
	margin: 5px 0 0;
	overflow: hidden;
	text-overflow: ellipsis;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

@media (max-width: 1199px) {
	.pdf-library-card {
		flex-basis: 215px;
	}
}

@media (max-width: 991px) {
	.pdf-library-grid {
		gap: 12px;
	}

	.pdf-library-card {
		flex-basis: 190px;
	}
}

@media (max-width: 600px) {
	.pdf-library-page {
		padding: 34px 0;
	}

	.pdf-library-header {
		margin-bottom: 24px;
	}

	.pdf-library-hero {
		border-radius: 18px;
		padding: 26px 20px;
	}

	.pdf-library-header .h1 {
		font-size: 26px;
	}

	.pdf-library-hero p {
		font-size: 13px;
		line-height: 1.9;
	}

	.pdf-library-level {
		margin-bottom: 24px;
	}

	.pdf-library-level-title span {
		font-size: 13px;
		padding: 6px 18px;
	}

	.pdf-library-grid {
		gap: 10px;
		margin-left: -10px;
		margin-right: -10px;
		padding-left: 10px;
		padding-right: 10px;
		scroll-padding-inline: 10px;
	}

	.pdf-library-grid::-webkit-scrollbar {
		display: none;
	}

	.pdf-library-card {
		flex-basis: 160px;
	}

	.pdf-library-card-body {
		padding: 5px 8px 9px;
	}

	.pdf-library-card-title {
		font-size: 12px;
	}

	.pdf-library-card-description {
		font-size: 10px;
		margin-top: 4px;
	}
}

@media (max-width: 380px) {
	.pdf-library-grid {
		gap: 8px;
	}
}
