/* ==========================================================
   E-Books Page — Figma node 666:21731
   Reuses .hero/.accounts-hero/.hero-wrapper-* from accounts.css
   ========================================================== */

.ebooks-hero.accounts-hero {
	height: 500px;
	position: relative;
	overflow: hidden;
}

.ebooks-hero .hero-wrapper-right {
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ebooks-hero-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

.ebooks-hero-bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

.ebooks-hero .hero-wrapper,
.ebooks-hero .container {
	position: relative;
	z-index: 1;
}

.ebooks-hero .hero-wrapper-right img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* ── Widget section ──────────────────────────────────────── */
.ebooks-widget-section {
	padding: 40px 0 80px;
	background: #ffffff;
}

.ebooks-tabs {
	display: flex;
	gap: 12px;
	margin-bottom: 24px;
	flex-wrap: wrap;
}

.ebooks-tab {
	font-family: "Outfit", sans-serif;
	font-size: 16px;
	font-weight: 700;
	color: #f8f9fa;
	background: #142333;
	border: none;
	border-radius: 999px;
	padding: 14px 28px;
	cursor: pointer;
	transition: background .2s ease, color .2s ease, transform .15s ease;
}

.ebooks-tab:hover {
	transform: translateY(-1px);
}

.ebooks-tab.is-active {
	background: #5dbea8;
	color: #0c151f;
}

.ebooks-viewer-box {
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid #e4e4e7;
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}

.ebooks-viewer-fallback {
	background: #142333;
	color: #f8f9fa;
	font-family: "Outfit", sans-serif;
	font-size: 14px;
	text-align: center;
	padding: 14px 20px;
}

.ebooks-viewer-fallback-link {
	color: #ff7522;
	text-decoration: underline;
	font-weight: 600;
}

.ebooks-viewer-frame {
	display: block;
	width: 100%;
	height: 900px;
	border: none;
	background: #e4e4e7;
}

@media (max-width: 767px) {
	.ebooks-hero-bg {
		display: none;
	}

	.ebooks-hero.accounts-hero {
		height: auto;
	}

	.ebooks-hero .hero-wrapper-right {
		height: auto;
		display: block;
	}

	.ebooks-hero .hero-wrapper-right img {
		position: static;
	}

	.ebooks-widget-section {
		padding: 24px 0 48px;
	}

	.ebooks-tabs {
		gap: 8px;
	}

	.ebooks-tab {
		font-size: 14px;
		padding: 10px 18px;
	}

	.ebooks-viewer-frame {
		height: 600px;
	}
}
