/**
 * Health Examination Process page (ID 1684) — scoped layout
 * Used by page-health-examination-process.php.
 * Design tokens mirror the existing .ph-archive-header and /article/ cards.
 */

.hep-page {
	max-width: 1200px;
	margin: 0 auto;
	padding: 80px 24px 120px;
	box-sizing: border-box;
}

/* Intro */
.hep-intro {
	text-align: center;
	margin: 0 auto 72px;
	max-width: 720px;
}

.hep-intro h2 {
	font-family: 'Noto Serif TC', serif;
	font-size: 32px;
	font-weight: 600;
	color: #1a1a1a;
	letter-spacing: 3px;
	margin: 0;
	line-height: 1.4;
}

.hep-intro-en {
	font-family: 'Crimson Text', serif;
	font-size: 14px;
	font-weight: 600;
	color: #4b4b4b;
	letter-spacing: 1.5px;
	opacity: 0.5;
	margin: 8px 0 24px;
}

.hep-intro-note {
	font-size: 15px;
	color: #4b4b4b;
	line-height: 1.8;
	letter-spacing: 1px;
	margin: 0;
}

/* Steps grid */
.hep-steps {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px;
	counter-reset: hep-step;
}

.hep-step {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	transition: box-shadow 0.3s, transform 0.3s;
	display: flex;
	flex-direction: column;
}

.hep-step:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
	transform: translateY(-4px);
}

.hep-step-img {
	margin: 0;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: #f5f5f5;
}

.hep-step-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s;
}

.hep-step:hover .hep-step-img img {
	transform: scale(1.04);
}

.hep-step-body {
	padding: 24px 28px 28px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.hep-step-num {
	font-family: 'Crimson Text', serif;
	font-size: 14px;
	font-weight: 600;
	color: #79895f;
	letter-spacing: 2px;
	text-transform: uppercase;
	margin-bottom: 6px;
}

.hep-step h3 {
	font-family: 'Noto Serif TC', serif;
	font-size: 22px;
	font-weight: 600;
	color: #1a1a1a;
	letter-spacing: 2px;
	margin: 0 0 12px;
	line-height: 1.4;
}

.hep-step p {
	font-size: 15px;
	color: #4b4b4b;
	line-height: 1.9;
	letter-spacing: 1px;
	margin: 0;
}

/* Tablet */
@media (max-width: 1024px) {
	.hep-steps {
		grid-template-columns: repeat(2, 1fr);
		gap: 28px;
	}
	.hep-page {
		padding: 60px 20px 80px;
	}
}

/* FAQ */
.hep-faq {
	max-width: 880px;
	margin: 120px auto 0;
}

.hep-faq-header {
	text-align: center;
	margin-bottom: 56px;
}

.hep-faq-header h2 {
	font-family: 'Noto Serif TC', serif;
	font-size: 32px;
	font-weight: 600;
	color: #1a1a1a;
	letter-spacing: 3px;
	margin: 0;
	line-height: 1.4;
}

.hep-faq-en {
	font-family: 'Crimson Text', serif;
	font-size: 14px;
	font-weight: 600;
	color: #4b4b4b;
	letter-spacing: 1.5px;
	opacity: 0.5;
	margin: 8px 0 0;
}

.hep-faq-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.hep-faq-item {
	border: 1px solid #dcdcdc;
	border-radius: 8px;
	background: transparent;
	transition: background 0.25s, border-left-color 0.25s, border-left-width 0.25s;
	overflow: hidden;
}

.hep-faq-item[open] {
	background: #f9f9f9;
	border-left: 5px solid #79895f;
}

.hep-faq-item summary {
	list-style: none;
	cursor: pointer;
	padding: 24px 40px;
	font-family: 'Noto Serif TC', serif;
	font-size: 17px;
	font-weight: 500;
	color: #1a1a1a;
	letter-spacing: 1.5px;
	line-height: 1.6;
	position: relative;
	padding-right: 64px;
}

.hep-faq-item summary::-webkit-details-marker {
	display: none;
}

.hep-faq-item summary::after {
	content: "";
	position: absolute;
	right: 32px;
	top: 50%;
	width: 10px;
	height: 10px;
	border-right: 2px solid #79895f;
	border-bottom: 2px solid #79895f;
	transform: translateY(-65%) rotate(45deg);
	transition: transform 0.25s;
}

.hep-faq-item[open] summary::after {
	transform: translateY(-35%) rotate(-135deg);
}

.hep-faq-answer {
	padding: 0 40px 24px;
}

.hep-faq-answer p {
	margin: 0;
	font-size: 15px;
	line-height: 1.9;
	letter-spacing: 1px;
	color: #4b4b4b;
}

@media (max-width: 767px) {
	.hep-faq {
		margin-top: 80px;
	}
	.hep-faq-item summary {
		padding: 20px 24px;
		padding-right: 48px;
		font-size: 16px;
	}
	.hep-faq-item summary::after {
		right: 20px;
	}
	.hep-faq-answer {
		padding: 0 24px 20px;
	}
	.hep-faq-header h2 {
		font-size: 26px;
		letter-spacing: 2px;
	}
}

/* Mobile */
@media (max-width: 600px) {
	.hep-steps {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	.hep-page {
		padding: 40px 16px 64px;
	}
	.hep-intro h2 {
		font-size: 24px;
		letter-spacing: 2px;
	}
	.hep-step h3 {
		font-size: 20px;
	}
}
