/*
 * 桃園智慧產業學院 TIIAI
 * 人才培育頁面專屬樣式
 */

/* ========== 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;
}

/* ========== Breadcrumb & Share ========== */
.breadcrumb-bar {
    padding: 24px 0;
}

.breadcrumb-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8%;
}

.breadcrumb {
    font-size: clamp(13px, 0.9vw, 16px);
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--text-light);
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb .separator {
    margin: 0 4px;
}

.breadcrumb .current {
    color: var(--text);
}

.share-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-label {
    font-size: clamp(13px, 0.9vw, 16px);
    color: var(--text-light);
    margin-right: 4px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(24px, 1.7vw, 30px);
    height: clamp(24px, 1.7vw, 30px);
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    transition: var(--transition);
}

.share-fb {
    background: #1877f2;
}

.share-fb:hover {
    background: #1565c0;
}

.share-line {
    background: #06c755;
}

.share-line:hover {
    background: #05a847;
}

.share-copy {
    background: #888;
}

.share-copy:hover {
    background: #666;
}

.share-btn svg {
    width: 55%;
    height: 55%;
}

/* ========== Intro Section ========== */
.training-intro {
    padding: 5% 0 0;
    background: url('../images/training_new/intro-bg.png') center top 0vw / 130% auto no-repeat;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
    min-height: 48vw;
}

.training-intro::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 5px;
    height: 100%;
    background: #fac040;
}

.intro-deco {
    position: absolute;
    right: 0;
    top: 15%;
    width: 75%;
    height: 95%;
    object-fit: cover;
    object-position: right top;
    opacity: 0.7;
    z-index: 0;
}

.training-intro .container {
    padding: 5% 8%;
    position: relative;
    z-index: 1;
}

.intro-title {
    font-size: clamp(32px, 3.4vw, 70px);
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
    margin-bottom: 28px;
}

.intro-desc p {
    font-size: clamp(16px, 1.3vw, 26px);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    line-height: 1.8;
}

/* ========== Training Categories ========== */
.training-categories {
    padding: 50px 0 40px;
    background: var(--white);
}

.training-categories .container {
    padding: 0 8%;
}

/* 上半部：標題 + 卡片（左右兩欄 + 分隔線） */
.categories-top {
    display: flex;
    align-items: flex-start;
    margin-bottom: 28px;
}

.category-column {
    flex: 1;
    padding: 0 16px;
}

.category-title {
    font-size: clamp(18px, 1.6vw, 30px);
    font-weight: 600;
    color: var(--primary);
    text-align: center;
    margin-bottom: 24px;
}

.category-column:last-child .category-title {
    color: #5ba3d9;
}

.category-divider-line {
    width: 1px;
    background: #ccc;
    align-self: stretch;
    flex-shrink: 0;
}

.category-cards {
    display: flex;
    gap: 14px;
}

/* 卡片：外層藍色背景 + 內層白色圓角（同首頁 service-card 結構） */
.cat-card {
    flex: 1;
    height: 305px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--primary);
    padding: 4px;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    cursor: pointer;
}

/* 藍色頂部區域（放標籤） */
.cat-card-header {
    padding: 10px 12px;
    text-align: center;
}

.cat-label {
    display: block;
    font-size: clamp(18px, 1.5vw, 28px);
    color: var(--white);
    font-weight: 400;
}

/* 右邊欄（員工生產力專班）用淺藍 */
.category-column:last-child .cat-card {
    background: #5ba3d9;
}

.cat-card-body {
    padding: 20px 12px 24px;
    text-align: center;
    background: var(--white);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.cat-divider {
    display: none;
}

.cat-main-title {
    font-size: clamp(16px, 1.4vw, 30px);
    font-weight: 700;
    color: inherit;
    line-height: 1.5;
}

/* 左欄（企業競爭力專班）內文用深藍色 */
.category-column:first-child .cat-main-title {
    color: var(--primary);
}

/* 右欄（員工生產力專班）內文用淺藍色 */
.category-column:last-child .cat-main-title {
    color: #5ba3d9;
}

/* 活動照片：3張橫排跨全寬 */
.category-photos {
    display: flex;
    gap: 16px;
    padding: 0 16px;
}

.category-photos img {
    flex: 1;
    border-radius: 12px;
    object-fit: cover;
    height: 270px;
    min-width: 0;
    max-width: calc(33.333% - 11px);
}

/* ========== 執行成效 ========== */
.training-stats {
    background: #fff;
    padding: 60px 0 80px;
}

.training-stats .container {
    padding: 0 8%;
}

.stats-title {
    font-size: clamp(24px, 2.4vw, 44px);
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-bottom: 50px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 45px;
    max-width: 1050px;
    margin: 0 auto;
}

.stat-card {
    background: linear-gradient(180deg, #004a89 0%, #3176b5 30%, #d6e6f2 55%, #ffffff 75%);
    border-radius: 33px;
    padding: 72px 45px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.stat-number {
    font-size: clamp(54px, 5.25vw, 96px);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 12px;
}

.stat-plus {
    font-size: 0.7em;
}

.stat-unit {
    font-size: 0.5em;
    font-weight: 400;
}

.stat-label {
    font-size: clamp(21px, 1.65vw, 30px);
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
}

.stat-arrow {
    color: var(--primary);
    font-size: 36px;
    margin: 36px 0 18px;
}

.stat-sub {
    font-size: clamp(22px, 1.8vw, 33px);
    color: var(--primary);
    font-weight: 500;
}

/* ========== AI 學習地圖 ========== */
.training-roadmap {
    background: #fff;
    padding: 60px 0 80px;
}

.training-roadmap .container {
    padding: 0 8%;
}

.roadmap-title {
    font-size: clamp(24px, 2.4vw, 44px);
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-bottom: 12px;
}

.roadmap-sub {
    font-size: 25px;
    color: var(--primary);
    text-align: center;
    margin-bottom: 60px;
}

.roadmap-content {
    position: relative;
    max-width: 1500px;
    height: 540px;
    margin: 0 auto;
}

/* 金字塔 */
.roadmap-pyramid {
    position: absolute;
    left: 0;
    top: 0;
    width: 720px;
    height: 540px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pyramid-layer {
    color: #fff;
    font-weight: 700;
    font-size: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.pyramid-layer span {
    position: relative;
    z-index: 2;
}

.pyramid-l3 {
    width: 0;
    height: 0;
    border-left: 120px solid transparent;
    border-right: 120px solid transparent;
    border-bottom: 180px solid #307FC2;
}

.pyramid-l3 span {
    position: absolute;
    top: 105px;
    color: #fff;
}

.pyramid-l2 {
    width: 480px;
    height: 180px;
    background: #004A89;
    clip-path: polygon(25% 0, 75% 0, 100% 100%, 0 100%);
    margin-top: -1px;
}

.pyramid-l1 {
    width: 720px;
    height: 180px;
    background: #002748;
    clip-path: polygon(16.67% 0, 83.33% 0, 100% 100%, 0 100%);
    margin-top: -1px;
}

/* 右側文字列表：絕對定位對齊金字塔每層右邊斜線 */
.roadmap-list {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.roadmap-item {
    position: absolute;
    white-space: nowrap;
    height: 180px;
    padding-top: 45px;
}

/* 斜線連接：從金字塔層中間斜上轉橫線，結束在文字前 */
.roadmap-line {
    position: absolute;
    right: 100%;
    top: 18px;
    height: 60px;
    overflow: visible;
}

/* L3 對齊金字塔頂端（最窄層），線從金字塔中延伸出來 */
.roadmap-item:nth-child(1) {
    top: 0;
    left: 608px;
    padding-top: 0;
    padding-left: 12px;
}
.roadmap-item:nth-child(1) .roadmap-line {
    width: 200px;
}

/* L2 對齊金字塔中層 */
.roadmap-item:nth-child(2) {
    top: 180px;
    left: 728px;
    padding-top: 0;
    padding-left: 12px;
}
.roadmap-item:nth-child(2) .roadmap-line {
    width: 200apx;
}

/* L1 對齊金字塔底層（最寬） */
.roadmap-item:nth-child(3) {
    top: 360px;
    left: 840px;
    padding-top: 0;
    padding-left: 12px;
}
.roadmap-item:nth-child(3) .roadmap-line {
    width: 188px;
}

.roadmap-item h3 {
    font-size: clamp(20px, 1.6vw, 30px);
    font-weight: 700;
    color: #000;
    margin-bottom: 10px;
}

.roadmap-item p {
    font-size: clamp(16px, 1.3vw, 24px);
    color: #000;
    line-height: 1.6;
}

/* ========== 最新開課資訊 (新版卡片式) ========== */
.training-courses-new {
    padding: 80px 0;
    background: #fff;
}

.training-courses-new .container {
    padding: 0 8%;
}

.courses-new-title {
    font-size: clamp(28px, 2.8vw, 48px);
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-bottom: 96px;
}

/* 外框：包住 Tab + 說明 + 分組卡片 */
.courses-outer-box {
    border: 2px solid var(--primary);
    border-radius: 30px;
    padding: 50px clamp(24px, 4vw, 60px) 60px;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

/* Tabs: 整塊藍色膠囊容器、內分左右兩半 */
.courses-tabs {
    position: absolute;
    top: -34px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    background: var(--primary);
    border-radius: 50px;
    padding: 6px;
    gap: 0;
}

.courses-tab {
    background: transparent;
    border: none;
    color: #fff;
    padding: 12px clamp(24px, 3vw, 48px);
    border-radius: 50px;
    font-size: clamp(15px, 1.2vw, 20px);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.courses-tab.active {
    background: #fff;
    color: var(--primary);
}

.courses-tab:hover:not(.active) {
    opacity: 0.8;
}

.courses-tab-desc {
    text-align: center;
    font-size: clamp(18px, 1.4vw, 24px);
    color: var(--primary);
    line-height: 2;
    margin-bottom: 60px;
    font-weight: 700;
}

/* Tab 面板顯示控制 */
.courses-tab-panel {
    display: none;
}

.courses-tab-panel.active {
    display: block;
}

/* 分組區塊 */
.courses-group {
    margin-bottom: 60px;
}

.courses-group:last-child {
    margin-bottom: 0;
}

.courses-group-title {
    font-size: clamp(22px, 2vw, 36px);
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-bottom: 16px;
}

.group-title-main {
    display: inline-block;
    position: relative;
}

.courses-group-sub {
    position: absolute;
    left: 100%;
    bottom: 0;
    color: #999;
    font-size: 0.6em;
    font-weight: 400;
    white-space: nowrap;
    padding-left: 10px;
}

.courses-group-desc {
    font-size: clamp(14px, 1vw, 18px);
    color: #444;
    line-height: 1.8;
    margin-bottom: 32px;
    text-align: left;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.courses-group-desc strong {
    color: var(--primary);
    font-weight: 600;
}

/* 3x2 網格 */
.courses-grid-new {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

/* 卡片樣式：同首頁 index.html 的 .course-card */
.courses-grid-new .course-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: var(--transition);
    min-width: 0;
    border: 1.5px solid #ccc;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    padding: 10px 16px 0;
}

.courses-grid-new .course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.courses-grid-new .badge {
    display: inline-block;
    padding: 0px 20px;
    border-radius: 50px;
    font-size: clamp(14px, 1.2vw, 18px);
    font-weight: 500;
    margin-bottom: 10px;
    align-self: flex-start;
}

.courses-grid-new .badge.online {
    background: transparent;
    color: #333;
    border: 1.5px solid #f5a623;
}

.courses-grid-new .badge.physical {
    background: transparent;
    color: #333;
    border: 1.5px solid var(--primary);
}

.courses-grid-new .course-img {
    height: 180px;
    overflow: hidden;
    border-radius: 0;
    margin: 0 -16px 12px -16px;
    width: calc(100% + 32px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12), 0 -3px 6px rgba(0, 0, 0, 0.08);
}

.courses-grid-new .course-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.courses-grid-new .course-card:hover .course-img img {
    transform: scale(1.05);
}

.courses-grid-new .course-body {
    padding: 4px 2px 0;
    background: #fff;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.courses-grid-new .course-date {
    font-size: clamp(14px, 1vw, 17px);
    color: #333;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.courses-grid-new .course-body h4 {
    font-size: clamp(14px, 1.1vw, 18px);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
    color: #222;
}

.courses-grid-new .course-instructor {
    margin-top: auto;
    margin-bottom: 16px;
}

.courses-grid-new .course-instructor .instructor-label {
    color: #333;
    font-weight: 600;
    font-size: clamp(13px, 0.95vw, 16px);
    display: block;
    margin-bottom: 4px;
}

.courses-grid-new .course-instructor .instructor-name {
    color: #333;
    font-weight: 400;
    font-size: clamp(13px, 0.95vw, 16px);
    display: block;
}

.courses-grid-new .btn-register {
    display: block;
    padding: 14px 0;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 0;
    font-size: clamp(14px, 1.1vw, 18px);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
    margin: auto -18px 0 -18px;
    width: calc(100% + 36px);
}

.courses-grid-new .btn-register:hover {
    background: var(--primary-dark);
}

/* 即將額滿 */
.courses-grid-new .course-card.coming-soon::after {
    content: '';
    position: absolute;
    top: 12px;
    right: 16px;
    width: 36px;
    height: 34px;
    background: url('../images/notice.svg') no-repeat center / contain;
    z-index: 2;
}

.courses-grid-new .btn-register.btn-coming-soon {
    background: #EC615B;
    cursor: default;
}

.courses-grid-new .btn-register.btn-coming-soon:hover {
    background: #EC615B;
}

/* 課程進行中 */
.courses-grid-new .btn-register.btn-in-progress {
    background: #b0b0b0;
    cursor: default;
}

.courses-grid-new .btn-register.btn-in-progress:hover {
    background: #b0b0b0;
}

/* ========== 學員真實回饋 ========== */
.training-testimonials {
    background: #fff;
    padding: 80px 0;
}

.training-testimonials .container {
    padding: 0 8%;
}

.testimonials-title {
    font-size: clamp(28px, 2.8vw, 48px);
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-bottom: 50px;
}

.testimonials-list {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.testimonial-item {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 24px;
    align-items: center;
}

.testimonial-person {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.testimonial-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    background: #f0f0f0;
}

.testimonial-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.testimonial-name {
    font-size: clamp(18px, 1.3vw, 22px);
    color: var(--primary);
    font-weight: 700;
}

.testimonial-industry {
    font-size: clamp(13px, 0.95vw, 16px);
    color: #888;
    font-weight: 400;
}

/* 對話氣泡 */
.testimonial-content {
    position: relative;
    background: #E6E6E6;
    border-radius: 24px;
    padding: 24px 32px;
}

.testimonial-content::before {
    content: '';
    position: absolute;
    left: 20px;
    bottom: -16px;
    width: 0;
    height: 0;
    border-top: 18px solid #E6E6E6;
    border-right: 22px solid transparent;
}

.testimonial-course {
    font-size: clamp(17px, 1.3vw, 22px);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.testimonial-text {
    font-size: clamp(14px, 1.1vw, 18px);
    color: #333;
    line-height: 1.9;
}

/* ========== Tablet (1024px) ========== */
@media (max-width: 1024px) {
    .hero-banner {
        margin-top: 80px;
        height: 110px;
        padding: 0 5%;
        justify-content: center;
    }

    .hero-banner-content {
        text-align: center;
    }

    .hero-banner-title {
        font-size: 26px;
        letter-spacing: 4px;
    }

    /* Intro - 平板版：星星改用背景圖，避免撐高區塊影響下方 */
    .training-intro {
        padding: 8% 0 10%;
        min-height: 0;
        background:
            url('../images/training_new/hero-deco.png') right -70% / 100% auto no-repeat,
            url('../images/training_new/intro-bg.png') center top / 100% auto no-repeat;
    }

    .training-intro::before {
        display: none;
    }

    .intro-deco {
        display: none;
    }

    .training-intro .container {
        padding: 0 5%;
        text-align: center;
    }

    .intro-title {
        font-size: 28px;
        line-height: 1.4;
        margin-bottom: 18px;
    }

    .intro-desc p {
        font-size: 16px;
        line-height: 1.8;
    }

    .training-categories {
        padding: 50px 0 0;
    }

    .breadcrumb-bar .container,
    .training-categories .container,
    .training-courses .container {
        padding: 0 8%;
    }

    .training-cta {
        padding: 40px 24px;
    }

    /* 兩大專班 - 平板版上下堆疊 */
    .categories-top {
        flex-direction: column;
        align-items: stretch;
        gap: 32px;
        margin-bottom: 28px;
    }

    .category-divider-line {
        display: none;
    }

    .category-column {
        padding: 0;
    }

    .category-title {
        font-size: 28px;
        margin-bottom: 18px;
    }

    .category-cards {
        gap: 20px;
    }

    .cat-card {
        height: 220px;
    }

    .cat-card-body {
        padding: 16px 10px 20px;
    }

    .cat-main-title {
        font-size: 22px;
    }

    .cat-label {
        font-size: 22px;
    }

    /* 活動照片 - 平板：拉到視口寬度，左右兩張溢出、中間完整露出 */
    .category-photos {
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-top: 72px;
        padding: 0;
        gap: 8px;
        justify-content: center;
        overflow: hidden;
    }

    .category-photos img {
        flex: 0 0 auto;
        width: 46vw;
        max-width: none;
        height: 26vw;
        border-radius: 10px;
    }

    .training-stats {
        padding: 60px 0 30px;
    }

    .stats-title {
        font-size: 28px;
    }

    .training-roadmap {
        padding: 0;
    }

    .courses-tab {
        font-size: 20px;
    }

    .group-title-main {
        font-size: 24px;
    }

    .courses-group-desc {
        font-size: clamp(16px, 1vw, 18px);
    }

    .courses-tab-desc {
        font-size: 16px;
    }

    .courses-grid-new {
        grid-template-columns: repeat(2, 1fr);
    }

    .courses-grid-new .course-body h4 {
        font-size: 16px;
    }

    .courses-grid-new .course-date {
        font-size: 16px;
    }

    .courses-grid-new .course-instructor .instructor-label,
    .courses-grid-new .course-instructor .instructor-name {
        font-size: 15px;
    }

    .courses-grid-new .btn-register {
        font-size: 16px;
    }

    .courses-grid-new .course-card.coming-soon::after {
        top: 6px;
    }

    .training-courses-new {
        padding-bottom: 0;
    }

    /* 學員真實回饋 - 對話框箭頭改到左側指向頭像 */
    .testimonial-content {
        border-radius: 40px;
    }

    .testimonial-content::before {
        left: -14px;
        bottom: auto;
        top: 32px;
        border-top: 12px solid transparent;
        border-bottom: 12px solid transparent;
        border-right: 16px solid #E6E6E6;
    }

    .roadmap-title {
        font-size: 28px;
    }

    .roadmap-sub {
        font-size: 18px;
        margin-bottom: 40px;
    }

    /* 金字塔 - 平板（360×270） */
    .roadmap-content {
        height: 320px;
    }

    .roadmap-pyramid {
        width: 360px;
        height: 270px;
    }

    .pyramid-layer {
        font-size: 24px;
    }

    .pyramid-l3 {
        border-left-width: 60px;
        border-right-width: 60px;
        border-bottom-width: 90px;
    }

    .pyramid-l3 span {
        top: 52px;
    }

    .pyramid-l2 {
        width: 240px;
        height: 90px;
    }

    .pyramid-l1 {
        width: 360px;
        height: 90px;
    }

    .roadmap-item {
        height: 90px;
        white-space: normal;
    }

    .roadmap-item h3 {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .roadmap-item p {
        font-size: 13px;
        line-height: 1.5;
    }

    .roadmap-item:nth-child(1) {
        left: 285px;
        max-width: 550px;
    }

    .roadmap-item:nth-child(1) .roadmap-line {
        width: 75px;
    }

    .roadmap-item:nth-child(2) {
        top: 90px;
        left: 345px;
        max-width: 510px;
    }

    .roadmap-item:nth-child(2) .roadmap-line {
        width: 75px;
    }

    .roadmap-item:nth-child(3) {
        top: 180px;
        left: 395px;
        max-width: 460px;
    }

    .roadmap-item:nth-child(3) .roadmap-line {
        width: 65px;
    }

    .roadmap-line {
        top: 15px;
        height: 45px;
    }

    .course-list-wrapper {
        padding: 28px 20px;
    }

    .course-name {
        white-space: normal;
        flex-shrink: 1;
    }
}

/* ========== Mobile (767px) ========== */
@media (max-width: 767px) {
    .hero-banner {
        margin-top: 64px;
        height: 80px;
        padding: 0 5%;
        justify-content: center;
    }

    .hero-banner-title {
        font-size: 20px;
        letter-spacing: 3px;
    }

    /* Intro - 手機版 */
    .training-intro {
        padding: 20px 0 60px;
        min-height: 0;
        background:
            url('../images/training_new/hero-deco.png') right -70% / 150% auto no-repeat,
            url('../images/training_new/intro-bg.png') center top / 150% auto no-repeat;
    }

    .training-intro::before {
        display: none;
    }

    .training-intro .container {
        text-align: center;
    }

    .intro-title {
        font-size: 20px;
        line-height: 1.4;
        margin-bottom: 20px;
    }

    .intro-desc p {
        font-size: 14px;
        line-height: 1.85;
    }

    .breadcrumb-bar {
        padding: 10px 0;
    }

    .breadcrumb-bar .container {
        padding: 0 16px;
    }

    .share-btn {
        width: 26px;
        height: 26px;
    }

    /* Categories - 兩大專班 */
    .training-categories {
        padding: 32px 0 0;
    }

    .training-categories .container {
        padding: 0 6%;
    }

    .categories-top {
        gap: 24px;
    }

    .category-title {
        font-size: 20px;
        margin-bottom: 14px;
    }

    .category-cards {
        gap: 10px;
    }

    .cat-card {
        height: 160px;
        border-radius: 12px;
    }

    .cat-card-body {
        padding: 10px 6px 14px;
    }

    .cat-main-title {
        font-size: 15px;
    }

    .cat-label {
        font-size: 15px;
    }

    /* 活動照片 */
    .category-photos {
        margin-top: 48px;
        gap: 6px;
    }

    .category-photos img {
        width: 50vw;
        height: 30vw;
        border-radius: 8px;
    }

    /* 執行成效 */
    .training-stats {
        padding: 40px 0 20px;
    }

    .stats-title {
        font-size: 22px;
        margin-bottom: 24px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .stat-card {
        padding: 18px 16px 28px;
        border-radius: 24px;
    }

    .stat-number {
        font-size: 40px;
    }

    .stat-label {
        font-size: 14px;
    }

    .stat-arrow {
        font-size: 28px;
        margin: 20px 0 10px;
    }

    .stat-sub {
        font-size: 14px;
    }

    /* AI 學習地圖 */
    .training-roadmap {
        padding: 20px 0 0;
    }

    .roadmap-title {
        font-size: 22px;
    }

    .roadmap-sub {
        font-size: 14px;
        margin-bottom: 28px;
    }

    .roadmap-content {
        height: 260px;
        max-width: 100%;
    }

    .roadmap-pyramid {
        width: 270px;
        height: 210px;
        left: calc(-8vw - 90px);
    }

    .pyramid-layer {
        font-size: 18px;
    }

    .pyramid-l3 {
        border-left-width: 45px;
        border-right-width: 45px;
        border-bottom-width: 70px;
    }

    .pyramid-l3 span {
        top: 40px;
    }

    .pyramid-l2 {
        width: 180px;
        height: 70px;
    }

    .pyramid-l1 {
        width: 270px;
        height: 70px;
    }

    .roadmap-item {
        height: auto;
    }

    .roadmap-item h3 {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .roadmap-item p {
        font-size: 12px;
        line-height: 1.5;
    }

    .roadmap-item:nth-child(1) {
        top: 0;
        left: calc(125px - 8vw);
        right: 0;
        max-width: none;
    }

    .roadmap-item:nth-child(1) .roadmap-line {
        width: 55px;
    }

    .roadmap-item:nth-child(2) {
        top: 55px;
        left: calc(170px - 8vw);
        right: 0;
        max-width: none;
    }

    .roadmap-item:nth-child(2) .roadmap-line {
        width: 65px;
    }

    .roadmap-item:nth-child(3) {
        top: 140px;
        left: calc(205px - 8vw);
        right: 0;
        max-width: none;
    }

    .roadmap-item:nth-child(3) .roadmap-line {
        width: 50px;
    }

    .roadmap-line {
        top: 12px;
        height: 36px;
    }

    /* 最新開課資訊 */
    .training-courses-new {
        padding: 40px 0 0;
    }

    .courses-new-title {
        font-size: 22px;
        margin-bottom: 24px;
    }

    .courses-outer-box {
        border-radius: 20px;
        padding: 32px 16px 32px;
    }

    .courses-tabs {
        top: -24px;
    }

    .courses-tab {
        font-size: 14px;
        padding: 8px 18px;
    }

    .group-title-main {
        font-size: 20px;
    }

    .courses-group-sub {
        font-size: 14px;
    }

    .courses-tab-desc {
        text-align: center;
        font-size: clamp(18px, 1.4vw, 24px);
        color: var(--primary);
        line-height: 2;
        margin-bottom: 50px;
        font-weight: 700;
    }

    .courses-grid-new {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .courses-grid-new .course-body h4 {
        font-size: 16px;
    }

    .courses-grid-new .course-date {
        font-size: 15px;
    }

    .courses-grid-new .course-instructor .instructor-label,
    .courses-grid-new .course-instructor .instructor-name {
        font-size: 14px;
    }

    .courses-grid-new .btn-register {
        font-size: 15px;
    }

    /* 學員真實回饋 */
    .training-testimonials {
        padding: 40px 0 48px;
    }

    .testimonials-title {
        font-size: 22px;
        margin-bottom: 28px;
    }

    .testimonials-list {
        gap: 20px;
    }

    .testimonial-item {
        grid-template-columns: 90px 1fr;
        gap: 12px;
    }

    .testimonial-avatar {
        width: 80px;
        height: 80px;
    }

    .testimonial-name {
        font-size: 15px;
    }

    .testimonial-industry {
        font-size: 11px;
    }

    .testimonial-content {
        padding: 16px 20px;
        border-radius: 24px;
    }

    .testimonial-content::before {
        left: -10px;
        top: 24px;
        border-top: 8px solid transparent;
        border-bottom: 8px solid transparent;
        border-right: 12px solid #E6E6E6;
    }

    .testimonial-course {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .testimonial-text {
        font-size: 12px;
        line-height: 1.7;
    }
}
