/*----------手風琴樣式----------*/
.ytlee-custom-accordion .accordion-button {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    font-weight: bold;
}

    .ytlee-custom-accordion .accordion-button:focus {
        box-shadow: none;
    }

    .ytlee-custom-accordion .accordion-button.collapsed {
        color: var(--ytlee-blue);
    }

    /* 展開時和 hover 狀態的樣式一致 */
    .ytlee-custom-accordion .accordion-button:not(.collapsed),
    .ytlee-custom-accordion .accordion-button:hover {
        background-color: var(--ytlee-blue);
        color: white;
        transition: background-color 0.3s ease, color 0.3s ease;
    }

        /* 針對 hover 並展開的樣式（可選，確保不被覆蓋） */
        .ytlee-custom-accordion .accordion-button:not(.collapsed):hover {
            background-color: var(--ytlee-blue);
            color: white;
        }

.ytlee-custom-accordion .accordion-body {
    border: 1px solid #dee2e6;
}

.ytlee-custom-accordion .accordion-item {
    border: none;
    margin-bottom: 1rem;
}

#boardmember_container .accordion-header {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

/*----------card樣式----------*/
#boardmember_card .card-body {
    padding: 0;
}

.ytlee-card-subtitle {
    color: rgb(252, 209, 88);
}

#boardmember_card.card {
    border-radius: 20px;
    overflow: hidden;
    transition: all 500ms cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 10px 20px 0 rgba(0, 0, 0, 0.2);
}

#boardmember_card.card.ytlee-card-bg {
    background-image: url('/img/aboutus_card_bg.jpg');
    transition: all 500ms cubic-bezier(0.19, 1, 0.22, 1);
    background-size: cover; 
    background-repeat: no-repeat;
    background-position: center center;
    background-color: transparent;
}

    #boardmember_card.card.ytlee-card-bg:before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: inherit;
        z-index: 0;
        -webkit-filter: grayscale(1);
        filter: grayscale(100%);
    }

#boardmember_card.card .card-body,
#boardmember_card.card .card-img-overlay {
    position: relative;
    z-index: 1;
    border-radius: 20px;
}

#boardmember_card.card .card-footer {
    background: none;
    border-top: none;
}

    #boardmember_card.card .card-footer .media img {
        border: solid 3px rgba(255, 255, 255, 0.3);
    }

#boardmember_card.card .card-title {
    font-weight: 800;
}

#boardmember_card.card .card-meta {
    color: rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 2px;
}

#boardmember_card.card .card-body {
    transition: all 500ms cubic-bezier(0.19, 1, 0.22, 1);
}

#boardmember_card.card .card-img-overlay {
    transition: all 800ms cubic-bezier(0.19, 1, 0.22, 1);
    background: var(--ytlee-blue);
    background: linear-gradient(170deg, rgba(0, 96, 180, 0.4) 0%, rgba(0, 96, 180, 0.7) 100%);
}

@media (max-width: 576px) {
    #boardmember_card.card .card-body {
        font-size: 12px;
    }
}

/*----------Datatables樣式----------*/
tbody > tr > td:first-child {
    text-align: center !important;
}