/* 委員會頁面統一樣式 */

/* 統一字體大小 - 依據位階設定不同大小 */
/* 主席/理事長等最高位階人員 */
.chairman-name, 
.president-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: #9B59B6;
    margin-bottom: 0.5rem;
    text-align: center;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

/* 副主席/副理事長/監事長/執行長等次高位階人員 */
.vice-chairman-name,
.vice-president-name,
.executive-director-name,
.supervisor-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #9B59B6;
    margin-bottom: 0.5rem;
    text-align: center;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

/* 主任委員/理事/監事等中階位階人員 */
.committee-chairman-name,
.director-name,
.supervisor-member-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #9B59B6;
    margin-bottom: 0.5rem;
    text-align: center;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

/* 一般委員名稱 */
.committee-member-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #9B59B6;
    margin-bottom: 0.5rem;
    text-align: center;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

/* 組織架構中的職位和人名統一樣式 */
.mb-3 h6.fw-bold.text-alumni-primary {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

/* 委員會組織架構中的人名統一樣式 */
.mb-3 p.small {
    font-size: 1rem;
    line-height: 1.5;
}

/* 主任委員 - 最高層級 */
.mb-3 p.small strong:first-child {
    font-weight: 700;
}

/* 為組織架構中的人名添加特定的類名，以便更精確地控制樣式 */
.committee-position-chairman {
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    color: #9B59B6 !important;
}

.committee-position-vice-chairman,
.committee-position-executive-director {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: #9B59B6 !important;
}

.committee-position-director,
.committee-position-supervisor {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #9B59B6 !important;
}

.committee-member-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: #6c757d;
    margin-bottom: 0.5rem;
    text-align: center;
}

.committee-member-position {
    font-size: 0.85rem;
    color: #6c757d;
    text-align: center;
    margin-bottom: 0.5rem;
}

/* 圖片顯示樣式 */
.committee-member-image {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: auto;
    border-radius: 12px;
    background: #f8f9fa;
}

.committee-member-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
}

/* 禁用紅色字體 */
.text-danger,
.chairman-card .member-details i,
.chairman-message,
.org-box.president {
    color: #9B59B6 !important;
    border-color: #9B59B6 !important;
}

/* 修正紅色邊框 */
.chairman-message {
    border-left: 4px solid #9B59B6 !important;
}

/* 修正組織架構圖中的紅色背景 */
.org-box.president {
    background: #9B59B6 !important;
    border: 2px solid #9B59B6 !important;
}

/* 修正職稱徽章中的紅色漸層 */
.position-badge.chairman {
    background: linear-gradient(135deg, #8E44AD, #9B59B6) !important;
    color: white !important;
    box-shadow: 0 2px 4px rgba(155, 89, 182, 0.3) !important;
}

.position-badge.chief-advisor {
    background: linear-gradient(135deg, #8E44AD, #9B59B6) !important;
    color: white !important;
    box-shadow: 0 2px 4px rgba(155, 89, 182, 0.3) !important;
}

/* 確保人像圖片完整顯示 */
.member-photo img,
.advisor-image img,
.president-image img,
.committee-member-image img {
    object-fit: contain !important;
    width: 100%;
    height: 100%;
}