/* ===== LIBRARY PAGE ===== */

/* --- Page Banner --- */
.page-banner {
	position: relative;
	background: linear-gradient(125deg, var(--color-primary-bg) 0%, #4a1614 100%);
	padding: 120px 0 64px;
	color: #fff;
	overflow: hidden;
}

.page-banner::before {
	content: "";
	position: absolute;
	top: -48%;
	right: -8%;
	width: 520px;
	height: 520px;
	border-radius: 50%;
	background: radial-gradient(
		circle,
		rgba(244, 197, 66, 0.2) 0%,
		transparent 70%
	);
}

.page-banner::after {
	content: "";
	position: absolute;
	left: -6%;
	bottom: -42%;
	width: 360px;
	height: 360px;
	border-radius: 50%;
	background: radial-gradient(
		circle,
		rgba(255, 255, 255, 0.12) 0%,
		transparent 70%
	);
}

.banner-content {
	position: relative;
	z-index: 1;
}

.banner-content h1 {
	font-size: clamp(32px, 5vw, 52px);
	font-weight: 800;
	margin: 12px 0 14px;
	line-height: 1.15;
}

.banner-tagline {
	font-size: clamp(16px, 2.2vw, 22px);
	max-width: 760px;
	opacity: 0.94;
}

/* --- Breadcrumb --- */
.breadcrumb-list {
	gap: 8px;
	flex-wrap: wrap;
	font-size: 14px;
}

.breadcrumb-list li {
	display: flex;
	align-items: center;
	gap: 8px;
}

.breadcrumb-list li + li::before {
	content: "/";
	opacity: 0.55;
}

.breadcrumb-list li a {
	color: rgba(255, 255, 255, 0.8);
	transition: color 0.2s ease;
}

.breadcrumb-list li a:hover {
	color: var(--color-cta-bg);
}

.breadcrumb-list li.active span {
	color: #fff;
	font-weight: 600;
}

/* --- Overview --- */
.library-overview {
	background: linear-gradient(180deg, #fff 0%, #fff7f2 100%);
}

.library-overview-grid {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 34px;
	align-items: center;
}

.library-overview-text p {
	color: #555;
	line-height: 1.75;
	margin-bottom: 16px;
}

.library-highlights-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 22px;
}

.library-highlight-chip {
	background: rgba(139, 46, 43, 0.13);
	color: var(--color-primary-bg);
	padding: 8px 14px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
}

.library-visual-panel {
	display: grid;
	gap: 14px;
}

.visual-main {
	position: relative;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 18px 30px rgba(0, 0, 0, 0.16);
	min-height: 280px;
}

.visual-main img,
.visual-mini-grid img,
.library-service-media img,
.support-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.visual-badge {
	position: absolute;
	left: 14px;
	bottom: 14px;
	background: linear-gradient(135deg, #f4c542 0%, #e0a825 100%);
	color: #221f1f;
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	border-radius: 999px;
	padding: 8px 14px;
}

.visual-mini-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.visual-mini-grid img {
	border-radius: 14px;
	height: 150px;
}

/* --- Resources --- */
.library-resource-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px;
}

.library-resource-card {
	background: #fff;
	border-radius: 16px;
	border: 1px solid #e9dfda;
	overflow: hidden;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
	transition:
		transform 0.25s ease,
		box-shadow 0.25s ease;
}

.library-resource-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.library-resource-card figure {
	margin: 0;
	height: 180px;
	overflow: hidden;
}

.library-resource-card figure img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.library-resource-card:hover figure img {
	transform: scale(1.06);
}

.resource-body {
	padding: 20px;
}

.resource-body h3 {
	font-size: 21px;
	color: var(--color-primary-bg);
	margin-bottom: 10px;
}

.resource-body p {
	color: #585858;
	line-height: 1.64;
}

/* --- Services --- */
.library-service-wrap {
	display: grid;
	grid-template-columns: 0.95fr 1.05fr;
	background: #fff;
	border: 1px solid #ebe2dc;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

.library-service-media {
	min-height: 100%;
}

.library-service-content {
	padding: 26px;
}

.library-service-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
}

.library-service-block {
	background: #fff7f2;
	border: 1px solid #efdfd7;
	border-radius: 14px;
	padding: 22px;
}

.library-service-block ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 11px;
}

.library-service-block li {
	position: relative;
	padding-left: 24px;
	color: #585858;
	line-height: 1.6;
}

.library-service-block li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 9px;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: var(--color-primary-bg);
}

/* --- Support --- */
.library-support-shell {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
	background: linear-gradient(120deg, #8b2e2b 0%, #6f201d 100%);
	padding: 18px;
	border-radius: 16px;
}

.support-card,
.support-photo {
	background: #fff;
	border-radius: 14px;
	min-height: 220px;
}

.support-card {
	padding: 22px;
}

.support-card h3 {
	color: var(--color-primary-bg);
	font-size: 22px;
	margin-bottom: 12px;
}

.support-card p {
	color: #565656;
	line-height: 1.7;
	margin-bottom: 8px;
}

.library-link {
	display: inline-block;
	margin-top: 8px;
	color: var(--color-primary-bg);
	font-weight: 700;
	text-decoration: underline;
}

.library-link:hover {
	color: #68201e;
}

.support-photo {
	overflow: hidden;
}

/* --- CTA Section --- */
.overview-cta {
	background: linear-gradient(135deg, var(--color-primary-bg) 0%, #5c1a18 100%);
	padding: 60px 0;
}

.overview-cta .cta-content {
	gap: 30px;
}

.overview-cta .cta-text h2 {
	font-size: clamp(24px, 3.5vw, 36px);
	font-weight: 800;
	color: #fff;
	margin-bottom: 10px;
}

.overview-cta .cta-text p {
	font-size: 17px;
	color: rgba(255, 255, 255, 0.85);
	max-width: 550px;
	line-height: 1.6;
}

.overview-cta .cta-actions {
	gap: 16px;
	flex-shrink: 0;
}

.overview-cta .cta-btn.apply {
	display: inline-block;
	padding: 14px 36px;
	background: linear-gradient(90deg, #f7c948 0%, #e3a617 100%);
	color: #222;
	font-weight: 700;
	border: none;
	box-shadow: 0 2px 12px rgba(247, 201, 72, 0.15);
	border-radius: 8px;
	font-size: 16px;
	letter-spacing: 0.5px;
	transition:
		background 0.2s,
		box-shadow 0.2s,
		color 0.2s;
	text-transform: uppercase;
}

.overview-cta .cta-btn.apply:hover {
	background: linear-gradient(90deg, #e3a617 0%, #f7c948 100%);
	color: #000;
	box-shadow: 0 4px 18px rgba(247, 201, 72, 0.22);
}

.overview-cta .cta-btn-outline {
	display: inline-block;
	padding: 14px 36px;
	background: transparent;
	color: #fff;
	border: 2px solid rgba(255, 255, 255, 0.5);
	border-radius: 50px;
	font-weight: 600;
	font-size: 16px;
	text-decoration: none;
	transition: all 0.3s ease;
}

.overview-cta .cta-btn-outline:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: #fff;
}

/* --- Gallery --- */
.library-gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.gallery-item {
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
	aspect-ratio: 4/3;
	transition:
		transform 0.3s ease,
		box-shadow 0.3s ease;
}

.gallery-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.gallery-item:hover img {
	transform: scale(1.06);
}

/* --- Responsive --- */
@media (max-width: 1100px) {
	.library-overview-grid,
	.library-service-wrap,
	.library-support-shell,
	.library-gallery-grid {
		grid-template-columns: 1fr 1fr;
	}

	.library-service-media {
		height: 280px;
	}

	.support-card,
	.support-photo {
		min-height: auto;
	}

	.support-photo {
		height: 260px;
	}
}

@media (max-width: 768px) {
	.page-banner {
		padding: 100px 0 52px;
	}

	.library-resource-grid,
	.visual-mini-grid,
	.library-gallery-grid {
		grid-template-columns: 1fr;
	}

	.visual-mini-grid img {
		height: 180px;
	}

	.library-resource-card figure {
		height: 200px;
	}

	.library-service-content,
	.library-service-block,
	.support-card {
		padding: 18px;
	}

	.overview-cta .cta-content {
		flex-direction: column;
		text-align: center;
	}

	.overview-cta .cta-text p {
		margin: 0 auto;
	}

	.overview-cta .cta-actions {
		justify-content: center;
	}
}
