#courseContainer {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.student-header-card {
    background: linear-gradient(135deg, #3a2211 0%, #1f1107 100%);
    border: 2px solid #d4af37;
    border-radius: 12px;
    padding: 12px 20px;
    color: #f7e3be;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.student-header-card:hover {
    border-color: #fff;
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
}

.student-info {
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    color: #fbe6be;
    display: flex;
    align-items: center;
    gap: 10px;
}

.course-card {
    background: linear-gradient(135deg, #fbf4e2 0%, #eeddb8 100%);
    border: 2px solid #b89355;
    outline: 1px solid #5d4018;
    border-radius: 14px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 6px 15px rgba(0,0,0,0.35), inset 0 0 10px rgba(184, 147, 85, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    cursor: pointer;
}

.course-card:hover {
    transform: translateX(-8px) scale(1.015);
    box-shadow: 0 10px 25px rgba(0,0,0,0.45), 0 0 15px rgba(224, 192, 120, 0.9);
    border-color: #ffd700;
}

/* 【修正】：移除 border-image 解決變方形問題，實現完美的白金光澤正圓 */
.week-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    background: radial-gradient(circle at 35% 35%, #3a2211 0%, #1a0d05 100%);
    border: 2.5px solid #ffd700;
    border-radius: 50% !important; /* 強制保持正圓形 */
    box-shadow: 0 0 0 2px #ffffff, 0 0 10px rgba(255, 215, 0, 0.6), 0 4px 8px rgba(0,0,0,0.4);
    color: #fbe6be;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    overflow: hidden;
}

.course-card:hover .week-badge {
    transform: scale(1.08) rotate(-5deg);
    border-color: #ffffff;
    box-shadow: 0 0 0 2px #ffd700, 0 0 15px rgba(255, 255, 255, 0.9);
}

.week-badge i {
    font-size: 0.7rem;
    color: #ffd700;
    margin-bottom: -2px;
}

.week-badge .num {
    font-size: 1.35rem;
    font-weight: 900;
    font-family: 'Cinzel', serif;
    line-height: 1;
}

.week-badge .label {
    font-size: 0.48rem;
    letter-spacing: 0.8px;
    opacity: 0.85;
    font-weight: 700;
}

.course-info {
    flex: 1;
    margin: 0 18px;
    display: flex;
    align-items: center;
}

.course-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #36200d;
    letter-spacing: 0.8px;
    text-shadow: 0 1px 0 rgba(255,255,255,0.7);
    transition: color 0.2s ease;
}

.course-card:hover .course-title {
    color: #1a0d05;
}

.btn-action {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    outline: none;
    font-family: var(--font-main);
    white-space: nowrap;
}

.btn-complete {
    background: linear-gradient(180deg, #387c53 0%, #1e4d2e 100%);
    border: 1.5px solid #72c08e;
    color: #eafaf0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.btn-complete:hover {
    background: linear-gradient(180deg, #449363 0%, #255f3a 100%);
    transform: scale(1.08);
    box-shadow: 0 0 12px rgba(114, 192, 142, 0.8);
}

.course-card.completed {
    background: linear-gradient(135deg, #e3f4e8 0%, #c5e7ce 100%);
    border-color: #43a047;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
    font-size: 0.98rem;
    padding: 8px 18px;
    border-radius: 8px;
    white-space: nowrap;
}

.status-completed {
    color: #2e7d32;
    background: rgba(46, 125, 50, 0.12);
    border: 1px solid #a5d6a7;
}