﻿/* =========================================
   NTUB EMBA 校友會 - Chairman Page Styles
   File: /wwwroot/css/aboutChairman.css
   ========================================= */

/* -------- Design Tokens -------- */
:root {
    --c-purple: #8E44AD;
    --c-purple-2: #9B59B6;
    --c-purple-3: #6B46C1;
    --c-deep: #2c3e50;
    --c-muted: #6c757d;
    --c-card: #ffffff;
    --c-border: rgba(155, 89, 182, 0.15);
    --c-shadow: 0 15px 40px rgba(155, 89, 182, 0.15);
    --radius-lg: 18px;
    --radius-md: 14px;
    --gap: 1rem;
}

/* -------- Section：外框與背景 -------- */
.chairman-intro-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(155,89,182,0.05) 0%, rgba(142,68,173,0.08) 100%);
    border-radius: 2rem;
    margin: 2rem 0;
    border: 1px solid rgba(155,89,182,0.10);
    box-shadow: 0 10px 35px rgba(155, 89, 182, 0.10);
    position: relative;
    overflow: hidden;
}

/* -------- 卡片（共用） -------- */
.chairman-card, .speech-block, .certificate-card, .funding-highlight {
    background: var(--c-card);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--c-shadow);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

    .chairman-card:hover,
    .speech-block:hover,
    .certificate-card:hover,
    .funding-highlight:hover {
        transform: translateY(-2px);
        box-shadow: 0 22px 48px rgba(155, 89, 182, 0.18);
    }

/* -------- 理事長卡片 -------- */
.chairman-card {
    padding: 1.5rem;
}

.chairman-photo-container {
    max-width: 280px;
    margin: 0 auto;
}

/* 讓照片作為定位基準，但允許徽章超出 */
.photo-frame {
    position: relative;
    overflow: visible; /* ← 關鍵：改成 visible 才能讓徽章超出 */
    border-radius: 18px; /* 保持視覺圓角 */
}

    /* 讓相片本身有圓角，避免拿掉 overflow 後看見直角 */
    .photo-frame .chairman-photo {
        border-radius: inherit; /* ← 圖片自己圓角裁切 */
        display: block;
    }


    .chairman-photo:hover {
        transform: scale(1.03);
    }

.chairman-name {
    font-weight: 800;
    font-size: clamp(1.25rem, 1rem + 0.8vw, 1.6rem);
    color: var(--c-deep);
}



/* 徽章：右下角、微微跳出、陰影更明顯 */
.chairman-badge {
    position: absolute;
    right: 0; /* 先貼齊角落，再用 translate 推出去 */
    bottom: 0;
    transform: translate(14px, 14px); /* ← 向右下角「推出去」 */
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem .95rem;
    border-radius: 9999px;
    font-weight: 800;
    font-size: .95rem;
    color: #fff;
    background: linear-gradient(135deg,#9B59B6,#8E44AD);
    box-shadow: 0 16px 36px rgba(142,68,173,.38); /* 更立體的陰影 */
}

    .chairman-badge i {
        font-size: 1rem;
        line-height: 1;
    }




.chairman-basic-info {
    color: var(--c-muted);
    line-height: 1.65;
}

/* -------- 文字強調 -------- */
.text-purple {
    color: var(--c-purple);
}

.section-title-gradient {
    background: linear-gradient(135deg, #9B59B6, #8E44AD);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.section-subtitle {
    color: var(--c-purple);
    font-weight: 600;
}

/* -------- 理事長的話（Speech） -------- */
.speech-block {
    padding: 1.5rem;
}

    .speech-block p {
        color: #2c3e50;
        line-height: 1.5;
        font-size: 1rem;
    }

    .chairman-message {
        color: var(--c-deep);
        line-height: 1.85;
    }

.call-to-action {
    background: linear-gradient(135deg, rgba(155,89,182,.07), rgba(142,68,173,.10));
    border: 1px dashed var(--c-border);
    border-radius: var(--radius-md);
}

/* -------- 基金運用（Funding） -------- */
.funding-highlight {
    background: linear-gradient(180deg, rgba(155,89,182,.06), rgba(155,89,182,.08));
    padding: 1.25rem;
}

.funding-item {
    background: #fff;
    border-radius: 10px;
    padding: .65rem .75rem;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 6px 14px rgba(0,0,0,.06);
}
    .funding-item:hover {
        background: rgba(155, 89, 182, 0.08) !important;
        transform: translateX(5px);
    }

.funding-number {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: .65rem;
    font-size: .8rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--c-purple-2), var(--c-purple));
    box-shadow: 0 6px 16px rgba(142,68,173,.20);
}

/* -------- 證書（Certificate） -------- */
.certificate-card {
    padding: 1.25rem;
    text-align: center;
}

.certificate-img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: transform .25s ease, box-shadow .25s ease;
}

    .certificate-img:hover {
        transform: translateY(-2px);
        box-shadow: 0 16px 36px rgba(0,0,0,.18);
    }

/* -------- 按鈕（紫） -------- */
.btn-purple {
    background: linear-gradient(135deg, var(--c-purple-2), var(--c-purple));
    color: #fff;
    border: 0;
    border-radius: 9999px;
    padding: .5rem 1rem;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(142,68,173,.25);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

    .btn-purple:hover {
        transform: translateY(-2px);
        filter: brightness(1.06);
    }

    .btn-purple:active {
        transform: translateY(0);
    }


.modal-header {
    background: linear-gradient(135deg, #9B59B6, #8E44AD);
    color: white;
}
.modal-body image {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.speech-section, .sectioin2 {
    background: rgba(155, 89, 182, 0.03);
    border: 1px solid rgba(155, 89, 182, 0.1);
    border-radius: 15px;
}

/* -------- RWD -------- */
@media (max-width: 992px) {
    .chairman-intro-section {
        padding: 3rem 0;
    }

    .chairman-card, .speech-block, .certificate-card, .funding-highlight {
        padding: 1.1rem;
    }
}

@media (max-width: 576px) {
    .chairman-intro-section {
        padding: 2rem 0;
        border-radius: 1.25rem;
    }

    .chairman-card, .speech-block, .certificate-card, .funding-highlight {
        padding: 1rem;
        border-radius: 14px;
    }

    .chairman-photo-container {
        max-width: 220px;
    }

    .funding-number {
        width: 26px;
        height: 26px;
        font-size: .78rem;
    }
    .chairman-badge {
        transform: translate(10px, 10px);
        padding: .45rem .8rem;
        font-size: .9rem;
    }

}
