/* =========================================================
   Betta Care — Homepage (templates/template-home.php only)
   ========================================================= */

/* Full-bleed wrapper: escapes the GP container no matter its settings.
   Works with or without the "Full Width" page option. */
.bc-home {
	background-color: var(--bc-bg-soft);
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

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

/* Remove default page chrome around the template */
.page-template-template-home .site-main {
	margin: 0;
}

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

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

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

.bc-section {
	padding: 56px 0;
}

.bc-section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	margin-bottom: 26px;
}

.bc-section-head .bc-section-sub {
	margin-bottom: 0;
}

/* =========================================================
   HERO
   ========================================================= */
.bc-hero {
	position: relative;
	background:
		radial-gradient(1100px 500px at 85% -10%, rgba(14, 116, 144, .45), transparent 60%),
		radial-gradient(900px 420px at -10% 110%, rgba(180, 31, 62, .35), transparent 55%),
		linear-gradient(150deg, #0c1d2c 0%, #122a3f 55%, #0a5b71 100%);
	color: #e9f1f6;
	padding: 64px 0 96px;
	overflow: hidden;
}

.bc-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: 48px;
	align-items: center;
}

.bc-hero__title {
	color: #fff;
	font-size: clamp(1.9rem, 4.2vw, 3rem);
	line-height: 1.15;
	margin-bottom: 18px;
}

.bc-hero__sub {
	font-size: clamp(1rem, 1.6vw, 1.15rem);
	color: #c8d9e3;
	max-width: 56ch;
	margin-bottom: 26px;
}

/* Hero search */
.bc-hero__search {
	display: flex;
	max-width: 480px;
	border-radius: 999px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
	margin-bottom: 22px;
	background-color: #fff;
}

.bc-hero__search input[type="search"] {
	flex: 1 1 auto;
	border: 0;
	border-radius: 0;
	padding: 14px 22px;
	font-size: 15.5px;
	min-width: 0;
}

.bc-hero__search input[type="search"]:focus {
	box-shadow: none;
}

.bc-hero__search button {
	border: 0;
	border-radius: 0;
	background-color: var(--bc-crimson);
	color: #fff;
	font-weight: 700;
	padding: 0 26px;
	cursor: pointer;
	transition: background-color var(--bc-transition);
}

.bc-hero__search button:hover {
	background-color: var(--bc-crimson-dark);
}

.bc-hero__actions {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	align-items: center;
}

.bc-hero__ghost {
	color: #cfe5ed;
}

.bc-hero__ghost:hover,
.bc-hero__ghost:focus {
	background-color: #fff;
	border-color: #fff;
	color: var(--bc-ink);
}

/* Hero featured card */
.bc-hero__featured {
	position: relative;
}

.bc-hero__badge {
	position: absolute;
	top: -14px;
	left: 18px;
	z-index: 2;
	background-color: var(--bc-crimson);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	border-radius: 999px;
	padding: 5px 14px;
	box-shadow: var(--bc-shadow-sm);
}

.bc-hero__featured .bc-card {
	border: 0;
	box-shadow: 0 22px 50px rgba(0, 0, 0, .35);
}

/* Wave divider into the page background */
.bc-hero__wave {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	color: var(--bc-bg-soft);
	line-height: 0;
}

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

/* =========================================================
   TOPIC HUBS
   ========================================================= */
.bc-hubs__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 18px;
}

.bc-hub {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 10px;
	background-color: #fff;
	border: 1px solid var(--bc-border);
	border-radius: var(--bc-radius);
	padding: 26px 16px 22px;
	text-decoration: none;
	box-shadow: var(--bc-shadow-sm);
	transition: box-shadow var(--bc-transition), transform var(--bc-transition), border-color var(--bc-transition);
}

.bc-hub:hover,
.bc-hub:focus {
	transform: translateY(-4px);
	box-shadow: var(--bc-shadow-hover);
	border-color: var(--bc-teal);
}

.bc-hub__icon {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background-color: var(--bc-teal-soft);
	transition: background-color var(--bc-transition);
}

.bc-hub__icon svg {
	width: 26px;
	height: 26px;
	fill: var(--bc-teal-dark);
	transition: fill var(--bc-transition);
}

.bc-hub:hover .bc-hub__icon {
	background-color: var(--bc-crimson);
}

.bc-hub:hover .bc-hub__icon svg {
	fill: #fff;
}

.bc-hub__name {
	font-weight: 800;
	color: var(--bc-ink);
	font-size: 15.5px;
	line-height: 1.3;
}

.bc-hub__count {
	font-size: 13px;
	color: var(--bc-ink-3);
}

/* =========================================================
   LATEST GUIDES & MOST READ
   ========================================================= */
.bc-popular {
	background-color: #fff;
	border-top: 1px solid var(--bc-border);
	border-bottom: 1px solid var(--bc-border);
}

.bc-latest__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
	gap: 26px;
}

/* =========================================================
   E-BOOK CTA
   ========================================================= */
.bc-ebook__panel {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
	align-items: center;
	gap: 24px;
	background:
		radial-gradient(700px 300px at 110% 120%, rgba(255, 255, 255, .12), transparent 60%),
		linear-gradient(135deg, var(--bc-crimson) 0%, #7e1430 100%);
	border-radius: calc(var(--bc-radius) + 6px);
	padding: 46px 48px;
	color: #fff;
	overflow: hidden;
	box-shadow: var(--bc-shadow);
}

.bc-ebook__text h2 {
	color: #fff;
	font-size: clamp(1.4rem, 2.8vw, 1.9rem);
	margin-bottom: 12px;
}

.bc-ebook__text p {
	color: #f6d9e0;
	max-width: 60ch;
	margin-bottom: 22px;
}

.bc-ebook__btn {
	background-color: #fff;
	color: var(--bc-crimson);
}

.bc-ebook__btn:hover,
.bc-ebook__btn:focus {
	background-color: var(--bc-ink);
	color: #fff;
}

.bc-ebook__art svg {
	width: 100%;
	max-width: 200px;
	fill: rgba(255, 255, 255, .18);
	display: block;
	margin: 0 auto;
	transform: scaleX(-1);
}

/* Optional page content below the sections */
.bc-page-content {
	padding-top: 0;
}

.bc-page-content .entry-content {
	background-color: #fff;
	border-radius: var(--bc-radius);
	border: 1px solid var(--bc-border);
	padding: 36px 40px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
	.bc-hero__grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.bc-hero {
		padding: 48px 0 84px;
	}

	.bc-hero__featured {
		max-width: 560px;
	}
}

@media (max-width: 640px) {
	.bc-section {
		padding: 40px 0;
	}

	.bc-container {
		padding: 0 18px;
	}

	.bc-hubs__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.bc-ebook__panel {
		grid-template-columns: 1fr;
		padding: 32px 26px;
		text-align: center;
	}

	.bc-ebook__art {
		display: none;
	}

	.bc-section-head {
		align-items: flex-start;
		flex-direction: column;
	}
}
