/* 目錄 */
/* =================================================

1.基本設定
2.新生報名步驟btn
3.header menu RWD
4.各類btn
5.左邊選單
6.月份按鈕
7.師資&通訊錄照片hover zoom效果
8.collapse摺疊收合效果

================================================= */


/* 基本設定 */
/* =============================================== */
.triangle-bg {
    background-color: white; /* 整體背景是白色 */
    clip-path: polygon(10% 0%, 100% 0%, 100% 100%, 0% 100%); /* 透明三角形 */
    width: 30%;
    height: 40px;
}

body {
    background-color: #F6F2EC; /* 背景顏色 */
}

footer {
    background-color: #1E3840 !important; /* 頁尾背景顏色 */
}

.bold-text {
    font-weight: bold; /* 設定文字為粗體 */
}

.text-gold {
    color: #A18865; /* 設定文字顏色 */
}

.text-green {
    color: #4DAE78; /* 設定文字顏色 */
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    transform: scale(1); /* 更直覺的放大方式 */
    margin-right: 10px;
    cursor: pointer;
}

input[type="radio"] {
    width: 20px;
    height: 20px;
    transform: scale(1); /* 更直覺的放大方式 */
    margin-right: 10px;
    cursor: pointer;
}

.table td input[type="checkbox"] {
    transform: scale(1); /* 放大 */
    vertical-align: middle; /* 垂直置中 */
    margin: 0; /* 清除預設 margin */
}

/* 針對 table 中的 a 連結設定顏色 */
.table a {
    color: rgb(36, 153, 231);
    text-decoration: none; /* 去掉底線 */
}

    .table a:hover {
        color: #A18865; /* hover時的顏色 */
        text-decoration: underline;
    }

a.no-underline:hover {
    text-decoration: none;
}


/* 新生報名步驟btn */
/* =============================================== */
.nav-tabs {
    border-bottom: none !important;
}

.step-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px auto;
    max-width: 900px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    flex: 1;
    min-width: 0;
    color: #ccc;
    padding: 0 20px;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid #ccc;
    color: #ccc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 5px;
    position: relative;
    z-index: 1;
    cursor: pointer;
}

.step-label {
    display: inline-block;
    white-space: nowrap;
    line-height: 1.4;
    padding: 0 4px;
    font-size: 16px;
}

.step.active {
    color: #A18865;
    font-weight: bold;
    text-decoration: none; /* 去掉底線 */
    pointer-events: none; /* 禁止點擊 */
}

    .step.active .step-number {
        border-color: #A18865;
        color: #A18865;
    }

    .step.active .step-label {
        border-bottom: 2px solid #A18865;
    }

.step:not(.active):hover {
    color: #1E3840;
    text-decoration: none; /* 去掉底線 */
}

    .step:not(.active):hover .step-number {
        border-color: #1E3840;
        color: #1E3840;
    }

    .step:not(.active):hover .step-label {
        text-decoration: underline;
    }

.step::after {
    content: "";
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: #ccc;
    z-index: 0;
}

.step:last-child::after {
    display: none;
}

@media (max-width: 576px) {
    .step-container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .step {
        flex: 0 0 50%;
        margin-bottom: 20px;
    }

        .step::after {
            display: none;
        }

    .step-label {
        white-space: normal;
        font-size: 13px;
        text-align: center;
    }
}
/* End===================================================== */



/* header menu RWD */
/* ======================================================== */

/* 只在桌機 (≥992px) 時啟用 hover 展開選單 */
@media (min-width: 992px) {
    .dropdown:hover .dropdown-menu {
        display: block;
    }
}

/* 摺疊後選單文字置中 */
@media (max-width: 991.98px) {
    .navbar-nav {
        text-align: center;
    }

        .navbar-nav .nav-item {
            width: 100%;
        }

    .dropdown-menu {
        text-align: center;
    }

        .dropdown-menu .dropdown-item {
            color: #A18865;
        }

            .dropdown-menu .dropdown-item:hover {
                color: #1E3840;
                background-color: #F6F2EC;
            }
}

/* 所有螢幕尺寸共用的樣式 */
.dropdown-menu {
    margin-top: 0px; /* 下拉選單緊貼上方 */
    color: #1E3840; /* 文字顏色 */
    border: none; /* 移除邊框 */
    border-radius: 0; /* 移除圓角 */
    display: none; /* 預設為隱藏，點擊才顯示 */
    position: absolute; /* 讓它在下方浮出 */
    background-color: #fff; /* 避免透明 */
    z-index: 1000; /* 確保在最上層 */
}

/* Hover 效果（滑鼠懸停在項目上） */
.dropdown-item:hover {
    background-color: #F6F2EC;
    color: #A18865;
}

.navbar-nav .nav-link {
    font-weight: bold;
    color: #1E3840 !important;
}
/* End================================================================ */


/* 各類btn */
/* ================================================ */
.btn-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #1E3840;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    text-decoration: none;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

    /* 顯示back to top按鈕用 */
    .btn-back-to-top.show {
        opacity: 1;
        pointer-events: auto;
    }

.btn-gold {
    background-color: #A18865;
    color: white;
    border: none;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    border-radius: 0.25rem;
}

    .btn-gold:hover {
        color: white;
        background-color: #8b714d;
    }

.btn-outline-gold {
    color: #A18865;
    border: 1px solid #A18865;
    background-color: transparent;
}

    .btn-outline-gold:hover {
        color: white;
        background-color: #A18865;
        border-color: #A18865;
    }

.btn-gold-static {
    color: #A18865;
    border: 1px solid #A18865;
    background-color: transparent;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 1rem;
    cursor: default;
    pointer-events: none; /* 防止點擊 */
}

.btn-green {
    background-color: #5BBE87;
    color: white;
    border: none;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    border-radius: 0.25rem;
}

    .btn-green:hover {
        background-color: #4DAE78; /* 深一點的草綠 */
        color: white;
    }

.btn-green-static {
    display: inline-block;
    background-color: #5BBE87;
    color: white;
    border: none;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    border-radius: 0.25rem;
    cursor: default;
    pointer-events: none; /* 禁止點擊 */
}

.btn-danger-static {
    display: inline-block;
    background-color: #dc3545; /* 與 .btn-danger 相同 */
    color: #fff;
    border: none;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    border-radius: 0.25rem;
    cursor: default;
    pointer-events: none; /* 禁止滑鼠互動 */
}
/* ==================================================== */


/* 左邊選單 */
/* =================================================== */
.list-group {
    display: flex;
    flex-direction: column; /* 確保項目垂直排列 */
    gap: 10px; /* 設置項目之間的間距 */
    border: none; /* 去除邊框 */
    border-radius: 5px /* 添加圓角 */
}

.list-group-item {
    border: none; /* 移除邊框 */
    background-color: #F6F2EC; /* 子選項的背景色 */
    color: #A18865; /* 子選項的文字顏色 */
    border-radius: 5px /* 添加圓角 */
}

    .list-group-item:hover {
        background-color: #EDE7DD !important;
        color: #1E3840 !important;
    }

    .list-group-item.active {
        background-color: #1E3840; /* 可選：修改母選單背景顏色 */
        color: white; /* 可選：修改文字顏色 */
        border: none; /* 移除邊框 */
        border-radius: 5px; /* 添加圓角 */
        pointer-events: none; /* 禁用鼠標事件 */
    }

    .list-group-item.no-hover:hover {
        background-color: #F6F2EC !important; /* 維持原本背景色 */
        color: #A18865 !important; /* 維持原本文字色 */
        cursor: default; /* 換成普通滑鼠指標 */
        pointer-events: none; /* 禁止點擊 */
    }

.sub-menu {
    background-color: white; /* 子選單的背景色 */
    flex-direction: column; /* 確保項目垂直排列 */
    display: flex; /* 使用 Flexbox */
    gap: 10px; /* 子選單項目之間的間距 */
    padding-left: 20px; /* 子選單的左邊距 */
    color: #A18865; /* 子選項的文字顏色 */
}

    .sub-menu a {
        text-decoration: none; /* 去除下劃線 */
        color: #A18865; /* 子選項的文字顏色 */
    }

        .sub-menu a:hover {
            text-decoration: underline;
            color: #1E3840; /* 子選項的文字顏色 */
        }
/* End========================================================== */


/* 月份按鈕 */
/* =============================================== */
.btn-month {
    background-color: #F6F2EC;
    border: 1px solid #E0DCD5;
    color: #A18865;
    font-weight: bold;
    border-radius: 5px;
    padding: 0.4rem 1rem;
    transition: all 0.2s ease;
    min-width: 60px;
    font-size: 1rem;
}

    .btn-month:hover {
        background-color: #EDE7DD;
        color: #1E3840;
    }

    /* 被選取的月份按鈕（主色） */
    .btn-month.active {
        background-color: #A18865;
        color: white;
        border-color: #A18865;
    }


/* ========================================================= */


/* 師資&通訊錄照片hover zoom效果 */
/* ========================================================= */
.hover-wrapper {
    position: relative;
    display: inline-block;
    overflow: hidden;
    width: fit-content; /* 讓 wrapper 跟圖片尺寸一樣 */
}

    .hover-wrapper img {
        display: block; /* 防止圖片底下有空隙 */
    }

    .hover-wrapper::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(161, 136, 101, 0.3); /* 半透明金色 */
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none; /* 確保不影響點擊 */
    }

    .hover-wrapper:hover::after {
        opacity: 1;
    }

.hover-zoom {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.hover-wrapper:hover .hover-zoom {
    transform: scale(1.05);
    filter: brightness(1.1);
}
/* End========================================================= */


/* collapse摺疊收合效果 */
/* ========================================================= */
.toggle-btn[aria-expanded="true"] .arrow-icon {
    transform: rotate(180deg);
}

.toggle-btn .arrow-icon {
    display: inline-block;
    font-size: 0.9rem;
    transform: rotate(0deg);
}

@media (max-width: 576px) {
    .toggle-btn {
        font-size: 0.9rem;
        padding: 0.3rem 0.6rem;
    }
}
/* End========================================================= */
