/* ========== 業師與顧問群 styles ========== */

body {
    background: #fff;
}

/* ========== Hero Banner ========== */
.hero-banner {
    margin-top: clamp(64px, 6.25vw, 120px);
    position: relative;
    overflow: hidden;
    background: #004a89;
    padding: 0 8%;
    display: flex;
    align-items: center;
    height: 200px;
}
.hero-banner-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
}
.hero-banner-deco {
    position: absolute;
    right: 0; top: 0;
    width: 50%; height: 100%;
    object-fit: contain;
    object-position: right center;
    z-index: 1;
    opacity: 0.12;
}
.hero-banner-content { position: relative; z-index: 2; }
.hero-banner-title {
    font-size: clamp(32px, 3vw, 56px);
    font-weight: 700;
    color: #fff;
    letter-spacing: 6px;
    margin: 0;
}

/* Section base */
.mentors-section,
.teams-section,
.booking-section {
    padding: clamp(56px, 5vw, 96px) 0;
}
.mentors-section .container,
.teams-section .container,
.booking-section .container {
    padding: 0 8%;
}

/* Section heading */
.section-heading {
    text-align: center;
    font-size: clamp(36px, 3.2vw, 50px);
    font-weight: 700;
    color: #024d84;
    letter-spacing: 4px;
    margin: 0 0 clamp(20px, 1.8vw, 32px);
}
.section-desc {
    text-align: center;
    font-size: clamp(22px, 1.6vw, 26px);
    line-height: 1.9;
    color: #4a5867;
    margin: 0 auto clamp(36px, 3vw, 56px);
    max-width: 1200px;
}
.section-desc strong {
    color: #1f7ed8;
    font-weight: 700;
}

/* ========== Section 1: 業師 ========== */
.mentors-section {
    background: #fff;
}
.mentors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(18px, 1.4vw, 24px);
    margin: 0 auto;
}
.mentor-card {
    background: #fff;
    border: 1px solid #e3e8ef;
    border-radius: 10px;
    padding: clamp(16px, 1.2vw, 22px);
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 16px;
    row-gap: 12px;
    align-items: start;
    box-shadow: 0 0 32px rgba(20, 30, 50, 0.20);
}
.mentor-photo {
    grid-row: 1;
    grid-column: 1;
    width: clamp(64px, 5vw, 80px);
    height: clamp(64px, 5vw, 80px);
    border-radius: 50%;
    overflow: hidden;
    background: #f0f4f8;
}
.mentor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.mentor-info {
    grid-row: 1;
    grid-column: 2;
    min-width: 0;
}
.mentor-name {
    font-size: clamp(22px, 1.8vw, 28px);
    font-weight: 700;
    color: #00305c;
    margin: 0 0 8px;
    line-height: 1.3;
}
.mentor-title {
    font-size: clamp(15px, 1.1vw, 17px);
    color: #4a5867;
    line-height: 1.5;
    margin: 0;
}
.mentor-title + .mentor-title {
    margin-top: 2px;
}
.mentor-tags {
    grid-row: 2;
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.mentor-tag {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 4px;
    background: #024d84;
    color: #fff;
    font-size: clamp(14px, 1.05vw, 16px);
    font-weight: 500;
    line-height: 1.4;
}

/* ========== Section 2: 團隊 ========== */
.teams-section {
    background: #fff;
}
.teams-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(18px, 1.4vw, 24px);
    margin: 0 auto;
}
.team-card {
    background: #fff;
    border: 1px solid #e3e8ef;
    border-radius: 10px;
    padding: clamp(18px, 1.4vw, 24px);
    box-shadow: 0 2px 4px rgba(20, 30, 50, 0.06), 0 10px 24px rgba(20, 30, 50, 0.10);
}
.team-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.team-logo {
    flex-shrink: 0;
    width: clamp(50px, 4vw, 64px);
    height: clamp(50px, 4vw, 64px);
    background: #e9f1fb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.team-logo svg {
    width: 65%;
    height: 65%;
}
.team-name {
    font-size: clamp(22px, 1.8vw, 28px);
    font-weight: 700;
    color: #1c2a3a;
    margin: 0;
    line-height: 1.3;
}
.team-brief {
    font-size: clamp(17px, 1.25vw, 19px);
    font-weight: 700;
    color: #1c2a3a;
    line-height: 1.5;
    margin: 0 0 8px;
}
.team-desc {
    font-size: clamp(14px, 1.05vw, 16px);
    color: #6c7a8a;
    line-height: 1.7;
    margin: 0;
}

/* 載入更多按鈕（PC 隱藏，手機才顯示） */
.load-more {
    display: none;
    margin: clamp(24px, 2vw, 36px) auto 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #1f7ed8;
}
.load-more svg {
    width: 32px;
    height: 32px;
    display: block;
}

/* ========== Section 3: 立即預約 CTA ========== */
.booking-section {
    background: #fff;
    padding-bottom: clamp(72px, 6vw, 120px);
}
.booking-content {
    position: relative;
    max-width: 1100px;
    margin: 0 auto clamp(40px, 3.5vw, 64px);
    padding: 0 clamp(20px, 3vw, 60px);
}
.booking-q,
.booking-a {
    font-size: clamp(32px, 2.8vw, 44px);
    font-weight: 700;
    line-height: 1.5;
    margin: 0;
    position: relative;
    z-index: 2;
}
.booking-q { color: #00305c; }
.booking-a { color: #1a1a1a; }
.booking-q .nowrap { white-space: nowrap; display: inline-block; }
.booking-q {
    text-align: left;
    padding-bottom: clamp(60px, 6vw, 100px);
}
.booking-a {
    text-align: right;
    margin-left: auto;
    width: max-content;
    max-width: 70%;
}
.booking-arrow {
    position: absolute;
    left: calc(clamp(20px, 3vw, 60px) + clamp(95px, 8.5vw, 128px));
    right: 52%;
    top: 40%;
    height: clamp(120px, 10vw, 170px);
    z-index: 1;
    pointer-events: none;
}
.booking-arrow > svg:first-child {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}
.booking-arrow .arrow-head {
    position: absolute;
    right: -10px;
    bottom: clamp(-3px, -0.5vw, -6px);
    width: clamp(22px, 2.2vw, 32px);
    height: clamp(22px, 2.2vw, 32px);
    display: block;
}
.booking-btn {
    display: block;
    width: max-content;
    margin: 0 auto;
    padding: 20px 72px;
    background: #FF5454;
    color: #fff;
    font-size: clamp(20px, 1.6vw, 26px);
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    letter-spacing: 2px;
    transition: background 0.2s ease;
}
.booking-btn:hover {
    background: #e63d3d;
}

/* ========== Tablet (768~1024) ========== */
@media (max-width: 1024px) {
    .hero-banner {
        justify-content: center;
        text-align: center;
    }
    .section-desc br { display: none; }
    .mentors-section .container,
    .teams-section .container,
    .booking-section .container {
        padding: 0 6%;
    }
    .mentors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .teams-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .mentor-name { font-size: clamp(20px, 2.4vw, 24px); }
    .team-name { font-size: clamp(20px, 2.4vw, 26px); }
    .booking-arrow {
        left: calc(6% + clamp(80px, 11vw, 110px));
        right: 58%;
    }
}

/* ========== Mobile (<768) ========== */
@media (max-width: 767px) {
    .mentors-section,
    .teams-section,
    .booking-section {
        padding: clamp(40px, 8vw, 64px) 0;
    }
    .mentors-grid,
    .teams-grid {
        grid-template-columns: 1fr;
    }
    /* 預設顯示前 4 張，點 載入更多 展開全部 */
    .mentors-grid:not(.expanded) > .mentor-card:nth-of-type(n+5),
    .teams-grid:not(.expanded) > .team-card:nth-of-type(n+5) {
        display: none;
    }
    .load-more {
        display: block;
    }
    .mentor-name { font-size: 22px; }
    .mentor-title { font-size: 14px; }
    .mentor-tag { font-size: 13px; padding: 4px 12px; }
    .team-name { font-size: 22px; }
    .team-brief { font-size: 16px; }
    .team-desc { font-size: 14px; }

    /* CTA 手機版佈局 */
    .booking-content {
        padding: 0 4%;
    }
    .booking-q {
        font-size: clamp(20px, 5vw, 24px);
        padding-bottom: clamp(60px, 14vw, 80px);
    }
    .booking-a {
        font-size: clamp(20px, 5vw, 24px);
        max-width: 70%;
    }
    .booking-arrow {
        left: 10%;
        right: 70%;
        top: 40%;
        height: clamp(80px, 14vw, 95px);
    }
    .booking-btn {
        font-size: 18px;
        padding: 14px 40px;
        border-radius: 30px;
    }
    .section-heading {
        font-size: clamp(26px, 6.5vw, 32px);
    }
    .section-desc {
        font-size: clamp(15px, 4vw, 18px);
    }
}
