/* ============================================
   康軒SEL教學資源網 - 主樣式表
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ============================================
   CSS Variables (設計變數)
   ============================================ */
:root {
    /* 主色調 */
    --color-primary-dark: #404252;
    --color-primary-text: #101223;
    --color-secondary-text: #777986;

    /* 背景色 */
    --color-bg-main: #F3F4F8;
    --color-bg-white: #FFFFFF;
    --color-bg-pink: #F4A5AA;
    --color-bg-pink-light: #FDEDED;
    --color-bg-blue: #8ECAD5;
    --color-bg-yellow: #FFD663;
    --color-bg-green: #B1E8CB;
    --color-bg-dark: #101223;

    /* SEL 主題色 */
    --color-sel-pink: #F1919D;
    --color-sel-blue: #8ECAD5;
    --color-sel-blue-dark: #40AABE;
    --color-sel-green: #79C19B;
    --color-sel-yellow: #FFD663;
    --color-sel-orange: #FFB163;
    --color-sel-red: #A3182A;
    --color-sel-teal: #5A7A7A;

    /* 灰階 */
    --color-gray-light: #E8E9ED;

    /* 間距 */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 2.5rem;
    --spacing-3xl: 3.5rem;
    --spacing-4xl: 5rem;

    /* 圓角 */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2.5rem;
    --radius-3xl: 10rem;
    --radius-full: 9999px;

    /* 容器寬度 */
    --container-width: 1320px;
    --container-narrow: 1200px;
    --container-wide: 1080px;
}

/* ============================================
   Base Styles (基礎樣式)
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 68px;
    overflow-x: hidden;
    overflow-y: scroll;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    color: var(--color-primary-dark);
    background-color: var(--color-bg-main);
}

img {
    max-width: none;
    object-fit: contain;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

ul {
    list-style-position: inside;
}

/* ============================================
   Layout Utilities (版面工具)
   ============================================ */
.page-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--color-bg-main);
    min-width: 100vw;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
    z-index: 3;
}

.container {
    width: var(--container-width);
}

.container-narrow {
    width: var(--container-narrow);
}

.w-full {
    width: 100%;
}

.w-fit {
    width: fit-content;
}

/* ============================================
   Header Navigation (頁首導航)
   ============================================ */
.header {
    display: flex;
    padding: 1rem 5rem;
    justify-content: space-between;
    align-items: center;
    background-color: var(--color-bg-white);
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

.header-logo {
    width: 100px;
    height: 36px;
    object-fit: contain;
}

.header-nav {
    display: flex;
    padding: 0.5rem 0 0.5rem 1.5rem;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    border-radius: 1.5rem;
    background-color: var(--color-bg-white);
    overflow: hidden;
}

.nav-home-link {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.2s;
}

.nav-home-link:hover {
    opacity: 0.7;
}

.header-nav-icon {
    width: 20px;
    height: 20px;
}

.header-nav-links {
    display: flex;
    padding: 0.125rem 0.5rem;
    align-items: center;
    gap: 1rem;
}

.nav-link {
    color: var(--color-primary-dark);
    font-size: 1.125rem;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--color-sel-blue-dark);
}

/* Mobile Hamburger Menu (手機版漢堡選單) */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-primary-dark);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger animation when menu is open */
.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   Hero Section (主視覺區)
   ============================================ */
.headBanner {
	position: fixed;
	width: 100%;
	height: auto;
	top: 68px;
	left: 0;
	flex-shrink: 0;
	z-index: 3;
  transition: opacity 0.1s ease-out;
}

.hero-image {
	width: 100%;
}

.headBanner .cloud {
	position: absolute;
	top: 0;
	right: 0;
	width: 100%;
	height: 70%;
	/* background: rgba(0, 0, 0, 0.3); */
	z-index: 4;
}

.headBanner .cloud p {
	position: absolute;
	right: -100%;
	transform: translateX(-50%);
	background: url(images-a2c8b41/icon-cloud.png);
	background-size: cover;
	animation-name: cloud;
  animation-duration: 22s;
	animation-timing-function: linear;
	animation-iteration-count: infinite;
}

.headBanner .cloud p:nth-of-type(1) {
	top: 30%;
	width: 100px;
	height: 70px;
}

.headBanner .cloud p:nth-of-type(2) {
	top: 35%;
	width: 80px;
	height: 56px;
	animation-delay: 6s;
}

.headBanner .cloud p:nth-of-type(3) {
	top: 30%;
	width: 100px;
	height: 70px;
	animation-delay: 11s;
}

@keyframes cloud {
  0% {
    right: 5%;
		opacity: 0;
  }
	20% {
		opacity: 100%;
	}
	70% {
		opacity: 100%;
	}
  100% {
    right: 40%;
		opacity: 0%;
  }
}

/* Fixed pink background layer - sits behind content but shows when scrolling */
.fixed-pink-bg {
    position: fixed;
    top: 68px;
    left: 0;
    width: 100%;
    height: calc(100vh - 68px);
    background-color: var(--color-bg-pink);
    z-index: 2;
    pointer-events: none;
}

/* ============================================
   Pink Stats Section (粉色統計區)
   ============================================ */
.stats-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    background-color: transparent;
    width: 100%;
    overflow: visible;
    position: relative;
    z-index: 10;
    margin-top: calc(100vw * 0.42 + 68px + 80px);
}

.stats-section-title {
    color: var(--color-bg-pink-light);
    font-size: 3rem;
    font-weight: 600;
}

.stats-content-wrapper {
    cursor: pointer;
    display: flex;
    padding: 2.5rem 0 100px 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 60px;
    border-radius: 160px 160px 0 0;
    background-color: var(--color-bg-pink-light);
    width: 100%;
    overflow: hidden;
}

.stats-description {
    color: #000;
    font-size: 1.25rem;
    line-height: 2;
    text-align: center;
}

.stats-cards {
    display: flex;
    align-items: flex-start;
    gap: 5rem;
    width: var(--container-width);
}

.stat-card {
    display: flex;
    padding: 1.5rem;
    flex-direction: column;
    align-items: center;
    gap: 0.625rem;
    border-radius: 2.5rem;
    background-color: var(--color-bg-white);
    width: 100%;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.stat-circle {
    display: flex;
    padding: 5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.625rem;
    border-radius: 500px;
    width: 250px;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.stat-circle-green { background-color: var(--color-sel-green); }
.stat-circle-blue { background-color: var(--color-sel-blue); }
.stat-circle-yellow { background-color: var(--color-sel-yellow); }

/* 左card的小雲 */
.stat-circle-cloud {
    position: absolute;
    left: 27px;
    top: 29px;
    width: 106px;
    height: 73px;
}

/* 中間card小雲 */
.stat-circle-cloud-sm-tl {
    position: absolute;
    left: 35px;
    top: 25px;
    width: 50px;
    height: 35px;
}

/* 中間card大雲 */
.stat-circle-cloud-lg-br {
    position: absolute;
    right: 30px;
    bottom: 150px;
    width: 80px;
    height: 55px;
}

/* 右邊card大雲 */
.stat-circle-cloud-lg-tl {
    position: absolute;
    left: 130px;
    top: 20px;
    width: 80px;
    height: 55px;
}

.stat-circle-image {
    position: absolute;
    max-width: none;
    object-fit: contain;
}

.stat-circle-image-1 {
    left: -2px;
    bottom: 5px;
    width: 245px;
    height: 239px;
}

.stat-circle-image-2 {
    left: 2px;
    bottom: -5px;
    width: 245px;
    height: 249px;
}

.stat-circle-image-3 {
    left: 0;
    bottom: -5px;
    width: 240px;
    height: 259px;
}

.stat-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.stat-number {
    color: var(--color-primary-dark);
    font-size: 2.5rem;
    font-weight: 600;
}

.stat-label {
    color: var(--color-primary-dark);
    font-size: 1.5rem;
}

/* ============================================
   SEL Core Concepts Section (核心概念區)
   ============================================ */
.core-concepts-section {
    display: flex;
    padding-top: 60px;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    background-color: var(--color-bg-pink-light);
    width: 100%;
    overflow: visible;
    position: relative;
    z-index: 10;
}

.section-title-wrapper {
    position: relative;
}

.section-title-image {
    position: absolute;
    left: -140px;
    top: 50%;
    transform: translateY(-38%);
    width: 150px;
    height: auto;
    object-fit: contain;
    z-index: 10;
}

.section-title {
    font-size: 3rem;
    font-weight: 600;
}

.section-title-dark { color: var(--color-primary-dark); }
.section-title-pink { color: var(--color-sel-pink); }
.section-title-blue { color: var(--color-sel-blue); }
.section-title-green { color: var(--color-sel-green); }

.core-concepts-content {
    display: flex;
    padding: 3.5rem 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    border-radius: 160px 160px 0 0;
    background-color: var(--color-sel-blue);
    width: 100%;
    overflow: visible;
    position: relative;
}

/* Cloud Decorations */
/* 雲朵定位：固定在教授卡片左邊 20px 的位置 */
/* 教授卡片寬度 1000px，置中顯示，所以卡片左邊緣距離中心 500px */
/* 雲朵右邊緣 = 中心 - 500px - 20px = 中心 - 520px */
.cloud-decoration {
    position: absolute;
    z-index: 5;
}

.cloud-sm {
    /* 雲朵寬度 33px，右邊緣距離中心 520px，所以左邊緣 = 50% - 520px - 33px */
    left: calc(50% - 600px);
    top: 90px;
    width: 33px;
    height: 23px;
}

.cloud-lg {
    /* 雲朵寬度 68px，右邊緣距離中心 520px，所以左邊緣 = 50% - 520px - 68px */
    left: calc(50% - 588px);
    top: 130px;
    width: 68px;
    height: 47px;
}

/* Professor Card */
.professor-card {
    position: relative;
    width: 1000px;
    height: 240px;
    border-radius: 1rem;
    overflow: visible;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.professor-card-bg-white {
    position: absolute;
    inset: 0;
    background-color: white;
    border-radius: 1rem;
    clip-path: polygon(0 0, 75% 0, 60% 100%, 0 100%);
}

.professor-card-bg-image-wrapper {
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    overflow: hidden;
}

.professor-card-bg-image {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    object-fit: cover;
    clip-path: polygon(25% 0, 100% 0, 100% 100%, 0 100%);
}

.professor-card-content {
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    width: 500px;
    height: 100%;
}

.professor-card-title {
    color: var(--color-primary-dark);
    font-size: 1.5rem;
    font-weight: 600;
}

.professor-card-list {
    color: var(--color-primary-dark);
    font-size: 1rem;
    line-height: 2;
    list-style-type: disc;
    list-style-position: outside;
    padding-left: 1.2em;
}

.professor-card-image {
    position: absolute;
    right: 2rem;
    top: -3rem;
    height: 290px;
    width: auto;
    object-fit: contain;
    z-index: 10;
}

/* Five Core Concepts */
.five-concepts {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1.5rem;
    width: var(--container-narrow);
    padding-bottom: 2rem;
    margin-top: 2rem;
}

.concept-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.concept-item-up { margin-bottom: 6rem; }
.concept-item-down { margin-top: 6rem; }

.concept-circle {
    position: relative;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.concept-circle:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.concept-circle-inner {
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: linear-gradient(to bottom, var(--color-gray-light) 0%, var(--color-gray-light) 80%, white 80%, white 100%);
}

.concept-circle-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -12px;
}

.concept-title {
    color: #404252;
    font-weight: 600;
    font-size: 1.8rem;
    line-height: 1;
}

.concept-subtitle {
    color: #404252;
    font-size: 1.05rem;
    margin-top: 2px;
    margin-bottom: 0.5rem;
}

.concept-subtitle-xs {
    font-size: 0.75rem;
}

.concept-icon {
    width: 4rem;
    height: auto;
    object-fit: contain;
    margin-bottom: 5px;
}

.concept-arrow-btn {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background-color: var(--color-sel-blue);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

/* ============================================
   SEL專文 Section
   ============================================ */
.articles-section {
    display: flex;
    padding-top: 60px;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    background-color: var(--color-sel-blue);
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.articles-section-title {
    color: white;
    font-size: 3rem;
    font-weight: 600;
}

.articles-section-title .text-dark {
    color: var(--color-primary-dark);
}

.articles-title-image {
    position: absolute;
    left: -90px;
    bottom: -24px;
    width: 60px;
    height: auto;
    object-fit: contain;
}

.articles-content {
    display: flex;
    padding: 5rem 0 3.5rem 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    border-top-left-radius: 160px;
    border-top-right-radius: 160px;
    background-color: var(--color-bg-white);
    width: 100%;
    overflow: hidden;
    position: relative;
}

.download-btn {
    display: flex;
    padding: 6px 48px 6px 24px;
    align-items: center;
    gap: 2.5rem;
    flex-shrink: 0;
    border-radius: 1.5rem;
    border: 2px solid var(--color-sel-blue-dark);
    background-color: var(--color-sel-blue-dark);
    overflow: hidden;
    position: relative;
		cursor: pointer;
		transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.download-btn:hover {
		transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.download-btn-text {
    color: white;
    font-size: 1.25rem;
}

.download-btn-arrow {
    position: absolute;
    right: 28px;
    bottom: 14px;
    width: 7px;
    height: 13px;
}

.articles-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: var(--container-width);
    overflow: hidden;
}

.articles-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: var(--container-width);
    position: relative;
}

.gallery-slider-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--container-width);
    position: relative;
}

/* 專文輪播箭頭按鈕 - 使用絕對定位讓按鈕圓心對齊輪播邊緣 */
.gallery-arrow-left {
    position: absolute;
    left: -24px;
    top: 50%;
    transform: translateY(-50%);
}

.gallery-arrow-right {
    position: absolute;
    right: -24px;
    top: 50%;
    transform: translateY(-50%);
}

.articles-images {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    flex: 1;
    overflow: hidden;
}

/* Swiper Styles */
.articles-swiper {
    width: var(--container-width);
    overflow: hidden;
}

.articles-swiper .swiper-slide {
    width: 280px;
}

.articles-swiper .swiper-slide a {
    display: block;
    cursor: pointer;
}

.articles-swiper .swiper-slide a:hover img {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

.article-image {
    flex-shrink: 0;
    width: 280px;
    height: 400px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Gallery Navigation Arrows */
.gallery-arrow {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    border-radius: 50% !important;
    background-color: var(--color-bg-white) !important;
    border: 2px solid var(--color-secondary-text) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.2s;
    box-sizing: border-box;
}

.gallery-arrow:hover {
    background-color: #f0f0f0;
}

/* Bottom Pagination */
.gallery-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.pagination-arrow {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-secondary-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
    flex-shrink: 0;
    box-sizing: border-box;
}

.pagination-arrow:hover {
    background-color: #f0f0f0;
}

.pagination-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.articles-swiper-pagination.swiper-pagination-bullets {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-dot {
    width: 8px;
    height: 8px;
    min-width: 8px;
    min-height: 8px;
    border-radius: 50%;
    background-color: #FFE0C2;
    cursor: pointer;
    transition: background-color 0.2s;
    opacity: 1;
    flex-shrink: 0;
}

.pagination-dot.active,
.pagination-dot.swiper-pagination-bullet-active {
    background-color: #FF9F43;
}

.pagination-dot:hover {
    background-color: #FF9F43;
}

/* Override Swiper default pagination styles */
.articles-swiper-pagination {
    position: static;
    width: auto;
}

.articles-swiper-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    min-width: 8px;
    min-height: 8px;
    border-radius: 50%;
    background-color: #FFE0C2;
    opacity: 1;
    margin: 0 3px;
    flex-shrink: 0;
}

.articles-swiper-pagination .swiper-pagination-bullet-active {
    background-color: #FF9F43;
}

/* ============================================
   SEL教材推薦 Section
   ============================================ */
.materials-section {
    display: flex;
    padding-top: 60px;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    background-color: var(--color-bg-white);
    width: 100%;
    overflow: visible;
    position: relative;
    z-index: 10;
}

.materials-title-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.materials-title-image {
    position: absolute;
    left: -110px;
    width: 100px;
    height: auto;
    object-fit: contain;
}

.materials-section-title {
    color: var(--color-primary-dark);
    font-size: 3rem;
    font-weight: 600;
}

.materials-section-title .text-pink {
    color: #F1919D;
}

.materials-section-title .text-blue {
    color: #8ECAD5;
}

.materials-section-title .text-yellow {
    color: #FFD663;
}

.materials-section-subtitle {
    color: #000;
    font-size: 1.25rem;
    line-height: 2;
}

/* Course Map */
.course-map {
    display: flex;
    padding-top: 1.5rem;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    background-color: var(--color-bg-white);
    width: 100%;
    overflow: visible;
    box-sizing: border-box;
}

.course-map-header {
    display: flex;
    align-items: center;
    width: var(--container-width);
    overflow: hidden;
}

.course-map-title {
    color: var(--color-primary-dark);
    font-size: 1.75rem;
    font-weight: 600;
}

/* 導航容器：使用 flexbox 排列按鈕和輪播 */
.course-map-nav-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--container-width);
    position: relative;
}

/* 課程地圖箭頭按鈕 - 隱藏 */
.course-map-arrow {
    display: none;
}

.course-map-arrow-left {
    left: -24px;
}

.course-map-arrow-right {
    right: -24px;
}

.course-map-slider-wrapper {
    width: 100%;
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
}

.course-map-swiper {
    width: 100%;
    overflow: hidden;
}

/* 連續滾動效果：使用 CSS animation */
.course-map-swiper .swiper-wrapper {
    animation: marquee-scroll 50s linear infinite;
    transition: none !important;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(var(--scroll-width, -50%));
    }
}

/* 滑鼠移上去立即暫停 */
.course-map-swiper:hover .swiper-wrapper {
    animation-play-state: paused;
}

.course-map-swiper .swiper-slide {
    width: 237px;
    position: relative;
    cursor: pointer;
}

/* 課程地圖圖片覆蓋層 */
.course-map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background-color: rgba(0, 0, 0, 0.3); */
    border-radius: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.course-map-subject-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    /* background-color: #3BA8B4; */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s ease;
}

.course-map-swiper .swiper-slide:hover .course-map-subject-circle {
    transform: scale(1.15);
}

.course-map-subject-text {
    display: none;
    color: white;
    font-size: 2rem;
    font-weight: 500;
}

.course-map-images {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.course-map-image {
    border-radius: 0.5rem;
    width: 100%;
    height: auto;
    display: block;
}

/* Flexible Learning */
.flexible-learning {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--color-sel-yellow);
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.flexible-learning-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
    border-radius: 0 0 160px 160px;
    background-color: var(--color-bg-white);
    width: 100%;
    height: 220px;
    overflow: hidden;
    padding-top: 1.5rem;
}

.flexible-learning-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: var(--container-width);
    justify-content: flex-start;
}

.flexible-learning-content .partner-note-text {
    color: #000;
    font-size: 0.875rem;
    line-height: 2;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

.grade-btn {
    display: flex;
    padding: 6px 48px 6px 24px;
    align-items: center;
    gap: 2.5rem;
    flex-shrink: 0;
    border-radius: 1.5rem;
    border: 2px solid var(--color-sel-blue);
    background-color: var(--color-sel-blue-dark);
    width: 140px;
		color: #fff;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grade-btn.a01 {
	width: 160px;
}

.grade-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.grade-btn-text a {
    color: #fff;
    font-size: 1.25rem;
		text-decoration: none;
}

.grade-btn-arrow {
    position: absolute;
    right: 22px;
    bottom: 15px;
    width: 7px;
    height: 13px;
}

.partner-note {
    display: flex;
    padding-top: 1.5rem;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.partner-note-text {
    color: #000;
    font-size: 0.875rem;
    line-height: 2;
}

/* ============================================
   SEL影片資源 Section
   ============================================ */
.videos-section {
    display: flex;
    padding: 5rem 0;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    background-color: var(--color-sel-yellow);
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.videos-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
}

.videos-title-image {
    position: absolute;
    left: calc(50% - 280px);
    width: 100px;
    height: auto;
    object-fit: contain;
}

.videos-section-title {
    color: var(--color-primary-dark);
    font-size: 3rem;
    font-weight: 600;
}

.videos-section-title .text-white {
    color: white;
}

.videos-section-subtitle {
    color: #000;
    font-size: 1.25rem;
    line-height: 2;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-column-gap: 24px;
    grid-row-gap: 24px;
    width: var(--container-width);
    overflow: visible;
}

.videos-row {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 1.5rem;
    width: 100%;
    overflow: visible;
}

.video-card {
    display: flex;
    padding: 1.5rem;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 1rem;
    border-radius: 1rem;
    background-color: var(--color-bg-white);
    width: 100%;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
    border-radius: 0.5rem;
    width: 100%;
    height: 180px;
    overflow: hidden;
    object-fit: cover;
}

.video-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    width: 100%;
    overflow: hidden;
    flex: 1;
}

.video-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.video-tag {
    display: flex;
    color: #fff;
    font-size: 0.875rem;
    border-radius: 4px;
}
.video-tag p {
    padding: 2px 6px;
}

.tag-green { border-color: var(--color-sel-green); background-color: var(--color-sel-green); }
.tag-pink { border-color: var(--color-sel-pink); background-color: var(--color-sel-pink); }
.tag-blue { border-color: var(--color-sel-blue-dark); background-color: var(--color-sel-blue-dark); }
.tag-orange { border-color: var(--color-sel-orange); background-color: var(--color-sel-orange); }
.tag-red { border-color: var(--color-sel-red); background-color: var(--color-sel-red); }

.video-title {
    color: var(--color-primary-text);
    font-size: 1.5rem;
    font-weight: 600;
    width: 100%;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
}

.video-description {
    color: var(--color-primary-text);
    font-size: 1.25rem;
    width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.video-meta {
    color: var(--color-primary-dark);
    font-size: 1rem;
    width: 100%;
    text-align: right;
    margin-top: auto;
}

/* ============================================
   班級經營資源 Section
   ============================================ */
.classroom-section {
    display: flex;
    padding: 5rem 0 100px 0;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    background-color: var(--color-bg-green);
    width: 100%;
    overflow: visible;
    position: relative;
    z-index: 10;
}

.classroom-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
}

.classroom-title-image {
    position: absolute;
    left: calc(50% - 280px);
    width: 100px;
    height: auto;
    object-fit: contain;
}

.classroom-section-title {
    color: var(--color-primary-dark);
    font-size: 3rem;
    font-weight: 600;
}

.classroom-section-subtitle {
    color: #000;
    font-size: 1.25rem;
    line-height: 2;
}

.tools-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    overflow: visible;
}

.tools-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
		width: 100%;
    overflow: hidden;
}

.tools-title {
    color: var(--color-primary-dark);
    font-size: 1.75rem;
    font-weight: 600;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-column-gap: 24px;
    grid-row-gap: 24px;
    width: var(--container-width);
}

.tool-card {
    display: flex;
    padding: 1.5rem 1rem;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    border-radius: 1rem;
    border: 4px solid;
    text-decoration: none;
    background-color: var(--color-bg-white);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.tool-card-green { border-color: var(--color-sel-green); }
.tool-card-blue { border-color: var(--color-sel-blue); }
.tool-card-orange { border-color: var(--color-sel-orange); }

.tool-card-title {
    color: var(--color-primary-text);
    font-size: 1.5rem;
    font-weight: 600;
    width: 100%;
    text-align: center;
}

.tool-card-subtitle {
    color: var(--color-primary-dark);
    font-size: 1rem;
    line-height: 2;
    width: 100%;
    text-align: left;
}

.tool-card-image {
    width: 100%;
    height: 237px;
    object-fit: contain;
}

.tool-card-image-tall {
    height: 286px;
}

.tool-card-image-medium {
    height: 282px;
}

.tool-card-btn {
    display: flex;
    padding: 11px 24px;
    align-items: flex-start;
    border-radius: 2.5rem;
    border: 1px solid;
    background-color: var(--color-bg-white);
    width: 100%;
    overflow: hidden;
}

.tool-card-btn-green { border-color: var(--color-sel-green); }
.tool-card-btn-blue { border-color: var(--color-sel-blue-dark); }
.tool-card-btn-orange { border-color: var(--color-sel-orange); }

.tool-card-btn-inner {
    display: flex;
    padding-right: 1.5rem;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.tool-card-btn-text {
    font-size: 1rem;
    font-weight: 600;
}

.text-green { color: var(--color-sel-green); }
.text-blue { color: var(--color-sel-blue-dark); }
.text-orange { color: var(--color-sel-orange); }
.text-pink { color: var(--color-sel-pink); }
.text-yellow { color: var(--color-sel-yellow); }

.tool-card-btn-arrow {
    position: absolute;
    right: 0;
    width: 7px;
    height: 13px;
}

/* ============================================
   閱讀資源 Section
   ============================================ */
.reading-section {
    display: flex;
    padding: 100px 0 5rem 0;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 10;
    background-color: var(--color-bg-main);
}

.reading-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
}

.reading-title-image {
    position: absolute;
    left: calc(50% - 240px);
    width: 100px;
    height: auto;
    object-fit: contain;
}

.reading-section-title {
    color: var(--color-primary-dark);
    font-size: 3rem;
    font-weight: 600;
}

.reading-section-title .text-pink {
    color: #F4A5AA;
}

.reading-section-subtitle {
    color: #000;
    font-size: 1.25rem;
    line-height: 2;
}

.reading-container {
    display: flex;
    padding: 2.5rem;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    border-radius: 260px;
    background-color: var(--color-bg-white);
    width: var(--container-width);
    overflow: hidden;
}

.reading-cards {
    display: flex;
    padding: 0 5rem;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 2.5rem;
    width: 100%;
    overflow: hidden;
}

.reading-card {
    display: flex;
    padding: 1.5rem 1rem;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 1rem;
    border-radius: 1rem;
    background-color: var(--color-bg-white);
    width: 100%;
    overflow: hidden;
}

.reading-card-image {
    width: 100%;
    height: 373px;
    object-fit: contain;
}

.reading-card-btn {
    display: flex;
    padding: 8px 24px 6px;
    align-items: flex-start;
    border-radius: 2.5rem;
    border: 1px solid var(--color-secondary-text);
    background-color: var(--color-bg-white);
    width: 100%;
    overflow: hidden;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.reading-card-btn:hover {
    background-color: #f5f5f5;
    border-color: var(--color-primary-dark);
}

.reading-card-btn-inner {
    display: flex;
    padding-right: 1.5rem;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.reading-card-btn-text {
    color: var(--color-primary-dark);
    font-size: 1.25rem;
    font-weight: 600;
}

.reading-card-btn-arrow {
    position: absolute;
    right: 0;
    top: 7px;
    width: 7px;
    height: 13px;
}

.more-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
}

.more-btn-text {
    color: #000;
    font-size: 1.25rem;
}

.more-btn-circle {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100px;
    border: 1.5px solid var(--color-secondary-text);
    background-color: var(--color-bg-white);
    width: 40px;
    height: 40px;
    overflow: hidden;
}

.more-btn-image {
    width: 220px;
    height: 67px;
    object-fit: contain;
}

/* ============================================
   友站連結 Section
   ============================================ */
.links-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    overflow: hidden;
    position: relative;
    z-index: 10;
    background-color: var(--color-bg-main);
    width: 100%;
    padding-bottom: 80px;
}

.links-header {
    display: flex;
    align-items: center;
    width: var(--container-width);
    overflow: hidden;
}

.links-title {
    color: var(--color-primary-dark);
    font-size: 1.75rem;
    font-weight: 600;
}

.links-grid {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    width: var(--container-width);
    overflow: hidden;
}

.link-card {
    display: flex;
    padding: 16px 40px;
    align-items: flex-start;
    min-width: 350px;
    border-radius: 40px;
    border: 1px solid var(--color-secondary-text);
    background-color: var(--color-bg-white);
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.link-card:hover {
    background-color: #f5f5f5;
}

.link-card-inner {
    display: flex;
    padding-right: 1.5rem;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.link-card-arrow {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 7px;
    height: 13px;
}

.link-card-image-lg {
    width: 317px;
    height: 53px;
    object-fit: contain;
}

.link-card-image-sm {
    width: 137px;
    height: 53px;
    object-fit: contain;
}

/* ============================================
   Footer (頁尾)
   ============================================ */
.footer {
    display: flex;
    padding: 1.5rem 250px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    background-color: var(--color-bg-dark);
    width: 100%;
    overflow: hidden;
    margin-top: 0;
    position: relative;
    z-index: 10;
}

.footer-text {
    color: white;
    font-size: 1rem;
    width: 100%;
    text-align: center;
}

.footer-link {
    color: white;
    /* text-decoration: none; */
    transition: opacity 0.2s;
}

.footer-link:hover {
    opacity: 0.8;
}

/* ============================================
   回到頂部按鈕
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 10%;
    right: 4%;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(232, 233, 237, 0.4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #777986;
}


/* ============================================
   SVG Icons (內嵌SVG樣式)
   ============================================ */
.icon-sm {
    width: 20px;
    height: 20px;
}

.icon-arrow {
    width: 7px;
    height: 13px;
}

.icon-arrow-circle {
    width: 8px;
    height: 13px;
}

/* ============================================
   Article Lightbox Component
   ============================================ */
.article-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.article-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.article-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.article-lightbox-container {
    position: relative;
    background-color: white;
    border-radius: 1rem;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.article-lightbox.active .article-lightbox-container {
    transform: scale(1);
}

.article-lightbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3.5rem 3rem 1rem 3rem;
}

.article-lightbox-list-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--color-sel-blue-dark);
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.article-lightbox-list-btn:hover {
    background-color: #6bb8c5;
}

.article-lightbox-list-text {
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
}

.article-lightbox-download-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: var(--color-sel-blue);
    font-size: 0.875rem;
    border: 1.5px solid var(--color-sel-blue);
    border-radius: 1.5rem;
    transition: background-color 0.2s, color 0.2s;
}

.article-lightbox-download-btn:hover {
    background-color: var(--color-sel-blue);
    color: white;
}

.article-lightbox-download-btn:hover .article-lightbox-download-text {
    color: white;
}

.article-lightbox-download-btn:hover svg path {
    fill: white;
}

.article-lightbox-download-text {
    color: var(--color-sel-blue);
}

.article-lightbox-close-btn {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: white;
    border: 1.5px solid #777986;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.2s;
    z-index: 10;
}

.article-lightbox-close-btn:hover {
    background-color: #f0f0f0;
}

.article-lightbox-content {
    padding: 1.5rem 3rem;
    overflow-y: auto;
    flex: 1;
    max-height: calc(90vh - 80px);
}

.article-lightbox-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    margin-bottom: 0.75rem;
}

.article-lightbox-title span {
    color: var(--color-sel-pink);
}

.article-lightbox-description {
    font-size: 1.25rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.article-lightbox-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.article-lightbox-image,
.article-lightbox-description img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    object-fit: contain;
}

/* Article card hover effect */
.article-card {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.article-card:hover {
    transform: scale(1.03);
}

/* Article Sidebar */
.article-sidebar {
    position: absolute;
    top: 0;
    left: 0;
    width: 320px;
    height: 100%;
    background-color: white;
    border-radius: 1rem 0 0 1rem;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 20;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.article-sidebar.active {
    transform: translateX(0);
}

.article-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #eee;
}

.article-sidebar-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-primary-dark);
}

.article-sidebar-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: white;
    border: 1.5px solid #777986;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.article-sidebar-close-btn:hover {
    background-color: #f0f0f0;
}

.article-sidebar-list {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

.article-sidebar-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
    border: none;
    border-bottom: 1px solid #ddd;
    background: none;
    width: 100%;
    text-align: left;
}

.article-sidebar-item:last-child {
    border-bottom: none;
}

.article-sidebar-item:hover {
    background-color: #f5f5f5;
}

.article-sidebar-item.active {
    background-color: #e8f4f6;
}

.article-sidebar-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #BDBDBD;
    min-width: 48px;
    line-height: 1;
}

.article-sidebar-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.article-sidebar-item-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    line-height: 1.4;
}

.article-sidebar-item-desc {
    font-size: 0.8125rem;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   Course Map Lightbox Component
   ============================================ */
.course-map-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.course-map-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.course-map-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.course-map-lightbox-container {
    position: relative;
    background-color: white;
    border-radius: 1rem;
    width: 90%;
    max-width: 1500px;
    max-height: 90vh;
    overflow: visible;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.course-map-lightbox.active .course-map-lightbox-container {
    transform: scale(1);
}

.course-map-lightbox-close-btn {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: white;
    border: 1.5px solid #777986;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.2s;
    z-index: 10;
}

.course-map-lightbox-close-btn:hover {
    background-color: #f0f0f0;
}

.course-map-lightbox-content {
    padding: 3.5rem 3rem 2rem 3rem;
    overflow-y: auto;
    flex: 1;
    max-height: calc(90vh - 40px);
}

.course-map-lightbox-image {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    object-fit: contain;
    margin-bottom: 1.5rem;
}

.course-map-lightbox-text {
    font-size: 1.25rem;
    color: #666;
    line-height: 1.8;
}

/* ============================================
   SEL Concept Lightbox Component
   ============================================ */
.concept-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.concept-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.concept-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.concept-lightbox-container {
    position: relative;
    background-color: white;
    border-radius: 1rem;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.95);
    transition: transform 0.3s ease;
    margin: 0 auto;
}

.concept-lightbox.active .concept-lightbox-container {
    transform: scale(1);
}

.concept-lightbox-close-btn {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: white;
    border: 1.5px solid #777986;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.2s;
    z-index: 10;
}

.concept-lightbox-close-btn:hover {
    background-color: #f0f0f0;
}

.concept-lightbox-content {
    padding: 2.5rem 3rem 2rem 3rem;
    overflow-y: auto;
    flex: 1;
    max-height: calc(90vh - 40px);
}

.concept-lightbox-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 0.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-sel-blue);
}

.concept-lightbox-title .title-en {
    font-size: 1.25rem;
    font-weight: 500;
    color: #666;
    margin-left: 0.75rem;
}

.concept-lightbox-title .title-en-02 {
    position: absolute;
    top: 40px;
    left: 290px;
    font-size: 2rem;
    font-weight: bold;
    color: #404252;
}

.concept-lightbox-body {
    font-size: 1.25rem;
    color: #333;
    line-height: 2;
}

.concept-lightbox-body p {
    margin-bottom: 1.25rem;
}

.concept-lightbox-body p:last-child {
    margin-bottom: 0;
}

.read-lightbox {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

/* Stat lightbox 參考資料樣式 */
.stat-lightbox-reference {
    font-size: 0.85rem;
    color: #888;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

/* ============================================
   Video Lightbox Component
   ============================================ */
.video-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.video-lightbox-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
}

.video-lightbox-container {
    position: relative;
    background-color: white;
    border-radius: 1rem;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.video-lightbox.active .video-lightbox-container {
    transform: scale(1);
}

.video-lightbox-close-btn {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: white;
    border: 1.5px solid #777986;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.2s;
    z-index: 10;
}

.video-lightbox-close-btn:hover {
    background-color: #f0f0f0;
}

.video-lightbox-content {
    display: flex;
    flex-direction: column;
}

.video-lightbox-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000;
}

.video-lightbox-player iframe {
    width: 100%;
    height: 100%;
}

.video-lightbox-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.video-lightbox-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.video-lightbox-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    width: fit-content;
}

.video-lightbox-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary-dark);
}

.video-lightbox-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

.video-lightbox-meta {
    font-size: 0.875rem;
    color: #999;
    text-align: right;
}

/* ============================================
   Responsive Design - Mobile First (響應式設計)
   ============================================ */

/* Tablet and below (平板及以下) */
@media screen and (max-width: 1400px) {
    :root {
        --container-width: 90%;
        --container-narrow: 90%;
    }

    .header {
        padding: 1rem 2rem;
    }

    .stats-cards {
        gap: 16px;
        width: 94%;
    }

		.stat-circle {
			width: 200px;
			height: 200px;
		}

		.stat-circle-image-1 {
			left: -10px;
			bottom: -10px;
			width: 220px;
			height: 219px;
		}

		.stat-circle-image-2 {
			left: -10px;
			bottom: -10px;
			width: 220px;
			height: 224px;
		}

		.stat-circle-image-3 {
			left: -10px;
			bottom: -20px;
			width: 216px;
			height: 233px;
		}

		.core-concepts-section {
			padding-top: 20px;
		}

		.stat-number {
			font-size: 2rem;
		}

		.stat-label {
			font-size: 1.125rem;
		}

    .five-concepts {
        width: 90%;
        gap: 1rem;
    }

    .concept-circle {
        width: 180px;
        height: 180px;
    }

    .concept-item-up { margin-bottom: 3rem; }
    .concept-item-down { margin-top: 3rem; }

    .concept-arrow-btn {
        width: 30px;
        height: 30px;
    }

    .professor-card {
        width: 90%;
    }

    .concept-title {
        font-size: 1.2rem;
    }

    .concept-subtitle {
        font-size: 0.6rem;
    }

    /* 中等螢幕隱藏雲朵（因為教授卡片變成百分比寬度，雲朵定位會不正確） */
    .cloud-decoration {
        display: none;
    }

		/*影片資源*/
		.video-card {
			padding: 16px;
		}

		.video-tag-text {
			font-size: .875rem;
		}

    /* 專文區塊 - 中等螢幕調整 */
    .articles-gallery {
        width: 90%;
    }

    .gallery-slider-wrapper {
        width: 100%;
        padding: 0 30px;
    }

    .gallery-arrow-left {
        left: 0;
    }

    .gallery-arrow-right {
        right: 0;
    }
		.reading-container {
			border-radius: 200px;
		}
		.reading-cards {
			gap: 16px;
		}
}

@media screen and (max-width: 1200px) {
	.tools-section {
		padding: 0 16px;
	}
	.reading-card {
		padding: 0;
		gap: 0;
	}
}

@media screen and (max-width: 1000px) {
    .stats-section-title {
        font-size: 2rem;
    }

    .five-concepts {
        width: 50%;
        gap: 0.75rem;
    }

    .concept-circle {
        width: 140px;
        height: 140px;
    }

    .concept-item-up { margin-bottom: 2rem; }
    .concept-item-down { margin-top: 2rem; }

    .concept-title {
        font-size: 1rem;
    }

    .concept-subtitle {
        font-size: 0.5rem;
    }

    .concept-icon {
        width: 2.5rem;
    }

    .concept-arrow-btn {
        width: 24px;
        height: 24px;
        bottom: 6px;
    }

		.articles-section {
			padding-top: 20px;
		}

		.videos-grid, .tools-grid {
			grid-template-columns: repeat(2, 1fr);
		}

		.reading-card-image {
			height: 300px;
		}
}

@media screen and (max-width: 950px) {
		.headBanner .cloud p:nth-of-type(1) {
			top: 25%;
			width: 72px;
			height: 50px;
		}

		.headBanner .cloud p:nth-of-type(2) {
			top: 30%;
			width: 57px;
			height: 40px;
			animation-delay: 8s;
		}

		.headBanner .cloud p:nth-of-type(3) {
			top: 25%;
			width: 72px;
			height: 50px;
			animation-delay: 15s;
		}

    /* ===== Reading Section (閱讀資源區) - 直式排列 ===== */
    .reading-section {
        padding: 60px 0 3rem 0;
        gap: 1rem;
    }

    .reading-title-wrapper {
        flex-direction: column;
        gap: 0.5rem;
    }

    .reading-title-image {
        position: static;
        width: 70px;
    }

    .reading-section-title {
        font-size: 1.75rem;
    }

    .reading-section-subtitle {
        font-size: 1rem;
        text-align: center;
    }

    .reading-container {
        width: 95%;
        padding: 1.5rem 1rem;
        border-radius: 2rem;
    }
}

@media screen and (max-width: 900px) {
    .stats-description {
        font-size: 1rem;
    }
}

@media screen and (max-width: 768px) {
    /* ===== Base & Container ===== */
    :root {
        --container-width: 92%;
        --container-narrow: 92%;
    }

    html {
        scroll-padding-top: 56px;
    }

    /* ===== Header Navigation with Hamburger Menu ===== */
    .header {
        padding: 0.5rem 1rem;
        flex-wrap: nowrap;
        gap: 0;
        height: 56px;
    }

    .header-logo {
        width: 80px;
        height: 30px;
    }

    /* Show hamburger menu button on mobile */
    .mobile-menu-btn {
        display: flex;
    }

    /* Hide desktop nav, show as dropdown on mobile */
    .header-nav {
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        z-index: 1000;
        background-color: var(--color-bg-white);
        padding: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-radius: 0;
    }

    .header-nav.active {
        max-height: 400px;
    }

    .nav-home-link {
        display: none;
    }

    .header-nav-links {
        flex-direction: column;
        gap: 0;
        padding: 0;
    }

    .nav-link {
        font-size: 1rem;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid #eee;
        display: block;
        width: 100%;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

		.headBanner {
			top: 56px;
		}

    /* ===== Hero Section ===== */
    .hero-image {
        top: 56px;
    }

    .fixed-pink-bg {
        top: 56px;
        height: calc(100vh - 56px);
    }

    /* ===== Stats Section (統計區) ===== */
    .stats-section {
        margin-top: calc(100vw * 0.55);
        gap: 0.75rem;
    }

    .stats-section-title {
        font-size: 1.7rem;
        text-align: center;
        padding: 0 0.75rem;
        line-height: 1.4;
        white-space: nowrap;
    }

    .stats-content-wrapper {
        padding: 1.5rem 1rem 40px 1rem;
        border-radius: 60px 60px 0 0;
        gap: 24px;
    }

    .stats-description {
        font-size: 1rem;
        line-height: 1.6;
        padding: 0 1rem;
    }

    /* 統計卡片垂直排列 */
    .stats-cards {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
        padding: 0 1rem;
    }

    .stat-card {
        width: 100%;
        max-width: 400px;
        padding: 1rem;
        border-radius: 1.5rem;
    }

    .stat-circle {
        width: 160px;
        height: 160px;
        padding: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* 讓圖片在圓圈內居中 */
    .stat-circle-image {
        position: absolute;
        left: 50% !important;
        bottom: auto !important;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .stat-circle-image-1,
    .stat-circle-image-2,
    .stat-circle-image-3 {
        width: 155px;
        height: auto;
    }

    .stat-circle-cloud {
        width: 60px;
        height: 42px;
        left: 12px;
        top: 12px;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 1rem;
    }

    /* ===== Core Concepts Section (核心概念區) ===== */
    .core-concepts-section {
        padding-top: 40px;
        gap: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-title-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .section-title-image {
        position: static;
        transform: none;
        width: 80px;
    }

    .core-concepts-content {
        padding: 2rem 0;
        border-radius: 80px 80px 0 0;
        gap: 1.5rem;
    }

    .cloud-decoration {
        display: none;
    }

    /* 中間card小雲 */
    .stat-circle-cloud-sm-tl {
        position: absolute;
        left: 3px;
        top: 25px;
        width: 50px;
        height: 35px;
    }

    /* 中間card大雲 */
    .stat-circle-cloud-lg-br {
        position: absolute;
        right: 3px;
        bottom: 40px;
        width: 80px;
        height: 55px;
    }

    /* 右邊card大雲 */
    .stat-circle-cloud-lg-tl {
        position: absolute;
        left: 80px;
        top: 20px;
        width: 80px;
        height: 55px;
    }

    /* 教授卡片 */
    .professor-card {
        width: 92%;
        height: 280px;
        margin-top: 2.5rem;
        margin-left: auto;
        margin-right: auto;
    }

    .professor-card-bg-white {
        clip-path: polygon(0 0, 80% 0, 40% 100%, 0 100%);
    }

    .professor-card-bg-image-wrapper {
        display: block;
    }

    .professor-card-bg-image {
        width: 65%;
        clip-path: polygon(60% 0, 100% 0, 100% 100%, 0 100%);
    }

    .professor-card-content {
        position: absolute;
        left: 0;
        top: 0;
        width: 55%;
        padding: 1rem;
        gap: 0.5rem;
        justify-content: flex-start;
    }

    .professor-card-title {
        font-size: 1.5rem;
    }

    .professor-card-list {
        font-size: 1rem;
        line-height: 1.6;
    }

    .professor-card-image {
        display: block;
        right: 0;
        top: auto;
        bottom: 0;
        height: 220px;
    }

    /* 五大核心概念圓圈 - 垂直排列 */
    .five-concepts {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        width: 100%;
        padding: 0 1rem 1rem 1rem;
        margin-top: 1rem;
    }

    .concept-item {
        margin: 0 !important;
    }

    .concept-item-up,
    .concept-item-down {
        margin-bottom: 0;
        margin-top: 0;
    }

    .concept-circle {
        width: 200px;
        height: 200px;
    }

    .concept-title {
        font-size: 1.2rem;
    }

    .concept-subtitle {
        font-size: 0.7rem;
    }

    .concept-icon {
        width: 3rem;
    }

    .concept-arrow-btn {
        bottom: 5px;
        width: 2rem;
        height: 2rem;
    }

    /* ===== Articles Section (專文區) ===== */
    .articles-section {
        padding-top: 40px;
        gap: 1rem;
    }

    .articles-section-title {
        font-size: 1.75rem;
    }

    .articles-title-image {
        left: -60px;
        width: 40px;
    }

    .articles-content {
        padding: 3rem 0 2rem 0;
        border-radius: 80px 80px 0 0;
        gap: 1rem;
    }

    .articles-row {
        justify-content: center;
        width: 100%;
    }

    .download-btn {
        width: 220px;
        padding: 0.5rem 0.75rem;
        gap: 1.5rem;
    }

    .download-btn-text {
        font-size: 1rem;
    }

    /* 專文輪播 - 保持一行但縮小 */
    .articles-gallery {
        width: 92%;
    }

    .gallery-slider-wrapper {
        width: 100%;
        padding: 0 24px;
    }

    .articles-swiper {
        width: 100%;
    }

    .articles-swiper .swiper-slide {
        width: 180px;
    }

    .article-image {
        width: 180px;
        height: 260px;
    }

    .gallery-arrow {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
    }

    .gallery-arrow-left {
        left: 0;
    }

    .gallery-arrow-right {
        right: 0;
    }

    /* ===== Materials Section (教材推薦區) ===== */
    .materials-section {
        padding-top: 40px;
        gap: 1.5rem;
    }

    .materials-title-wrapper {
        flex-direction: column;
        gap: 0.5rem;
    }

    .materials-title-image {
        position: static;
        width: 70px;
    }

    .materials-section-title {
        font-size: 1.75rem;
        text-align: center;
    }

    .materials-section-subtitle {
        font-size: 1rem;
        text-align: center;
        padding: 0 1rem;
    }

    /* 課程地圖 - 保持一行但縮小 */
    .course-map {
        padding-top: 1rem;
        gap: 1rem;
    }

    .course-map-header {
        width: 92%;
    }

    .course-map-title {
        font-size: 1.25rem;
    }

    .course-map-nav-container {
        width: 92%;
        padding: 0 24px;
    }

    .course-map-slider-wrapper {
        overflow: hidden;
    }

    .course-map-swiper .swiper-slide {
        width: 140px;
    }

    .course-map-image {
        border-radius: 0.375rem;
    }

    .course-map-subject-circle {
        width: 50px;
        height: 50px;
    }

    .course-map-subject-text {
        font-size: 1.25rem;
    }

    .course-map-arrow {
        width: 36px;
        height: 36px;
    }

    .course-map-arrow-left {
        left: 0;
    }

    .course-map-arrow-right {
        right: 0;
    }

    /* 彈性學習區 */
    .flexible-learning {
        height: auto;
    }

    .flexible-learning-content {
        height: auto;
        padding: 1.5rem 1rem;
        border-radius: 0 0 80px 80px;
    }

    .flexible-learning-header {
        width: 92%;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .grade-btn {
        width: 100px;
        padding: 0.5rem 0.75rem;
    }

		.grade-btn.a01 {
        width: 120px;
    }

    .grade-btn-text {
        font-size: 1rem;
    }

    /* ===== Videos Section (影片資源區) ===== */
    .videos-section {
        padding: 3rem 0;
        gap: 1rem;
    }

    .videos-title-wrapper {
        flex-direction: column;
        gap: 0.5rem;
    }

    .videos-title-image {
        position: static;
        width: 70px;
    }

    .videos-section-title {
        font-size: 1.75rem;
    }

    .videos-section-subtitle {
        font-size: 1rem;
        text-align: center;
    }

    /* 影片卡片 - 垂直排列 */
    .videos-grid {
        width: 92%;
        gap: 1rem;
    }

    .videos-row {
        flex-direction: column;
        gap: 1rem;
    }

    .video-card {
        padding: 1rem;
        border-radius: 0.75rem;
    }

    .video-thumbnail {
        height: 140px;
    }

    .video-title {
        font-size: 1.25rem;
    }

    .video-description {
        font-size: 1rem;
    }

    .video-meta {
        font-size: 0.875rem;
    }

    /* ===== Classroom Section (班級經營資源區) ===== */
    .classroom-section {
        padding: 3rem 0 60px 0;
        gap: 1rem;
    }

    .classroom-title-wrapper {
        flex-direction: column;
        gap: 0.5rem;
    }

    .classroom-title-image {
        position: static;
        width: 70px;
    }

    .classroom-section-title {
        font-size: 1.75rem;
    }

    .classroom-section-subtitle {
        font-size: 1rem;
        text-align: center;
    }

    /* 工具區 - 垂直排列 */
    .tools-section {
				width: 100%;
        gap: 1rem;
    }

    .tools-header {
        width: 92%;
    }

    .tools-title {
        font-size: 1.25rem;
    }

    .tools-grid {
        flex-direction: column;
        align-items: center;
        width: 92%;
        gap: 1rem;
    }

    .tool-card {
        width: 100%;
        /* max-width: 350px; */
        padding: 1.25rem 1rem;
				gap: 8px;
    }

    .tool-card-title {
        font-size: 1.25rem;
    }

    .tool-card-subtitle {
        font-size: 0.875rem;
    }

    .tool-card-image,
    .tool-card-image-tall,
    .tool-card-image-medium {
        height: 200px;
				object-fit: cover;
    }

    /* ===== Reading Section (閱讀資源區) - 768px 微調 ===== */
		.reading-cards {
			padding: 0;
		}

    .reading-card-btn {
        padding: 0.75rem;
        max-width: 300px;
    }

    .reading-card-btn-text {
        font-size: 1rem;
    }

    .more-btn-text {
        font-size: 1rem;
    }

    .more-btn-image {
        width: 140px;
        height: 44px;
    }

    /* ===== Links Section (友站連結區) ===== */
    .links-section {
        gap: 1rem;
    }

    .links-header {
        width: 92%;
    }

    .links-title {
        font-size: 1.25rem;
    }

    /* 友站連結 - 手機版改成兩行 */
    .links-grid {
        width: 92%;
        gap: 0.75rem;
        flex-direction: column;
    }

    .link-card {
        padding: 0.75rem;
        border-radius: 2rem;
        width: 100%;
    }

    .link-card-image-lg {
        width: 100%;
        max-width: 320px;
        height: auto;
    }

    .link-card-image-sm {
        width: 60%;
        max-width: 180px;
        height: auto;
    }

    /* ===== Footer (頁尾) ===== */
    .footer {
        padding: 1.5rem 1rem;
        margin-top: 0;
    }

    .links-section {
        padding-bottom: 1.5rem;
    }

    .footer-text {
        font-size: 0.875rem;
        line-height: 1.6;
    }

    /* ===== Lightbox Components (彈窗元件) ===== */
    .article-lightbox-container,
    .course-map-lightbox-container,
    .concept-lightbox-container {
        width: 95%;
        max-height: 85vh;
    }

    .article-lightbox-header {
        padding: 2.5rem 1.5rem 1rem 1.5rem;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .article-lightbox-content,
    .course-map-lightbox-content,
    .concept-lightbox-content {
        padding: 1rem 1.5rem;
    }

    .article-lightbox-title,
    .concept-lightbox-title {
        font-size: 1.25rem;
    }
    .concept-lightbox-title .title-en-02 {
    position: absolute;
    top: 8px;
    left: 260px;
    font-size: 1.75rem;
    }

    .article-sidebar {
        width: 280px;
    }

    .article-sidebar-number {
        font-size: 2rem;
        min-width: 40px;
    }

    .article-sidebar-item-title {
        font-size: 1rem;
    }
    .my-article-title-mid .my-article-tag, .my-article-title .my-article-tag {
        top: -40px;
        left: 40px;
        padding: 0 8px;
        font-size: 0.875rem;
        border-radius: 16px;
    }
}

@media screen and (max-width: 690px) {
    .stats-description{
        font-size: 0.9rem;
    }
		.reading-cards {
			flex-direction: column;
		}
		.reading-card-image {
			height: inherit;
		}
		.reading-card-btn {
			margin: 16px 0 32px;
			max-width: inherit;
		}
		.videos-grid, .tools-grid {
			grid-template-columns: repeat(1, 1fr);
		}
}

@media screen and (max-width: 630px) {
		.headBanner .cloud p:nth-of-type(1) {
			top: 20%;
			width: 43px;
			height: 30px;
		}

		.headBanner .cloud p:nth-of-type(2) {
			top: 25%;
			width: 57px;
			height: 40px;
		}

		.headBanner .cloud p:nth-of-type(3) {
			top: 20%;
			width: 43px;
			height: 30px;
		}

    .stats-description{
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 580px) {
    .stats-section-title {
        font-size: 1.3rem;
    }
    .stats-description{
        font-size: 0.7rem;
    }
}

/* Small Mobile (小螢幕手機) */
@media screen and (max-width: 480px) {
    /* 隱藏 stats-description 裡的強制換行 */
    .stats-description br {
        display: none;
    }

    .professor-card-title {
        font-size: 1.1rem;
    }

    .professor-card-list {
        font-size: 0.9rem;
    }

    .header-nav-links {
        gap: 0.375rem;
    }

    .nav-link {
        font-size: 0.75rem;
    }

    .stats-section-title {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .stat-circle {
        width: 180px;
        height: 180px;
    }

    .flexible-learning-content .partner-note-text {
        font-size: 0.55rem;
    }

    .concept-circle {
        width: 180px;
        height: 180px;
    }

    .articles-swiper .swiper-slide {
        width: 150px;
    }

    .article-image {
        width: 150px;
        height: 220px;
    }

    .course-map-swiper .swiper-slide {
        width: 120px;
    }

    .link-card-image-lg {
        width: 100px;
        height: 24px;
    }

    .link-card-image-sm {
        width: 50px;
        height: 24px;
    }

    .video-thumbnail {
        height: 120px;
    }
}

@media screen and (max-width: 430px) {
		.headBanner .cloud p:nth-of-type(1) {
			top: 20%;
			width: 30px;
			height: 21px;
		}

		.headBanner .cloud p:nth-of-type(2) {
			top: 25%;
			width: 39px;
			height: 28px;
		}

		.headBanner .cloud p:nth-of-type(3) {
			top: 20%;
			width: 30px;
			height: 21px;
		}

    .stats-section-title {
        font-size: 1.1rem;
    }
    .stats-description{
        font-size: 0.875rem;
    }

    .professor-card-title {
        font-size: 1.1rem;
    }

    .professor-card-list {
        font-size: 0.8rem;
    }
}


/* 大標 */
.my-article-title {
    position: relative;
    font-size: 2.5rem;
    font-weight: bold;
    color: #000;
}
/* 中標 */
.my-article-title-mid {
    position: relative;
    font-size: 1.75rem;
    color: #000;
    font-weight: normal;
}
.my-article-title-mid.my-blue {
    margin-bottom: 24px;
}
/* 上方tag */
.my-article-tag {
    position: absolute;
    top: -56px;
    left: 56px;
    padding: 4px 16px;
    font-size: 1rem;
    font-weight: normal;
    border-radius: 24px;
}
.my-article-tag.tag01 {
    color: #e56c37;
    border: 1px solid #e56c37;
}
.my-article-tag.tag02 {
    color: #85c5cf;
    border: 1px solid #85c5cf;
}
.my-article-tag.tag03 {
    color: #79c19b;
    border: 1px solid #79c19b;
}
/* 作者小字 */
.my-article-title-author {
    margin-bottom: 24px;
    font-size: 0.875rem;
    color: #555;
    text-align: right;
}
/* 內文 */
.my-article-txt {
    margin-bottom: 24px;
    font-size: 1.25rem;
    color: #000;
    line-height: 2;
}
.my-article-txt + .my-article-txt {
    margin-top: 24px;
}
/* 內文加粗 */
.my-article-txt-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #000;
    line-height: 2;
}
.my-article-txt-title + .my-article-txt-title {
    margin-top: 24px;
}
.my-article-txt-title.my-red, .my-article-txt-title.my-green, .my-article-txt-title.my-blue {
    margin: 24px 0 16px;
}
/* 內文小標反色 */
.my-article-txt-reverse {
    display: inline-block;
    padding: 0 10px;
    font-size: 1rem;
    font-weight: normal;
    border-radius: 4px;
}
.my-article-txt-reverse.my-blue {
    color: #fff;
    background: #40AABE;
}
.my-article-txt-reverse.my-green {
    color: #fff;
    background: #79C19B;
}
/* 紅字 */
.my-red {
    color: #F1919D;
}
/* 綠字 */
.my-green {
    color: #79C19B;
}
/* 藍字 */
.my-blue {
    color: #40AABE;
}
/* 圖說 */
.my-img {
    margin-bottom: 24px;
}
.my-img img {
    width: 100%;
}
.my-img figcaption {
    font-size: 0.875rem;
    color: #666;
}