/* =========================================================
   Betta Care — E-Books page (templates/template-ebooks.php)
   ========================================================= */

.bc-ebooks {
	background-color: var(--bc-bg-soft);
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.page-template-template-ebooks {
	overflow-x: clip;
}

.page-template-template-ebooks .site-main {
	margin: 0;
}

.page-template-template-ebooks .site-main > .bc-ebooks {
	margin-top: 0;
	margin-bottom: 0;
}

.page-template-template-ebooks .content-area {
	width: 100%;
}

.page-template-template-ebooks .entry-header {
	display: none;
}

.bc-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

/* Hero */
.bc-ebooks-hero {
	position: relative;
	background:
		radial-gradient(900px 420px at 90% -5%, rgba(14, 116, 144, .4), transparent 58%),
		radial-gradient(700px 360px at -5% 100%, rgba(180, 31, 62, .32), transparent 55%),
		linear-gradient(155deg, #0c1d2c 0%, #122a3f 58%, #0a5b71 100%);
	color: #e9f1f6;
	padding: 56px 0 88px;
	text-align: center;
}

.bc-ebooks-hero__eyebrow {
	display: inline-block;
	margin: 0 0 14px;
	padding: 6px 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .12);
	border: 1px solid rgba(255, 255, 255, .2);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #fff;
}

.bc-ebooks-hero__title {
	color: #fff;
	font-size: clamp(1.85rem, 4vw, 2.75rem);
	max-width: 18ch;
	margin: 0 auto 16px;
	line-height: 1.15;
}

.bc-ebooks-hero__sub {
	max-width: 62ch;
	margin: 0 auto 24px;
	font-size: clamp(1rem, 1.5vw, 1.12rem);
	color: #c8d9e3;
}

.bc-ebooks-hero__trust {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bc-ebooks-hero__trust li {
	position: relative;
	padding-left: 22px;
	font-size: 14.5px;
	font-weight: 600;
	color: #dce9f0;
}

.bc-ebooks-hero__trust li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .45em;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--bc-crimson);
	box-shadow: 0 0 0 3px rgba(180, 31, 62, .25);
}

.bc-ebooks-hero__wave {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	color: var(--bc-bg-soft);
	line-height: 0;
}

.bc-ebooks-hero__wave svg {
	display: block;
	width: 100%;
	height: 56px;
}

/* Product cards */
.bc-ebooks-products {
	padding: 48px 0 32px;
}

.bc-ebooks-products__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px;
}

.bc-ebook-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--bc-border);
	border-radius: var(--bc-radius);
	box-shadow: var(--bc-shadow);
	overflow: hidden;
	transition: box-shadow var(--bc-transition), transform var(--bc-transition);
}

.bc-ebook-card:hover {
	box-shadow: var(--bc-shadow-hover);
	transform: translateY(-3px);
}

.bc-ebook-card__cover {
	display: flex;
	justify-content: center;
	align-items: flex-end;
	padding: 28px 28px 0;
	background: linear-gradient(180deg, var(--bc-teal-soft) 0%, #fff 100%);
	text-decoration: none;
}

.bc-ebook-card__cover img {
	display: block;
	width: auto;
	max-width: 220px;
	height: auto;
	max-height: 320px;
	object-fit: contain;
	filter: drop-shadow(0 12px 24px rgba(18, 42, 63, .18));
	transition: transform var(--bc-transition);
}

.bc-ebook-card:hover .bc-ebook-card__cover img {
	transform: translateY(-4px) scale(1.02);
}

.bc-ebook-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 24px 28px 28px;
}

.bc-ebook-card__badge {
	display: inline-block;
	align-self: flex-start;
	margin-bottom: 10px;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--bc-crimson-soft);
	color: var(--bc-crimson-dark);
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .03em;
}

.bc-ebook-card__title {
	margin: 0 0 14px;
	font-size: clamp(1.2rem, 2vw, 1.45rem);
	line-height: 1.25;
}

.bc-ebook-card__title a {
	color: var(--bc-ink);
	text-decoration: none;
}

.bc-ebook-card__title a:hover,
.bc-ebook-card__title a:focus {
	color: var(--bc-crimson);
}

.bc-ebook-card__list {
	flex: 1 1 auto;
	margin: 0 0 22px;
	padding: 0;
	list-style: none;
}

.bc-ebook-card__list li {
	position: relative;
	padding-left: 1.35em;
	margin-bottom: .55em;
	font-size: 15.5px;
	line-height: 1.55;
	color: var(--bc-ink-2);
}

.bc-ebook-card__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .55em;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--bc-teal);
}

.bc-ebook-card__btn {
	align-self: flex-start;
	margin-top: auto;
}

/* Bundle */
.bc-ebooks-bundle {
	padding: 16px 0 64px;
}

.bc-ebooks-bundle__panel {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
	gap: 32px;
	align-items: center;
	padding: 36px 40px;
	border-radius: calc(var(--bc-radius) + 4px);
	background:
		linear-gradient(135deg, var(--bc-ink) 0%, #0a5b71 100%);
	color: #e9f1f6;
	box-shadow: var(--bc-shadow);
	overflow: hidden;
}

.bc-ebooks-bundle__label {
	display: inline-block;
	margin: 0 0 10px;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--bc-crimson);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .05em;
}

.bc-ebooks-bundle__title {
	margin: 0 0 12px;
	color: #fff;
	font-size: clamp(1.5rem, 3vw, 2rem);
}

.bc-ebooks-bundle__price {
	margin: 0 0 14px;
	font-size: 1.05rem;
	color: #c8d9e3;
}

.bc-ebooks-bundle__price strong {
	display: inline-block;
	margin-left: 6px;
	font-size: clamp(1.8rem, 3.5vw, 2.4rem);
	color: #fff;
	line-height: 1;
}

.bc-ebooks-bundle__note {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #f5c4cf;
}

.bc-ebooks-bundle__text {
	margin: 0 0 22px;
	max-width: 48ch;
	color: #c8d9e3;
	font-size: 16px;
	line-height: 1.6;
}

.bc-ebooks-bundle__btn {
	background: #fff;
	color: var(--bc-ink);
}

.bc-ebooks-bundle__btn:hover,
.bc-ebooks-bundle__btn:focus {
	background: var(--bc-crimson-soft);
	color: var(--bc-crimson-dark);
}

.bc-ebooks-bundle__visual {
	display: block;
	text-decoration: none;
}

.bc-ebooks-bundle__visual img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 560px;
	max-height: none;
	object-fit: contain;
	filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .4));
}

.bc-ebooks-extra {
	padding: 0 0 48px;
}

.bc-ebooks-extra .entry-content {
	max-width: 72ch;
	margin: 0 auto;
}

/* Responsive */
@media (max-width: 960px) {
	.bc-ebooks-products__grid {
		grid-template-columns: 1fr;
		max-width: 560px;
		margin: 0 auto;
	}

	.bc-ebooks-bundle__panel {
		grid-template-columns: 1fr;
		padding: 28px 24px;
		text-align: center;
	}

	.bc-ebooks-bundle__text {
		max-width: none;
		margin-left: auto;
		margin-right: auto;
	}

	.bc-ebooks-bundle__btn {
		align-self: center;
	}

	.bc-ebooks-bundle__visual {
		order: -1;
	}

	.bc-ebooks-bundle__visual img {
		max-width: min(92vw, 420px);
		margin: 0 auto;
	}
}

@media (max-width: 600px) {
	.bc-ebooks-hero {
		padding: 40px 0 72px;
	}

	.bc-ebooks-hero__trust {
		flex-direction: column;
		align-items: center;
		gap: 8px;
	}

	.bc-ebook-card__body {
		padding: 20px 20px 24px;
	}

	.bc-ebook-card__cover {
		padding: 20px 20px 0;
	}
}
