:root {
    --primary-color: #0d3b2d;
    --primary-light: #1a5c4a;
    --primary-gradient: linear-gradient(135deg, #0d3b2d 0%, #1a5c4a 100%);
    --secondary-color: #fb8c00;
    --energy-orange: #ff6d00;
    --accent-color: #f1c40f;
    --bg-warm: #fffbf0;
    --bg-cream: #fdfcf9;
    --bg-light: #f4f7f5;
    --text-dark: #1a1a1a;
    --text-muted: #5d6d7e;
    --text-white: #ffffff;
    --border-color: rgba(13, 59, 45, 0.08);
    --shadow-soft: 0 10px 40px rgba(13, 59, 45, 0.06);
    --shadow-med: 0 20px 50px rgba(13, 59, 45, 0.12);
    --shadow-premium: 0 30px 60px -12px rgba(13, 59, 45, 0.18), 0 18px 36px -18px rgba(0, 0, 0, 0.2);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --radius: 20px;
    --radius-lg: 32px;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    line-height: 1.8;
    color: var(--text-dark);
    background-color: var(--bg-cream);
    overflow-x: hidden;
    letter-spacing: -0.01em;
    position: relative;
    font-size: 15px;
    /* Slightly smaller base for better proportion */
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    opacity: 0.04;
    z-index: 9999;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.page-bg {
    background-color: var(--bg-cream);
    padding: 20px 0 80px;
    /* Reduced top padding */
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.flex-justify {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Header Refinement */
header {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 0;
    box-shadow: 0 10px 30px rgba(13, 59, 45, 0.08);
}

.top-bar {
    background: var(--primary-color);
    color: var(--text-white);
    padding: 12px 0;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.top-bar .container.flex-justify {
    justify-content: flex-end;
}

.top-bar-right a {
    margin-left: 20px;
    opacity: 0.9;
}

.top-bar-right a:hover {
    opacity: 1;
}

.main-header {
    background: linear-gradient(180deg, #fffef5 0%, #fffbf0 100%);
    padding: 20px 0;
    border-bottom: 1px solid rgba(251, 196, 15, 0.15);
}

.header-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* ── Desktop Nav (在 header 內) ── */
.header-nav-area {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

/* ── Mobile Overlay Nav (在 header 外，position:fixed 正常運作) ── */
.site-nav {
    display: none;
    /* 桌機隱藏；手機 media query 覆寫 */
}

/* 手機遮罩 */
.site-nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1999;
}

.site-nav-backdrop.active {
    display: block;
}

/* 主選單列表（桌機：橫排） */
.nav-primary-list {
    display: flex;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-primary-list>li>a {
    font-size: 16px;
    font-weight: 900;
    color: #2F5D50;
    padding: 12px 16px;
    letter-spacing: 0.02em;
    position: relative;
    transition: var(--transition);
    display: block;
}

.nav-primary-list>li>a::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #6A5648;
    transition: var(--transition);
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-primary-list>li>a:hover {
    color: #6A5648;
}

.nav-primary-list>li>a:hover::after {
    width: calc(100% - 32px);
}

/* Dropdown icon */
.dropdown-icon {
    font-size: 15px;
    margin-left: 4px;
    transition: transform 0.3s;
}

.nav-has-sub:hover .dropdown-icon {
    transform: rotate(180deg);
}

/* 桌機下拉選單 */
.nav-has-sub {
    position: relative;
}

.nav-sub {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(13, 59, 45, 0.1);
    border-radius: 12px;
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
    border: 1px solid rgba(13, 59, 45, 0.05);
    list-style: none;
    margin: 0;
}

.nav-has-sub:hover .nav-sub {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-sub li {
    display: block;
    width: 100%;
}

.nav-sub li a {
    display: block;
    padding: 10px 24px;
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}

.nav-sub li a::after {
    display: none;
}

.nav-sub li a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.logo-area .logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 64px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 22px;
    font-weight: 900;
    color: #A06A3A;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.logo-sub {
    font-size: 15px;
    letter-spacing: 1.2px;
    color: #125581;
    font-weight: 700;
    margin-top: 2px;
}

/* Removed Search Area to make room for menu */

/* Dual Navigation */
.nav-container {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

/* Unused primary-nav removed */

.secondary-nav {
    background: #fffbf0;
    border-bottom: 2px solid rgba(251, 140, 0, 0.2);
}

.nav-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

/* Unused primary nav styles removed */

.secondary-nav .nav-list li a {
    display: block;
    padding: 14px 22px;
    font-size: 14px;
    /* Secondary nav font */
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.01em;
}

.nav-list li a:hover {
    color: var(--primary-color);
}

/* Mobile Toggle Styles */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-bar {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 4px;
    transition: var(--transition);
}

/* ── Mobile Nav Close Button (inside site-nav, mobile only) ── */
.mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 40px;
    background: transparent;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
}

/* Language Switcher - Top Bar */
.lang-switcher {
    margin-left: 20px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: var(--text-white);
    padding: 2px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    opacity: 0.9;
    vertical-align: middle;
    line-height: 1.9;
    text-transform: uppercase;
}

.lang-switcher:hover {
    background: rgba(255, 255, 255, 0.18);
    opacity: 1;
}

/* Language Switcher - Mobile Nav (inside .nav-mobile-lang) */
.mobile-lang-btn {
    background: transparent;
    border: 1.5px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 0;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    text-align: center;
    transition: background 0.2s, color 0.2s;
    letter-spacing: 0.05em;
}

.mobile-lang-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.mobile-lang-btn .lang-zh-label,
.mobile-lang-btn .lang-en-label {
    transition: opacity 0.2s, font-weight 0.2s;
}

body[data-lang="zh"] .mobile-lang-btn .lang-zh-label {
    font-weight: 700;
    opacity: 1;
}

body[data-lang="zh"] .mobile-lang-btn .lang-en-label {
    opacity: 0.45;
    font-weight: 400;
}

body[data-lang="en"] .mobile-lang-btn .lang-en-label {
    font-weight: 700;
    opacity: 1;
}

body[data-lang="en"] .mobile-lang-btn .lang-zh-label {
    opacity: 0.45;
    font-weight: 400;
}

/* Main Content Wrapper */
.main-section-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* Further reduced gap to move sections closer */
}

.card-style {
    background: #fff;
    border-radius: var(--radius);
    padding: 50px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

/* Hero Carousel */
.hero-carousel-wrapper {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 400px;
}

.hero-slider {
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s cubic-bezier(0.645, 0.045, 0.355, 1),
        visibility 1.2s cubic-bezier(0.645, 0.045, 0.355, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
    transition: transform 1.2s cubic-bezier(0.645, 0.045, 0.355, 1);
    z-index: -1;
}

.hero-slide-bg--mobile {
    display: none;
}

@media (max-width: 768px) {
    .hero-slide-bg--desktop {
        display: none;
    }

    .hero-slide-bg--mobile {
        display: block;
    }
}

.hero-slide.active .hero-slide-bg {
    animation: kenBurnsZoom 10s linear infinite alternate;
}

@keyframes kenBurnsZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.15);
    }
}

.hero-content {
    max-width: 960px;
    padding: 80px 100px;
    background: rgba(13, 59, 45, 0.35);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    width: 420px;
    max-width: 90%;
    margin: 0 auto;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 60%);
    pointer-events: none;
}

.hero-slide.active .hero-content {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Button Overhaul */
.btn {
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--energy-orange) 0%, var(--secondary-color) 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.btn-primary:hover {
    background: var(--energy-orange);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(251, 140, 0, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hero-content h1 {
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 27px;
    font-weight: 900;
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 14px;
    /* Hero subtitle */
    margin-bottom: 24px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Hero Search Bar Integration */
.hero-search-container {
    margin-top: 25px;
    width: 100%;
}

.persistent-search {
    position: relative;
    bottom: 0;
    left: 0;
    transform: none;
    z-index: 20;
}

.search-box {
    display: flex;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 16px;
    /* Compact padding */
    border-radius: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    width: 100%;
}

.search-box:focus-within {
    background: #fff;
    box-shadow: 0 10px 25px rgba(13, 59, 45, 0.1);
}

.search-box i {
    color: var(--primary-color);
    font-size: 16px;
    margin-right: 12px;
    opacity: 0.7;
}

.search-box input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 0;
    font-size: 14px;
    /* Scaled down */
    outline: none;
    color: var(--text-dark);
}

.search-btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
    /* Scaled down */
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background: var(--primary-light);
    transform: scale(1.05);
}

/* Slider Controls */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}

.slider-arrow.prev {
    left: 20px;
}

.slider-arrow.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background: #fff;
}

/* Unified Premium Section Headers - Centered with Side Accent */
.section-header-premium {
    text-align: center;
    margin-bottom: 45px;
    position: relative;
    padding-left: 0;
}

.section-header-premium h2 {
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 24px;
    font-weight: 900;
    color: #1a1a1a;
    margin-top: 0;
    margin-bottom: 8px;
    line-height: 1.3;
    display: inline-block;
    position: relative;
    z-index: 1;
    padding-left: 18px;
    /* Room for the vertical accent line */
}

/* Vertical Accent Line (Paired with Text) */
.section-header-premium h2::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 70%;
    background: linear-gradient(180deg, #E0EFCA 0%, #B4E8D7 100%);
    border-radius: 50px;
}

/* Eye-catching Marker/Brush Effect */
.section-header-premium h2::before {
    content: '';
    position: absolute;
    left: 12px;
    bottom: 2px;
    width: calc(100% - 10px);
    height: 10px;
    background: linear-gradient(90deg, rgba(224, 239, 202, 0.45) 0%, rgba(180, 232, 215, 0.45) 100%);
    z-index: -1;
    border-radius: 4px;
    transition: all 0.4s ease-in-out;
}

.section-header-premium:hover h2::before {
    width: calc(100% - 5px);
    background: linear-gradient(90deg, rgba(224, 239, 202, 0.7) 0%, rgba(180, 232, 215, 0.7) 100%);
}

.section-header-premium .section-subtitle {
    font-size: 17px;
    color: #5d6d7e;
    max-width: 800px;
    margin: 4px auto 0;
    font-family: 'Noto Sans TC', sans-serif;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Specific Rule for News Header - Centered */
.news-header .section-header-premium {
    text-align: center;
}

.news-header .section-header-premium h2 {
    padding-left: 18px;
    padding-right: 18px;
}

.news-header .section-header-premium h2::before {
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
}

/* Section Header Styles (Legacy overrides to be removed in HTML) */
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-title h2 {
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 24px;
    /* Standardized to 24px */
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #E0EFCA 0%, #B4E8D7 100%);
    border-radius: 2px;
}

/* Universal Carousel Nav Buttons */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.carousel-nav-btn:hover {
    background: var(--secondary-color);
    color: #fff;
    border-color: var(--secondary-color);
    box-shadow: 0 6px 20px rgba(251, 140, 0, 0.3);
}

.carousel-nav-btn.prev {
    left: -20px;
}

.carousel-nav-btn.next {
    right: -20px;
}

.eslite-carousel-wrapper,
.reviews-carousel-wrapper {
    position: relative;
    padding: 0 10px;
}

/* Latest News Area */
.news-section {
    padding-top: 30px;
    padding-bottom: 30px;
}

.news-header {
    display: block;
    text-align: center;
    margin-bottom: 25px;
}

.news-tabs {
    display: flex;
    gap: 30px;
}

.news-tab {
    cursor: pointer;
    font-weight: 600;
    padding-bottom: 5px;
    font-size: 15px;
    transition: var(--transition);
    opacity: 0.7;
}

.news-tab:hover {
    opacity: 1;
}

.news-tab.active {
    opacity: 1;
    border-bottom: 2px solid currentColor;
}

/* News Cards System (Shared between Index and News page) */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px 28px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    position: relative;
    text-align: left;
    letter-spacing: 0.02em;
}

.news-card:hover {
    transform: translateY(-2px);
    /* Reduced from -3px */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    /* Reduced from 10px */
    gap: 15px;
}

.pill-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.category-pill {
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 12.5px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

.category-pill:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Specific Pill Colors */
.pill-double {
    background-color: #6366f1;
}

/* Blue/Indigo for ?蜓靽?*/
.pill-minor {
    background-color: #0d9488;
}

/* Teal for 頛頂 */
.pill-program {
    background-color: #f59e0b;
}

/* Orange for 摮貊? */
.pill-admin {
    background-color: #64748b;
}

/* Gray for 銵 */
.pill-hot {
    background-color: #dc3545;
}

/* Red for ?梢? */
.pill-default {
    background-color: #007bff;
}

.date-text {
    font-size: 14px;
    color: #94a3b8;
    font-family: 'Noto Sans TC', sans-serif;
    flex-shrink: 0;
}

.news-card h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.6;
    font-family: 'Noto Sans TC', sans-serif;
    letter-spacing: 0.03em;
}

.news-excerpt {
    font-size: 14.5px;
    color: #5d6d7e;
    line-height: 1.8;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: 0.01em;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1.5px solid #d1d5db;
    /* Lighter grey border */
    color: #7f8c8d;
    /* Muted grey text */
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    font-size: 13.5px;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background-color: #7f8c8d;
    border-color: #7f8c8d;
    color: #fff;
}

/* Individual Tab Colors */
.news-tab.tab-all {
    color: var(--primary-color);
}

.news-tab.tab-double {
    color: #2563eb;
    /* Blue */
}

.news-tab.tab-minor {
    color: #0d9488;
    /* Teal */
}

.news-tab.tab-program {
    color: #f97316;
    /* Orange */
}

.more-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.more-link:hover {
    border-bottom-color: var(--secondary-color);
    color: var(--accent-color);
}

.news-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    /* Increased from 8px */
    border-bottom: 1px solid #f0f0f0;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item>div {
    display: flex;
    align-items: center;
}

.news-badge {
    padding: 5px 14px;
    border-radius: 4px;
    font-size: 14px;
    /* Increased from 13px */
    font-weight: 700;
    margin-right: 15px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff;
    background: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.news-badge.badge-double {
    background: #2563eb;
}

.news-badge.badge-minor {
    background: #0d9488;
}

.news-badge.badge-program {
    background: #f97316;
}

.news-badge.badge-event {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
}

.news-title {
    font-size: 15px;
    /* News title */
    font-weight: 500;
    color: var(--text-dark);
}

.news-date {
    font-size: 13px;
    /* News date */
    color: var(--text-muted);
}

/* Intro Section Styles */
.intro-section {
    padding: 60px 40px;
    background: linear-gradient(135deg, #F0F6FB 0%, #DFEAF4 100%);
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.8);
    margin-bottom: 60px;
}

.intro-header {
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.intro-badge {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: #fff;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    border: none;
}

.intro-header h2 {
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 900;
}

.intro-subtitle {
    font-size: 19px;
    color: #f97316;
    /* Bright Orange */
    line-height: 1.6;
    font-weight: 700;
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.intro-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 40px 35px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.intro-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-premium);
}

.card-icon-bg {
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 120px;
    opacity: 0.1;
    transform: rotate(-15deg);
    transition: var(--transition);
}

.intro-card:hover .card-icon-bg {
    transform: rotate(0deg) scale(1.1);
    opacity: 0.15;
}

.card-top {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.card-top .main-icon {
    font-size: 28px;
    padding: 12px;
    border-radius: 12px;
    transition: var(--transition);
}

/* User Provided Color Classes - Backgrounds (New Palette) */
.card-double {
    background: linear-gradient(135deg, #FFE6D9 0%, #FFD4C2 100%);
    border-top: 1px solid rgba(255, 255, 255, 1);
    border-left: 1px solid rgba(255, 255, 255, 1);
    box-shadow: 0 15px 35px rgba(209, 91, 56, 0.1), inset 0 2px 4px rgba(255, 255, 255, 0.5);
}

.card-double:hover {
    box-shadow: 0 25px 50px rgba(209, 91, 56, 0.2), inset 0 2px 4px rgba(255, 255, 255, 0.8);
}

/* Peach */
.card-minor {
    background: linear-gradient(135deg, #EAE6FE 0%, #D6CEFC 100%);
    border-top: 1px solid rgba(255, 255, 255, 1);
    border-left: 1px solid rgba(255, 255, 255, 1);
    box-shadow: 0 15px 35px rgba(108, 82, 181, 0.1), inset 0 2px 4px rgba(255, 255, 255, 0.5);
}

.card-minor:hover {
    box-shadow: 0 25px 50px rgba(108, 82, 181, 0.2), inset 0 2px 4px rgba(255, 255, 255, 0.8);
}

/* Lime */
.card-program {
    background: linear-gradient(135deg, #DCF5E6 0%, #BFE8D2 100%);
    border-top: 1px solid rgba(255, 255, 255, 1);
    border-left: 1px solid rgba(255, 255, 255, 1);
    box-shadow: 0 15px 35px rgba(45, 129, 80, 0.1), inset 0 2px 4px rgba(255, 255, 255, 0.5);
}

.card-program:hover {
    box-shadow: 0 25px 50px rgba(45, 129, 80, 0.2), inset 0 2px 4px rgba(255, 255, 255, 0.8);
}

/* Mint */

/* High Contrast Icon & Text styling for Colored Backgrounds */
.card-double .main-icon {
    background: rgba(255, 255, 255, 0.4);
    color: #D15B38;
}

.card-minor .main-icon {
    background: rgba(255, 255, 255, 0.4);
    color: #6C52B5;
}

.card-program .main-icon {
    background: rgba(255, 255, 255, 0.4);
    color: #2D8150;
}

.card-double .card-icon-bg {
    color: #fff;
    opacity: 0.15;
}

.card-minor .card-icon-bg {
    color: #fff;
    opacity: 0.15;
}

.card-program .card-icon-bg {
    color: #fff;
    opacity: 0.15;
}

.intro-card h3 {
    font-size: 20px;
    color: #333;
    font-weight: 800;
}

.intro-card p {
    font-size: 15px;
    /* Intro card body text */
    color: #444;
    font-weight: 500;
    line-height: 1.8;
    margin-bottom: 25px;
}

.card-highlights {
    list-style: none;
    margin-bottom: 30px;
    flex-grow: 1;
}

.card-highlights li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    /* Card highlight items */
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.card-highlights li i {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.intro-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 18px;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.card-double .intro-link {
    color: #8a5a44;
}

.card-minor .intro-link {
    color: #5a6d4b;
}

.card-program .intro-link {
    color: #4b6d65;
}

.card-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
}

.card-btns-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: auto;
}

.card-btns-grid .intro-link {
    justify-content: center;
}

.intro-link:hover {
    gap: 12px;
    background: #fff;
    transform: translateX(5px);
}

@media (max-width: 1024px) {
    .intro-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .intro-grid {
        grid-template-columns: 1fr;
    }

    .intro-header h2 {
        font-size: 32px;
    }
}

/* Module Spacing */
.module-spacing {
    margin-bottom: 60px;
    /* Increased from 20px for better breathing room */
}

.section-bg-white {
    background-color: #ffffff !important;
    padding: 25px 40px;
    margin-left: -40px;
    margin-right: -40px;
}

/* Booktopia Program Wall */
.program-wall-booktopia {
    background: #fff;
    padding: 40px;
}

.centered-title {
    text-align: center;
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 36px;
    margin-bottom: 60px;
    font-weight: 900;
    color: var(--primary-color);
}

.program-grid-6cols {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
    margin-top: 20px;
}

@media (min-width: 768px) {
    .program-grid-6cols {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .program-grid-6cols {
        grid-template-columns: repeat(3, 1fr);
    }
}

.program-category-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
    /* Stretch group to grid row height */
}

.category-header {
    display: flex;
    align-items: flex-start;
    /* Align to top in case of wrapping */
    gap: 10px;
    padding: 0 10px;
    flex-wrap: wrap;
    min-height: 64px;
    /* Ensure space for at least two lines of text to align cards uniformly */
}

.category-indicator {
    width: 6px;
    height: 24px;
    border-radius: 10px;
    flex-shrink: 0;
    margin-top: 2px;
    /* Slight adjustment to align with the first line of text */
}

.category-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: #334155;
    /* slate-700 */
    margin: 0;
    font-family: 'Noto Sans TC', sans-serif;
    font-weight: 800;
    width: calc(100% - 16px);
    /* 100% minus the indicator width and gap */
    line-height: 1.2;
    /* Tighten up the line height */
}

.category-header h3~h3 {
    margin-left: 16px;
    /* Offset the width of the indicator and gap to align with text above */
    margin-top: 2px;
    /* Reduced from 4px */
}

.program-card {
    position: relative;
    border-radius: 16px;
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-top-width: 4px;
    border-top-style: solid;
    transition: transform 0.3s, box-shadow 0.3s;
    flex: 1;
    /* Stretch to fill container */
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.program-desc {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
}

.program-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    font-size: 14px;
    color: #475569;
    /* slate-600 */
    line-height: 1.6;
    flex-grow: 1;
}

.program-features li {
    margin-bottom: 8px;
}

.program-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.program-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid;
    transition: background-color 0.2s;
    line-height: 1.2;
}

.program-btn i {
    margin-left: 6px;
    font-size: 15px;
}

.program-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
    padding: 0;
}

.program-item-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    color: inherit;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.program-item-link:hover {
    background: #fff;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
}

.type-tag {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.tag-micro {
    background: #6366f1;
}

/* ??: ?箸?憌??*/
.tag-full {
    background: #f59e0b;
}

/* ?此?? ?株岳??株?? */

.program-btn-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.program-btn-small {
    text-align: center;
    padding: 8px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    border: 1px solid;
    transition: background-color 0.2s;
}

.badge-new {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #ef4444;
    /* red-500 */
    color: white;
    font-size: 15px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(239, 68, 68, 0.3);
}

/* Color Themes */
/* Amber (?叟??? */
.bg-amber {
    background-color: #fbbf24;
}

.program-card.bg-amber-light {
    background-color: #fffbeb;
}

.program-card.border-amber {
    border-top-color: #fbbf24;
}

.text-amber-dark {
    color: #b45309;
}

.btn-amber {
    background: #ffffff;
    border-color: #fde68a;
    color: #b45309;
}

.btn-amber:hover {
    background: #fef3c7;
}

/* Slate (?剜??? */
.bg-slate {
    background-color: #94a3b8;
}

.program-card.bg-slate-light {
    background-color: #f1f5f9;
}

.program-card.border-slate {
    border-top-color: #94a3b8;
}

.text-slate-dark {
    color: #334155;
}

.btn-slate {
    background: #ffffff;
    border-color: #e2e8f0;
    color: #334155;
}

.btn-slate:hover {
    background: #e2e8f0;
}

/* Cyan (??賃秘) */
.bg-cyan {
    background-color: #22d3ee;
}

.program-card.bg-cyan-light {
    background-color: #ecfeff;
}

.program-card.border-cyan {
    border-top-color: #22d3ee;
}

.text-cyan-dark {
    color: #0e7490;
}

.btn-cyan {
    background: #ffffff;
    border-color: #a5f3fc;
    color: #0e7490;
}

.btn-cyan:hover {
    background: #cffafe;
}

/* Indigo (??????) */
.bg-indigo {
    background-color: #818cf8;
}

.program-card.bg-indigo-light {
    background-color: #eef2ff;
}

.program-card.border-indigo {
    border-top-color: #818cf8;
}

.text-indigo-dark {
    color: #4338ca;
}

.btn-indigo {
    background: #ffffff;
    border-color: #c7d2fe;
    color: #4338ca;
}

.btn-indigo:hover {
    background: #e0e7ff;
}

/* Blue (?桀???豲?) */
.bg-blue {
    background-color: #3b82f6;
}

.program-card.bg-blue-light {
    background-color: #eff6ff;
}

.program-card.border-blue {
    border-top-color: #3b82f6;
}

.text-blue-dark {
    color: #1d4ed8;
}

.btn-blue {
    background: #ffffff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.btn-blue:hover {
    background: #dbeafe;
}

/* Orange (AI) */
.bg-orange {
    background-color: #fb923c;
}

.program-card.bg-orange-light {
    background-color: #fff7ed;
}

.program-card.border-orange {
    border-top-color: #fb923c;
}

.text-orange-dark {
    color: #c2410c;
}

.btn-orange {
    background: #ffffff;
    border-color: #fed7aa;
    color: #c2410c;
}

.btn-orange:hover {
    background: #ffedd5;
}

/* Course Overview Section (Sidebar Layout) */
.course-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.course-sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
}

.sidebar-search {
    display: flex;
    margin-bottom: 30px;
}

.sidebar-search input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px 0 0 4px;
    font-size: 15px;
    outline: none;
}

.sidebar-search button {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-search button:hover {
    background: var(--secondary-color);
}

.sidebar-categories {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

.sidebar-categories h3 {
    font-size: 16px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--nav-tan);
    color: var(--primary-color);
}

.sidebar-categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-categories li {
    margin-bottom: 12px;
}

.sidebar-categories li:last-child {
    margin-bottom: 0;
}

.sidebar-categories a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.sidebar-categories a::before {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 10px;
    color: var(--nav-tan);
    transition: var(--transition);
}

.sidebar-categories a:hover,
.sidebar-categories li.active a {
    color: var(--energy-orange);
    font-weight: 700;
}

.sidebar-categories li.active a::before,
.sidebar-categories a:hover::before {
    color: var(--energy-orange);
    transform: translateX(3px);
}

.course-main {
    flex: 1;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.course-blog-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.course-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-img-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.course-blog-card:hover .card-img-wrapper img {
    transform: scale(1.08);
    /* slight zoom on hover */
}

.card-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--energy-orange);
    color: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.favorite-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.favorite-btn:hover {
    background: #fff;
    color: #ff4757;
    transform: scale(1.1);
}

.favorite-btn.active {
    color: #ff4757;
}

.favorite-btn.active i {
    animation: pulseHeart 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pulseHeart {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.4);
    }

    100% {
        transform: scale(1);
    }
}

.card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.card-meta i {
    margin-right: 5px;
}

.card-title {
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 15px;
    color: var(--text-color);
    font-weight: 700;
}

.course-blog-card:hover .card-title {
    color: var(--primary-color);
}

.card-desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.card-footer {
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
    display: flex;
    justify-content: flex-end;
}

.read-more {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.course-blog-card:hover .read-more {
    color: var(--energy-orange);
}

.course-blog-card:hover .read-more i {
    transform: translateX(4px);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background: #fff;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.page-link:hover,
.page-link.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

@media screen and (max-width: 900px) {
    .course-layout {
        flex-direction: column;
    }

    .course-sidebar {
        width: 100%;
        position: static;
        margin-bottom: 30px;
    }

    .overview-grid {
        grid-template-columns: 1fr;
    }
}

/* Showcase Grid (FJU Style) */
#showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.showcase-card {
    background: #fff;
    border: 1px solid #edf0f5;
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.showcase-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.showcase-img-container {
    height: 220px;
    position: relative;
}

.showcase-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.showcase-tag-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--energy-orange);
    color: #fff;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 13px;
    /* Increased from 11px */
    font-weight: 700;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 10px rgba(251, 140, 0, 0.3);
}

.showcase-info {
    padding: 25px;
}

/* Background Decoration Enhancement */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    filter: blur(100px);
    opacity: 0.15;
    animation: drift 20s infinite alternate cubic-bezier(0.45, 0, 0.55, 1);
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-light), transparent);
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--secondary-color), transparent);
    bottom: -100px;
    left: -100px;
    animation-delay: -5s;
}

.shape-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-color), transparent);
    top: 40%;
    left: 20%;
    animation-delay: -10s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(50px, 80px) rotate(15deg);
    }
}

/* Section Transitions */
.section-full-width::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, transparent, inherit);
    pointer-events: none;
}

/* Card Improvements */
.card-style {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 60px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.card-style:hover {
    box-shadow: var(--shadow-premium);
    transform: translateY(-10px);
    border-color: rgba(13, 59, 45, 0.15);
}

/* Scroll Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Premium Warm-Toned Background Colors */
.bg-light-green {
    background: linear-gradient(135deg, #F0F7F4 0%, #E2F0E7 100%);
    box-shadow: inset 0 2px 15px rgba(13, 59, 45, 0.02);
    border-radius: 30px;
    padding: 80px 0;
}

.bg-peach-cream {
    background: linear-gradient(135deg, #FFF9F2 0%, #FFF0E0 100%);
    box-shadow: inset 0 2px 15px rgba(251, 140, 0, 0.03);
    border-radius: 30px;
}

.program-full-section {
    padding: 60px 0;
    margin-top: 20px;
}

.bg-pale-yellow {
    background-color: #fffbf0;
    /* Pale yellow - for cross-disciplinary courses */
}

.bg-light-gray {
    background-color: #f9f8f6;
    /* Paper tint - legacy, can be replaced */
}

/* Eslite-Style Recommendations Area Refined */
.eslite-recommend-area {
    overflow: hidden;
}

.eslite-header {
    background: transparent;
    padding: 30px 20px 20px;
    display: flex;
    justify-content: center;
    position: relative;
    border-bottom: 4px solid #d3e4e1;
}

.eslite-title-box {
    background: var(--primary-gradient);
    color: #fff;
    padding: 12px 50px;
    font-size: 20px;
    font-weight: 800;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.15);
    letter-spacing: 0.1em;
    box-shadow: 0 10px 20px rgba(10, 77, 60, 0.2);
}

.eslite-header::before,
.eslite-header::after {
    content: '??????;
 color: var(--primary-color);
    font-size: 15px;
    opacity: 0.6;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.eslite-header::before {
    left: 15%;
}

.eslite-header::after {
    right: 15%;
}

.eslite-body {
    padding: 25px 40px 40px;
}

.eslite-carousel {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scrollbar-width: none;
}

.eslite-carousel::-webkit-scrollbar {
    display: none;
}

.eslite-card {
    min-width: 170px;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.eslite-card .course-img {
    height: 160px;
    background: #eee;
    position: relative;
    /* Allow badges to be placed absolute */
}

.eslite-card .course-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eslite-card .course-info {
    background: var(--primary-color);
    color: #fff;
    padding: 15px 10px;
    text-align: center;
    flex-grow: 1;
}

.eslite-card .course-name {
    font-size: 16px;
    /* Increased from 14px */
    font-weight: 700;
    margin-bottom: 4px;
    color: #fff;
}

.eslite-card .course-promo {
    font-size: 13px;
    /* Increased from 11px */
    color: var(--accent-color);
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Interdisciplinary Section (Compact) */
.icon-nav-section {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
    background: transparent !important;
}

.icon-nav-section .section-title {
    margin-bottom: 15px;
}

.icon-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.icon-item {
    text-align: center;
    cursor: pointer;
}

.icon-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--primary-color);
    margin: 0 auto 15px;
    transition: var(--transition);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
}

.icon-item:nth-child(1) .icon-circle {
    color: #f1c40f;
    border-color: rgba(241, 196, 15, 0.3);
}

.icon-item:nth-child(2) .icon-circle {
    color: #fb8c00;
    border-color: rgba(251, 140, 0, 0.3);
}

.icon-item:nth-child(3) .icon-circle {
    color: #ffca28;
    border-color: rgba(255, 202, 40, 0.3);
}

.icon-item:nth-child(4) .icon-circle {
    color: #ff7043;
    border-color: rgba(255, 112, 67, 0.3);
}

.icon-item:nth-child(5) .icon-circle {
    color: #0d7377;
    border-color: rgba(13, 115, 119, 0.3);
}

.icon-item:hover .icon-circle {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 20px 40px rgba(251, 140, 0, 0.15);
}

.icon-item:nth-child(1):hover .icon-circle {
    background: #f1c40f;
    color: #fff;
}

.icon-item:nth-child(2):hover .icon-circle {
    background: #fb8c00;
    color: #fff;
}

.icon-item:nth-child(3):hover .icon-circle {
    background: #ffca28;
    color: #fff;
}

.icon-item:nth-child(4):hover .icon-circle {
    background: #ff7043;
    color: #fff;
}

.icon-item:nth-child(5):hover .icon-circle {
    background: #0d7377;
    color: #fff;
}

.icon-item span {
    font-weight: 700;
    font-size: 14px;
}

.icon-item .icon-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 12px;
    line-height: 1.6;
    font-weight: 400;
    padding: 0 5px;
    text-align: justify;
    text-align-last: center;
}

/* Footer Refinement */
footer {
    background: #DDD3C7;
    color: #4A4A4A;
    padding: 100px 0 60px;
    margin-top: 100px;
    position: relative;
    overflow: hidden;
}

footer h3 {
    color: #2F5D50;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 25px;
}

footer a {
    color: #4A4A4A;
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    color: #6A5648;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer ul li {
    margin-bottom: 12px;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(0, 0, 0, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 80px;
}

/* --- Program List Page (New v3 Layout) --- */
.program-list-section {
    padding: 0 0 100px;
    /* Removed top padding to move it up */
    background-color: var(--bg-cream);
}

.program-page-header {
    text-align: center;
    margin-bottom: 50px;
}

.program-page-header h1 {
    font-size: 36px;
    font-family: 'Noto Sans TC', sans-serif;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.program-big-search {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-radius: 40px;
}

.program-big-search input {
    width: 100%;
    padding: 20px 35px;
    border-radius: 40px;
    border: 2px solid #fff;
    font-size: 18px;
    padding-right: 60px;
    transition: var(--transition);
}

.program-big-search input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.program-big-search i {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 20px;
}

/* Sidebar Search Box Styles */
.sidebar-search-box {
    position: relative;
    margin-bottom: 25px;
}

.sidebar-search-box input {
    width: 100%;
    padding: 14px 45px 14px 18px;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 15px;
    background: #fdfdfd;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-dark);
}

.sidebar-search-box input:focus {
    outline: none;
    border-color: #A06A3A;
    background: #fff;
    box-shadow: 0 5px 15px rgba(160, 106, 58, 0.08);
}

.sidebar-search-box i {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    font-size: 16px;
}

.filter-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 12px;
    color: #2F5D50;
    font-size: 14.5px;
    letter-spacing: 0.5px;
}

.program-layout-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

/* Sidebar Styles */
.program-sidebar {
    position: static;
}

.sidebar-card {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.sidebar-title {
    font-size: 17px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    color: var(--text-dark);
}

.filter-group {
    margin-bottom: 30px;
}

.filter-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 15px;
    color: #444;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 16px;
    color: #666;
}

.radio-option input {
    width: 18px;
    height: 18px;
}

/* Custom College Filter List with Premium Hovers */
.college-filter-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
}

.college-item {
    padding: 12px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    font-size: 14.5px;
    color: #4b5563;
    display: flex;
    align-items: center;
    background: #fdfdfd;
}

.college-item:hover {
    background: #f3f4f6;
    color: var(--primary-color);
}

.college-item.active {
    background: var(--primary-color);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(10, 77, 60, 0.15);
}

.reset-filter-btn {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #eee;
    background: #f8f8f8;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.reset-filter-btn:hover {
    background: #eee;
}

/* Grid & Card v3 Styles */
.program-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 30px;
}

.program-card-v3 {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    animation: cardEntrance 0.5s ease-out backwards;
}

.program-card-v3:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.program-card-v3:hover .card-image-wrapper {
    filter: brightness(1.1);
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-image-wrapper {
    position: relative;
    height: 48px;
    background: #4a5568;
    /* Dark premium slate from image */
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    align-items: center;
    z-index: 10;
    padding: 0 15px;
}

.card-image-wrapper i.college-icon-placeholder {
    display: none;
    /* Hide icon as header is now a thin strip */
}

/* College Specific Background Colors handled at the end of file */

.card-tag-badge {
    position: absolute;
    top: 50%;
    /* Center vertically on the strip */
    left: 15px;
    transform: translateY(-50%);
    color: #555;
    /* Darker text for light background */
    padding: 3px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    z-index: 20;
    display: flex;
    align-items: center;
    background: rgb(254, 252, 240);
    /* Requested cream color */
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
}

.card-tag-badge:active {
    transform: translateY(-50%) scale(0.95);
}

.recommend-badge-v3 {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    background: #ff4757;
    color: #fff;
    padding: 3px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    z-index: 25;
    box-shadow: 0 4px 10px rgba(255, 71, 87, 0.2);
    cursor: default;
    letter-spacing: 0.1em;
}

/* Consistent gray badge, no specific college overrides to keep it clean */

.card-content-v3 {
    padding: 20px 20px 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding-top: 20px;
    /* Reduced since badge is now in the header strip */
}

.card-title-cn {
    font-size: 16px;
    margin-bottom: 5px;
}

.card-info-details {
    margin-bottom: 20px;
    max-height: 80px;
    /* Reduced to ensure more cards have content to 'reveal' */
    overflow: hidden;
    position: relative;
    transition: max-height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    /* Slower, more deliberate effect */
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-info-details.expanded {
    max-height: 1000px;
}

.card-info-details::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    /* Taller fade for better transition */
    background: linear-gradient(to top, #fff 20%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.card-info-details.expanded::after {
    opacity: 0;
}

/* Button & Chevron Interaction */
.expand-toggle-btn i {
    transition: transform 0.5s ease;
}

.expand-toggle-btn.active i {
    transform: rotate(180deg);
}

.expand-toggle-btn {
    width: 100%;
    padding: 8px;
    background: #f8f9fa;
    border: 1px dashed #ddd;
    border-radius: 6px;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: var(--transition);
    position: relative;
    z-index: 10;
    /* Ensure it's clickable above the card-full-link */
}

.expand-toggle-btn:hover {
    background: #eef2f7;
    border-color: #cbd5e0;
}

.expand-toggle-btn i {
    transition: transform 0.3s ease;
}

.expand-toggle-btn.active i {
    transform: rotate(180deg);
}

.card-content-v3 {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-category-text {
    font-size: 14px;
    font-weight: 600;
    color: #3182ce;
    margin-bottom: 10px;
}

.v3-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 5px;
}

.card-title-cn {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    color: #555555;
}

.v3-download-link {
    color: #e53e3e;
    /* Standard red */
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
    background: transparent;
    padding: 2px 0;
    border: none;
    z-index: 10;
}

.v3-download-link:hover {
    color: #c53030;
    text-decoration: underline;
}

.v3-download-link i {
    margin-right: 4px;
}

.card-title-en {
    font-size: 15px;
    color: #718096;
    margin-bottom: 20px;
    font-weight: 500;
}



.info-item {
    font-size: 14px;
    line-height: 1.6;
    color: #4a5568;
}

.info-item strong {
    color: #2d3748;
    display: block;
    margin-bottom: 2px;
}

.card-footer-v3 {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #edf2f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #a0aec0;
}

.card-footer-v3 i {
    margin-right: 5px;
}

.card-full-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

@media (max-width: 1024px) {
    .program-layout-wrapper {
        grid-template-columns: 1fr;
    }

    .program-sidebar {
        position: static;
    }
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .program-grid-booktopia {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 768px) {

    /* ── Header (mobile) ── */
    .top-bar,
    .header-nav-area,
    .secondary-nav {
        display: none !important;
    }

    .mobile-toggle {
        display: flex;
    }

    /* site-nav：手機時顯示為固定抽屜（在 header 外，backdrop-filter 不影響） */
    .site-nav {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 400px;
        height: 100%;
        background: #fff;
        z-index: 2000;
        padding: 0 40px 40px;
        overflow-y: auto;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        box-shadow: -10px 0 50px rgba(0, 0, 0, 0.1);
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .site-nav.active {
        right: 0;
    }

    /* 手機專用區塊 */
    .nav-mobile-header {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 70px 0 30px;
        width: 100%;
    }

    .nav-divider {
        display: block;
        height: 1px;
        background: var(--border-color);
        margin: 20px 0;
        width: 100%;
    }

    .nav-secondary-list {
        display: block;
        list-style: none;
        padding: 0;
        margin: 0;
        width: 100%;
    }

    .nav-secondary-list li {
        margin-bottom: 16px;
    }

    .nav-secondary-list li a {
        font-size: 14px;
        color: var(--text-muted);
    }

    .nav-mobile-lang {
        display: block;
        width: 100%;
        margin-top: 10px;
    }

    /* 手機主選單：直排 */
    .nav-primary-list {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nav-primary-list>li>a {
        font-size: 16px;
        font-weight: 700;
        color: var(--primary-color);
        padding: 12px 0;
    }

    .nav-primary-list>li>a::after {
        display: none;
    }

    /* 手機子選單：預設隱藏，.open 時展開 */
    .nav-sub {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0 0 10px 20px;
        display: none;
        background: transparent;
    }

    .nav-has-sub.open>.nav-sub {
        display: block;
    }

    .nav-has-sub.open .dropdown-icon {
        transform: rotate(180deg);
    }

    .nav-sub li a {
        padding: 8px 0;
        font-size: 14px;
        color: var(--text-muted);
    }

    .nav-sub li a:hover {
        background: transparent;
        color: var(--primary-color);
    }

    /* Tighter main header on mobile */
    .main-header {
        padding: 12px 0;
    }

    /* Logo size reduction on mobile */
    .logo-img {
        height: 44px;
    }

    .logo-main {
        font-size: 18px;
    }

    .logo-sub {
        font-size: 12px;
    }

    /* ?€?€ Page layout ?€?€ */
    .page-bg {
        padding: 12px 0 50px;
    }

    .container {
        padding: 0 16px;
    }

    .main-section-wrapper {
        gap: 12px;
    }

    .module-spacing {
        margin-bottom: 30px;
    }

    /* ?€?€ Hero Carousel ?€?€ */
    .hero-carousel-wrapper {
        height: auto !important;
        aspect-ratio: 1 / 1;
        border-radius: 16px;
    }

    .slider-arrow {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .slider-arrow.prev {
        left: 10px;
    }

    .slider-arrow.next {
        right: 10px;
    }

    .hero-content {
        padding: 16px !important;
        width: 80% !important;
        max-width: 280px;
        transform: translateY(-20px) scale(0.95) !important;
    }

    .hero-content h1 {
        font-size: 17px !important;
        margin-bottom: 6px !important;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    }

    .hero-content p,
    .hero-btns .btn-secondary {
        display: none !important;
    }

    .hero-btns {
        margin-top: 5px;
    }

    .hero-btns .btn-primary {
        padding: 6px 16px;
        font-size: 13px;
        max-width: 140px;
    }

    /* ?€?€ News section ?€?€ */
    .card-style {
        border-radius: 20px !important;
        padding: 20px !important;
    }

    /* News header: stack vertically on mobile */
    .news-header {
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 15px;
    }

    .news-header .section-header-premium {
        flex: 0 0 100%;
        margin-bottom: 0;
    }

    .news-tabs {
        gap: 12px;
        flex-wrap: wrap;
    }

    .news-tab {
        font-size: 13px;
        padding-bottom: 3px;
    }

    .more-link {
        font-size: 12px;
        margin-left: auto;
    }

    /* News card adjustments */
    .news-card {
        padding: 12px 14px;
    }

    .news-card h3 {
        font-size: 14px;
    }

    .card-header {
        flex-wrap: wrap;
        gap: 8px;
        align-items: flex-start;
    }

    /* ?€?€ Recommendations carousel ?€?€ */
    .section-full-width {
        border-radius: 20px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .bg-light-green {
        padding: 30px 0;
    }

    .eslite-body {
        padding: 15px 16px;
    }

    .eslite-header::before,
    .eslite-header::after {
        display: none;
    }

    /* Professional UX: Peek Effect for Carousels */
    .eslite-carousel,
    .reviews-carousel {
        padding-right: 40px !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 12px !important;
    }

    .eslite-card,
    .review-card {
        flex: 0 0 75% !important;
        scroll-snap-align: start;
    }

    /* Hide carousel nav arrows on mobile */
    .carousel-nav-btn {
        display: none !important;
    }

    /* ?€?€ Intro cards (頝券??飛蝧?蝝? ?€?€ */
    .intro-section {
        padding: 0 0 30px 0;
    }

    .intro-card {
        padding: 24px 20px;
    }

    .intro-card h3 {
        font-size: 18px;
    }

    .intro-card p {
        font-size: 14px;
        margin-bottom: 16px;
    }

    /* ?€?€ Section headers ?€?€ */
    .section-header-premium h2 {
        font-size: 20px;
    }

    .section-header-premium .section-subtitle {
        font-size: 14px;
    }

    .section-header-premium {
        margin-bottom: 25px;
    }

    /* ?€?€ Program intro section ?€?€ */
    #program-intro-sec {
        margin-top: 30px;
    }

    .program-content-card {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .college-tab-list {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
    }

    .college-tab-item {
        flex-shrink: 0;
        font-size: 13px;
        padding: 8px 14px;
    }

    .feature-category-nav-wrapper {
        gap: 8px;
        margin-bottom: 20px;
        padding: 6px 0 14px;
        flex-wrap: wrap;
    }

    .feature-intro-btn,
    .feature-cat-btn {
        height: 36px;
        padding: 0 12px;
        font-size: 13px;
    }

    /* ?€?€ Footer ?€?€ */
    footer {
        padding: 50px 0 40px;
        margin-top: 50px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: left;
    }

    .footer-brand {
        text-align: left;
    }

    /* ?€?€ Legacy news item layout ?€?€ */
    .news-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 12px 0 !important;
        gap: 8px;
    }

    .news-item>div {
        flex-direction: row !important;
        align-items: flex-start !important;
        width: 100% !important;
        gap: 10px !important;
    }

    .news-badge {
        flex-shrink: 0 !important;
        margin-right: 0 !important;
        padding: 4px 10px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
    }

    .news-title {
        font-size: 14px !important;
        line-height: 1.5 !important;
        flex: 1 !important;
    }

    .news-date {
        align-self: flex-end !important;
        font-size: 12px !important;
        color: var(--text-muted) !important;
    }

    /* ?€?€ Section generic ?€?€ */
    .section-bg-white {
        padding: 16px;
        margin-left: -16px;
        margin-right: -16px;
    }

    .section-title h2,
    .news-header h2,
    .eslite-title-box {
        font-size: 20px !important;
    }

    .centered-title {
        font-size: 24px !important;
        margin-bottom: 24px !important;
    }

    .icon-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .persistent-search {
        bottom: 12px !important;
    }

    .search-box {
        padding: 8px 14px !important;
    }

    .search-btn {
        padding: 7px 14px !important;
        font-size: 13px !important;
    }

    /* Touch feedback */
    .news-item:active,
    .category-item:active,
    .btn:active {
        background-color: rgba(13, 59, 45, 0.05) !important;
        transform: scale(0.98);
        transition: transform 0.1s;
    }

    .program-grid-booktopia {
        grid-template-columns: 1fr;
    }
}

/* Back to Top Button Styling */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(13, 59, 45, 0.3);
}

.back-to-top:active {
    transform: scale(0.95);
}

@media screen and (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
}

@media screen and (max-width: 480px) {

    /* Very small screens */
    .logo-img {
        height: 36px;
    }

    .logo-main {
        font-size: 15px;
    }

    .logo-sub {
        font-size: 11px;
        letter-spacing: 0.5px;
    }

    .hero-carousel-wrapper {
        height: auto !important;
        aspect-ratio: 1 / 1;
        border-radius: 12px;
    }

    .hero-content h1 {
        font-size: 15px !important;
    }

    .slider-arrow {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .news-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .news-tabs {
        gap: 8px;
        width: 100%;
    }

    .more-link {
        align-self: flex-end;
    }

    .section-header-premium h2 {
        font-size: 18px;
    }

    .intro-card {
        padding: 20px 16px;
    }

    .intro-card h3 {
        font-size: 17px;
    }

    .feature-intro-btn,
    .feature-cat-btn {
        height: 32px;
        padding: 0 10px;
        font-size: 12px;
    }

    .college-tab-item {
        font-size: 12px;
        padding: 6px 12px;
    }

    .program-content-card {
        padding: 16px 12px;
    }

    .grid-item-v2 {
        font-size: 13px;
        padding: 10px 12px;
    }

    .category-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    footer {
        padding: 40px 0 30px;
        margin-top: 30px;
    }
}

/* =========================================
   Elective Courses Explorer V2
   ========================================= */
.course-layout-v2-wrapper {
    font-family: 'Noto Sans TC', sans-serif;
    font-weight: 700;
}

.course-grid-v2-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .course-grid-v2-layout {
        flex-direction: row;
    }
}

/* Sidebar */
.course-v2-sidebar {
    width: 100%;
}

@media (min-width: 768px) {
    .course-v2-sidebar {
        width: 256px;
        flex-shrink: 0;
    }
}

.v2-sidebar-inner {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
    padding: 24px;
}

.v2-sidebar-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 16px;
}

.text-blue {
    color: #2563eb;
}

.v2-filter-group {
    margin-bottom: 24px;
}

.v2-filter-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: #6b7280;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.v2-radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.v2-radio-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.v2-radio-label:hover {
    background-color: #f9fafb;
}

.v2-radio-label input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
    margin: 0;
}

.v2-radio-label span {
    font-size: 0.875rem;
    color: #4b5563;
}

.v2-radio-label.active span {
    font-weight: 700;
    color: #1d4ed8;
}

.v2-select-dropdown {
    width: 100%;
    padding: 10px;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.875rem;
    color: #374151;
    outline: none;
    transition: all 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

.v2-select-dropdown:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.v2-reset-btn {
    width: 100%;
    margin-top: 32px;
    padding: 8px 0;
    font-size: 0.875rem;
    color: #9ca3af;
    background: transparent;
    border: 1px solid #f3f4f6;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.v2-reset-btn:hover {
    color: #2563eb;
    border-color: #bfdbfe;
    background-color: #eff6ff;
}

/* Main Content */
.course-v2-main {
    flex: 1;
}

.v2-top-bar {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
    padding: 16px;
    margin-bottom: 32px;
}

.v2-top-bar-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 1024px) {
    .v2-top-bar-inner {
        flex-direction: row;
    }
}

.v2-domain-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.v2-domain-btn {
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.v2-domain-btn:hover {
    filter: brightness(0.9);
}

.v2-domain-btn.active {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
}

.v2-domain-btn.bg-gray {
    background-color: #6b7280;
    color: white;
}

.v2-domain-btn.bg-teal {
    background-color: #0d9488;
    color: white;
}

.v2-domain-btn.bg-blue {
    background-color: #2563eb;
    color: white;
}

.v2-domain-btn.bg-orange {
    background-color: #f97316;
    color: white;
}

.v2-domain-btn.bg-rose {
    background-color: #e11d48;
    color: white;
}

.v2-domain-btn.bg-purple {
    background-color: #9333ea;
    color: white;
}

.v2-search-box {
    position: relative;
    width: 100%;
}

@media (min-width: 1024px) {
    .v2-search-box {
        width: 256px;
    }
}

.v2-search-box input {
    width: 100%;
    padding: 8px 16px 8px 40px;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.875rem;
    outline: none;
    transition: all 0.3s;
}

.v2-search-box input:focus {
    border-color: #3b82f6;
    background-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.v2-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 14px;
}

.v2-results-stats {
    margin-bottom: 24px;
    padding: 0 8px;
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.text-blue-bold {
    color: #2563eb;
    font-weight: 700;
}

.text-rose {
    color: #f43f5e;
}

/* Grid layout for cards */
.v2-course-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
}

@media (min-width: 1024px) {
    .v2-course-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1280px) {
    .v2-course-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.v2-course-card {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #f3f4f6;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.v2-course-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.v2-card-img-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: #f9fafb;
}

.v2-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.v2-course-card:hover .v2-card-img {
    transform: scale(1.05);
}

.v2-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.v2-fav-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #f9fafb;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
}

.v2-fav-btn:hover {
    background: #ffffff;
    transform: scale(1.1);
}

.v2-fav-btn:active {
    transform: scale(0.95);
}

.v2-fav-btn i {
    font-size: 16px;
    color: #d1d5db;
    /* gray-300 */
    transition: color 0.2s;
}

.v2-fav-btn.favorited i {
    color: #f43f5e;
    /* rose-500 */
}

/* Hide heart internally if it's the far (empty) or fas (filled) */
.v2-fav-btn.favorited .fa-heart {
    font-weight: 900;
    /* Solid */
}

.v2-fav-btn:not(.favorited) .fa-heart {
    font-weight: 400;
    /* Regular outline */
}

.v2-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.v2-badge {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    color: white;
}

.v2-badge-sustain {
    background-color: #0d9488;
}

.v2-badge-startup {
    background-color: #2563eb;
}

.v2-badge-health {
    background-color: #f97316;
}

.v2-badge-humanity {
    background-color: #e11d48;
}

.v2-badge-tech {
    background-color: #9333ea;
}

.v2-course-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 12px 0;
    transition: color 0.2s;
    padding-right: 32px;
    /* space for heart icon */
}

.v2-course-card:hover h3 {
    color: #2563eb;
}

.v2-course-desc {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.v2-course-footer {
    padding-top: 16px;
    border-top: 1px solid #f9fafb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 500;
}

.v2-course-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.v2-course-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.v2-course-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.v2-course-link:hover {
    color: #1d4ed8;
}

.v2-empty-state {
    text-align: center;
    padding: 80px 20px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px dashed #e5e7eb;
}

.text-gray-light {
    color: #e5e7eb;
    font-size: 64px;
    margin-bottom: 16px;
}

.v2-empty-state h3 {
    font-size: 1.125rem;
    font-weight: 500;
    color: #111827;
    margin-bottom: 8px;
}

/* Feature Domain Navigation (?寡??) - Pill Style */
.feature-category-nav-wrapper {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 14px;
    width: 100%;
    margin-bottom: 35px;
    padding: 10px 0 20px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.feature-category-nav-wrapper::-webkit-scrollbar {
    display: none;
}

.feature-intro-btn,
.feature-cat-btn {
    flex-shrink: 0;
    height: 42px;
    padding: 0 14px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14.5px;
    font-weight: 900;
    font-family: 'Noto Sans TC', sans-serif;
    border: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    white-space: nowrap;
}

/* Native Select Dropdowns for Mobile */
.mobile-select-wrapper {
    display: none;
}

@media (max-width: 768px) {
    /* Hide the button wrappers on mobile */
    .feature-category-nav-wrapper,
    .college-tab-nav-wrapper {
        display: none !important;
    }
    
    /* Show the native selects */
    .mobile-select-wrapper {
        display: block;
        width: 100%;
        margin-bottom: 20px;
    }
    
    .mobile-select-dropdown {
        width: 100%;
        padding: 12px 16px;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        background-color: #fff;
        font-family: 'Noto Sans TC', sans-serif;
        font-size: 15px;
        font-weight: 700;
        color: #1a1a1a;
        box-shadow: 0 2px 4px rgba(0,0,0,0.02);
        appearance: none; /* Hide default arrow to use custom or let it be native */
        background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%231a1a1a%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
        background-repeat: no-repeat;
        background-position: right 16px top 50%;
        background-size: 12px auto;
        cursor: pointer;
    }
    
    .mobile-select-dropdown:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 2px rgba(13, 59, 45, 0.2);
    }
}

.feature-intro-btn:hover,
.feature-cat-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.feature-cat-btn.active {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px -3px rgba(0, 0, 0, 0.18), 0 4px 8px -2px rgba(0, 0, 0, 0.1);
    outline: 2.5px solid currentColor;
    outline-offset: 2px;
}

.feature-intro-btn i,
.feature-cat-btn i {
    font-size: 16px;
    opacity: 0.9;
}

/* Pastel Colors - Category Specific (Lightened) */
.f-cat-gray {
    background-color: #64748b;
    color: #ffffff;
}

.f-cat-health {
    background-color: #f7ebe1;
    color: #5c4033;
}

.f-cat-leader {
    background-color: #eef3df;
    color: #3d4a1a;
}

.f-cat-intl {
    background-color: #e6eeec;
    color: #2d4a44;
}

.f-cat-design {
    background-color: #f0ebf5;
    color: #4a2d5c;
}

.f-cat-tech {
    background-color: #f6f0fd;
    color: #522d7a;
}

.f-cat-entre {
    background-color: #fffdea;
    color: #5c561a;
}

.f-cat-local {
    background-color: #f7eef1;
    color: #5c2d3a;
}

.f-cat-sustain {
    background-color: #ffeff8;
    color: #8c1e4f;
}

.feature-text {
    line-height: 1;
}

.feature-arrow {
    display: none;
    /* Removed as per image */
}

/* Domain Indicator Dots for Course Cards */
.domain-indicator-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.domain-dot-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
}

.domain-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.domain-dot-label {
    font-size: 13px;
    color: #4b5563;
    font-weight: 500;
}

/* Colors for Dots (Darkened for visibility) */
.dot-health {
    background-color: #cb9b7a;
}

.dot-leader {
    background-color: #a5b672;
}

.dot-intl {
    background-color: #7ea39a;
}

.dot-design {
    background-color: #a089bc;
}

.dot-tech {
    background-color: #bf91e8;
}

.dot-entre {
    background-color: #e6dc6a;
}

.dot-local {
    background-color: #bd899a;
}

.dot-sustain {
    background-color: #ed7fb6;
}

/* Program Type Badges (敺?摮? */
.type-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    border-radius: 6px;
    color: #fff;
    font-weight: 900;
    font-size: 15px;
    margin-right: 10px;
    vertical-align: middle;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.type-micro {
    background-color: #5c67f2;
}

/* Purple for 敺?*/
.type-credit {
    background-color: #fca311;
}

/* Orange for 摮?*/

.v3-card-header h3 {
    display: flex;
    align-items: center;
    flex: 1;
}

/* Domain Dot Indicators for Index Grid */
.grid-item-v2 {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    position: relative;
    padding: 12px 15px;
}

.item-domain-dots {
    display: flex;
    gap: 5px;
    margin-left: auto;
    flex-shrink: 0;
}

.grid-item-v2 .domain-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.program-modern-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.program-header-area {
    text-align: center;
    margin-bottom: 30px;
}

.intro-badge-gradient {
    display: inline-block;
    padding: 12px 36px;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: #fff;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.2);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.program-subtitle {
    color: #94a3b8;
    font-size: 15px;
    font-weight: 500;
}

/* ?€???瘙?- ?撖抆冪????謜? */
.college-tab-nav-wrapper {
    width: 100%;
    padding: 15px 0;
    margin-bottom: 20px;
}

.college-tab-list {
    display: flex;
    flex-wrap: wrap;
    /* ?蹓曇??謜? */
    justify-content: flex-start;
    /* ???獢? */
    list-style: none;
    gap: 12px;
    /* ???????????*/
    padding: 0;
    margin: 0;
}

.college-tab-item {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 15px;
    color: #475569;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
    margin-bottom: 5px;
    /* ?謜??蹇???謘??? */
}

.college-tab-item:hover {
    background: #f1f5f9;
    border-color: #7c3aed;
    color: #7c3aed;
}

.college-tab-item.active {
    background: #7c3aed;
    color: #fff;
    font-weight: 700;
    border-color: #7c3aed;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}

/* ???望摮蛛???*/
.program-content-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(13, 59, 45, 0.05), inset 0 2px 10px rgba(255, 255, 255, 1);
    border: 1px solid rgba(255, 255, 255, 0.6);
    min-height: 400px;
}

#programContentV2 {
    width: 100%;
}

.program-pane-v2 {
    display: none;
    animation: slideUpFade 0.5s ease forwards;
}

.program-pane-v2.active {
    display: block;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pane-header-v2 {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 30px;
}

.header-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.level-filter-btns {
    display: flex;
    gap: 10px;
}

.level-btn {
    padding: 8px 18px;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.level-btn:hover {
    border-color: #f97316;
    color: #f97316;
}

.level-btn.active {
    background: #f97316;
    color: #fff;
    border-color: #f97316;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}

.pane-vertical-indicator {
    width: 6px;
    height: 28px;
    border-radius: 3px;
}

.indicator-orange {
    background: #f97316;
}

.pane-header-v2 h4 {
    font-size: 22px;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
}

.pane-divider-dotted {
    width: 100%;
    border-top: 2px dotted #e2e8f0;
    margin-bottom: 30px;
}

/* ?綽?????/?叟垮??瞏? */
.program-grid-2cols {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    /* ????仿? 3-4 ??*/
    gap: 8px;
    /* ???貉獢???? */
}

.grid-item-v2 {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    text-decoration: none;
    color: #555555;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.grid-item-v2:hover {
    background: #fff;
    transform: translateX(3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.type-icon {
    width: 24px;
    /* ????豯??????撞 */
    height: 24px;
    /* ????豯?????謢嗆撞 */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 15px;
    /* ???????殉???????銋?*/
    color: #fff;
    margin-right: 10px;
    flex-shrink: 0;
}

.icon-micro {
    background: #6366f1;
}

/* ????爸?萄?鞎? */
.icon-full {
    background: #f59e0b;
}

/* ?死???爸?萄憌?????*/

@media (max-width: 768px) {
    .program-grid-2cols {
        grid-template-columns: 1fr;
    }

    .college-tab-list {
        justify-content: flex-start;
        padding-left: 20px;
    }

    .program-content-card {
        padding: 25px;
    }
}

/* ?選???遴?唳?鈭? */
.bg-purple-v2 {
    background-color: #a855f7;
}

.bg-teal {
    background-color: #14b8a6;
}

.bg-teal-light {
    background-color: #f0fdfa;
}

.border-teal {
    border-color: #99f6e4;
}

#program-intro-sec {
    margin-top: 20px;
}

/* College Specific Background Colors - Updated Palette */
.program-card-v3[data-college='?飛??] .card-image-wrapper {
 background: #d4a373;
}

.program-card-v3[data-college='?極摮賊'] .card-image-wrapper {
    background: #457b9d;
}

.program-card-v3[data-college='?脖耨??] .card-image-wrapper {
 background: #BE9991;
}

.program-card-v3[data-college='蝞∠?摮賊'] .card-image-wrapper {
    background: #91ABBC;
}

.program-card-v3[data-college='?菜頝券??飛??] .card-image-wrapper {
 background: #6E5644;
}

.program-card-v3[data-college='瘞?摮賊'] .card-image-wrapper {
    background: #b08d57;
}

.program-card-v3[data-college='?單摮賊'] .card-image-wrapper {
    background: #B7CAD6;
}

.program-card-v3[data-college='蝷暹?蝘飛??] .card-image-wrapper {
 background: #B5A08A;
}

.program-card-v3[data-college='瘜?摮賊'] .card-image-wrapper {
    background: #C4B7AA;
}

.program-card-v3[data-college='憭?摮賊'] .card-image-wrapper {
    background: #a89078;
}

.program-card-v3[data-college='??摮賊'] .card-image-wrapper {
    background: #9AAB9C;
}

.program-card-v3[data-college='????摨瑕飛??] .card-image-wrapper {
 background: #9C7C61;
}

.program-card-v3[data-college='?其犖?隤脩?銝剖?'] .card-image-wrapper {
    background: #706b8c;
}

.program-card-v3[data-college='?怠飛??] .card-image-wrapper {
 background: #3e5f7a;
}

/* Full Card Link */
.card-full-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.program-card-v3:hover .card-title-cn {
    color: var(--primary-color);
}

.card-tag-badge {
    transition: all 0.3s ease;
}

.program-card-v3:hover .card-tag-badge {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Navigation Anchor Highlight Effect */
:target {
    animation: anchor-highlight 2.5s ease;
    border: 2px solid #f97316 !important;
    scroll-margin-top: 200px;
}

@keyframes anchor-highlight {
    0% {
        background-color: rgba(249, 115, 22, 0.15);
        box-shadow: 0 0 20px rgba(249, 115, 22, 0.3);
    }

    50% {
        background-color: rgba(249, 115, 22, 0.05);
    }

    100% {
        background-color: transparent;
    }
}




/* Premium Section Hover Shadows - Replicating Latest News Floating Feel */
#recommendation-sec,
#interdisciplinary-intro,
#program-intro-sec,
.news-section.card-style {
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

#recommendation-sec:hover,
#interdisciplinary-intro:hover,
#program-intro-sec:hover,
.news-section.card-style:hover {
    box-shadow: var(--shadow-premium) !important;
    transform: translateY(-12px) !important;
    border-color: rgba(13, 59, 45, 0.15) !important;
}