/* 🔹 頁面容器 */
.container {
    max-width: 1200px;
    margin: 20px auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* 🔹 按鈕區塊（返回按鈕 + 分享按鈕並排） */
.btn-share-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* 🔹 返回按鈕 */
.btn-back {
    background: #007bff;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 16px;
}

.btn-back:hover {
    background: #0056b3;
}

/* 🔹 社群分享按鈕 */
.social-share {
    display: flex;
    gap: 10px;
}

/* 🔹 分享按鈕基本樣式 */
.share-btn {
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
    color: white;
    transition: background 0.3s ease;
}

/* 🔹 Facebook 按鈕 */
.fb-btn {
    background: #1877f2;
}

.fb-btn:hover {
    background: #1256a3;
}

/* 🔹 LINE 按鈕 */
.line-btn {
    background: #06c755;
}

.line-btn:hover {
    background: #048f39;
}

/* 🔹 Instagram 按鈕 */
.ig-btn {
    background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7);
}

.ig-btn:hover {
    opacity: 0.8;
}


/* 🔹 影片容器 */
.video-container {
    margin: 20px 0;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}



/* 🔹 課程內容區塊 */
.course-section {
    margin: 20px 0;
    padding: 15px;
    border-left: 5px solid #007bff;
    background: #f8f9fa;
    border-radius: 5px;
}

.course-section h2 {
    margin-bottom: 10px;
    color: #007bff;
}

/* 🔹 圖片區塊 */
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.image-gallery img {
    width: 250px;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

/* 🔹 按鈕容器 */
.signup-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 30px;
}

/* 🔹 前去報名按鈕 */
.btn-signup {
    background: #28a745;
    color: white;
    padding: 12px 20px;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-signup:hover {
    background: #218838;
}

/* 🔹 關閉視窗按鈕（僅在桌面版顯示） */
.btn-close-window {
    background: #dc3545;
    color: white;
    padding: 12px 20px;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

/* 🔹 滑鼠懸停時變色 */
.btn-close-window:hover {
    background: #c82333;
}

/* 🔹 僅限電腦版顯示關閉視窗按鈕 */
@media (max-width: 768px) {
    .btn-close-window {
        display: none;
    }
}



/* 🔹 課程大綱區塊 */
.outline-container {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
}

/* 🔹 課程大綱列表 */
.outline-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 🔹 課程大綱卡片 */
.outline-card {
    display: flex;
    align-items: flex-start;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
}

.outline-card:hover {
    transform: scale(1.02);
}

/* 🔹 週數樣式 */
.outline-week {
    font-size: 20px;
    font-weight: bold;
    color: #007bff;
    margin-right: 15px;
    min-width: 80px;
    text-align: center;
}

/* 🔹 內容區塊 */
.outline-content {
    flex-grow: 1;
}

.outline-content h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #333;
}

.outline-content p {
    font-size: 14px;
    color: #666;
}

/* 🔹 錯誤訊息 */
.error-message {
    color: red;
    font-weight: bold;
    text-align: center;
}

/* 🔹 課程資訊區塊 */
.course-info {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* 🔹 使用 grid 排版 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    font-size: 14px;
    color: #555;
}

/* 🔹 個別資訊項目 */
.info-item {
    padding: 8px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
}

/* 🔹 標題顏色 */
.info-item strong {
    color: #007bff;
    margin-right: 5px;
}

/* 🔹 上課地點導航按鈕 */
.info-item a {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
    transition: color 0.3s ease-in-out;
}

.info-item a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* 🔹 讓 Card 內的 <a> 連結不影響原始樣式 */
.course-card {
    display: block;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    color: inherit;
    /* 保持文字顏色 */
}

.course-card:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    /* 避免文字變成藍色帶底線 */
}


/* 🔥 熱門度區塊 */
.course-popularity {
    padding: 15px;
    background: #fff3cd;
    border-radius: 5px;
    color: #856404;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}