/*==========================================================
PAGES — Hero, Homepage, Archives, Single, CTA
==========================================================*/

/* —— Page hero (inner pages) —— */
.page-hero {
	padding: 4.5rem 0 3.5rem;
	background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
	color: #fff;
	text-align: center;
}

.page-hero .hero-content {
	max-width: 720px;
	margin: 0 auto;
}

.page-hero h1 {
	color: #fff;
	margin: 0.75rem 0 0.85rem;
}

.page-hero p {
	color: rgba(255, 255, 255, 0.88);
	font-size: 1.05rem;
	margin-bottom: 0;
}

.page-hero .section-tag {
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
}

.page-hero .hero-buttons {
	margin-top: 1.75rem;
	display: flex;
	justify-content: center;
	gap: 1rem;
	flex-wrap: wrap;
}

.page-hero .btn-outline {
	border-color: rgba(255, 255, 255, 0.7);
	color: #fff;
}

.page-hero .btn-outline:hover {
	background: #fff;
	color: var(--primary);
	border-color: #fff;
}

/* —— Home hero —— */
.hero {
	position: relative;
	padding: 5rem 0 4rem;
	overflow: hidden;
	background: linear-gradient(160deg, var(--primary-dark) 0%, #16233F 45%, #1F2E4E 100%);
	color: #fff;
}

.hero-circle {
	position: absolute;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.04);
	pointer-events: none;
}

.hero-circle.one {
	width: 420px;
	height: 420px;
	top: -120px;
	right: -80px;
}

.hero-circle.two {
	width: 280px;
	height: 280px;
	bottom: -60px;
	left: 8%;
}

.hero-circle.three {
	width: 160px;
	height: 160px;
	top: 40%;
	left: 45%;
}

.hero-wrapper {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 3.5rem;
	align-items: center;
	position: relative;
	z-index: 2;
}

.hero-content h1 {
	color: #fff;
	margin-bottom: 1.15rem;
	font-size: clamp(1.85rem, 4vw, 2.85rem);
}

.hero-content > p {
	color: rgba(255, 255, 255, 0.9);
	font-size: 1.08rem;
	max-width: 540px;
	margin-bottom: 0;
}

.hero-badge {
	display: inline-block;
	padding: 0.4rem 1rem;
	border-radius: var(--radius-pill);
	background: rgba(226, 167, 60, 0.14);
	color: var(--secondary);
	font-size: 0.85rem;
	font-weight: 600;
	margin-bottom: 1.25rem;
	letter-spacing: 0.02em;
}

.hero-buttons {
	display: flex;
	gap: 1rem;
	margin-top: 1.75rem;
	flex-wrap: wrap;
}

.hero .btn-outline {
	border-color: rgba(255, 255, 255, 0.65);
	color: #fff;
}

.hero .btn-outline:hover {
	background: #fff;
	color: var(--primary);
	border-color: #fff;
}

.scripture-box {
	margin-top: 2rem;
	padding: 1.15rem 1.35rem;
	background: linear-gradient(160deg, var(--secondary) 0%, var(--secondary-dark) 100%);
	border-left: none;
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-md);
	max-width: 480px;
}

.scripture-box p {
	color: #1A2338;
	font-style: italic;
	font-size: 1rem;
	margin-bottom: 0.35rem;
}

.scripture-box span {
	color: var(--link-accent, #2385E8);
	font-weight: 700;
	font-size: 0.88rem;
}

.hero-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
	margin-top: 2.25rem;
	max-width: 520px;
}

.hero-stat {
	text-align: center;
	padding: 0.85rem 0.5rem;
	background: rgba(255, 255, 255, 0.07);
	border-radius: var(--radius-sm);
}

.hero-stat h3 {
	color: var(--secondary);
	font-size: 1.35rem;
	margin: 0 0 0.2rem;
}

.hero-stat p {
	color: rgba(255, 255, 255, 0.75);
	font-size: 0.75rem;
	margin: 0;
	font-weight: 500;
}

.hero-image {
	position: relative;
}

.hero-image img {
	border-radius: 24px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	background: linear-gradient(145deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
}

/* —— Archive heroes with grid —— */
.hero.sermons-hero,
.hero.bible-study-hero,
.hero.devotion-hero,
.hero.articles-hero,
.hero.about-hero {
	padding: 4.5rem 0 3.5rem;
}

.hero-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	position: relative;
	z-index: 2;
}

.hero-grid .hero-content {
	max-width: 640px;
}

.hero-grid .hero-content h1 {
	color: #fff;
}

.hero-grid .hero-content p {
	color: rgba(255, 255, 255, 0.88);
}

/* —— Featured article block —— */
.featured-section {
	background: var(--background-alt);
}

.featured-article {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	align-items: stretch;
	background: var(--white);
	border-radius: 20px;
	overflow: hidden;
	box-shadow: var(--shadow-md);
	border: 1px solid var(--border);
}

.featured-content {
	padding: 2.5rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.featured-content h2 {
	margin: 0.75rem 0 1rem;
	font-size: 1.65rem;
}

.featured-content p {
	margin-bottom: 1.5rem;
}

.featured-article .image-hover,
.featured-article img {
	height: 100%;
	min-height: 280px;
	object-fit: cover;
}

.image-hover {
	overflow: hidden;
}

.image-hover img {
	transition: transform 0.5s ease;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.image-hover:hover img {
	transform: scale(1.05);
}

/* —— Stats —— */
.stats-section {
	background: var(--background-alt);
}

.stats-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
}

.stat-card {
	background: var(--white);
	border-radius: var(--radius);
	padding: 2rem 1.25rem;
	text-align: center;
	border: 1px solid var(--border);
	box-shadow: var(--shadow-sm);
	transition: transform var(--transition), box-shadow var(--transition);
}

.stat-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
}

.stat-card h3 {
	font-size: 2rem;
	color: var(--primary);
	margin: 0 0 0.35rem;
}

.stat-card p {
	margin: 0;
	font-weight: 600;
	color: var(--text-light);
	font-size: 0.9rem;
}

/* —— Join / CTA —— */
.join-ministry {
	padding: var(--space-2xl) 0;
	background: var(--background-alt);
}

.join-box {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 2.5rem;
	align-items: center;
	padding: 3rem;
	border-radius: 24px;
	background: linear-gradient(135deg, var(--primary), var(--primary-dark));
	color: #fff;
	box-shadow: var(--shadow-lg);
}

.join-box h2 {
	color: #fff;
	margin: 0.75rem 0 0.85rem;
}

.join-box p {
	color: rgba(255, 255, 255, 0.9);
	margin-bottom: 0;
}

.join-box .badge {
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
}

.join-buttons {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	align-items: stretch;
}

.join-buttons .btn {
	min-width: 180px;
	text-align: center;
}

.join-buttons .btn-outline {
	border-color: rgba(255, 255, 255, 0.6);
	color: #fff;
}

.join-buttons .btn-outline:hover {
	background: #fff;
	color: var(--primary);
}

.cta-section {
	padding: var(--space-2xl) 0;
	background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.cta-box {
	text-align: center;
	max-width: 640px;
	margin: 0 auto;
	color: #fff;
}

.cta-box h2 {
	color: #fff;
	margin-bottom: 0.85rem;
}

.cta-box p {
	color: rgba(255, 255, 255, 0.88);
	margin-bottom: 1.5rem;
}

.cta-box .btn-primary {
	background: #fff;
	color: var(--primary);
	border-color: #fff;
}

.cta-box .btn-primary:hover {
	background: var(--secondary-light);
	color: var(--primary-dark);
}

/* —— Single content —— */
.single-content {
	max-width: 720px;
	margin: 0 auto;
}

.single-content .featured-image {
	margin-bottom: 2rem;
	border-radius: var(--radius);
	overflow: hidden;
}

.single-content .featured-image img {
	width: 100%;
	border-radius: var(--radius);
}

.entry-content h2 {
	margin-top: 2rem;
	margin-bottom: 0.75rem;
}

.entry-content h3 {
	margin-top: 1.5rem;
}

.entry-content p {
	margin-bottom: 1.15rem;
}

.entry-content blockquote {
	padding: 1.25rem 1.5rem;
	background: var(--secondary-light);
	border-left: 4px solid var(--secondary);
	margin: 1.75rem 0;
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	font-size: 1.1rem;
	color: var(--heading);
}

.sermon-meta,
.devotion-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 1.5rem;
	margin-bottom: 1.5rem;
	font-size: 0.92rem;
	color: var(--text-light);
	font-weight: 500;
}

.devotion-navigation {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
	justify-content: center;
}

/* —— About —— */
.about-home .featured-image {
	margin-bottom: 2rem;
	border-radius: var(--radius);
	overflow: hidden;
	max-width: 720px;
	margin-left: auto;
	margin-right: auto;
}

/* —— 404 —— */
.error-page h1 {
	font-size: clamp(2.5rem, 6vw, 4rem);
}

/* —— Comments —— */
.comments-area {
	max-width: 720px;
	margin: 0 auto;
}

.comments-area h2 {
	margin-bottom: 1.5rem;
}

.comment-list {
	list-style: none;
	padding: 0;
	margin-bottom: 2rem;
}

.comment-body {
	padding: 1.25rem;
	background: var(--background-alt);
	border-radius: var(--radius-sm);
	margin-bottom: 1rem;
}


/* About page */
.about-layout {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: 3rem;
	align-items: start;
	max-width: 1000px;
	margin: 0 auto;
}

.about-photo-img {
	width: 100%;
	border-radius: 20px;
	object-fit: cover;
	aspect-ratio: 4/5;
	box-shadow: var(--shadow-md);
}

.about-body--full {
	grid-column: 1 / -1;
	max-width: 720px;
	margin: 0 auto;
}

.kbm-elementor-content {
	min-height: 40vh;
}

body.kbm-elementor-canvas .site-header,
body.kbm-elementor-canvas .top-bar,
body.kbm-elementor-canvas .site-footer,
body.kbm-elementor-canvas .back-to-top,
body.kbm-elementor-canvas .kbm-admin-fab {
	display: none !important;
}

@media (max-width: 768px) {
	.about-layout {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
	.about-photo-img {
		max-width: 320px;
		margin: 0 auto;
		aspect-ratio: 1;
	}
}


/* Single article — always readable on mobile */
.single-content,
.entry-content {
	color: var(--text, #334155);
	background: transparent;
	opacity: 1 !important;
	visibility: visible !important;
}

.section-padding {
	background: var(--background, #ffffff);
}

.entry-content p,
.entry-content li,
.entry-content td {
	color: var(--text, #334155);
	font-size: 1.05rem;
	line-height: 1.8;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
	color: var(--heading, #0F1C32);
}

.entry-content a {
	color: var(--primary, #0F4C81);
}

.sermon-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
	margin-bottom: 1.5rem;
	font-size: 0.9rem;
	color: var(--text-light, #64748b);
}

.featured-image {
	margin-bottom: 1.75rem;
	border-radius: var(--radius, 16px);
	overflow: hidden;
}

.featured-image img {
	width: 100%;
	height: auto;
	display: block;
}

/* Prevent pure black void under hero on mobile */
main#main-content {
	background: var(--background, #ffffff);
	min-height: 50vh;
}

body {
	background: var(--background, #ffffff);
	color: var(--text, #334155);
}

@media (max-width: 768px) {
	.page-hero {
		padding: 2.5rem 0 2rem;
	}
	.page-hero h1 {
		font-size: 1.45rem;
		line-height: 1.35;
	}
	.single-content {
		padding: 0;
		max-width: 100% !important;
	}
	.entry-content p {
		font-size: 1.02rem;
	}
	.section-padding {
		padding: 1.75rem 0 2.5rem;
	}
}
