/* --- css/course-detail.css --- */

/* 1. 內容區塊通用設定 */
.detail-section {
    margin-bottom: 40px;
}

.detail-section h3 {
    font-size: 1.4rem;
    color: #2b7cff;          /* 你的品牌藍色 */
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 4px solid #2b7cff; /* 左側藍色線條 */
    line-height: 1.3;
}

.detail-section p {
    line-height: 1.8;
    color: #444;
    text-align: justify;     /* 左右對齊 */
    margin-bottom: 15px;
}

.detail-section ul {
    margin-top: 10px; 
    list-style: disc; 
    padding-left: 20px; 
    line-height: 1.8; 
    color: #444;
}

.detail-section li {
    margin-bottom: 8px;
}

/* 2. 課程詳情頁的課表 (Table) 美化 */
.course-schedule {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 0.95rem;
    text-align: center;
}

.course-schedule th, 
.course-schedule td {
    border: 1px solid #ddd;
    padding: 12px;
    vertical-align: middle;
}

/* 表頭樣式 */
.course-schedule th {
    background-color: #f4f8ff; /* 淺藍色背景 */
    color: #333;
    font-weight: bold;
    white-space: nowrap;       /* 表頭文字不換行 */
}

/* 時間欄位樣式 */
.time-col {
    background-color: #fafafa;
    font-weight: bold;
    color: #555;
    width: 80px;
}

/* 特殊強調的格子 (例如跨時段課程) */
.highlight-cell {
    background-color: #fffbe6; /* 淡黃色背景 */
    font-weight: bold;
    color: #d48806;            /* 深黃色文字 */
}

/* 表格內的備註小字 */
.note {
    font-size: 0.85rem;
    color: #888;
    display: block;            /* 強制換行 */
    margin-top: 4px;
}

/* 手機版表格滑動容器 */
.table-responsive {
    overflow-x: auto;
}