/**
 * 全站正文宽度：与「关于页」col-lg-10 offset-lg-1 一致
 */

/* 全站默认字体：Noto Sans */
:root {
	--ccgc-font-sans: "Noto Sans", "Noto Sans SC", sans-serif;
}

body,
button,
input,
select,
textarea,
.default-btn,
.header,
.page-header,
.page-content,
.entry-content {
	font-family: var(--ccgc-font-sans);
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-heading h2,
.page-content h1,
.page-content h2 {
	font-family: var(--ccgc-font-sans);
}

/* 顶部 Banner 视差：背景反向位移制造景深；文字不动 */
.page-header:has(.ccgc-banner-parallax),
.ccgc-mc-hero:has(.ccgc-banner-parallax),
.ccgc-events-hero:has(.ccgc-banner-parallax) {
	overflow: hidden;
	/* 图片改由 .ccgc-banner-parallax 承载，去掉 section 自身背景以免叠两层 */
	background-image: none !important;
}

.ccgc-banner-parallax {
	will-change: transform;
	transform: translate3d(0, 0, 0);
	backface-visibility: hidden;
}

.page-header > .ccgc-banner-parallax {
	position: absolute;
	/* 上下多出一截，反向 translate 时不露底色 */
	top: -15%;
	right: 0;
	bottom: -15%;
	left: 0;
	z-index: 0;
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
	pointer-events: none;
}

.page-header.ccgc-general-banner > .overlay,
.page-header.ccgc-ministry-banner > .overlay,
.page-header.ccgc-events-banner > .overlay,
.ccgc-general-banner .overlay,
.ccgc-ministry-banner .overlay,
.ccgc-events-banner .overlay {
	z-index: 1;
}

.page-header > .container {
	position: relative;
	z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
	.ccgc-banner-parallax {
		transform: none !important;
	}
}

.ccgc-general-banner.page-header {
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
}

.ccgc-general-banner .overlay {
	background-color: rgba(17, 17, 17, 0.55);
	width: 100%;
	height: 100%;
	position: absolute;
	left: 0;
	top: 0;
}

/* Banner 标题：h1 / h2 同一套字号 */
.ccgc-general-banner .page-content h1,
.ccgc-general-banner .page-content h2 {
	margin: 0 0 20px;
	color: #fff;
	font-size: 36px;
	font-weight: 700;
	line-height: 1.2;
}

@media (max-width: 991px) {
	.ccgc-general-banner .page-content h1,
	.ccgc-general-banner .page-content h2 {
		font-size: 24px;
		line-height: 1.4;
	}
}

.ccgc-contact-notice {
	background: #e8f5e9;
	border: 1px solid #a5d6a7;
	color: #2e7d32;
	padding: 12px 16px;
	border-radius: 4px;
}

.ccgc-page-body .entry-content,
.ccgc-about-body .entry-content,
.ccgc-ministry-section .entry-content,
.ccgc-general-section .entry-content {
	color: #555;
	line-height: 1.85;
	font-size: 16px;
}

.ccgc-page-body .entry-content h4,
.ccgc-about-body .entry-content h4 {
	margin-top: 1.5em;
	margin-bottom: 0.75em;
	color: #122f2b;
}

.ccgc-page-article .blog-thumb {
	margin-bottom: 28px;
}

.ccgc-page-article .blog-thumb img {
	width: 100%;
	height: auto;
	border-radius: 4px;
}

/*
 * 一般页短代码区块：从窄栏「撑破」为全站宽，保持 Charitian 区块视觉
 */
.entry-content .ccgc-block-about,
.entry-content .ccgc-block-services,
.entry-content .ccgc-block-faq,
.entry-content .ccgc-block-contact,
.entry-content .ccgc-block-cta {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.entry-content .ccgc-block-map {
	margin: 24px 0;
}

.ccgc-general-section .blog-single-content .entry-content > p:first-child,
.ccgc-ministry-section .blog-single-content .entry-content > *:last-child {
	margin-top: 0;
}

/* ---------- 回退模板 / 404：空状态居中限宽 ---------- */
.ccgc-fallback-section {
	min-height: 40vh;
}

.ccgc-fallback-main {
	min-height: 220px;
}

.ccgc-empty-state {
	max-width: 28rem;
	margin: 0 auto;
	padding: 48px 20px;
	text-align: center;
}

.ccgc-empty-state__title {
	margin: 0 0 12px;
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 700;
	color: #122f2b;
	font-family: "Noto Sans", "Noto Sans SC", sans-serif;
}

.ccgc-empty-state__text {
	margin: 0;
	font-size: 16px;
	line-height: 1.7;
	color: #667470;
}

.ccgc-empty-state__actions {
	margin: 20px 0 0;
}

.ccgc-empty-state__link {
	color: #122f2b;
	font-weight: 600;
	text-decoration: none;
}

.ccgc-empty-state__link:hover,
.ccgc-empty-state__link:focus {
	color: #ffc105;
	text-decoration: underline;
}

.ccgc-fallback-item {
	margin-bottom: 28px;
	padding-bottom: 24px;
	border-bottom: 1px solid #eee;
}

.ccgc-fallback-item .entry-title {
	margin: 0 0 8px;
	font-size: 1.35rem;
}

.ccgc-fallback-item .entry-title a {
	color: #122f2b;
	text-decoration: none;
}

.ccgc-fallback-item .entry-title a:hover,
.ccgc-fallback-item .entry-title a:focus {
	color: #ffc105;
}

/* ---------- #secondary：对齐主题 sidebar-wrap ---------- */
#secondary.sidebar-wrap {
	padding-left: 40px;
}

#secondary .widget-content:not(:last-of-type),
#secondary .widget:not(:last-of-type) {
	margin-bottom: 40px;
}

#secondary .widget-title {
	position: relative;
	font-family: "Noto Sans", "Noto Sans SC", sans-serif;
	font-size: 18px;
	font-weight: 600;
	color: #122f2b;
	margin: 0 0 20px;
	text-transform: capitalize;
}

#secondary .widget-title:after {
	background-color: #ffc105;
	content: "";
	display: inline-block;
	width: 50%;
	height: 1px;
	top: 50%;
	position: absolute;
	margin-left: 20px;
}

#secondary ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

#secondary ul li a {
	font-size: 15px;
	color: #122f2b;
	line-height: 1.9;
	text-decoration: none;
}

#secondary ul li a:hover,
#secondary ul li a:focus {
	color: #ffc105;
}

@media (max-width: 991px) {
	#secondary.sidebar-wrap {
		padding-left: 0;
		margin-top: 32px;
	}
}

/* 覆盖 main.css 小屏隐藏 br，保留正文换行 */
@media (max-width: 767px) {
	.section-heading h2 br,
	p br {
		display: inline;
	}
}

.ccgc-about-history__intro-body ul {
	padding-left: 16px;
}

.ccgc-about-history__intro-body ul li {
	list-style-type: disc;
}