.Course-container {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    max-width: 1440px;
}

.Course-container h2 {
    font-size: 36px;
    color: #ff9900;

    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

.Course-container h3 {
    font-size: 1.5em;
}

.Course-container p {
    font-size: 1.2em;
}





.hero-image {
    width: 100%;
    height: 50vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f0f0;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


.course-section-container {
    width: 80%;
    margin: 40px auto;
    max-width: 1200px;
    padding: 0 15px;
}

.course-title {
    position: relative;
    padding-right: 80px;
    /* Make space for the price */
}

.course-price {
    position: absolute;
    right: 65px;
    top: 50%;
    /* 垂直居中关键属性 */
    transform: translateY(-50%);
    /* 微调垂直位置 */
    color: #ff9900;
    font-weight: bold;
    font-size: 0.8em;
    margin: 0;
    /* 清除默认边距 */
}

/* Adjust the arrow position to account for the price */
.course-dropdown summary::after {
    right: 20px;
}

/* For mobile responsiveness */
@media (max-width: 768px) {
    .course-price {
        right: 40px;
        font-size: 0.7em;
    }

    .course-title {
        padding-right: 70px;
    }
}


.course-intro {
    text-align: center;
    margin-bottom: 40px;
}

.course-intro h2 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 15px;
}

.course-intro p {
    font-size: 1.1em;
    line-height: 1.6;
    color: #555;
}


.course-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


.course-dropdown {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.course-dropdown summary {
    display: block;
    padding: 15px 20px;
    font-size: 1.6em;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    outline: none;
    position: relative;
    user-select: none;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.course-dropdown summary:hover {
    background-color: #f0f0f0;
}


.course-dropdown summary::after {
    content: '▼';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.course-dropdown[open] summary::after {
    content: '▲';
    transform: translateY(-50%) rotate(180deg);
}


.course-content {
    overflow: hidden;

    transition: max-height 0.6s ease-in-out, opacity 0.6s ease-in-out, padding 0.6s ease-in-out;


    display: block;


    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 20px;
    padding-right: 20px;

    line-height: 1.6;
    color: #444;
    font-size: 1em;
}



details:not([open]) .course-content {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
}


.course-content h3 {
    font-size: 1.4em;
    color: #ff9900;
    margin-top: 0;
    margin-bottom: 15px;
}

.course-content p {
    margin-bottom: 15px;
}

.course-content ul {
    list-style: disc;
    margin-left: 25px;
    padding: 0;
}

.course-content ul li {
    margin-bottom: 8px;
}





@media (max-width: 1024px) {
    .course-section-container {
        width: 90%;
    }

    .course-dropdown summary {
        font-size: 1.4em;
        padding: 12px 18px;
    }

    .course-content {
        font-size: 0.95em;
    }

    .course-dropdown[open] .course-content {
        padding: 18px;
    }

    .course-content h3 {
        font-size: 1.2em;
    }
}

@media (max-width: 768px) {
    .course-section-container {
        width: 95%;
        margin: 20px auto;
    }

    .hero-image {
        height: 40vh;
    }

    .course-intro h2 {
        font-size: 2em;
    }

    .course-intro p {
        font-size: 1em;
    }

    .course-dropdown summary {
        font-size: 1.2em;
        padding: 10px 15px;
    }

    .course-content {
        font-size: 0.9em;
    }

    .course-dropdown[open] .course-content {
        padding: 15px;
    }

    .course-content h3 {
        font-size: 1.1em;
    }

    .Booking-container {
        flex-direction: column;
    }
}


#backToTop {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: #ff9900;
    color: white;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    font-size: 18px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#backToTop img {
    width: 24px;
    height: 24px;
    filter: invert(100%);
}

#backToTop:hover {
    background-color: #e68a00;
}

.Booking-container {
    display: flex;
    flex-direction: row;
}

.calendar-container {
    flex: 1
}

.calendar-courses {
    flex: 2
}

.day-cell {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.event-dot {
    display: block;
    width: 5px;
    height: 5px;
    background-color: #ff9900bf;
    /* 使用您的主题色 */
    border-radius: 50%;
    margin-top: 2px;
}

.has-event {
    font-weight: bold;
    /* 可选：有事件的日期加粗 */
}

.book-btn {
    /* 基础样式 */
    background-color: #e68a00;
    /* 柔和的橙色 */
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);

    /* 文字和边框优化 */
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 悬停效果 */
.book-btn:hover {
    background-color: #ff9933;
    /* 轻微变亮 */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* 点击效果 */
.book-btn:active {
    background-color: #cc7a00;
    /* 变深 */
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 禁用状态 */
.book-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

@media (max-width: 768px) {

    .Booking-container {
        flex-direction: column;
        align-items: center;
    }

    .calendar-courses {
        margin-top: 30px;
        text-align: center;
    }
}

@media (max-width: 1024px){
    .calendar-courses {
        margin-left: 30px;
        text-align: center;
    }
}

/* Air-datepicker in SweetAlert2 z-index fix */
.air-datepicker {
    z-index: 10000 !important;
}

.swal2-popup .air-datepicker {
    z-index: 10000 !important;
}

.datepicker-in-swal {
    z-index: 10000 !important;
}