/**
 * Consult page (ID 1965) — closing section
 * Styles the legacy post_content image + quote that Elementor used to wrap.
 * Mirrors /booking/ closing pattern. Scoped via body.page-id-1965.
 */

/* Closing image (右小圖-預約諮詢) — centered block.
   The shortcode output breaks the wpautop <p> wrapper, so the img ends up
   as an inline sibling of the form <div>. Use display:block + margin auto. */
body.page-id-1965 .entry-content img[src*="右小圖-預約諮詢"],
body.page-id-1965 .entry-content img[data-src*="右小圖-預約諮詢"] {
	display: block;
	margin: 96px auto 48px;
	max-width: 520px;
	width: 100%;
	height: auto;
	border-radius: 16px;
	box-shadow: 0 20px 48px rgba(0, 0, 0, 0.1);
}

/* The <picture> wrapper around the img needs to be block too */
body.page-id-1965 .entry-content picture:has(img[src*="右小圖-預約諮詢"]),
body.page-id-1965 .entry-content picture:has(img[data-src*="右小圖-預約諮詢"]) {
	display: block;
	text-align: center;
	margin: 96px 0 48px;
}

body.page-id-1965 .entry-content picture:has(img[src*="右小圖-預約諮詢"]) img,
body.page-id-1965 .entry-content picture:has(img[data-src*="右小圖-預約諮詢"]) img {
	margin: 0 auto;
}

/* Inspirational quote (林肯名言) */
body.page-id-1965 .entry-content > h4 {
	max-width: 680px;
	margin: 0 auto 120px;
	padding: 40px 32px 0;
	font-family: 'Noto Serif TC', serif;
	font-size: 17px;
	font-weight: 500;
	line-height: 2.2;
	letter-spacing: 2px;
	color: #595757;
	text-align: center;
	position: relative;
}

/* Hairline divider above the quote */
body.page-id-1965 .entry-content > h4::before {
	content: "";
	display: block;
	width: 48px;
	height: 1.5px;
	background: #79895f;
	margin: 0 auto 32px;
}

/* Mobile */
@media (max-width: 767px) {
	body.page-id-1965 .entry-content p:has(img[src*="右小圖-預約諮詢"]),
	body.page-id-1965 .entry-content p:has(img[data-src*="右小圖-預約諮詢"]) {
		margin: 60px 16px 32px;
	}

	body.page-id-1965 .entry-content img[src*="右小圖-預約諮詢"],
	body.page-id-1965 .entry-content img[data-src*="右小圖-預約諮詢"] {
		border-radius: 12px;
		box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
	}

	body.page-id-1965 .entry-content > h4 {
		font-size: 15px;
		letter-spacing: 1.5px;
		line-height: 2;
		margin-bottom: 80px;
		padding: 32px 20px 0;
	}

	body.page-id-1965 .entry-content > h4::before {
		margin-bottom: 24px;
		width: 40px;
	}
}
