/* =================================================================
   PAGE TEMPLATES — Shared styles
   Single source of truth for:story card, grid cards,
   CTA banner, buttons, section headings, lateran badge, quote.
   Used by all page-*.php templates.
   Layout: Bootstrap 5 container/row/col only — no CSS Grid.
   ================================================================= */




/* .page-shell este standardizat global în core.css. */

/* ── Story card (editable content from WP) ────────────── */
.page-story {
	margin-bottom: 1rem;
	padding: clamp(1.5rem, 2.5vw, 2.5rem);
	position: relative;
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid rgba(11, 36, 64, 0.07);
	border-radius: 1.35rem;
	box-shadow: 0 16px 40px rgba(15, 23, 42, 0.05);
	color: #3e3d38;
}

.page-story > *:last-child {
	margin-bottom: 0;
}

.page-story h2,
.page-story h3,
.page-story h4,
.page-story h5,
.page-story h6 {
	color: #0a2440;
	font-weight: 700;
	line-height: 1.25;
	margin-top: 2rem;
	margin-bottom: 0.9rem;
}

.page-story h2:first-child,
.page-story h3:first-child,
.page-story h4:first-child {
	margin-top: 0;
}

.page-story p,
.page-story li,
.page-story blockquote {
	font-size: 1.06rem;
	line-height: 1.9;
}

.page-story p,
.page-story ul,
.page-story ol,
.page-story blockquote {
	margin-bottom: 1.25rem;
}

.page-story ul,
.page-story ol {
	padding-left: 1.3rem;
}

.page-story strong {
	color: #0a2440;
}

.page-story a {
	color: #0a2440;
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.16em;
}

.page-story img {
	max-width: 100%;
	height: auto;
	border-radius: 0.9rem;
}


/* ── Section heading ──────────────────────────────────── */
.section-heading {
	max-width: 760px;
	margin: 0 auto 2.25rem;
}

.section-heading__eyebrow {
	display: inline-block;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #7b6d54;
	margin-bottom: 0.65rem;
}

.section-heading__title {
	font-size: clamp(1.8rem, 3vw, 2.45rem);
	font-weight: 700;
	line-height: 1.2;
	color: #0a2440;
	margin-bottom: 0.8rem;
}

.section-heading__text {
	font-size: 1rem;
	line-height: 1.75;
	color: #5d5b56;
	margin-bottom: 0;
}


/* ── Card (sub-pages, resources, links) ───────────────── */

.page-card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.25rem, 2vw, 2rem);
}

/* Compatibilitate pentru zonele care mai folosesc Bootstrap grid. */
.page-shell .row,
section .row.g-4 {
	display: flex;
	flex-wrap: wrap;
}

.page-shell .row > [class*="col-"],
section .row.g-4 > [class*="col-"] {
	display: flex;
}

.page-card {
	width: 100%;
	background: #fff;
	border: 1px solid #e8e2d8;
	border-radius: 1rem;
	color: inherit;
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
	box-shadow: 0 10px 28px rgba(10, 36, 64, 0.04);
}

.page-card:hover,
.page-card:focus-visible {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px rgba(10, 36, 64, 0.1);
	border-color: rgba(10, 36, 64, 0.18);
	color: inherit;
	text-decoration: none;
}

/* Imaginea — înălțime FIXĂ, indiferent de mărimea sursei.
   Specificitate ridicată ca să bată orice CSS legacy. */
.page-card .page-card__img,
.page-card img.page-card__img {
	height: 250px;
	min-height: 250px;
	max-height: 250px;
	object-position: center center;
	background: #ece9e2;
	flex-shrink: 0;
}

.page-card__img--placeholder {
	color: #b0a89a;
	font-size: 2rem;
}

.page-card__body {
	gap: 0.75rem;
	padding: 1.35rem;
}

.page-card__title {
	font-size: 1.12rem;
	font-weight: 700;
	line-height: 1.3;
	color: #0a2440;
	margin: 0;
}

.page-card__desc {
	font-size: 0.96rem;
	line-height: 1.65;
	color: #5d5b56;
	margin: 0;
}

.page-card__link {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin-top: auto;
	font-size: 0.9rem;
	font-weight: 700;
	color: #0a2440;
}


/* ── CTA banner ───────────────────────────────────────── */
.page-cta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: clamp(1rem, 2vw, 2rem);
	background: linear-gradient(135deg, #0a2440 0%, #183f6a 100%);
	border-radius: 1.5rem;
	padding: clamp(1.75rem, 3vw, 2.5rem);
	box-shadow: 0 22px 52px rgba(10, 36, 64, 0.14);
}

.page-cta__text {
	font-size: 1rem;
	line-height: 1.75;
	color: #ffffff;
	margin-bottom: 1rem;
	font-family: inherit;
}

.page-cta__text:last-of-type,
.page-cta__text:only-of-type {
	margin-bottom: 0;
}


/* ── Buttons ──────────────────────────────────────────── */
.page-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0.8rem 1.35rem;
	border-radius: 0.9rem;
	font-weight: 700;
	text-decoration: none;
	border-width: 1px;
	transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.page-btn:hover,
.page-btn:focus-visible {
	transform: translateY(-1px);
	text-decoration: none;
}

.page-btn--light {
	background: #fff;
	border-color: #fff;
	color: #0a2440;
}

.page-btn--light:hover,
.page-btn--light:focus-visible {
	background: #f4f7fa;
	border-color: #f4f7fa;
	color: #0a2440;
}

.page-btn--outline {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.26);
	color: #fff;
}

.page-btn--outline:hover,
.page-btn--outline:focus-visible {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.38);
	color: #fff;
}


/* ── Seminary promotions highlight ────────────────────── */
.page-section--seminary-promotions .seminary-promo-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: clamp(1rem, 2vw, 1.5rem);
	max-width: 880px;
	margin: 0 auto;
	padding: clamp(1.15rem, 2vw, 1.5rem);
	border: 1px solid rgba(31, 84, 137, 0.14);
	border-radius: 1rem;
	background: #fff;
	box-shadow: 0 16px 36px rgba(10, 36, 64, 0.1);
}

.page-section--seminary-promotions .seminary-promo-card__body {
	min-width: 0;
}

.page-section--seminary-promotions .seminary-promo-card__eyebrow {
	display: inline-flex;
	margin-bottom: 0.45rem;
	color: #1f5489;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.page-section--seminary-promotions .seminary-promo-card__title {
	margin: 0 0 0.35rem;
	color: #0a2440;
	font-size: clamp(1.05rem, 1.4vw, 1.2rem);
	line-height: 1.3;
}

.page-section--seminary-promotions .seminary-promo-card__text {
	margin: 0;
	color: #5d6570;
	line-height: 1.6;
}

.page-section--seminary-promotions .seminary-promo-card__link {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	min-height: 42px;
	padding: 0.65rem 1rem;
	border: 1px solid #1f5489;
	border-radius: var(--radius-pill, 999px);
	background: #1f5489;
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.page-section--seminary-promotions .seminary-promo-card__link:hover,
.page-section--seminary-promotions .seminary-promo-card__link:focus-visible {
	background: #0a2440;
	border-color: #0a2440;
	box-shadow: 0 14px 28px rgba(31, 84, 137, 0.18);
	color: #fff;
	text-decoration: none;
	transform: translateY(-1px);
}


/* ── Seminar archive links ────────────────────────────── */
.page-section--seminary-archive .seminary-archive-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	margin-top: clamp(1rem, 2vw, 1.35rem);
}

.page-section--seminary-archive .seminary-archive-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0.55rem 1rem;
	border: 1px solid rgba(31, 84, 137, 0.18);
	border-radius: var(--radius-pill, 999px);
	background: rgba(255, 255, 255, 0.86);
	box-shadow: 0 10px 24px rgba(10, 36, 64, 0.08);
	color: #1f5489;
	font-weight: 700;
	text-decoration: none;
	transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.page-section--seminary-archive .seminary-archive-link:hover,
.page-section--seminary-archive .seminary-archive-link:focus-visible {
	background: #1f5489;
	border-color: #1f5489;
	box-shadow: 0 14px 28px rgba(31, 84, 137, 0.18);
	color: #fff;
	text-decoration: none;
	transform: translateY(-1px);
}

@media (max-width: 575.98px) {
	.page-section--seminary-promotions .seminary-promo-card {
		flex-direction: column;
		align-items: stretch;
		text-align: center;
	}

	.page-section--seminary-promotions .seminary-promo-card__link {
		width: 100%;
	}
}


/* ── Lateran badge ────────────────────────────────────── */
.lateran-badge {
	background: #f9f9f6;
	border-bottom: 1px solid #eceae6;
	padding-block: var(--section-gap-xs, clamp(1.5rem, 2.5vw, 2rem));
}

.lateran-badge__inner {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	max-width: 700px;
	margin: 0 auto;
}

.lateran-badge__icon {
	font-size: 2rem;
	color: #e5bd07;
	flex-shrink: 0;
}

.lateran-badge__title {
	display: block;
	font-family: 'Oswald-Regular', sans-serif;
	font-size: 1rem;
	color: #0a2440;
	margin-bottom: 0.2rem;
}

.lateran-badge__text {
	font-size: 0.88rem;
	color: #6b6b68;
	line-height: 1.5;
	margin: 0;
}


/* ── Quote block ──────────────────────────────────────── */
.page-quote {
	background: #f9f9f6;
	padding-block: var(--section-gap-sm, clamp(2rem, 3.5vw, 3rem));
	border-bottom: 1px solid #eceae6;
}

.page-quote .page-quote__block,
.page-quote blockquote.page-quote__block {
	max-width: 600px;
	margin: 0 auto;
	padding: 0;
	border: none;
	border-left: 0;
	text-align: center;
	font-style: normal;
}

.page-quote .page-quote__block p {
	font-family: 'Merriweather-Italic', Georgia, serif;
	font-size: 1.35rem;
	color: #0a2440;
	line-height: 1.6;
	margin: 0 0 0.5rem;
	font-style: italic;
	text-align: center;
}

.page-quote .page-quote__block cite {
	display: block;
	font-family: 'Roboto-Regular', Roboto, sans-serif;
	font-size: 0.85rem;
	color: #6b6b68;
	font-style: normal;
	text-align: center;
	letter-spacing: 0.02em;
}



@media (max-width: 767.98px) {
	.page-story {
		padding: var(--mobile-card-padding, clamp(1.35rem, 6vw, 1.75rem));
		border-radius: var(--mobile-card-radius, 22px);
	}

	.page-story p,
	.page-story li,
	.page-story blockquote {
		font-size: 1rem;
		line-height: 1.72;
	}
}

/* ── Responsive ───────────────────────────────────────── */

@media (max-width: 991.98px) {
	.page-card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 575.98px) {
	.page-card-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 575.98px) {

	.page-card__img {
		height: 190px;
	}

	.page-cta {
		padding: 1.5rem;
	}

	.page-quote__block p {
		font-size: 1.1rem;
	}
}
