/* ========== 頁首區域 ========== */
.page-header-area {
	position: relative;
	padding: 30px 0;
	background-color: #FF9900;
	background-size: cover;
	background-position: center;
}
.page-header-area::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}
.page-header-area .container { position: relative; z-index: 2; }
.page-header-area .col-12 {
	flex: 0 0 100%;
	max-width: 100%;
	width: 100%;
	text-align: center;
}
.page-title { font-size: 36px; font-weight: 700; color: #fff; margin-bottom: 15px; }
.page-header-area .breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	list-style: none;
	background: transparent;
	padding: 0;
	margin: 0;
	color: #fff;
}
.page-header-area .breadcrumb-item {
	display: inline-flex;
	align-items: center;
	padding: 0;
	color: rgba(255,255,255,0.85);
	font-weight: 400;
	line-height: 1.6;
	list-style: none;
}
.page-header-area .breadcrumb-item + .breadcrumb-item::before {
	content: "/";
	padding: 0 10px;
	color: rgba(255,255,255,0.55);
	font-weight: 400;
}
.page-header-area .breadcrumb-item a {
	color: rgba(255,255,255,0.85);
	text-decoration: none;
	font-weight: 400;
}
.page-header-area .breadcrumb-item a:hover { color: #fff; text-decoration: none; }
.page-header-area .breadcrumb-item.active { color: #fff; font-weight: 500; }

/* ========== 主要內容區域 ========== */
.course-detail-area { padding: 60px 0; background: #f8f9fa; }
.course-detail-area > .container > .row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
}
.course-detail-area > .container > .row > .col-lg-8,
.course-detail-area > .container > .row > .col-lg-4 {
	box-sizing: border-box;
	float: none;
	min-width: 0;
	width: 100%;
	max-width: 100%;
	flex: 0 0 100%;
}
@media (min-width: 992px) {
	.course-detail-area > .container > .row > .col-lg-8 {
		flex: 0 0 66.666667%;
		max-width: 66.666667%;
		width: 66.666667%;
	}
	.course-detail-area > .container > .row > .col-lg-4 {
		flex: 0 0 33.333333%;
		max-width: 33.333333%;
		width: 33.333333%;
	}
}
.course-content-wrapper {
	background: #fff;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0,0,0,0.05);
	margin-bottom: 40px;
}

/* ========== 圖片區域 ========== */
.course-gallery { position: relative; }
.course-main-image { width: 100%; height: auto; object-fit: cover; }
.course-status-badge {
	position: absolute;
	top: 0px;
	right: 0px;
	padding: 8px 18px;
	border-radius: 40px;
	font-size: 13px;
	font-weight: 600;
	color: #fff;
	z-index: 2;
}
.status-enroll { background: #28a745; }
.status-full { background: #dc3545; }
.status-finished { background: #6c757d; }
.status-little { background: #ffc107; color: #333; }

/* ========== 課程標題區域 ========== */
.course-header { padding: 30px 5px 20px; border-bottom: 1px solid #eef2f6; }
.course-title { font-size: 28px; font-weight: 700; color: #1e1e1e; margin-bottom: 15px; }
.course-meta { display: flex; flex-wrap: wrap; gap: 25px; }
.course-meta-item { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #666; }
.course-meta-item i { width: 18px; color: #f74b56; }

/* ========== 時間表樣式 ========== */
.timetable-section {
	margin: 20px 35px 30px;
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.timetable-header {
	background: linear-gradient(135deg, #FF9900 0%, #f5a037 100%);
	color: white;
	padding: 15px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}
.timetable-header h4 {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	color: #fff;
}
.timetable-header h4 i {
	margin-right: 8px;
}
.class-count-badge {
	background: rgba(255,255,255,0.2);
	padding: 2px 8px;
	border-radius: 20px;
	font-size: 12px;
	margin-left: 10px;
}
.btn-toggle-timetable {
	background: rgba(255,255,255,0.2);
	color: white;
	border: none;
	padding: 6px 15px;
	border-radius: 30px;
	cursor: pointer;
	font-size: 13px;
	transition: all 0.3s;
}
.btn-toggle-timetable:hover {
	background: rgba(255,255,255,0.3);
	transform: translateY(-1px);
}
.timetable-wrapper {
	overflow-x: auto;
	padding: 20px;
	background: #fff;
}
.timetable {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}
.timetable th {
	background: #f8f9fa;
	font-weight: 700;
	color: #FF9900;
	border: 1px solid #eef2f6;
	padding: 12px;
	text-align: center;
}
.timetable td {
	border: 1px solid #eef2f6;
	padding: 10px;
	text-align: center;
}
.timetable tr:hover td {
	background: #f8f9ff;
}
.class-number {
	font-weight: 700;
	color: #f74b56;
	background: #fff5f5;
}
.timetable-note {
	padding: 12px 20px;
	background: #f8f9fa;
	font-size: 12px;
	color: #666;
	border-top: 1px solid #eef2f6;
}

/* ========== 班次卡片 ========== */
.sessions-section { margin: 0 35px 30px; }
.section-title {
	font-size: 22px;
	font-weight: 700;
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 2px solid #f74b56;
	display: inline-block;
}

.session-card {
	background: #fff;
	border-radius: 16px;
	margin-bottom: 25px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0,0,0,0.08);
	transition: all 0.3s ease;
	border: 1px solid #eef2f6;
}
.session-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.session-card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 20px;
	background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
	border-bottom: 1px solid #eef2f6;
	flex-wrap: wrap;
	gap: 10px;
}
.session-title-area {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}
.session-title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: #FF9900;
}
.confirm-badge {
	background: #28a745;
	color: #fff;
	padding: 5px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 500;
}
.level-badge {
	padding: 5px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
}
.level-1 { background: #3498db; color: #fff; }
.level-2 { background: #2ecc71; color: #fff; }
.level-3 { background: #f39c12; color: #fff; }
.seat-badge {
	padding: 5px 14px;
	border-radius: 30px;
	font-size: 12px;
	font-weight: 600;
}
.seat-available { background: #d4edda; color: #155724; }
.seat-limited { background: #fff3cd; color: #856404; }
.seat-full { background: #f8d7da; color: #721c24; }

.session-info-summary {
	padding: 15px 20px;
	background: #f8f9fa;
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	border-bottom: 1px solid #eef2f6;
}
.session-info-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #555;
}
.session-info-item i {
	color: #f74b56;
	width: 18px;
}
.session-fee {
	font-size: 18px;
	font-weight: 700;
	color: #f74b56;
}
.original-fee {
	font-size: 13px;
	font-weight: normal;
	color: #aaa;
	text-decoration: line-through;
	margin-left: 8px;
}

.session-card-footer {
	padding: 15px 20px;
	background: #fff;
	border-top: 1px solid #eef2f6;
	text-align: right;
}
.enroll-btn {
	display: inline-block;
	padding: 10px 28px;
	background: #f74b56;
	color: #fff;
	border: none;
	border-radius: 40px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
}
.enroll-btn:hover {
	background: #e03a45;
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(247,75,86,0.3);
	color: #fff;
}
.enroll-btn.disabled {
	background: #adb5bd;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

/* ========== 手風琴 ========== */
.accordion-section { margin: 20px 35px 30px; }
.accordion-item {
	border: 1px solid #eef2f6;
	border-radius: 12px;
	margin-bottom: 15px;
	overflow: hidden;
}
.accordion-header {
	background: #f8f9fa;
	padding: 16px 25px;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: background 0.3s;
}
.accordion-header:hover { background: #f0f0f0; }
.accordion-header h4 { margin: 0; font-size: 16px; font-weight: 600; }
.accordion-content { padding: 0 25px; max-height: 0; overflow: hidden; transition: all 0.3s ease; }
.accordion-content.active { padding: 20px 5px; }
.accordion-header i { transition: transform 0.3s; }
.accordion-header.active i { transform: rotate(180deg); }

/* ========== 標籤 ========== */
.course-tags { padding: 20px 35px; border-top: 1px solid #eef2f6; }
.tags-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
	display: inline-block;
	padding: 5px 14px;
	background: #f0f0f0;
	border-radius: 20px;
	font-size: 12px;
	color: #555;
	text-decoration: none;
}
.tag:hover { background: #f74b56; color: #fff; }

/* ========== 分享按鈕 ========== */
.share-section {
	padding: 25px 35px 30px;
	text-align: center;
	border-top: 1px solid #eef2f6;
}
.share-title {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 18px;
	color: #333;
}
.share-buttons {
	display: flex;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
}
.share-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 8px 20px;
	border-radius: 40px;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	transition: all 0.3s ease;
	cursor: pointer;
	border: none;
	min-width: 100px;
}
.share-btn i { font-size: 16px; }
.share-btn span { display: inline; }
.share-btn.facebook { background: #3b5998; color: #fff; }
.share-btn.whatsapp { background: #25d366; color: #fff; }
.share-btn.email { background: #ea4335; color: #fff; }
.share-btn.copy { background: #6c757d; color: #fff; }
.share-btn:hover {
	transform: translateY(-2px);
	opacity: 0.9;
	color: #fff;
	text-decoration: none;
}

/* ========== 側邊欄 ========== */
.course-sidebar { position: sticky; top: 100px; }
.sidebar-widget {
	background: #fff;
	border-radius: 16px;
	padding: 25px;
	margin-bottom: 25px;
	box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.widget-title {
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 2px solid #f74b56;
	display: inline-block;
}
.price-widget {
	text-align: center;
	background: linear-gradient(135deg, #f74b56 0%, #e03a45 100%);
	color: #fff;
}
.price-amount { font-size: 36px; font-weight: 700; }
.price-original { font-size: 18px; text-decoration: line-through; opacity: 0.7; margin-left: 10px; }
.info-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid #eef2f6;
}
.info-item:last-child { border-bottom: none; }
.info-icon {
	width: 40px;
	height: 40px;
	background: #f8f9fa;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #f74b56;
}

/* ========== 相關課程 ========== */
.related-courses { margin-top: 40px; }
.related-title { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.related-card {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0,0,0,0.05);
	transition: transform 0.3s;
}
.related-card:hover { transform: translateY(-3px); }
.related-image { height: 120px; overflow: hidden; }
.related-image img { width: 100%; height: 100%; object-fit: cover; }
.related-info { padding: 12px; }
.related-name { font-size: 14px; font-weight: 600; margin-bottom: 5px; }
.related-name a { color: #333; text-decoration: none; }
.related-name a:hover { color: #f74b56; }
.related-fee { color: #f74b56; font-weight: 600; font-size: 14px; }

/* ========== FAQ 樣式 ========== */
.faq-section {
	margin: 20px 35px 30px;
	padding: 20px 25px;
	background: #f8f9fa;
	border-radius: 16px;
	border: 1px solid #eef2f6;
}
.faq-section .faq-title {
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 20px;
	color: #1e1e1e;
}
.faq-section .faq-title i {
	color: #f74b56;
	margin-right: 10px;
}
.faq-container {
	background: #fff;
	border-radius: 12px;
	padding: 5px 20px 10px;
}
.faq-item {
	border-bottom: 1px solid #eef2f6;
	padding: 12px 0;
}
.faq-item:last-child {
	border-bottom: none;
}
.faq-question {
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
	padding: 5px 0;
	border-radius: 8px;
	transition: background 0.3s;
}
.faq-question:hover {
	background: rgba(247,75,86,0.05);
}
.faq-question .question-text {
	font-weight: 600;
	font-size: 16px;
	color: #1e1e1e;
	display: flex;
	align-items: center;
	gap: 10px;
}
.faq-question .question-text i {
	color: #f74b56;
	font-size: 14px;
	transition: transform 0.3s;
}
.faq-question .fa-chevron-down {
	color: #999;
	font-size: 14px;
	transition: transform 0.3s;
}
.faq-answer {
	padding-left: 30px;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease, padding 0.3s ease, opacity 0.3s ease;
	color: #555;
	font-size: 15px;
	line-height: 1.7;
	opacity: 0;
}
.faq-answer.open {
	padding-top: 10px;
	padding-bottom: 5px;
	opacity: 1;
}


/* 響應式設計 */
@media (max-width: 992px) {
	.course-sidebar { margin-top: 30px; position: static; }
	.course-title { font-size: 24px; }
}

@media (max-width: 768px) {
	
	.course-detail-area .container {
        margin: 0 0px !IMPORTANT;
    }
	
	.course-header, .sessions-section, .accordion-section, .course-tags, .share-section,
	.timetable-section, .faq-section {
		margin: 0 10px 20px;
	}
	.session-card-header {
		flex-direction: column;
		align-items: flex-start;
	}
	.session-info-summary {
		flex-direction: column;
		gap: 10px;
	}
	.session-card-footer {
		text-align: center;
	}
	.enroll-btn {
		width: 100%;
	}
	.share-btn span { display: none; }
	.timetable th, .timetable td {
		padding: 6px 3px;
		font-size: 10px;
	}
	.faq-section {
		padding: 15px;
	}
	.faq-container {
		padding: 5px 10px 10px;
	}
	.faq-question .question-text {
		font-size: 14px;
	}
	.faq-answer {
		font-size: 14px;
		padding-left: 20px;
	}
}

@media (max-width: 480px) {
	.third-party-content-scope .iqa-header h1 { font-size: 1.5rem; }
	.third-party-content-scope .iqa-content { padding: 20px 15px; }
	.third-party-content-scope .table-style td { display: block; width: 100%; padding: 8px 0; }
	.third-party-content-scope .table-style td:first-child { border-bottom: none; }
	
	.third-party-content-scope .iqa-container {
		width: 100% !important;         
		border-radius: 0 !important;
		box-shadow: none !important;
	}

	.third-party-content-scope .iqa-content {
		padding: 20px 12px !important;
	}

	.third-party-content-scope .paragraph,
	.third-party-content-scope .course-list li,
	.third-party-content-scope .highlight-box {
		font-size: 1rem !important;
		word-break: break-word;
	}

	.third-party-content-scope .section-title {
		font-size: 1.4rem !important;
	}

	.third-party-content-scope .subsection-title {
		font-size: 1.2rem !important;
	}
	.session-title-area .level-badge {
		white-space: nowrap;
		flex-shrink: 0;
		font-size: 11px;      
		padding: 4px 10px;   
	}
	.share-btn {
		min-width: 40px !important;
		padding: 8px !important;
		border-radius: 50% !important;
		width: 44px;
		height: 44px;
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
	}
	.share-btn span {
		display: none !important;       
	}
	.share-btn i {
		font-size: 18px !important;     
		margin: 0 !important;         
	}
	
	@media (max-width: 380px) {
		.third-party-content-scope .iqa-content {
			padding: 15px 10px !important;
		}
		.third-party-content-scope .paragraph,
		.third-party-content-scope .course-list li {
			font-size: 0.95rem !important;
		}
	}
}

/* 平滑滾動 */
html {
	scroll-behavior: smooth;
	scroll-padding-top: 80px;
}