/* ================================================================
   Maranatha SC — Standard Page Template
   ================================================================ */

/* Elementor pages: remove WordPress wrapper margin */
.elementor-page {
	margin: 0;
	padding: 0;
}

/* ── Hero ────────────────────────────────────────────────────────── */
.pg-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 340px;
	background: #0f1117;
}

.pg-hero--image {
	background-image: var( --pg-bg );
	background-size: cover;
	background-position: center;
	min-height: 420px;
}

.pg-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba( 0,0,0,0.2 ) 0%,
		rgba( 0,0,0,0.7 ) 55%,
		rgba( 0,0,0,0.88 ) 100%
	);
}

.pg-hero::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	width: 4px;
	height: 100%;
	background: var(--color-accent,#c8102e);
	z-index: 2;
}

.pg-hero__inner {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 900px;
	margin: 0 auto;
	padding: 5rem 1.5rem 3rem;
}

/* Breadcrumb */
.pg-breadcrumb {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: rgba( 255,255,255,0.45 );
	margin-bottom: 1rem;
}

.pg-breadcrumb a {
	color: rgba( 255,255,255,0.5 );
	text-decoration: none;
	transition: color 0.2s;
}

.pg-breadcrumb a:hover { color: #fff; }

.pg-breadcrumb svg { opacity: 0.35; flex-shrink: 0; }

.pg-hero__title {
	font-size: clamp( 2rem, 5vw, 3.25rem );
	font-weight: 900;
	color: #fff;
	line-height: 1.1;
	margin: 0 0 0.75rem;
	letter-spacing: -0.01em;
}

.pg-hero__excerpt {
	font-size: 1.05rem;
	color: rgba( 255,255,255,0.65 );
	line-height: 1.7;
	margin: 0;
	max-width: 580px;
}

/* ── Body ────────────────────────────────────────────────────────── */
.pg-body {
	background: #f5f5f7;
	padding: 3rem 1.5rem 5rem;
}

.pg-body__inner {
	max-width: 900px;
	margin: 0 auto;
}

/* ── Article ─────────────────────────────────────────────────────── */
.pg-article {
	background: #fff;
	border-radius: 12px;
	padding: 3rem 3.5rem;
	box-shadow: 0 2px 20px rgba( 0,0,0,0.06 );
}

/* Content typography */
.pg-article__content {
	font-size: 1.0625rem;
	line-height: 1.85;
	color: #2d2d2d;
}

.pg-article__content > *:first-child { margin-top: 0; }
.pg-article__content > *:last-child  { margin-bottom: 0; }

.pg-article__content p {
	margin: 0 0 1.5rem;
}

.pg-article__content h2 {
	font-size: 1.6rem;
	font-weight: 900;
	color: #111;
	margin: 2.75rem 0 1rem;
	padding-top: 1.25rem;
	border-top: 2px solid #f0f0f0;
	line-height: 1.2;
}

.pg-article__content h3 {
	font-size: 1.25rem;
	font-weight: 800;
	color: #111;
	margin: 2rem 0 0.75rem;
	line-height: 1.3;
}

.pg-article__content h4 {
	font-size: 1.05rem;
	font-weight: 700;
	color: #222;
	margin: 1.5rem 0 0.5rem;
}

.pg-article__content a {
	color: var(--color-accent,#c8102e);
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color 0.2s;
}

.pg-article__content a:hover { color: var(--color-accent-dark,#a50d26); }

.pg-article__content strong { color: #111; font-weight: 700; }

.pg-article__content blockquote {
	border-left: 4px solid var(--color-accent,#c8102e);
	background: #fef5f5;
	border-radius: 0 8px 8px 0;
	margin: 2rem 0;
	padding: 1.25rem 1.75rem;
	font-style: italic;
	color: #444;
	font-size: 1.05rem;
}

.pg-article__content blockquote p { margin: 0; }

.pg-article__content ul,
.pg-article__content ol {
	padding-left: 1.5rem;
	margin: 0 0 1.5rem;
}

.pg-article__content li { margin-bottom: 0.6rem; }

.pg-article__content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	margin: 1.5rem 0;
	display: block;
}

.pg-article__content figure {
	margin: 2rem 0;
}

.pg-article__content figcaption {
	font-size: 0.8rem;
	color: #999;
	text-align: center;
	margin-top: 0.5rem;
}

.pg-article__content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5rem 0;
	font-size: 0.9rem;
}

.pg-article__content th {
	background: #0f1117;
	color: #fff;
	font-weight: 700;
	padding: 0.75rem 1rem;
	text-align: left;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.pg-article__content td {
	padding: 0.7rem 1rem;
	border-bottom: 1px solid #f0f0f0;
	vertical-align: top;
}

.pg-article__content tr:nth-child(even) td { background: #fafafa; }

.pg-article__content hr {
	border: none;
	border-top: 2px solid #f0f0f0;
	margin: 2.5rem 0;
}

/* Page links (multi-page posts) */
.pg-page-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid #f0f0f0;
	font-size: 0.8rem;
	font-weight: 600;
	color: #999;
}

.pg-page-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 1.5px solid #ddd;
	border-radius: 6px;
	color: #555;
	text-decoration: none;
	font-weight: 700;
	transition: border-color 0.2s, color 0.2s;
}

.pg-page-links a:hover {
	border-color: var(--color-accent,#c8102e);
	color: var(--color-accent,#c8102e);
}

/* Edit link */
.pg-edit-link {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid #f0f0f0;
}

.pg-edit-link__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #999;
	text-decoration: none;
	transition: color 0.2s;
}

.pg-edit-link__btn:hover { color: var(--color-accent,#c8102e); }

/* ── Responsive ──────────────────────────────────────────────────── */
@media screen and ( max-width: 900px ) {
	.pg-article {
		padding: 2rem 2rem;
	}
}

@media screen and ( max-width: 600px ) {
	.pg-hero { min-height: 280px; }
	.pg-hero--image { min-height: 340px; }
	.pg-hero__inner { padding: 4rem 1.25rem 2.5rem; }

	.pg-body { padding: 1.5rem 1rem 3.5rem; }

	.pg-article { padding: 1.5rem 1.25rem; border-radius: 8px; }

	.pg-article__content h2 { font-size: 1.35rem; }
	.pg-article__content h3 { font-size: 1.1rem; }

	.pg-article__content blockquote { padding: 1rem 1.1rem; }
}
