/**
 * Styles for the custom front-page.php template (Zainab Blogs homepage).
 * Scoped under .zb-front-page so nothing leaks into the rest of the theme.
 */
.zb-front-page {
	--zb-rose: #c47b7b;
	--zb-rose-pale: #c47b7b18;
	--zb-rose-light: #c47b7b55;
	--zb-cream: #fdf8f5;
	--zb-warm-white: #fff7f4;
	--zb-border: #f0ddd6;
	--zb-text-dark: #3d2f2f;
	--zb-text-mid: #7a6060;
	--zb-text-soft: #b09090;
	--zb-serif: 'Playfair Display', serif;
	--zb-sans: 'Lato', sans-serif;
	font-family: var(--zb-sans);
	font-weight: 300;
	color: var(--zb-text-dark);
	background: var(--zb-cream);
	font-size: 15px;
	line-height: 1.7;
}

.zb-front-page a {
	text-decoration: none;
	color: inherit;
}

.zb-front-page img {
	display: block;
	max-width: 100%;
}

/* Hero */
.zb-hero {
	position: relative;
	left: 50%;
	right: 50%;
	width: 100vw;
	margin-left: -50vw;
	margin-right: -50vw;
	padding: 90px 40px 80px;
	text-align: center;
	overflow: hidden;
	min-height: 460px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.zb-hero-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
}

.zb-hero-inner {
	position: relative;
	z-index: 1;
	max-width: 680px;
	margin: 0 auto;
}

.zb-hero-eyebrow {
	display: block;
	font-size: 11px;
	letter-spacing: 3.5px;
	text-transform: uppercase;
	color: var(--zb-rose);
	margin-bottom: 18px;
}

.zb-hero-title {
	font-family: var(--zb-serif);
	font-size: 52px;
	font-weight: 400;
	color: var(--zb-text-dark);
	line-height: 1.2;
	margin-bottom: 18px;
}

.zb-hero-title em {
	font-style: italic;
	color: var(--zb-rose);
}

.zb-hero-text {
	font-size: 16px;
	color: var(--zb-text-mid);
	max-width: 460px;
	margin: 0 auto 32px;
}

.zb-btn-primary {
	display: inline-block;
	padding: 14px 36px;
	background: var(--zb-rose);
	color: #fff;
	border-radius: 50px;
	font-size: 12px;
	letter-spacing: 2px;
	text-transform: uppercase;
	transition: background 0.2s;
}

.zb-btn-primary:hover {
	background: #b06868;
	color: #fff;
}

.zb-btn-outline {
	display: inline-block;
	padding: 13px 30px;
	border: 1.5px solid var(--zb-rose);
	color: var(--zb-rose);
	border-radius: 50px;
	font-size: 12px;
	letter-spacing: 2px;
	text-transform: uppercase;
	margin-left: 12px;
	transition: all 0.2s;
}

.zb-btn-outline:hover {
	background: var(--zb-rose);
	color: #fff;
}

/* Categories bar */
.zb-categories-bar {
	position: relative;
	left: 50%;
	right: 50%;
	width: 100vw;
	margin-left: -50vw;
	margin-right: -50vw;
	background: #fff;
	border-top: 1px solid var(--zb-border);
	border-bottom: 1px solid var(--zb-border);
	padding: 0 40px;
}

.zb-categories-inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	gap: 6px;
	overflow-x: auto;
	padding: 16px 0;
	scrollbar-width: none;
}

.zb-categories-inner::-webkit-scrollbar {
	display: none;
}

.zb-cat-pill {
	flex-shrink: 0;
	padding: 8px 22px;
	border-radius: 50px;
	font-size: 12px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	border: 1px solid var(--zb-border);
	white-space: nowrap;
	transition: all 0.2s;
	color: var(--zb-text-soft);
	background: #fff;
}

.zb-cat-pill:hover {
	border-color: var(--zb-rose);
	color: var(--zb-rose);
}

.zb-cat-pill--active {
	background: var(--zb-rose);
	color: #fff;
	border-color: var(--zb-rose);
}

/* Main content */
.zb-main-wrap {
	padding: 48px 0;
}

.zb-section-label {
	font-size: 11px;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--zb-rose);
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.zb-section-label::after {
	content: '';
	flex: 1;
	height: 1px;
	background: var(--zb-border);
}

.zb-featured-card {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	background: #fff;
	border-radius: 24px;
	overflow: hidden;
	border: 1px solid var(--zb-border);
	margin-bottom: 56px;
}

.zb-featured-image {
	position: relative;
	background: linear-gradient(160deg, #fce4ec, #e1bee7, #f8bbd0);
	min-height: 380px;
	overflow: hidden;
}

.zb-featured-image img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.zb-featured-body {
	padding: 48px 44px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.zb-post-category {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	color: var(--zb-rose);
	margin-bottom: 12px;
}

.zb-featured-body h2 {
	font-family: var(--zb-serif);
	font-size: 28px;
	font-weight: 400;
	color: var(--zb-text-dark);
	line-height: 1.35;
	margin-bottom: 14px;
}

.zb-featured-body h2 a {
	color: inherit;
}

.zb-post-meta {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	font-size: 12px;
	color: var(--zb-text-soft);
	margin-bottom: 16px;
}

.zb-featured-body p {
	font-size: 14px;
	color: var(--zb-text-mid);
	line-height: 1.85;
	margin-bottom: 24px;
}

.zb-read-more-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--zb-rose);
}

.zb-content-sidebar {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 48px;
	align-items: start;
}

.zb-posts-section-title {
	font-family: var(--zb-serif);
	font-size: 26px;
	font-weight: 400;
	color: var(--zb-text-dark);
	margin-bottom: 24px;
	display: flex;
	align-items: center;
	gap: 14px;
}

.zb-posts-section-title::after {
	content: '';
	flex: 1;
	height: 1px;
	background: var(--zb-border);
}

.zb-post-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
	margin-bottom: 40px;
}

.zb-post-card {
	background: #fff;
	border-radius: 18px;
	overflow: hidden;
	border: 1px solid var(--zb-border);
	transition: transform 0.25s, box-shadow 0.25s;
	display: block;
}

.zb-post-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(196, 123, 123, 0.12);
}

.zb-post-card-img {
	position: relative;
	height: 200px;
	overflow: hidden;
	background: linear-gradient(135deg, #fce4ec, #f8bbd0);
}

.zb-post-card-img img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.zb-post-card-body {
	padding: 20px 22px 22px;
}

.zb-post-card-body .zb-post-category {
	margin-bottom: 8px;
}

.zb-post-card-body h3 {
	font-family: var(--zb-serif);
	font-size: 17px;
	font-weight: 400;
	color: var(--zb-text-dark);
	line-height: 1.45;
	margin-bottom: 10px;
}

.zb-post-card-body p {
	font-size: 13px;
	color: var(--zb-text-mid);
	line-height: 1.75;
	margin-bottom: 14px;
}

.zb-post-card-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 14px;
	border-top: 1px solid var(--zb-border);
}

.zb-post-card-footer .zb-date {
	font-size: 11px;
	color: var(--zb-text-soft);
}

.zb-post-card-footer .zb-read {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: var(--zb-rose);
}

.zb-load-more-wrap {
	text-align: center;
	padding-top: 8px;
}

/* Sidebar */
.zb-sidebar {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.zb-sidebar-widget {
	background: #fff;
	border-radius: 18px;
	border: 1px solid var(--zb-border);
	padding: 24px;
}

.zb-widget-title {
	font-family: var(--zb-serif);
	font-size: 18px;
	font-weight: 400;
	color: var(--zb-text-dark);
	margin-bottom: 18px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--zb-border);
}

.zb-about-widget {
	text-align: center;
}

.zb-about-avatar {
	width: 90px;
	height: 90px;
	border-radius: 50%;
	background: linear-gradient(135deg, #fce4ec, #e1bee7);
	overflow: hidden;
	margin: 0 auto 14px;
}

.zb-about-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.zb-about-widget h4 {
	font-family: var(--zb-serif);
	font-size: 18px;
	font-weight: 400;
	color: var(--zb-text-dark);
	margin-bottom: 6px;
}

.zb-about-widget p {
	font-size: 13px;
	color: var(--zb-text-mid);
	line-height: 1.7;
	margin-bottom: 16px;
}

.zb-social-links {
	display: flex;
	justify-content: center;
	gap: 10px;
}

.zb-social-link {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--zb-rose-pale);
	border: 1px solid var(--zb-rose-light);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 10px;
	letter-spacing: 0.5px;
	color: var(--zb-rose);
}

.zb-popular-post {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 12px 0;
	border-bottom: 1px solid var(--zb-border);
}

.zb-popular-post:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.zb-popular-post:first-child {
	padding-top: 0;
}

.zb-popular-thumb {
	width: 56px;
	height: 56px;
	border-radius: 10px;
	flex-shrink: 0;
	overflow: hidden;
	background: linear-gradient(135deg, #fce4ec, #f8bbd0);
}

.zb-popular-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.zb-popular-post-info h5 {
	font-family: var(--zb-serif);
	font-size: 13px;
	font-weight: 400;
	color: var(--zb-text-dark);
	line-height: 1.4;
	margin-bottom: 4px;
}

.zb-popular-post-info h5 a {
	color: var(--zb-text-dark);
}

.zb-popular-post-info h5 a:hover {
	color: var(--zb-rose);
}

.zb-popular-post-info span {
	font-size: 11px;
	color: var(--zb-text-soft);
}

.zb-tag-cloud {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.zb-tag {
	padding: 5px 14px;
	background: var(--zb-cream);
	border: 1px solid var(--zb-border);
	border-radius: 50px;
	font-size: 11px;
	color: var(--zb-text-mid);
	letter-spacing: 1px;
	text-transform: uppercase;
	transition: all 0.15s;
}

.zb-tag:hover {
	background: var(--zb-rose);
	color: #fff;
	border-color: var(--zb-rose);
}

@media (max-width: 1024px) {
	.zb-content-sidebar {
		grid-template-columns: 1fr;
	}

	.zb-sidebar {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.zb-hero-title {
		font-size: 34px;
	}

	.zb-hero {
		padding: 60px 20px;
	}

	.zb-featured-card {
		grid-template-columns: 1fr;
	}

	.zb-featured-image {
		min-height: 240px;
	}

	.zb-post-grid {
		grid-template-columns: 1fr;
	}

	.zb-sidebar {
		grid-template-columns: 1fr;
	}

	.zb-categories-bar {
		padding-left: 20px;
		padding-right: 20px;
	}
}

@media (max-width: 480px) {
	.zb-btn-outline {
		margin-left: 0;
		margin-top: 12px;
		display: block;
	}
}
