.l-sub-layout__main{
	padding: 0;
}
.l-container-panel{
	padding: 0;
	max-width: 100%;
}
.l-main-content{
	background-color: transparent;
}

/* ==========================================================================
   Banner Carousel (輪播圖片與遮罩，及左右導覽按鈕與圓點)
========================================================================== */
.banner {
	position: relative;
	overflow: hidden;
	height: 540px;
	background-color: var(--bg-soft);
	width: 100%;
}
@media (max-width: 992px) {
	.banner {
		height: 420px;
	}
}
@media (max-width: 768px) {
	.banner {
		height: 320px;
	}
}
@media (max-width: 480px) {
	.banner {
		height: 240px;
	}
}
.banner-carousel {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
}
.banner-slide {
	position: absolute;
	top: 0; left: 0; width: 100%; height: 100%;
	opacity: 0;
	transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
	display: block;
	margin: 0;
}
.banner-slide.active {
	opacity: 1;
	z-index: 1;
}
.banner-slide .banner-link {
	display: block;
	width: 100%;
	height: 100%;
	text-decoration: none;
}
.banner-slide picture {
	display: block;
	width: 100%;
	height: 100%;
}
.banner-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	transform: scale(1.05);
	transition: transform 3s linear;
}
.banner-slide::before {
	content: '';
	position: absolute;
	top: 0; left: 0; width: 100%; height: 100%;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.2) 40%, rgba(255, 255, 255, 0) 100%);
	z-index: 1;
	pointer-events: none;
}
.banner-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(var(--space-base));
	-webkit-backdrop-filter: blur(var(--space-base));
	border: 1px solid rgba(226, 232, 240, 0.8);
	color: var(--on-surface);
	width: 46px;
	height: 46px;
	border-radius: 50%;
	cursor: pointer;
	z-index: 10;
	font-size: 1.1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	box-shadow: 0 4px var(--space-md-sm) rgba(0, 0, 0, 0.03);
}
.banner-arrow:hover {
	background: var(--primary);
	color: var(--on-white);
	border-color: var(--primary);
	box-shadow: 0 var(--space-base) 25px rgba(15, 118, 110, 0.2);
}
.banner-arrow.left { left: var(--space-md); }
.banner-arrow.right { right: var(--space-md); }
.banner-dots {
	position: absolute;
	bottom: var(--space-md);
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 12px;
	z-index: 10;
}
.banner-dots .dot {
	width: var(--space-base);
	height: var(--space-base);
	border-radius: 50%;
	background: rgba(45, 55, 72, 0.2);
	cursor: pointer;
	transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.banner-dots .dot.active {
	background: var(--primary);
	width: var(--space-md);
	border-radius: 4px;
}


/* ==========================================================================
   Core Services / Treatment Grid (核心醫療服務)
   ========================================================================== */
.core-services-section {
	padding-top: var(--space-xl);
	padding-bottom: var(--space-xl);
}
.section-header-center {
	text-align: center;
	margin-bottom: var(--space-lg);
}
.section-header-title {
	font-size: 32px;
	font-weight: 700;
	color: var(--primary);
	margin-bottom: var(--space-base);
}
.section-header-line {
	height: var(--space-xs);
	width: 5rem;
	background-color: var(--secondary-container);
	margin: 0 auto;
	border-radius: var(--radius-full);
}
.service-card {
	display: block; /* 確保 a 標籤以區塊級元素渲染 */
	text-decoration: none !important; /* 移除超連結底線 */
	border-radius: var(--radius-lg);
	padding: var(--space-margin);
	text-align: center;
	box-shadow: 0 1px 2px rgba(0,0,0,0.05);
	border: 1px solid var(--surface-container-high);
	cursor: pointer;
	transition: all 0.3s;
	background-color: var(--on-white);
}
.service-card:hover {
	box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
	transform: translateY(-2px);
}
.service-icon-wrapper {
	width: 4rem;
	height: 4rem;
	background-color: rgba(15, 118, 110, 0.1);
	border-radius: var(--radius-full);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto var(--space-md-sm) auto;
	transition: background-color 0.3s, color 0.3s;
	color: var(--on-surface);
}
.service-card:hover .service-icon-wrapper {
	background-color: var(--primary);
	color: var(--on-white);
}
.service-card:hover .material-symbols-outlined {
	color: var(--on-white);
}
.service-icon-wrapper .material-symbols-outlined {
	font-size: 1.3rem;
}
@media (min-width: 768px) {
	.service-icon-wrapper .material-symbols-outlined {
		font-size: 1.8rem;
	}
}
.service-title {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3; /* 整合 inline-style */
	color: var(--on-surface);
}
.service-title--sm {
	font-size: var(--space-md-sm) !important;
}
.service-title--xs {
	font-size: 14px !important;
}

/* 核心服務副標題 (ILIB / Dementia 等) */
.service-subtitle {
	font-size: 13px !important;
	opacity: 0.8;
	font-weight: 400;
	display: inline-block;
	color: var(--on-surface-variant);
}
.service-subtitle--sm {
	font-size: 12px !important;
}
.service-subtitle--xs {
	font-size: 11px !important;
}


/* ==========================================================================
   Latest Medical News (最新醫療情報 - 3層卡片版型)
   ========================================================================== */
.news-section-asym {
	background-color: var(--surface-container-low);
	padding-top: var(--space-xl);
	padding-bottom: var(--space-xl);
	border-top: 1px solid var(--tertiary-fixed);
	border-bottom: 1px solid var(--tertiary-fixed);
}

/* 第一層: 2:1 佈局 */
.news-layer1 {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-margin);
	margin-bottom: 40px;
}

@media (min-width: 992px) {
	.news-layer1 {
		grid-template-columns: 2fr 1fr;
	}
}
/* 第二層: 1:1:1 三區塊佈局 */
.news-layer2 {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-margin);
	margin-bottom: 40px;
}

@media (min-width: 768px) {
	.news-layer2 {
		grid-template-columns: repeat(3, 1fr);
	}
}


/* ==========================================================================
   媒體報導區
========================================================================== */
.news-card-2 {
	position: relative;
	display: flex;
	flex-direction: column;
	background-color: #000;
	overflow: hidden;
	border: 1px solid #f1f5f9;
	box-shadow: 0 4px 6px -1px rgba(0,0,0,0.03);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	height: 100%;
	min-height: 350px;
}
.news-card-2:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 24px -10px rgba(130, 83, 53, 0.15);
}
.news-card-2::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.25) 55%, transparent 100%);
	z-index: 2;
	transition: opacity 0.4s ease;
}
.news-card-2:hover::after {
	opacity: 0.55;
}
.news-card-2 .card-img-wrapper {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	z-index: 1;
}
.news-card-2 .card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	filter: brightness(0.85) contrast(0.98);
	transition: filter 0.4s ease;
}
.news-card-2:hover .card-img {
	filter: brightness(1.0) contrast(1.0);
}
.news-card-2 .card-body {
	position: relative;
	z-index: 3;
	padding: 28px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	flex-grow: 1;
}

@media (min-width: 768px) {
	.news-card-2 .card-body {
		width: 100%;
	}
}
/* 占比1: 整個卡片為背景圖，文字浮在上層 (news-card-1) */
.news-card-1 {
	position: relative;
	display: flex;
	flex-direction: column;
	background-color: #000;
	border: 1px solid #f1f5f9;
	box-shadow: 0 4px 6px -1px rgba(0,0,0,0.03);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	height: 100%;
	min-height: 350px;
}
.news-card-1:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 24px -10px rgba(130, 83, 53, 0.15);
}
.news-card-1::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.25) 55%, transparent 100%);
	z-index: 2;
	transition: opacity 0.4s ease;
}
.news-card-1:hover::after {
	opacity: 0.55;
}
.news-card-1 .card-img-wrapper {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	z-index: 1;
}
.news-card-1 .card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	filter: brightness(0.85) contrast(0.98);
	transition: filter 0.4s ease;
}
.news-card-1:hover .card-img {
	filter: brightness(1.0) contrast(1.0);
}
.news-card-1 .card-body {
	position: relative;
	z-index: 3;
	padding: 28px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	flex-grow: 1;
}
/* 第一層卡片文字覆蓋樣式 (由於背景為暗色圖片) */
.news-card-2 .news-card-date,
.news-card-1 .news-card-date {
	color: rgba(255, 255, 255, 0.75) !important;
}

.news-card-2 .news-card-title,
.news-card-1 .news-card-title {
	color: #ffffff !important;
}
.news-card-2 .news-card-desc,
.news-card-1 .news-card-desc {
	color: rgba(255, 255, 255, 0.85) !important;
}
/* 直式小圖卡片 (news-card-three) */
.news-card-three {
	position: relative;
	display: flex;
	flex-direction: column;
	background-color: #000;
	overflow: hidden;
	border: 1px solid #f1f5f9;
	box-shadow: 0 4px 6px -1px rgba(0,0,0,0.03);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	height: 100%;
	min-height: 300px;
}
.news-card-three:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 24px -10px rgba(130, 83, 53, 0.15);
}
.news-card-three::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.25) 55%, transparent 100%);
	z-index: 2;
	transition: opacity 0.4s ease;
}
.news-card-three:hover::after {
	opacity: 0.55;
}
.news-card-three .card-img-wrapper {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	z-index: 1;
}
.news-card-three .card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	filter: brightness(0.85) contrast(0.98);
	transition: filter 0.4s ease;
}
.news-card-three:hover .card-img {
	filter: brightness(1.0) contrast(1.0);
}
.news-card-three .card-body {
	position: relative;
	z-index: 3;
	padding: 20px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	flex-grow: 1;
}
/* 第二層卡片文字覆蓋樣式 (由於背景為暗色圖片) */
.news-card-three .news-card-date {
	color: rgba(255, 255, 255, 0.75) !important;
	margin-bottom: 8px;
}
.news-card-three .news-card-title {
	color: #ffffff !important;
}
.news-card-three .news-card-desc {
	color: rgba(255, 255, 255, 0.85) !important;
}
/* 為了讓新卡片在點擊整張卡片時不會有底線或連結顏色異常 */
a.news-card-2, a.news-card-1, a.news-card-three, a.news-card-edu {
	text-decoration: none !important;
	color: inherit !important;
}
/* 共用新聞元素樣式 */
.news-card-date {
	color: var(--secondary);
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 8px;
	display: block;
}
.news-card-title {
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 12px;
	line-height: 1.35;
	color: var(--on-surface);
	transition: color 0.2s;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.news-card-2:hover .news-card-title,
.news-card-1:hover .news-card-title,
.news-card-edu:hover .news-card-title {
	color: var(--primary);
}
.news-card-desc {
	color: var(--on-surface-variant);
	font-size: 14px;
	line-height: 1.6;
	margin-bottom: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.news-section-asym {
	padding: var(--space-xl) 0;
	background-color: var(--surface);
}


/* ==========================================================================
   Video & Health Education Sections (影音專區與衛教資訊)
   ========================================================================== */
.video-section,
.edu-section {
	padding: var(--space-xl) 0;
}
.section-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	margin-bottom: var(--space-lg);
	border-bottom: 1px solid var(--surface-container-highest);
	padding-bottom: var(--space-md-sm);
}
.section-header .section-header-title {
	font-size: var(--space-md);
	font-weight: 700;
	color: var(--primary);
	margin-bottom: 4px;
}
/* 影音專區排版：左側一個大影音，右側三個小影音上下排列 */
.video-row-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
}
@media (min-width: 768px) {
	.video-row-layout {
		grid-template-columns: repeat(2, 1fr);
	}
}
.video-row-layout > div {
	height: 100%;
}
.video-row-layout .video-card:hover {
	transform: translateY(-4px);
}
/* 衛教資訊排版：排在影音專區下方，橫向排列 */
.edu-section{
	background-color: var(--surface);
	border-top: 1px solid var(--tertiary-fixed);
}
/* 衛教園地卡片: 左側圖片，右側文字 (news-card-edu) */
.news-card-edu {
	display: flex;
	flex-direction: column;
	background-color: var(--on-white);
	overflow: hidden;
	border: 1px solid var(--outline-variant);
	box-shadow: 0 4px 6px -1px rgba(0,0,0,0.03);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	height: 100%;
}
.news-card-edu:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 24px -10px rgba(130, 83, 53, 0.15);
}
.news-card-edu .card-img-wrapper {
	width: 100%;
	aspect-ratio: 16/10;
	overflow: hidden;
}
.news-card-edu .card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.news-card-edu .card-body {
	padding: 24px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	flex-grow: 1;
}
.edu-row-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-margin);
}
@media (min-width: 992px) {
	.edu-row-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}