/* ==========================================================================
	Material Symbols Font
========================================================================== */
@font-face {
	font-family: 'Material Symbols Outlined';
	font-style: normal;
	font-weight: 100 700;
	src: url("/Public/common/icon2/material-symbols-outlined.e5892f6fb33f.ttf") format('truetype');
}
/* Manrope Font */
@font-face {
	font-family: 'Manrope';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("/Public/common/fonts2/manrope-400.b14c3069e3f7.ttf") format('truetype');
}
@font-face {
	font-family: 'Manrope';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("/Public/common/fonts2/manrope-600.9c61a253b039.ttf") format('truetype');
}
@font-face {
	font-family: 'Manrope';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("/Public/common/fonts2/manrope-700.ad56d0ba69e7.ttf") format('truetype');
}
@font-face {
	font-family: 'Manrope';
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url("/Public/common/fonts2/manrope-800.b7a637ee24e9.ttf") format('truetype');
}

:root {
	/* Spacing */
	--space-xs: 4px;
	--space-base: 8px;
	--space-sm: 12px;
	--space-md-sm: 16px;
	--space-md: 24px;
	--space-lg: 48px;
	--space-xl: 80px;
	--space-margin: 32px;

	/* Radius */
	--radius-sm: 0.25rem;
	--radius-lg: 0.5rem;
	--radius-xl: 1.25rem;
	--radius-full: 9999px;

	/* Typography */
	--font-family: 'Manrope', sans-serif;
	--label-md-size: 16px;
	--label-md-lh: 1.2;
	--label-md-weight: 600;
	--label-md-ls: 0.01em;
	--headline-lg-size: 32px;
	--headline-lg-lh: 1.3;
	--headline-lg-weight: 700;
	--headline-md-size: var(--space-md);
	--headline-md-lh: 1.4;
	--headline-md-weight: 600;
}



/* ==========================================================================
   Grid & Gap Utilities
   ========================================================================== */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (min-width: 576px) {
	.sm-grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sm-grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
	.md-grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
	.lg-grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.lg-grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.gap-2 { gap: var(--space-base) !important; }
.gap-3 { gap: var(--space-sm) !important; }
.gap-4 { gap: var(--space-md-sm) !important; }
.gap-sm { gap: var(--space-sm) !important; }
.gap-md { gap: var(--space-md) !important; }
.gap-lg { gap: var(--space-lg) !important; }
.gap-margin { gap: var(--space-margin) !important; }
.object-cover { object-fit: cover !important; }



/* ==========================================================================
   Typography Helpers
   ========================================================================== */
.font-label-md { font-size: var(--label-md-size); line-height: var(--label-md-lh); font-weight: var(--label-md-weight); letter-spacing: var(--label-md-ls); }
.font-headline-lg { font-size: var(--headline-lg-size); line-height: var(--headline-lg-lh); font-weight: var(--headline-lg-weight); }
.font-headline-md { font-size: var(--headline-md-size); line-height: var(--headline-md-lh); font-weight: var(--headline-md-weight); color: var(--primary); margin-bottom: var(--space-md-sm); }


/* ==========================================================================
	Reset / Base
========================================================================== */
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}
body {
	font-family: var(--font-family);
	background-color: var(--background);
	color: var(--primary);
	line-height: 1.6;
	font-size: 18px; /* body-md */
	overflow-x: hidden;
}
a {
	text-decoration: none;
	color: var(--on-surface-variant);
}
a:hover {
	text-decoration: none;
	color: var(--color-secondary);
}
button, input, select, textarea {
	font-family: inherit;
	border: none;
	outline: none;
}
button {
	cursor: pointer;
}
img {
	max-width: 100%;
	height: 100%;
	display: block;
}
/* Google Material Symbols（Icons) */
.material-symbols-outlined {
	font-family: 'Material Symbols Outlined';
	font-weight: normal;
	font-style: normal;
	font-size: 1.6rem;
	line-height: 1;
	letter-spacing: normal;
	text-transform: none;
	display: inline-block;
	white-space: nowrap;
	word-wrap: normal;
	direction: ltr;
	-webkit-font-smoothing: antialiased;
	font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
	vertical-align: middle;
	color: var(--primary);
}
.btn-center-primary .material-symbols-outlined{
	color: var(--on-white);
}



/* ==========================================================================
	Sub Layout
========================================================================== */
.l-container-panel {
	padding: 0;
}
@media (min-width: 992px) {
	.l-container-panel {
		padding: 1rem;
	}
}
.l-main-content {
	border: 0px;
	padding: 0;
}
.l-main-content__body{
	border: 0px;
	background-color: transparent;
}


/* ==========================================================================
	nav-header
========================================================================== */
.m-nav__link{
	padding: 0 15px;
	color: var(--on-surface-variant);
}
.m-nav__link:hover{
	color: var(--primary);
	font-weight: 700;
}
.m-header__logo img {
	height: 40px;
}
.m-mobile-logo img {
	height: 50px;
}
@media (min-width: 992px) {
	.m-header__logo img {
		height: 55px;
	}
}
.m-header .btn-primary {
	height: 35px;
	display: inline-flex;
	align-items: center;
	justify-content: center;		
	padding: 0 7px;
	font-size: 0.8rem;
	box-sizing: border-box;
	border-radius: var(--radius-full, 9999px);
	background-color: var(--primary-container, #0f766e);
	color: var(--on-white) !important;
	text-decoration: none;
	border: none !important;
	outline: none !important;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
	transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
							box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
							transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	vertical-align: middle;
	z-index: 1;
}
.m-header .btn-primary:hover {
	background-color: var(--primary, #005c55);
	box-shadow: 0 4px 10px rgba(0, 92, 85, 0.25);
	transform: translateY(-2px);
}
.m-header .btn-primary span {
	position: relative;
	z-index: 2;
}
@media (min-width: 992px){
	.m-header__container{
		max-width: 100%;
	}
	.m-header .btn-primary {
		height: 42px;
		font-size: 1rem;
		padding: 0 20px;
	}
}
@media (min-width: 1400px){
	.m-header__container{
		max-width: 90%;
	}
}
@media (min-width: 1600px){
	.m-header__container{
		max-width: 75%;
	}
}
#homeBtn.btn-icon-circle {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 35px;
	height: 35px;
	border-radius: 50%;
	padding: 0 !important;
	position: relative;
	overflow: hidden;
	background-color: #ab7c5d; /* 大地深棕色 */
	color: var(--on-white) !important;
	text-decoration: none;
	border: none !important;
	outline: none !important;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
	transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
							box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
							transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	vertical-align: middle;
	box-sizing: border-box;
	z-index: 1;
}
#homeBtn.btn-icon-circle:hover {
	background-color: #8b5937;
	box-shadow: 0 4px 10px rgba(171, 124, 93, 0.3);
	transform: translateY(-2px);
}
#homeBtn.btn-icon-circle::after {
	display: none !important;
}
#homeBtn.btn-icon-circle i {
	font-size: 1.1rem;
	opacity: 1;
	transform: scale(1);
	transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
							transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: absolute;
	display: block;
	z-index: 2;
}
#homeBtn.btn-icon-circle .btn-icon-text {
	font-size: 0.6rem;
	line-height: 1.2;
	font-weight: 700;
	text-align: center;
	opacity: 0;
	transform: scale(0.8);
	transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
							transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: absolute;
	color: var(--on-white);
	white-space: nowrap;
	display: block;
	z-index: 2;
}
#homeBtn.btn-icon-circle:hover i {
	opacity: 0;
	transform: scale(0.8);
}
#homeBtn.btn-icon-circle:hover .btn-icon-text {
	opacity: 1;
	transform: scale(1);
}
@media (min-width: 992px){
	#homeBtn.btn-icon-circle {
		width: 42px;
		height: 42px;
	}
}
/* 行動版漢堡按鈕與側邊欄 */
.m-hamburger {
	padding: 5px;
}
.m-mobile-header__title {
	font-weight: 600;
}
.m-mobile-link {
	font-weight: 500;
	color: var(--on-surface-variant) !important;
}
@media (min-width: 992px){
	.m-nav { display: none; }
	.m-hamburger { display: block; }
}
@media (min-width: 1200px){
	.m-nav { display: flex; }
  .m-hamburger { display: none; }
}
.btn-primary {
	background-color: var(--primary);
	color: var(--on-white);
	border-radius: var(--radius-full);
	font-weight: 600;
	transition: all 0.3s;
}
.btn-primary:hover, .btn-primary:focus {
	background-color: var(--primary-container) !important;
	box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1) !important;
	border-color: var(--primary-container) !important;
}



/* ==========================================================================
	Modal - clinic-rest-time
========================================================================== */
.clinic-rest-time {
	background-color: var(--surface-container);
	font-size: 1.2rem;
	border-bottom-left-radius: calc(0.3rem - 1px);
	border-bottom-right-radius: calc(0.3rem - 1px);
	padding-bottom: 0px;
}
.clinic-month {
	background-color: var(--on-white);
}
.clinic-month h6 {
	margin-bottom: 0;
	text-align: center;
	line-height: 30px;
}
.clinic-month div:first-child {
	font-size: 1.5rem;
	font-weight: bold;
}
.clinic-time-list {
	padding: 0 !important;
}
.clinic-time-list .title,
.clinic-time-list .detail {
	display: flex;
	justify-content: space-between;
}
.clinic-time-list .title > div {
	width: 20%;
	text-align: center;
	font-weight: bold;
}
.clinic-time-list li .badge {
	font-size: 1rem;
	line-height: 1.3rem;
}
.clinic-time-list .list-group-item:last-child {
	border-bottom-right-radius: 0px;
	border-bottom-left-radius: 0px;
}

/* clinic tags */
.morning-clinic {
	background-color: #d3e0ea;
	color: #1a3c5a;
}
.afternoon-clinic {
	background-color: #fdf5d3;
	color: #7f5c1d;
}
.evening-clinic {
	background-color: #e6e0f8;
	color: #432c7a;
}

#stopModalLabel small{
	color: var(--on-surface-variant);
}
.no-data-text{
	text-align: center;
	color: var(--outline);
	font-size: 1.5rem;
	font-weight: 700;
}



/* ==========================================================================
	 Video Modal Styles (#videoModal)
========================================================================== */
#videoModal .modal-header, 
#videoModal .modal-body {
	background-color: black;
}
#videoModal .modal-header {
	border-bottom: 0px;
}
#videoModal .modal-header .close {
	color: var(--on-white);
}
#videoModal .modal-body {
	padding: 0 0 3.5rem;
}


/* ==========================================================================
	Sidebar List (治療項目)
========================================================================== */
.list-group-item:first-child{
	border-top-left-radius: 0;
	border-top-right-radius: 0;
}
.list-group-item:last-child{
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}
.list-group-item.active{
	background-color: var(--color-secondary);
	border-color: var(--color-secondary);
	color: var(--on-white);
	font-weight: 500;
}


/* ==========================================================================
	Tags (標籤)、li (條列式)
========================================================================== */
.news-tag {
	font-size: 0.8rem;
	font-weight: 500;
	padding: 0.25rem 0.65rem;
	display: inline-block;
	margin-bottom: 0.75rem;
	width: fit-content;
}
.tag-primary {
	background-color: var(--primary-container);
	color: var(--on-white);
}
.tag-tertiary{
	background-color: var(--color-secondary);
	color: var(--on-white);
}
.ne-tag {
	display: flex; align-items: center; gap: 0.35rem;
	background-color: var(--surface-container-low);
	color: var(--on-surface-variant);
	padding: 0.3rem 0.6rem; border-radius: var(--radius-sm);
	border: 1px solid var(--outline-variant);
	transition: all 0.2s;
    line-height: 1.2rem;
}
.ne-tag:hover {
	transform: translateY(-2px);
}
.ne-tag .material-symbols-outlined { transform: scale(0.9); }
.btn-main .material-symbols-outlined {
	color: var(--on-white);
}

.list-item-li { display: flex; align-items: flex-start; gap: var(--space-sm); }
.list-item-li-dot { width: var(--space-base); height: var(--space-base); border-radius: var(--radius-full); margin-top: 10px; flex-shrink: 0; }
.list-item-li-dot.secondary { background-color: var(--secondary); }
.list-item-li-dot.color-secondary { background-color: var(--color-secondary); }
.list-item-li-dot.primary { background-color: var(--primary); }



/* ==========================================================================
   Action Buttons
   ========================================================================== */
.btn-center-primary {
	background-color: var(--primary) !important;
	color: var(--on-white) !important;
	padding: var(--space-sm) var(--space-md-sm);
	border-radius: var(--radius-full) !important;
	font-weight: 700 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: var(--space-base) !important;
	transition: all 0.3s ease !important;
	border: none !important;
	cursor: pointer !important;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
	text-decoration: none !important;
	text-align: center;
}
.btn-center-primary:hover {
	background-color: var(--color-secondary) !important;
	color: var(--on-white) !important;
	transform: translateY(-2px) !important;
	box-shadow: 0 10px var(--space-md-sm) -3px rgba(0, 0, 0, 0.1) !important;
	filter: brightness(1.1) !important;
}
.btn-center-outline {
	background-color: var(--on-white) !important;
	color: var(--on-surface) !important;
	padding: var(--space-sm) var(--space-md-sm);
	border-radius: var(--radius-full) !important;
	font-weight: 700 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: var(--space-base) !important;
	transition: all 0.3s ease !important;
	border: 2px solid var(--outline-variant) !important;
	cursor: pointer !important;
	text-decoration: none !important;
	text-align: center;
}
.btn-center-outline:hover {
	background-color: var(--bg-warm) !important;
	border-color: var(--primary) !important;
	color: var(--primary) !important;
	transform: translateY(-2px) !important;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}
.btn-center-outline:not(:disabled):not(.disabled).active, .btn-center-outline:not(:disabled):not(.disabled):active, .show>.btn-center-outline.dropdown-toggle{
	background-color: var(--primary);
	color: var(--on-white);
	border-color: var(--primary);
}
.btn-center-outline:not(:disabled):not(.disabled).active:focus, .btn-center-outline:not(:disabled):not(.disabled):active:focus, .show>.btn-center-outline.dropdown-toggle:focus{
	box-shadow: 0 0 0 .2rem rgba(254, 156, 8, 0.5);
}
.btn-center-white {
	background-color: var(--on-white);
	color: var(--primary);
	padding: 0.8rem 2rem;
	border-radius: var(--radius-full);
	font-weight: 700;
	box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
	border: none;
	cursor: pointer;
	text-align: center;
	transition: all 0.2s;
	width: 100%;
}
.btn-center-white:hover {
	background-color: var(--color-secondary);
	color: var(--on-white);
	transform: translateY(-2px);
	box-shadow: 0 15px 25px -5px rgba(0,0,0,0.15), 0 8px 10px -6px rgba(0,0,0,0.1) !important;
}
/* 共用的按鈕 Hover 動畫效果 */
.btn-hover-effect {
	transition: all 0.3s ease !important;
}
.btn-hover-effect:hover {
	background-color: var(--color-secondary) !important;
	color: var(--on-white) !important;
	transform: translateY(-2px);
	box-shadow: 0 15px 25px -5px rgba(0,0,0,0.15), 0 8px 10px -6px rgba(0,0,0,0.1) !important;
}
.btn-center-primary-outline {
	font-weight: 600;
	background-color: transparent;
	border: 2px solid var(--primary);
	color: var(--primary);
	border-radius: var(--radius-full);
	transition: all 0.3s;
	text-decoration: none;
}
.btn-center-primary-outline:hover {
	background-color: var(--primary) !important;
	color: var(--on-white) !important;
	border-color: var(--primary) !important;
	box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1) !important;
	transform: translateY(-4px);
	text-decoration: none;
}
.btn-center-secondary {
	font-weight: 600;
	background-color: transparent;
	border: 2px solid var(--secondary);
	color: var(--secondary);
	border-radius: var(--radius-full);
	transition: all 0.3s;
	text-decoration: none;
}
.btn-center-secondary:hover {
	background-color: var(--secondary) !important;
	color: var(--on-white) !important;
	border-color: var(--secondary) !important;
	box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1) !important;
	transform: translateY(-4px);
}



/* ==========================================================================
   Sidebar Menu Modernization
   ========================================================================== */
#menu-toggle {
	display: none;
}
.menu-icon {
	display: block;
	background: var(--surface-container-low);
	color: var(--on-surface);
	padding: var(--space-sm) var(--space-md);
	font-size: 1.1rem;
	font-weight: 600;
	cursor: pointer;
	text-align: center;
	border: 1px solid var(--surface-variant);
	margin-bottom: 0;
	letter-spacing: 0.05em;
	user-select: none;
}
.treat-sidenav-modern {
	display: none;
	background: var(--on-white);
	padding: var(--space-md);
	border: 1px solid var(--color-accent-peach);
}
#menu-toggle:checked ~ .treat-sidenav-modern {
	display: block;
}
@media (min-width: 1200px) {
	.menu-icon {
		display: none;
	}
	.treat-sidenav-modern {
		display: block;
		position: sticky;
		top: 100px;
		border: 0px;
	}
}
.treat-sidenav-modern .menu-heading {
	border-bottom: 1px solid var(--surface-variant);
	padding-bottom: var(--space-sm);
	margin-bottom: var(--space-md);
	display: flex;
	flex-direction: column;
}
.treat-sidenav-modern .menu-heading span {
	font-size: 1.8rem;
	font-weight: 700;
	color: var(--primary);
	letter-spacing: 0.05em;
}
.treat-sidenav-modern .menu-heading small {
	font-size: 0.85rem;
	color: var(--outline);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin-top: 4px;
}



/* ==========================================================================
	Hero Header 元件 (各子頁面上方大標題)
========================================================================== */
.u-hero-header{
	padding: 2.5rem 0;
}
.u-hero-header__content {
	display: flex;
	flex-direction: column;
	align-items: center;
}
.u-hero-title{
	font-weight: 600;
	font-size: 2.5rem;
	letter-spacing: 2px;
	color: var(--primary);
	text-align: center;
}
.u-hero-desc {
	color: var(--on-surface-variant);
	margin-bottom: 0;
	text-align: center;
}



/* ==========================================================================
   隱藏式的 <h1>、<p>語意標籤（提供搜尋引擎與 AI 爬蟲檢索，不影響版面視覺）
   ========================================================================== */
.u-visually-hidden {
	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;
	white-space: nowrap !important;
	border: 0 !important;
}



/* ==========================================================================
	CTA Section
========================================================================== */
.cta-section {
	background-color: var(--primary-container);
	padding: var(--space-lg) var(--space-md);
	color: var(--on-white);
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	position: relative;
	overflow: hidden;
}
@media (min-width: 768px) {
	.cta-section {
		flex-direction: row;
		justify-content: space-between;
		padding: var(--space-lg) var(--space-xl);
	}
}
.cta-section.cta-center {
	justify-content: center;
	text-align: center;
}
.cta-content {
	position: relative;
	z-index: 10;
	max-width: 36rem;
	text-align: center;
}
@media (min-width: 768px) {
	.cta-section:not(.cta-center) .cta-content {
		text-align: left;
	}
}
.cta-title {
	font-size: 2rem;
	font-weight: 700;
	color: var(--on-white);
	margin-bottom: var(--space-sm);
}
.cta-desc {
	color: var(--on-primary-container);
	margin-bottom: 0;
	font-size: 1.2rem;
	opacity: 0.9;
}
.cta-bg {
	position: absolute;
	top: -6rem;
	right: -6rem;
	width: 16rem;
	height: 16rem;
	background-color: rgba(255,255,255,0.1);
	border-radius: 50%;
	filter: blur(40px);
	pointer-events: none;
}
.cta-action {
	position: relative;
	z-index: 10;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	max-width: 200px;
}
@media (min-width: 768px) {
	.cta-section:not(.cta-center) .cta-action {
		width: auto;
	}
}



/* ==========================================================================
   Video Cards
   ========================================================================== */
/* Utility: Visually Hidden for SEO / Screen Readers */
/* SEO 友善隱藏樣式（讓搜尋引擎與螢幕閱讀器能讀取，但在視覺上隱藏） */
.video-seo-only {
	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;
	white-space: nowrap !important;
	border: 0 !important;
}

.video-card {
	background-color: var(--on-white);
	overflow: hidden;
	cursor: pointer;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	border: 1px solid rgba(0,0,0,.1);
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	border-radius: 0;
}

.video-overlay {
	position: absolute;
	inset: 0;
	background-color: rgba(0,0,0,0.15);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.3s;
}

/* 影片卡片縮圖 */
.video-thumb {
	position: relative;
	aspect-ratio: 16 / 9;
	background-color: var(--surface-container-highest);
	overflow: hidden;
}
.video-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.play-btn-small-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}
.play-btn-small {
	background-color: rgba(255,255,255,0.9);
	color: var(--primary);
	width: 3rem;
	height: 3rem;
	border-radius: var(--radius-full);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
	transition: transform 0.2s ease;
}
.video-card-content {
	padding: var(--space-md) var(--space-md) 0 var(--space-md);
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}
.video-card-title {
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--on-surface);
	transition: color 0.2s;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	line-height: 1.5;
}
.video-card-meta {
	color: var(--on-surface-variant);
	font-size: .8rem;
	margin-top: auto;
	margin-bottom: 0;
}

/* Cinematic Letterbox (電影上下黑框) */
.video-thumb::before,
.video-thumb::after {
	content: "";
	position: absolute;
	left: 0;
	width: 100%;
	height: 20px;
	background-color: #000;
	z-index: 2;
}
.video-thumb::before {
	top: 0;
}
.video-thumb::after {
	bottom: 0;
}

/* 影片縮圖 Hover 放大效果 */
.video-thumb img.card-img-top {
	transition: transform 0.3s ease;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.video-card:hover img.card-img-top {
	transform: scale(1.04);
}

/* 播放按鈕圖示與 Hover 特效 */
.play-btn-small-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}
.play-btn-small-overlay {
	z-index: 3;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.5));
	opacity: 0;
	transition: opacity 0.3s ease;
}
.play-btn-small-overlay span {
	transition: transform 0.3s ease, color 0.3s ease;
}
.video-card:hover .play-btn-small-overlay {
	opacity: 1;
}
.video-card:hover .play-btn-small-overlay span {
	transform: scale(1.15);
}


/* ==========================================================================
	Page-Specific Styles --- Film Detail Page
========================================================================== */
.video-detail-title{
	color: var(--primary);
	margin-bottom: 1rem;
	font-weight: var(--headline-lg-weight);
}
.video-article-summary{	
    background-color: var(--bg-soft);
}



/* ==========================================================================
	Page-Specific Styles --- Article List Page (Treatment & Edu)
========================================================================== */
.magazine-card {
	transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	border: 1px solid var(--outline-variant);
	background: var(--on-white);
	height: 100%;
	display: flex;
	flex-direction: column;
	margin-bottom: var(--space-md);
}
.magazine-card:hover {
	transform: translateY(-4px);
}
.magazine-img-wrapper{
	overflow: hidden;
	aspect-ratio: 4/3;
}
.magazine-img-wrapper img{
 	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.8s ease;
}
.magazine-content{
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	padding: 1.1rem;
}
.magazine-meta{
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 2px;
	color: var(--primary);
	text-transform: uppercase;
	margin-bottom: .5rem;
}
.magazine-title {
	transition: color 0.3s ease;
	font-size: 1.2rem;
	font-weight: 600;
	line-height: 1.5;
	color: var(--on-surface);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	letter-spacing: 0.5px;
	margin-bottom: 1rem;
}
.magazine-card:hover .magazine-title {
	color: var(--primary);
}
.magazine-desc{
	font-size: 1rem;
	color: var(--on-surface-variant);
	line-height: 1.6;
	margin-bottom: 1rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	opacity: 0.85;
}
.magazine-read-more{
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 1px;
	color: var(--on-surface-variant);
	display: inline-flex;
	align-items: center;
	border-bottom: 1px solid currentColor;
	padding-bottom: 2px;
	width: fit-content;
	transition: color 0.3s ease, border-color 0.3s ease;
	margin-top: auto;
}
.magazine-card:hover .magazine-read-more {
	color: var(--primary);
	border-color: var(--primary) !important;
}



/* ==========================================================================
   Page-Specific Styles --- Article Detail Page ( Report & Edu)
   ========================================================================== */
.posts-detail-container .btn-lg { font-size: 1.1rem; }
.posts-detail-title {
	font-size: 1.85rem; color: var(--primary); font-weight: bold; border-bottom: solid 1px var(--outline-variant);
	text-align: justify; margin-bottom: var(--space-md-sm); padding: 0 0 var(--space-md-sm) 0; line-height: 45px; text-align: center;
}
@media (min-width: 992px) {
	.col-lg-8-detail { border-right: 1px solid var(--outline-variant); }
	.posts-detail-container { margin-right: var(--space-md); }
	.posts-detail-container .btn-lg { font-size: 1.25rem; }
}

/* 媒體報導、衛教文章內容對應 class */
.article-body u {
	font-weight: 700;
	text-decoration: none;
	transition: color 0.3s, text-decoration-color 0.3s;
	border-bottom: 1px solid var(--grey3);
}
.article-body u:hover {
	background-color: var(--vanilla-yellow);
}
.article_border {
	border: 15px solid #f5e7dc;
	border-radius: .25rem;
}
.article_h {
	font-size: 1.6rem;
	color: var(--info);
	font-weight: bold !important;
	border-bottom: solid 2px var(--grey5);
	text-align: center;
	margin-bottom: 15px;
	padding: 10px;
	line-height: 1.5;
}

/* 文章 - 內文段落；對應 <t> */
.a-paragraph {
	font-size: 1.1rem;
	line-height: 2.0;
	color: var(--on-surface-variant);
	margin-bottom: var(--space-md);
	letter-spacing: 0.05em;
	text-align: justify;
}

/* 文章 - 內文發布日期；對應 <posted> */
.posted-date {
    text-align: right;
    font-size: 0.85rem;
    margin: -15px 0 15px 0;
    background-color: var(--grey5);
    line-height: 20px;
    padding: 10px;
}
.posted-date::before {
    content: '發表日期：';
}


/* 文章 - H3 標題；對應 <cap> */
.title-02 {
    position: relative;
    padding: 0.7rem 1.1rem 0.6rem;
    background-color: var(--bg-cap);
    border-radius: 0.3rem;
    font-size: 1.5rem;
    letter-spacing: 0.03em;
    font-weight: 700;
    color: var(--primary);
    margin: 2rem 0 1rem 0;
	border-bottom: 1px solid var(--surface-variant);
	line-height: 1.5;
}
.title-02::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    margin: auto 0;
    width: 0.3rem;
    height: 1.8rem;
    border-radius: 0 0.5rem 0.5rem 0;
    background-color: var(--primary);
}


/* 文章 - 圖片備註文字；對應 <t-note> */
.text-note {
    font-size: 0.85rem;
    color: var(--grey4);
    text-align: center;
}


/* 文章 - 引用框；對應 <quo> */
.quote-box {
    position: relative;
    padding: 30px 10px 10px 10px;
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--grey7);
    overflow: hidden;
    text-align: center;
    background-color: var(--bg-warm);
    background:
        repeating-linear-gradient(45deg,
            rgba(223, 120, 130, 0.06),
            rgba(223, 120, 130, 0.06) 1px,
            transparent 1px,
            transparent 8px),
        var(--bg-warm);
    margin-bottom: -20px;
}

.quote-box::before,
.quote-box::after {
    position: absolute;
    font-size: 10rem;
    color: #ffd8db;
    z-index: 0;
    pointer-events: none;
}

.quote-box::before {
    content: "“";
    top: -70px;
    left: 20px;
}

.quote-box::after {
    content: "”";
    bottom: 0;
    right: 15px;
    line-height: 0;
}
.quo-txt,
.logotxt {
	position: relative;
	z-index: 1;
}
.quo-txt {
	font-weight: 600;
	line-height: 30px;
	color: var(--primary);
	font-size: 1.1rem;
}
.logotxt {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	font-size: 0.9rem;
	margin-top: 15px;
	color: rgba(158, 62, 71, 0.7);
	font-style: italic;
	font-weight: 600;
}
.logotxt::before,
.logotxt::after {
	content: "";
	flex: 1;
	max-width: 70px;
	height: 1px;
	background: linear-gradient(to right,
			rgba(158, 62, 71, 0) 0%,
			rgba(158, 62, 71, 1) 25%,
			rgba(158, 62, 71, 1) 75%,
			rgba(158, 62, 71, 0) 100%);
}


/* 文章 - 條列標題；對應 <li-t> */
.list-title {
	position: relative;
	padding-left: 28px;
	font-weight: bold;
	margin: 1rem 0.5rem .2rem 0.5rem;
	line-height: 30px;
	font-size: 1.06rem;
}
.list-title::before {
	position: absolute;
	top: calc(50% - 15px);
	left: 0px;
	content: "✦";
	color: var(--orange);
}


/* 文章 - 條列內容；對應 <li-p> */
.list-text{
	font-size: 1.1rem;
	line-height: 35px;
	text-align: justify;
	margin-left: 1.5rem;
}


/* 文章 - 問答；對應 <li-q> / <li-a> */
.list-question {
	font-weight: bold;
	font-size: 1.1rem;
	margin: 30px 0px 0px 0px;
	display: flex;
	align-items: center;
	text-align: justify;
	border-bottom: 1px dashed var(--orange);
	padding-bottom: 6px;
}
.list-answer {
	margin: 20px 0px 0px 0px;
	display: flex;
	align-items: start;
}
.list-question::before, 
.list-answer::before{
	padding: 2px 5px;
	margin-right: 8px;
	color: var(--white);
	font-size: 1rem;
	font-weight: bold;
	width: 30px;
	height: 30px;
	line-height: 26px;
	border-radius: 50%;
}
.list-question::before {
	content: 'Ｑ';
	background-color: var(--primary);  
}
.list-answer::before {
	content: 'Ａ';
	background-color: var(--color-secondary);
}


/* 文章 - 內文圖片；對應 <img1> */
.img-container {
	overflow: hidden;
	text-align: center;
    margin: 1rem 0;
}
.img-container img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform 0.5s ease;
}


/* 文章 - 內文影片；對應 <yt> */
.video-container {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 */
	height: 0;
	overflow: hidden;
	margin: var(--space-lg) 0;
	border-radius: 4px;
	border: 1px solid var(--surface-variant);
}
.video-container iframe,
.video-container video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}
.embed-responsive {
	width: 100%;
	margin: 0 auto;
}


/* 文章 - 內文新聞連結；對應 <t><a> */
.news-links {
    margin: 1.5rem 0;
}
.news-links a {
    display: inline-block;
    margin: 0.25rem 0.5rem 0.25rem 0;
    font-size: 0.95rem;
    padding: 0.4rem 0.75rem;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
	background-color: var(--bg-soft);
}
.news-links a:hover {
    font-weight: 700;
}


/* ==========================================================================
   Treatment Article Detail Page (.treat-detail-page)
   ========================================================================== */
.treat-detail-layout {
	display: grid;
	grid-template-columns: 1fr;
}
@media (min-width: 1200px) {
	.treat-detail-layout {
		grid-template-columns: 3fr 9fr;
	}
}
@media (max-width: 768px) {
	.treat-detail-layout {
		gap: var(--space-md);
	}
}
.treat-detail-title {
	font-size: 2.2rem;
	font-weight: 700;
	color: var(--on-surface);
	margin-bottom: var(--space-md);
	line-height: 1.5;
	padding-bottom: var(--space-md);
	border-bottom: 1px solid var(--surface-variant);
	letter-spacing: 0.05em;
	text-align: justify;
}
@media (max-width: 768px) {
	.treat-detail-title {
		font-size: 1.5rem;
		line-height: 1.4;
	}
}
.treat-detail-body {
	background: var(--on-white);
	padding: var(--space-lg);
	border: 1px solid var(--color-accent-peach);
}
@media (max-width: 768px) {
	.treat-detail-body {
		padding: var(--space-md);
		word-break: break-word;
		overflow-wrap: break-word;
	}
}

.treat-detail-body h4 {
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--on-surface);
	margin: var(--space-md) 0 var(--space-sm) 0;
	letter-spacing: 0.05em;
}
.treat-detail-body ol {
	padding-left: 1.5rem;
	margin-bottom: var(--space-md);
}
.treat-detail-body ol li {
	margin-bottom: var(--space-sm);
	font-size: 1.1rem;
	line-height: 2.0;
	color: var(--on-surface-variant);
	padding-left: 0.5rem;
	letter-spacing: 0.05em;
}

.treat-detail-cta {
	margin-top: var(--space-lg);
	padding-top: var(--space-lg);
	border-top: 1px solid var(--surface-variant);
	text-align: center;
}
.btn-muji-primary {
	display: inline-block;
	padding: 0.8rem 3rem;
	background-color: var(--primary);
	color: var(--on-white);
	border-radius: 4rem;
	font-size: 1.15rem;
	font-weight: 500;
	letter-spacing: 0.15em;
	transition: opacity 0.3s ease;
	text-decoration: none;
}
.btn-muji-primary:hover {
	opacity: 0.85;
	color: var(--on-white);
	background-color: var(--color-secondary);
}


/* ==========================================================================
   Recommended Articles Sidebar
   ========================================================================== */
@media (min-width: 992px) {
	.related-posts { margin-left: var(--space-md-sm); }
}
._popIn_recommend_header {
	font-weight: bold;
	letter-spacing: 1px;
	color: var(--primary);
	font-size: 1.3rem;
	padding-bottom: var(--space-md-sm);
}