/* css/courses-styles.css */

/* 1. Banner 區域的專屬背景圖 */
.course-hero-bg {
    background: url(../img/courses/banner.png) no-repeat center center; /* 請替換成您的圖片路徑 */
    background-size: cover;
}

/* 讓 Banner 區域的疊加層顏色深一點，突顯文字 */
.course-hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明黑色疊加層 */
}

/* 2. 右側課程資訊欄的樣式微調 */
.right-contents .course-sidebar {
    background: #f9f9ff; /* 使用您 CSS 中的淺灰色背景 */
    padding: 30px;
    position: -webkit-sticky; /* for Safari */
    position: sticky;
    top: 100px; /* 距離頂部多少開始固定，可根據您的 header 高度調整 */
}

.right-contents .course-sidebar .title {
    font-family: "Playfair Display", serif;
    font-size: 24px;
    color: #222222;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.right-contents .course-sidebar ul li p {
    font-weight: 500;
}

.right-contents .course-sidebar ul li .or {
    font-weight: 400;
}


/* 3. 報名區域的專屬背景圖 */
.course-registration-bg {
    background: url(../img/courses/registration_bg.png) no-repeat center center; /* 請替換成您的圖片路徑 */
    background-size: cover;
    background-attachment: fixed; /* 讓背景圖有視差滾動效果 */
}

/* 讓報名區的表單按鈕與 CSS 定義的漸層色一致 */
.registration-area .course-form-section .btn {
    width: 100%;
    height: 50px;
    line-height: 50px;
    padding: 0;
    font-weight: 500;
    text-transform: uppercase;
}
.registration-area .btn.primary-btn {
    border: none; /* 確保沒有邊框 */
    text-transform: uppercase; /* 文字大寫 */
    letter-spacing: 1px; /* 增加文字間距，提升設計感 */
    font-weight: 600; /* 字體加粗 */
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.2); /* 加上立體陰影 */
    transition: all 0.3s ease; /* 讓所有變化都有平滑過渡動畫 */
    will-change: transform; /* 優化動畫效能 */
}

/* 滑鼠移上去時的互動效果 */
.registration-area .btn.primary-btn:hover {
    transform: translateY(-3px); /* 按鈕向上微移 */
    /* 陰影使用您品牌的主色調，產生發光感 */
    box-shadow: 0px 15px 25px rgba(124, 50, 255, 0.4);
    filter: brightness(1.1); /* 讓漸層色更亮一點 */
}


/* --- 2. FAQ 摺疊選單質感提升 --- */

/* 整體樣式 */
.faq-area .accordion-item {
    border: none; /* 移除邊框 */
    border-bottom: 1px solid #e0e0e0; /* 改用底線分隔，更簡潔 */
    margin-bottom: 0;
    border-radius: 0; /* 移除圓角 */
    overflow: visible;
}

/* 未展開時的按鈕樣式 */
.faq-area .accordion-button {
    font-size: 18px; /* 加大字體 */
    font-weight: 700; /* 字體加粗，更鮮明 */
    color: #222222; /* 主要文字顏色 */
    background-color: transparent; /* 背景透明 */
    padding: 2rem 1rem; /* 加大上下間距 */
    transition: all 0.3s ease;
}

/* 移除預設的 +/- 圖示 */
.faq-area .accordion-button::after {
    display: none;
}

/* 滑鼠移上未展開按鈕時的樣式 */
.faq-area .accordion-button:not(.collapsed):hover {
    color: #fff; /* 保持白色 */
}
.faq-area .accordion-button:hover {
    color: #7c32ff; /* 滑鼠移上時變為您的品牌主色 */
}

/* 展開時的按鈕樣式 */
.faq-area .accordion-button:not(.collapsed) {
    /* 套用您品牌的主漸層色 */
    background: linear-gradient(90deg, #7c32ff 0%, #c738d8 100%);
    color: #fff; /* 文字變為白色 */
    box-shadow: 0px 4px 15px rgba(124, 50, 255, 0.2);
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 30px;
    padding-right: 30px;
}

/* 回答內容的區塊 */
.faq-area .accordion-body {
    padding: 1rem 1.5rem 2rem 1.5rem; /* 調整內距 */
    font-size: 16px; /* 加大回答的字體，方便閱讀 */
    background-color: #f9f9ff;
    line-height: 1.7;
}