/* ✅ CYLFIAC 整合後 CSS，含全站卡片字體優化與各頁專屬樣式 */
/* === 1. 全站卡片樣式（已整合）=== */
.link-cards {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	justify-content: center;
	padding: 20px 0;
}

.link-card {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 12px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
	width: 320px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	padding: 20px;
	text-align: center;
	box-sizing: border-box;
	transition: transform .2s ease;
}

.link-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.link-card img {
	max-width: 100px;
	height: 80px;
	object-fit: contain;
	margin-bottom: 15px;
}

.card-content {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.link-card h3,
.card-content h3,
.pathology-cards .card h3 {
	font-size: 1.8rem;
	color: #003366;
	margin-bottom: 8px;
	text-align: center;
	line-height: 1.4;
}

.link-card p,
.card-content p,
.pathology-cards .card p {
	font-size: 1.5rem;
	line-height: 1.8;
	color: #555;
}

.link-card a,
.card-content a {
	background-color: #003366;
	color: #fff;
	padding: 8px 16px;
	border-radius: 6px;
	text-decoration: none;
	font-size: 1.8rem;
}

.link-card a:hover,
.card-content a:hover {
	background-color: #0055aa;
}

@media (max-width: 768px) {
	.link-cards {
		flex-direction: column;
		align-items: center;
	}
	
	.link-card h3,
										  .card-content h3,
										  .pathology-cards .card h3 {
		font-size: 1.6rem;
	}
	
	.link-card p,
										  .card-content p,
										  .pathology-cards .card p {
		font-size: 1.05rem;
	}
	
	.link-card a,
										  .card-content a {
		font-size: 1rem;
	}
}

/* === 2. .pathology-cards（討論頁）=== */
.pathology-cards {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 24px;
	margin-top: 40px;
}

.pathology-cards .card {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: stretch;
	padding: 24px;
	border: 1px solid #ccc;
	flex: 1 1 calc(33.333% - 24px);
	background-color: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	transition: box-shadow .3s ease, transform .3s ease;
	text-align: left;
}

.pathology-cards .card:hover {
	transform: translateY(-6px);
	box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
	border-color: #999;
}

.card-icon {
	width: 80px;
	height: auto;
	margin-bottom: 16px;
	align-self: center;
}

/* ===== 專屬 Articles & Books 頁面 (page-id-1) 美化樣式 ===== */
.page-id-1 {
	background-color: #f7fafd;
	font-size: 1.6rem;
	line-height: 1.8;
	color: #222;
	font-family: 'Noto Sans TC', sans-serif;
}

.page-id-1 .publication-list {
	max-width: 1000px;
	margin: 0 auto;
	padding: 40px;
	background-color: #ffffff;
	border-radius: 12px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.page-id-1 .publication-list ol {
	padding-left: 0;
	list-style: none;
	counter-reset: item;
}

.page-id-1 .publication-list li {
	position: relative;
	background-color: #ffffff;
	margin-bottom: 16px;
	padding: 20px 24px 20px 50px;
/* 左側預留數字空間 */
	border-radius: 12px;
	border-left: 6px solid transparent;
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
	transition: background-color 0.3s, transform 0.3s, border-left-color .3s;
	counter-increment: item;
	text-align: justify;
}

.page-id-1 .publication-list li::before {
	content: counter(item) ".";
	position: absolute;
	left: 20px;
	top: 20px;
	font-weight: bold;
	font-size: 1.4rem;
	color: #007acc;
}

.page-id-1 .publication-list li:hover {
	background-color: #D0D8E8;
	transform: translateY(-4px);
	border-left-color: #007acc;
}

.page-id-1 .publication-list a {
	color: #004f72;
	text-decoration: none;
	transition: color .3s;
}

.page-id-1 .publication-list a:hover {
	color: #007acc;
	text-decoration: underline;
}

.page-id-1 h2 {
	font-size: 2rem;
	color: #004c6d;
	border-left: 6px solid #007acc;
	padding-left: 12px;
	margin-bottom: 24px;
}

@media (max-width: 768px) {
	.page-id-1 .wp-block-cover {
		width: 100vw;
		transform: translateX(-50%);
	}
}

@media (max-width: 768px) {
	.page-id-1 .publication-list {
		padding: 20px;
	}
	
	.page-id-1 .publication-list li {
		padding: 16px 20px 16px 50px;
	}
	
	.page-id-1 h2 {
		font-size: 1.6rem;
	}
}

/* ===== 專屬 About Me 頁面 (page-id-97) 美化樣式 ===== */
.page-id-97 {
	font-size: 1.6rem;
	line-height: 1.8;
	color: #222;
}

/* Liu CY 強調效果 */
.page-id-97 strong u {
	background-color: #e0f3ff;
	padding: 4px 6px;
	border-radius: 6px;
	color: #005a99;
	font-weight: bold;
	text-decoration: none;
}

/* PUBLICATION 區塊清單卡片化效果 */
.page-id-97 ol.wp-block-list li {
	background-color: #ffffff;
	margin-bottom: 16px;
	padding: 20px 24px;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
	transition: background-color 0.3s, transform .3s;
}

.page-id-97 ol.wp-block-list li:hover {
	background-color: #D0D8E8;
	transform: translateY(-4px);
}

/* LICENSURE 區塊樣式 */
.page-id-97 .licensure-section {
	background-color: #f5faff;
	border-radius: 12px;
	padding: 30px;
	margin-top: 40px;
	box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.page-id-97 .licensure-section ul.wp-block-list {
	list-style: none;
	padding-left: 0;
	margin-left: 0;
}

.page-id-97 .licensure-section ul.wp-block-list li {
	position: relative;
	padding-left: 2em;
	margin-bottom: 12px;
	font-weight: 500;
	font-size: 1.6rem;
	line-height: 1.6;
}

.page-id-97 .licensure-section ul.wp-block-list li::before {
	content: "\2714";
	position: absolute;
	left: 0;
	top: 0;
	color: #007acc;
	font-size: 1.4em;
	line-height: 1.6;
}

/* 標題樣式加強 - 僅限 PUBLICATION 區塊 */
.page-id-97 h3 {
	border-left: 6px solid #007acc;
	padding-left: 12px;
}

/* ===== 專屬 Case Studies 頁面 (page-id-124) 美化樣式 ===== */
.page-id-124 .case-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 24px;
	padding: 40px 20px;
	max-width: 1100px;
	margin: 0 auto;
	font-family: 'Noto Sans TC', sans-serif;
}

.page-id-124 .case-card {
	display: block;
	padding: 24px;
	background-color: #ffffff;
/* 白底 */
	border: 2px solid #ccd9e2;
/* 淺灰藍框線 */
	border-radius: 12px;
	text-decoration: none;
	color: #003355;
	transition: background-color 0.3s, transform 0.3s, border-color .3s;
	height: 100%;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.page-id-124 .case-card:hover {
	background-color: #1a3553;
/* 海軍藍 */
	color: #ffffff;
	border-color: #1a3553;
	transform: translateY(-4px);
}

.page-id-124 .case-card h3 {
	font-size: 1.4rem;
	margin-bottom: 12px;
	font-weight: bold;
}

.page-id-124 .case-card p {
	margin: 0;
	padding-left: 1em;
	text-indent: -1em;
	white-space: pre-line;
/* 支援  換行 */
}

/* 滑過時內文也變色 */
.page-id-124 .case-card:hover h3,
.page-id-124 .case-card:hover p {
	color: #ffffff;
}

/* 手機版調整 */
@media (max-width: 768px) {
	.page-id-124 .case-card-grid {
		grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
		padding: 20px 16px;
	}
}

/* 通用表單欄位樣式修正 */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="number"],
textarea,
select {
	border: 1px solid #ccc;
	padding: 10px;
	border-radius: 6px;
	font-size: 1rem;
	width: 100%;
	box-sizing: border-box;
	background-color: #fff;
	color: #333;
}

/* 滑鼠移入與點擊時的強調效果 */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: #007acc;
	box-shadow: 0 0 0 3px rgba(0, 122, 204, 0.1);
}

/* 修正 Contact Form 7 特定樣式（如使用者套件被覆蓋） */
.wpcf7 input,
.wpcf7 textarea,
.wpcf7 select {
	border: 1px solid #ccc;
	padding: 10px;
	border-radius: 6px;
	font-size: 1rem;
	background-color: #fff;
	width: 100%;
	color: #333;
	box-sizing: border-box;
}

/* === 專屬 Courses 頁面 (page-id-122) === */
.page-id-122 .course-container {
	display: flex;
	flex-direction: column;
	gap: 24px;
	max-width: 1000px;
	margin: 0 auto;
	padding: 40px 20px;
	font-family: 'Noto Sans TC', sans-serif;
}

.page-id-122 .course-card {
	display: flex;
	flex-direction: column;
	background-color: #ffffff;
	border: 1px solid #ccd9e2;
	border-radius: 12px;
	padding: 24px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
	transition: background-color 0.3s, transform 0.3s, border-color .3s;
	text-decoration: none;
	color: #003355;
}

.page-id-122 .course-card:hover {
	background-color: #1a3553;
	color: #ffffff;
	border-color: #1a3553;
	transform: translateY(-4px);
}

.page-id-122 .course-title {
	font-size: 1.8rem;
	font-weight: bold;
	color: #003355;
	margin-bottom: 12px;
}

.page-id-122 .course-card:hover .course-title {
	color: #ffffff;
}

.page-id-122 .course-text {
	font-size: 1.4rem;
	color: #333;
	line-height: 1.8;
	margin: 6px 0;
	white-space: pre-line;
}

.page-id-122 .course-card:hover .course-text {
	color: #ffffff;
}

@media (max-width: 768px) {
	.page-id-122 .course-text {
		font-size: 1.2rem;
	}
	
	.page-id-122 .course-title {
		font-size: 1.5rem;
	}
}

/* ===== 專屬 What's New 頁面 (page-id-1832) 美化樣式 ===== */
.page-id-1832 {
	font-size: 1.6rem;
	line-height: 1.8;
	color: #222;
	font-family: 'Noto Sans TC', sans-serif;
}

/* 卡片樣式：取消條列數字，並卡片化每則公告 */
.page-id-1832 ol.wp-block-list {
	list-style: none;
	padding-left: 0;
	margin-left: 0;
}

.page-id-1832 ol.wp-block-list li {
	background-color: #ffffff;
	margin-bottom: 16px;
	padding: 20px 24px;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
	transition: background-color 0.3s, transform .3s;
}

.page-id-1832 ol.wp-block-list li:hover {
	background-color: #B3D7F2;
/* 天空藍 */
	transform: translateY(-4px);
}

.page-id-1832 ol.wp-block-list li a {
	color: #111;
	text-decoration: none;
	display: block;
	width: 100%;
	height: 100%;
}

.page-id-1832 ol.wp-block-list li:hover a {
	color: #111;
/* 滑過後仍為黑字 */
}

/* 標題樣式（h3） */
.page-id-1832 h3 {
	border-left: 6px solid #007acc;
	padding-left: 12px;
	margin-bottom: 24px;
}

/* === 主打服務卡片區塊 (post-id-1060) === */
#post-1060.featured-service-card {
	max-width: 960px;
	margin: 40px auto;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	transition: transform .3s ease;
}

#post-1060 .featured-card-link {
	text-decoration: none;
	color: inherit;
	display: block;
}

#post-1060 .featured-card-content {
	display: flex;
	flex-direction: row;
	background-color: #ffffff;
}

#post-1060 .featured-card-image {
	width: 40%;
	height: auto;
	object-fit: cover;
}

#post-1060 .featured-card-text {
	padding: 24px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	background-color: #f9fbff;
}

#post-1060 .featured-card-title {
	font-size: 2rem;
	color: #003355;
	margin-bottom: 12px;
}

#post-1060 .featured-card-description {
	font-size: 1.4rem;
	color: #333;
	line-height: 1.6;
	margin-bottom: 16px;
}

#post-1060 .featured-card-cta {
	font-size: 1.2rem;
	color: #007acc;
	font-weight: bold;
}

#post-1060:hover {
	transform: translateY(-6px);
}

#post-1060:hover .featured-card-content {
	background-color: #D0E6F9;
}