/* ============================================
   共用樣式 - Header & Footer
   ============================================ */

/* CSS Variables */
:root {
	--theme-palette-color-1: #0C3484;
	--theme-palette-color-2: #C6A485;
	--theme-palette-color-3: #1A1A1A;
	--theme-palette-color-8: #ffffff;
	--theme-container-width: 1200px;
	--theme-normal-container-max-width: 1200px;
}

/* Reset & Base */
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}
.logo{
    float: left;
    display: block;}
 .menu{
    float: right;
}
body {
	font-family: "Zen Old Mincho", "Noto Serif TC", "Noto Serif SC", serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	line-height: 1.6;
	color: #333;
	background-color: #fff;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	text-decoration: none;
	color: inherit;
	transition: opacity 0.3s ease;
}

a:hover {
	opacity: 0.8;
}

/* Skip Link */
.skip-link {
	position: absolute;
	left: -9999px;
	z-index: 999999;
}

.skip-link.show-on-focus:focus {
	left: 6px;
	top: 7px;
	background: #000;
	color: #fff;
	padding: 8px 16px;
	text-decoration: none;
}

/* Container */
.ct-container {
	max-width: var(--theme-container-width);
	margin: 0 auto;
	padding: 0 20px;
	width: 100%;
}

/* Container Full - 主要內容區塊 */
.ct-container-full {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 20px;
	width: 100%;
}

/* ============================================
   Header Styles
   ============================================ */

/* Header Base */
.ct-header {
	background-color: var(--theme-palette-color-1);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	position: relative;
	z-index: 1000;
}

/* 行動版 Header 固定在頂部 */
@media (max-width: 999.98px) {
	.ct-header {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		width: 100%;
		z-index: 1001;
		background-color: var(--theme-palette-color-1);
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	}
	
	/* 為 main-container 添加 padding-top，避免內容被固定 header 遮擋 */
	#main-container {
		padding-top: 70px;
	}
}

.ct-sticky-container {
	position: relative;
}

[data-sticky="shrink"] {
	transition: all 0.3s ease;
}

/* Header Layout */
[data-row="middle"] {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0px 0;
}

[data-column="start"] {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
}

[data-column="end"] {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	margin-left: auto;
}

/* Logo */
.site-branding {
	display: flex;
	align-items: center;
}

.site-logo-container {
	display: inline-block;
}

.site-logo-container img {
	height: 56px;
	width: auto;
}

/* Text Logo */
.logo-text {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
	padding: 10px;
}

.logo-chinese {
	font-size: 38px;
	font-weight: 600;
	color: var(--theme-palette-color-2);
	letter-spacing: 1px;
}

.logo-english {
	font-size: 12px;
	font-weight: 400;
	color: var(--theme-palette-color-2);
	letter-spacing: 0.5px;
	margin-top: 2px;
}

/* Navigation Menu */
.header-menu-1 {
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.menu-container ul.menu {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 25px;
	align-items: center;
	flex-wrap: wrap;
	margin-top: 16px;
}

.menu-container .menu-item {
	position: relative;
}

.ct-menu-link {
	display: block;
	padding: 8px 0;
	color: #fff;
	font-size: 16px;
	font-weight: 500;
	transition: opacity 0.3s ease;
	white-space: nowrap;
}

.ct-menu-link:hover {
	opacity: 0.8;
}

/* Mobile Menu Button */
.ct-header-trigger {
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.ct-header-trigger .ct-icon {
	fill: #fff;
}

.ct-label {
	font-size: 14px;
	color: #fff;
}

/* Mobile Hidden */
.ct-hidden-sm,
.ct-hidden-md,
.ct-hidden-lg {
	display: none;
}

/* ============================================
   Sidebar Menu (Offcanvas)
   ============================================ */

.ct-drawer-canvas {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 9999;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ct-drawer-canvas.active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

#offcanvas {
	position: fixed;
	top: 0;
	right: -100%;
	width: 320px;
	max-width: 85vw;
	height: 100%;
	background: #fff;
	box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
	transition: right 0.3s ease;
	overflow-y: auto;
}

.ct-drawer-canvas.active #offcanvas {
	right: 0;
}

.ct-panel-inner {
	padding: 20px;
}

.ct-panel-actions {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 20px;
}

.ct-toggle-close {
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
}

.ct-toggle-close .ct-icon {
	fill: #333;
}

.mobile-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mobile-menu .menu-item {
	border-bottom: 1px solid #eee;
}

.mobile-menu .ct-menu-link {
	padding: 15px 0;
	display: block;
	color: #333;
	font-size: 16px;
}

.mobile-menu .ct-menu-link:hover {
	color: var(--theme-palette-color-1);
}

/* ============================================
   Footer Styles
   ============================================ */

.ct-footer {
	background-color: #1a1a1a;
	background-image: url('../image/footerbg.jpg');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	position: relative;
	color: #fff;
	padding: 60px 0 30px;
	margin-top: 60px;
}

/* 添加半透明覆蓋層以確保文字可讀性 */
.ct-footer::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(26, 26, 26, 0.7); /* 半透明黑色覆蓋層 */
	z-index: 0;
}

/* 確保 footer 內容在覆蓋層之上 */
.ct-footer > * {
	position: relative;
	z-index: 1;
}

.ct-footer [data-row="middle"] {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 40px;
	margin-bottom: 40px;
}

.footer-content {
	color: #fff;
}

.footer-logo {
	margin-bottom: 20px;
}

.footer-logo img {
	width: 200px;
	height: auto;
	margin: 0 auto;
}

.footer-info {
	display: flex;
	gap: 40px;
	line-height: 1.8;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.9);
}

.footer-info-left,
.footer-info-right {
	flex: 1;
}
.footer-info-left{
	text-align:right;
}
/* 手機版改為上下排列 */
@media (max-width: 768px) {
	.footer-info {
		flex-direction: column;
		gap: 20px;
	}
}

/* Social Icons */
.ct-footer-socials {
	margin-top: 20px;
	display: flex;
	justify-content: center;
}

.ct-social-box {
	display: flex;
	gap: 15px;
	align-items: center;
	justify-content: center;
}

.ct-social-box a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.1);
	transition: background-color 0.3s ease;
}

.ct-social-box a:hover {
	background-color: rgba(255, 255, 255, 0.2);
}

.ct-icon-container {
	display: flex;
	align-items: center;
	justify-content: center;
}

.ct-icon-container svg {
	fill: #fff;
	width: 20px;
	height: 20px;
}

/* Copyright */
.ct-footer-copyright {
	text-align: center;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ct-footer-copyright p {
	margin: 0;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.7);
}

.ct-footer-copyright a {
	color: rgba(255, 255, 255, 0.9);
	text-decoration: underline;
}

.ct-footer-copyright a:hover {
	color: #fff;
}

/* ============================================
   Back to Top Button
   ============================================ */

.ct-back-to-top {
	position: fixed;
	bottom: 30px;
	right: 30px;
	width: 50px;
	height: 50px;
	background-color: var(--theme-palette-color-1);
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
	z-index: 999;
	cursor: pointer;
}

.ct-back-to-top:not([hidden]) {
	opacity: 1;
	visibility: visible;
}

.ct-back-to-top:hover {
	transform: translateY(-5px);
	background-color: var(--theme-palette-color-2);
}

.ct-back-to-top .ct-icon {
	fill: #fff;
	width: 15px;
	height: 15px;
}

/* ============================================
   LINE 對話按鈕和報名按鈕
   ============================================ */

.ct-line-button {
	position: fixed;
	bottom: 100px;
	right: 30px;
	min-width: 50px;
	height: 50px;
	background-color: #06C755;
	border-radius: 25px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	z-index: 999;
	cursor: pointer;
	padding: 0 15px;
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	text-decoration: none;
	white-space: nowrap;
}

.ct-line-button:hover {
	transform: translateY(-5px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}
.ct-register-button {
    position: fixed;
    bottom: 160px;
    right: 30px;
    min-width: 50px;
    height: 50px;
    background-color: #840c14;
    color: #fff;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    z-index: 999;
    cursor: pointer;
    padding: 0 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    scroll-behavior: smooth;
}

.ct-register-button:hover {
	transform: translateY(-5px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
	background-color: var(--theme-palette-color-2);
}

.ct-register-button span {
	color: #fff;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 999.98px) {
	.menu-container ul.menu {
		gap: 18px;
	}
	
	.ct-menu-link {
		font-size: 14px;
	}
	
	.logo-chinese {
		font-size: 20px;
	}
	
	.logo-english {
		font-size: 11px;
	}
}

@media (max-width: 689.98px) {
	/* Hide desktop menu on mobile */
	[data-device="desktop"] {
		display: none;
	}
	
	/* Show mobile menu button */
	[data-device="mobile"] {
		display: block;
	}
	
	/* Logo responsive */
	.logo-chinese {
		font-size: 25px;
	}
	
    .logo-english {
        font-size: 6.5px;
    }
	
	/* Footer responsive */
	.ct-footer [data-row="middle"] {
		flex-direction: column;
		gap: 30px;
	}
	
	.footer-info {
		font-size: 13px;
	}
	
	.ct-line-button {
		bottom: 90px;
		right: 20px;
		min-width: 45px;
		height: 45px;
		padding: 0 12px;
		font-size: 10px;
		border-radius: 22.5px;
	}
	
	 .ct-register-button {
        bottom: 145px;
        right: 20px;
        min-width: 45px;
        height: 45px;
        padding: 0 0px;
        font-size: 12px;
    }
	
	.ct-back-to-top {
		bottom: 20px;
		right: 20px;
		width: 45px;
		height: 45px;
	}
	.logo-text {
    padding-top: 10px;
}
}

@media (min-width: 690px) {
	/* Hide mobile menu button on desktop */
	[data-device="mobile"] {
		display: none;
	}
	
	/* Show desktop menu */
	[data-device="desktop"] {
		display: block;
	}
}

/* ============================================
   Utility Classes
   ============================================ */

.text-center {
	text-align: center;
}

.mt-20 {
	margin-top: 20px;
}

.mb-20 {
	margin-bottom: 20px;
}

