/* Page Header Simple */
.page-header-simple {
    padding: 130px 0 20px;
    background: white;
    text-align: center;
}

.page-header-simple h1 {
    font-family: 'Noto Serif TC', serif;
    font-size: 2.8rem;
    font-weight: 900;
    color: #333333;
    margin-bottom: 25px;
    letter-spacing: -0.01em;
}

.page-header-simple .breadcrumb {
    font-size: 0.95rem;
    color: #777777;
    margin-bottom: 10px;
    font-family: 'Inter', sans-serif;
    text-align: left;
    letter-spacing: 0.05em;
}

.page-header-simple .breadcrumb a {
    color: #777777;
    text-decoration: none;
    transition: color 0.3s;
}

.page-header-simple .breadcrumb a:hover {
    color: var(--fju-blue);
}

.page-header-simple .page-intro {
    max-width: 720px;
    margin: 0 auto 20px;
    color: #555555;
    font-size: 1rem;
    line-height: 1.8;
}

.page-header-simple .page-intro-btn {
    margin-bottom: 10px;
}

.filter-section {
    background: white;
    border-bottom: none;
    padding: 24px 0;
    position: sticky;
    top: 60px;
    z-index: 90;
    box-shadow: none;
}

.filter-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.filter-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 8px 20px;
    border-radius: 50px;
    border: 1.5px solid var(--border);
    background: white;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: 'Noto Serif TC', serif;
}

.filter-tab:hover {
    border-color: var(--fju-blue);
    color: var(--fju-blue);
}

.filter-tab.active {
    background: var(--fju-blue);
    border-color: var(--fju-blue);
    color: white;
}

/* Category color themes */
.filter-tab[data-cat="AI應用"].active        { background: #004C8A; border-color: #004C8A; }
.filter-tab[data-cat="數位人文"].active       { background: #6A3FA0; border-color: #6A3FA0; }
.filter-tab[data-cat="國際鏈結"].active       { background: #00838F; border-color: #00838F; }
.filter-tab[data-cat="永續發展"].active       { background: #2E7D32; border-color: #2E7D32; }
.filter-tab[data-cat="創新創業"].active       { background: #D84315; border-color: #D84315; }
.filter-tab[data-cat="設計思考"].active       { background: #AD1457; border-color: #AD1457; }

/* Courses Section */
.courses-section {
    padding: 30px 0 120px;
    background: #ffffff;
}

.courses-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.courses-count {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.courses-count strong {
    color: var(--fju-blue);
    font-weight: 800;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* Course Card */
.course-item {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.course-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 76, 138, 0.1);
    border-color: var(--fju-blue);
}

.course-item.hidden {
    display: none;
}

/* Course Image */
.course-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.course-img-placeholder {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    flex-shrink: 0;
    position: relative;
}

.course-img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Status Badge */
.status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: white;
    pointer-events: none;
}

.status-open {
    background: #1a7a44;
    box-shadow: 0 2px 8px rgba(26, 122, 68, 0.45);
}

.status-closed {
    background: rgba(80, 80, 80, 0.85);
}

.status-upcoming {
    background: rgba(15, 82, 127, 0.85);
}

/* Category Badge Colors */
.cat-AI應用       { background: linear-gradient(135deg, #0062B1, #004C8A); }
.cat-數位人文      { background: linear-gradient(135deg, #7B52C2, #6A3FA0); }
.cat-國際鏈結      { background: linear-gradient(135deg, #00ACC1, #00838F); }
.cat-永續發展      { background: linear-gradient(135deg, #43A047, #2E7D32); }
.cat-創新創業      { background: linear-gradient(135deg, #EF6C00, #D84315); }
.cat-設計思考      { background: linear-gradient(135deg, #E91E8C, #AD1457); }

/* Course Body */
.course-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Category + Year row */
.course-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.course-category {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    color: white;
    letter-spacing: 0.05em;
}

.course-year {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    background: #f0f2f5;
    border: 1px solid var(--border, #e4e4e4);
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.course-title {
    font-family: 'Noto Serif TC', serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.5;
    margin-bottom: 16px;
}

/* Info Grid */
.course-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
    margin-bottom: 16px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.meta-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.meta-value {
    font-size: 0.88rem;
    color: var(--text-main);
    font-weight: 600;
    line-height: 1.4;
}

.meta-item.full-width {
    grid-column: 1 / -1;
}

/* Certification hours highlight */
.hours-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--fju-yellow);
    color: #7A6200;
    padding: 2px 10px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.82rem;
}

/* Description */
.course-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    flex-grow: 1;
    margin-bottom: 16px;
    border-top: 1px solid var(--border);
    padding-top: 14px;
}

/* Instructor */
.course-instructor {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.instructor-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    border: 2px solid var(--border);
}

.instructor-info {
    flex-grow: 1;
}

.instructor-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
}

.instructor-title {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Detail Link */
.course-detail-link {
    display: block;
    text-align: center;
    margin-top: 14px;
    padding: 9px;
    border-radius: 8px;
    border: 1.5px solid var(--border);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--fju-blue);
    text-decoration: none;
    transition: var(--transition);
}

.course-detail-link:hover {
    background: var(--fju-blue);
    border-color: var(--fju-blue);
    color: white;
}

/* Empty state */
.courses-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 40px;
    color: var(--text-muted);
    display: none;
}

.courses-empty.visible {
    display: block;
}

.courses-empty .empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 1024px) {
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-header-simple h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 640px) {
    .courses-grid {
        grid-template-columns: 1fr;
    }

    .page-header-simple {
        padding: 100px 0 20px;
    }

    .page-header-simple h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .filter-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
