

/* 頁首樣式 */


.btn {
    background: white;
    color: #0056b3;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
}

.btn-primary {
    background: #ffcc00;
    color: black;
    font-size: 18px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-primary:hover {
    background: #ffaa00;
}

/* 英雄區塊 */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(to right, #0056b3, #0099ff);
    color: white;
}

.hero h1 {
    font-size: 36px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 20px;
}



/* 課程區塊標題 */
h2 {
    text-align: center;
    font-size: 26px;
    margin-top: 40px;
    color: #333;
}

/* 熱門課程 & 優惠課程區塊 */
#course-list,
#discount-course-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* 課程連結樣式 */
.course-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* 課程卡片 */
.course-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 200px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
    text-align: center;
    position: relative;
}

.course-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

/* 課程圖片 */
.course-img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    background: #f0f0f0;
}

/* 課程標題 */
.course-item h3 {
    font-size: 18px;
    margin: 10px 0;
}

/* 主辦單位名稱 */
.course-org {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

/* 優惠課程專屬樣式 */
.discount-course {
    border: 2px solid #ffcc00;
    background: #fffbe6;
}

/* 優惠課程標籤 */
.discount-price {
    font-size: 16px;
    font-weight: bold;
    color: #d9534f;
    margin-top: 5px;
    padding: 5px;
    background: #ffdddd;
    border-radius: 5px;
    display: inline-block;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .search-bar input {
        width: 80%;
    }

    #course-list,
    #discount-course-list {
        flex-direction: column;
        align-items: center;
    }

    .course-item {
        width: 90%;
    }
}