.welcomeXE {
	display: none !important;
}

/* 상단 전폭 슬라이드 숨김 — 홈 영역 안쪽 2:1:1 배치 사용 */
.container .visual.swiper-container {
	display: none !important;
}

.church-home-extra {
	max-width: 1100px;
	margin: 0 auto;
	padding: 20px 0 40px;
	box-sizing: border-box;
}

.church-main-hero-row {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 14px;
	margin-bottom: 20px;
	align-items: stretch;
	padding: 6px 2px 18px;
	overflow: visible;
}

.church-main-slide-col {
	position: relative;
	min-width: 0;
	width: 100%;
}

.church-main-slide-col::before {
	content: "";
	display: block;
	padding-top: 56.1818%;
}

.church-main-slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border-radius: var(--church-card-radius, 12px);
	overflow: hidden;
	background: #1a3a5c;
	box-shadow: 0 4px 20px rgba(27, 67, 50, 0.15);
	border: none;
	outline: 3px solid var(--church-forest-mid, #2d6a4f);
	outline-offset: -3px;
}

.church-main-slide--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #888;
	font-size: 14px;
}

.church-slide-frame {
	position: absolute;
	inset: 0;
	background-color: transparent;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	opacity: 0;
	z-index: 1;
	transition: opacity 0.35s ease;
}

.church-slide-frame.is-active {
	opacity: 1;
	z-index: 2;
}

.church-slide-dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 8px;
	z-index: 5;
	display: flex;
	justify-content: center;
	gap: 6px;
}

.church-slide-dot {
	width: 8px;
	height: 8px;
	border: 0;
	border-radius: 50%;
	padding: 0;
	background: rgba(255, 255, 255, 0.45);
	cursor: pointer;
}

.church-slide-dot.is-active {
	background: #fff;
}

.church-main-quicklinks {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
	min-height: 0;
	height: 100%;
	padding: 4px 6px 10px;
	box-sizing: border-box;
	border-radius: var(--church-card-radius, 12px);
	overflow: visible;
	box-shadow: none;
	outline: none;
}

.church-main-quicklink {
	display: flex;
	flex: 1 1 0;
	min-height: 0;
	background: linear-gradient(135deg, #2b6cb0 0%, #1a4f8c 100%);
	color: #fff !important;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	border-radius: 10px;
	box-shadow: 0 4px 14px rgba(27, 67, 50, 0.14);
	overflow: hidden;
	outline: 2px solid var(--church-forest, #1b4332);
	outline-offset: -2px;
	/* 기본 크기를 살짝 줄여 호버 시 아래 타일과 같은 솟음 여유 확보 */
	transform: translateY(0) scale(0.94);
	transform-origin: center center;
	transition:
		transform 0.4s cubic-bezier(0.22, 1.55, 0.36, 1),
		box-shadow 0.4s ease,
		outline-color 0.2s ease;
	will-change: transform;
}

.church-main-quicklink:hover,
.church-main-quicklink:focus-visible {
	transform: translateY(-14px) scale(1.045);
	box-shadow:
		0 22px 40px rgba(27, 67, 50, 0.28),
		0 8px 16px rgba(27, 67, 50, 0.14);
	outline-color: var(--church-forest-mid, #2d6a4f);
	z-index: 6;
}

.church-main-quicklink--img {
	background: none;
	padding: 0;
	line-height: 0;
}

.church-main-quicklink--img:nth-child(1) {
	flex-grow: 80;
}

.church-main-quicklink--img:nth-child(2) {
	flex-grow: 75;
}

.church-main-quicklink--img:nth-child(3) {
	flex-grow: 75;
}

.church-main-quicklink--img:nth-child(4) {
	flex-grow: 79;
}

.church-main-quicklink--img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: fill;
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.church-main-quicklink--img:hover img,
.church-main-quicklink--img:focus-visible img {
	transform: scale(1.08);
}

.church-main-pastor-col {
	min-width: 0;
	min-height: 0;
	height: 100%;
	display: flex;
	align-items: stretch;
	justify-content: center;
	padding: 4px 6px 10px;
	box-sizing: border-box;
	overflow: visible;
}

.church-main-pastor {
	display: block;
	flex: 1 1 auto;
	width: 100%;
	height: auto;
	min-height: 100%;
	padding: 16px;
	background: #f3f0e8;
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center top;
	border: none;
	border-radius: var(--church-card-radius, 12px);
	color: #1b4332 !important;
	text-decoration: none;
	box-sizing: border-box;
	box-shadow: 0 4px 20px rgba(27, 67, 50, 0.1);
	outline: 3px solid var(--church-accent, #d4a373);
	outline-offset: -3px;
	transform: translate3d(0, 0, 0) scale(0.94);
	transform-origin: center bottom;
	transition:
		transform 0.4s cubic-bezier(0.22, 1.55, 0.36, 1),
		box-shadow 0.4s ease,
		filter 0.35s ease;
	will-change: transform;
	position: relative;
	z-index: 1;
}

.church-main-pastor:hover,
.church-main-pastor:focus-visible {
	transform: translate3d(0, -14px, 0) scale(1.045);
	box-shadow:
		0 22px 40px rgba(27, 67, 50, 0.28),
		0 8px 16px rgba(212, 163, 115, 0.3);
	filter: brightness(1.05) saturate(1.06);
	z-index: 6;
}

.church-main-pastor--img .church-main-pastor-title,
.church-main-pastor--img .church-main-pastor-sub {
	display: none;
}

.church-main-pastor-title {
	font-size: 15px;
	font-weight: 700;
	margin-bottom: 6px;
}

.church-main-pastor-sub {
	font-size: 12px;
	color: #555;
	line-height: 1.5;
}

.church-main-tiles-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	padding: 4px 2px 10px;
}

/* 벤토 타일 — 호버 시 살짝 떠오르며 입체감 */
.church-main-tile {
	--tile-accent: #2d6a4f;
	position: relative;
	display: block;
	height: 190px;
	border-radius: 0 var(--church-card-radius, 12px) var(--church-card-radius, 12px) 0;
	overflow: hidden;
	text-decoration: none;
	color: var(--church-ink, #1a2e28) !important;
	background: #fff;
	border: 1px solid #e0e8e2;
	border-left: 6px solid var(--tile-accent);
	box-shadow: 0 2px 12px rgba(27, 67, 50, 0.08);
	transform: translateY(0) scale(1);
	transform-origin: center bottom;
	transition:
		transform 0.4s cubic-bezier(0.22, 1.55, 0.36, 1),
		box-shadow 0.4s ease,
		border-color 0.2s ease;
	will-change: transform;
}

.church-main-tile:hover,
.church-main-tile:focus-visible {
	transform: translateY(-14px) scale(1.045);
	box-shadow:
		0 22px 40px rgba(27, 67, 50, 0.26),
		0 8px 16px rgba(27, 67, 50, 0.12);
	border-color: color-mix(in srgb, var(--tile-accent) 45%, #e0e8e2);
	z-index: 4;
}

.church-main-tile-bg {
	position: absolute;
	inset: 0;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center center;
	background-color: inherit;
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.church-main-tile:hover .church-main-tile-bg,
.church-main-tile:focus-visible .church-main-tile-bg {
	transform: scale(1.08);
}

.church-main-tile-label--sr {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	border: 0 !important;
	background: none !important;
	text-shadow: none !important;
	color: transparent !important;
}

.church-main-tile-label {
	position: absolute;
	z-index: 2;
	left: 0;
	right: 0;
	top: 0;
	padding: 12px 14px 28px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--church-forest, #1b4332) !important;
	background: linear-gradient(180deg, rgba(255, 254, 249, 0.94) 0%, rgba(255, 254, 249, 0.55) 55%, transparent 100%);
	text-shadow: none;
}

.church-main-tile:has(.church-main-tile-bg) .church-main-tile-label:not(.church-main-tile-label--sr) {
	color: #fff !important;
	padding: 11px 14px 34px;
	background: linear-gradient(
		180deg,
		rgba(18, 28, 36, 0.62) 0%,
		rgba(18, 28, 36, 0.28) 48%,
		rgba(18, 28, 36, 0) 100%
	);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.church-main-tile--worship_time { --tile-accent: #2d6a4f; background: #f4f9f6; }
.church-main-tile--event_photo { --tile-accent: #e8913a; background: #fff7ef; }
.church-main-tile--rice_share { --tile-accent: #d4a373; background: #faf6f0; }
.church-main-tile--church_school { --tile-accent: #52b788; background: #f0f8f3; }
.church-main-tile--dongkeyday { --tile-accent: #d4a017; background: #faf3e8; }
.church-main-tile--weekly_bulletin { --tile-accent: #74c69d; background: #fff; }
.church-main-tile--new_family { --tile-accent: #d4a017; background: #fdf4f2; }
.church-main-tile--scholarship { --tile-accent: #74c69d; background: #f2f8f7; }

@media (max-width: 960px) {
	.church-main-hero-row {
		grid-template-columns: 1fr 1fr;
		min-height: 0;
	}

	.church-main-slide-col {
		grid-column: span 2;
	}

	.church-main-quicklinks {
		min-height: 280px;
	}

	/* 배경이미지만 있으면 높이 0으로 붕괴 — 원본 275x309 비율 유지 */
	.church-main-pastor-col {
		height: auto;
		min-height: 280px;
	}

	.church-main-pastor {
		height: auto;
		min-height: 280px;
		aspect-ratio: 275 / 309;
		align-self: stretch;
		background-size: cover;
		background-position: center top;
	}

	.church-main-tiles-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 520px) {
	.church-main-hero-row {
		grid-template-columns: 1fr;
	}

	.church-main-slide-col {
		grid-column: span 1;
	}

	.church-main-quicklinks {
		min-height: 240px;
	}

	.church-main-pastor-col {
		width: 100%;
		min-height: 0;
		height: auto;
	}

	.church-main-pastor {
		width: 100%;
		min-height: 0;
		height: auto;
		aspect-ratio: 275 / 309;
		background-size: cover;
		background-position: center top;
	}

	.church-main-tiles-grid {
		grid-template-columns: 1fr;
	}

	.church-main-tile {
		height: 160px;
	}
}

@media (hover: none) {
	.church-main-tile:hover,
	.church-main-tile:focus-visible,
	.church-main-quicklink:hover,
	.church-main-quicklink:focus-visible,
	.church-main-pastor:hover,
	.church-main-pastor:focus-visible {
		transform: none;
		box-shadow: 0 4px 14px rgba(27, 67, 50, 0.14);
	}

	.church-main-tile:hover .church-main-tile-bg,
	.church-main-quicklink--img:hover img {
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.church-main-tile,
	.church-main-tile-bg,
	.church-main-quicklink,
	.church-main-quicklink--img img,
	.church-main-pastor {
		transition: none !important;
	}

	.church-main-tile:hover,
	.church-main-tile:focus-visible,
	.church-main-quicklink:hover,
	.church-main-quicklink:focus-visible,
	.church-main-pastor:hover,
	.church-main-pastor:focus-visible {
		transform: none;
	}
}
