/* ================================
   自訂樣式 - Custom Styles
   ================================ */

/* ========== 影片區塊樣式 ========== */
.video-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.video-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,106.7C1248,96,1344,96,1392,96L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

/* 摺疊按鈕區域 */
.video-toggle-area {
    text-align: center;
    position: relative;
    z-index: 1;
}

.video-toggle-btn {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: none;
    padding: 25px 50px;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #667eea;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.video-toggle-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.video-toggle-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.video-toggle-btn:hover::before {
    width: 300px;
    height: 300px;
}

.video-toggle-btn i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.video-toggle-btn.active i {
    transform: rotate(180deg);
}

.toggle-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-top: 15px;
    margin-bottom: 30px;
}

.video-count-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* 輪播容器 */
.video-carousel-container {
    display: none;
    margin-top: 40px;
    animation: slideDown 0.5s ease;
}

.video-carousel-container.show {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 主影片播放器 */
.main-video-wrapper {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.3);
    margin-bottom: 30px;
}

.video-player {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-info-bar {
    padding: 20px 30px;
    background: #fff;
}

.video-badge {
    display: inline-block;
    padding: 5px 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-right: 10px;
}

.video-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-top: 10px;
    margin-bottom: 0;
}

/* 縮圖導航 */
.thumbnail-nav {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.5) transparent;
}

.thumbnail-nav::-webkit-scrollbar {
    height: 6px;
}

.thumbnail-nav::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

.thumbnail-nav::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.5);
    border-radius: 10px;
}

.thumbnail-item {
    flex: 0 0 auto;
    width: 200px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.6;
    position: relative;
}

.thumbnail-item:hover {
    opacity: 1;
    transform: translateY(-5px);
}

.thumbnail-item.active {
    opacity: 1;
}

.thumbnail-item.active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: #fff;
    border-radius: 2px;
}

.thumbnail-wrapper {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.thumbnail-image {
    position: relative;
    padding-bottom: 56.25%;
    background-size: cover;
    background-position: center;
    background-color: #ddd;
}

.thumbnail-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(102, 126, 234, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
}

.thumbnail-label {
    padding: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    text-align: center;
}

/* 移動端導航按鈕 */
.carousel-controls {
    display: none;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #667eea;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.carousel-btn:hover {
    background: #fff;
    transform: scale(1.1);
}

.carousel-dots {
    display: none;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #fff;
    width: 30px;
    border-radius: 5px;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .video-section {
        padding: 40px 0;
    }
    
    .video-toggle-btn {
        padding: 20px 40px;
        font-size: 1.1rem;
    }
    
    .thumbnail-nav {
        display: none;
    }
    
    .carousel-controls {
        display: flex;
    }
    
    .carousel-dots {
        display: flex;
    }
    
    .thumbnail-item {
        width: 100%;
    }
}


/* ========== 課程按鈕樣式 ========== */
.course-action-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.course-btn {
    padding: 14px 32px;
    border-radius: 28px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 180px;
}

.course-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.course-btn:hover::before {
    width: 300px;
    height: 300px;
}

.course-btn span {
    position: relative;
    z-index: 1;
}

/* 主按鈕（了解細節）- 實心漸變 */
.btn-primary-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
    color: #fff;
    text-decoration: none;
}

.btn-primary-gradient:active {
    transform: translateY(-1px);
}

/* 次要按鈕（報名說明會）- 邊框樣式 */
.btn-outline-gradient {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
    position: relative;
}

.btn-outline-gradient::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 28px;
    z-index: 0;
}

.btn-outline-gradient:hover {
    color: #fff;
    border-color: #764ba2;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    text-decoration: none;
}

.btn-outline-gradient:hover::after {
    opacity: 1;
}

/* 圖示 */
.btn-icon {
    margin-left: 8px;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.course-btn:hover .btn-icon {
    transform: translateX(3px);
}

.btn-outline-gradient:hover .btn-icon {
    transform: translateX(0) scale(1.1);
}

/* 響應式設計 */
@media (max-width: 576px) {
    .course-action-btns {
        flex-direction: column;
        gap: 12px;
    }
    
    .course-btn {
        width: 100%;
        max-width: 280px;
    }
}

/* 脈動動畫 */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 5px 25px rgba(102, 126, 234, 0.6);
    }
}

.btn-primary-gradient.pulse {
    animation: pulse 2s infinite;
}


/* ========== 技能展示樣式 ========== */
/* 摺疊按鈕樣式 */
.skills-toggle-btn {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 25px;
    padding: 10px 25px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 15px 0;
    width: 100%;
    max-width: 280px;
}

.skills-toggle-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.skills-toggle-btn .toggle-icon {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.skills-toggle-btn[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

/* 職能內容區域 */
.skills-content {
    padding: 15px 0 0 0;
}

.skills-content.collapsing {
    transition: height 0.35s ease;
}

/* 職能項目樣式優化 */
.skill-item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.skill-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #495057;
    min-width: 120px;
    text-align: right;
    margin-right: 12px;
}

.skill-progress {
    flex: 1;
    max-width: 200px;
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    background: #e9ecef;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
    /* 重要：重置瀏覽器預設外觀 */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: none;
}

/* 漸變進度條顏色 - Webkit 瀏覽器 (Chrome, Safari, Edge) */
.skill-progress::-webkit-progress-bar {
    background: #e9ecef;
    border-radius: 10px;
}

.skill-progress::-webkit-progress-value {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* 漸變進度條顏色 - Firefox */
.skill-progress::-moz-progress-bar {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

/* 不同職能的配色變化 - AI (紅橘色) */
.skill-progress.skill-ai::-webkit-progress-value {
    background: linear-gradient(90deg, #fe8464 0%, #fe6e9a 100%);
}

.skill-progress.skill-ai::-moz-progress-bar {
    background: linear-gradient(90deg, #fe8464 0%, #fe6e9a 100%);
}

/* 不同職能的配色變化 - 後端 (藍色) */
.skill-progress.skill-backend::-webkit-progress-value {
    background: linear-gradient(90deg, #167ac6 0%, #17a2b8 100%);
}

.skill-progress.skill-backend::-moz-progress-bar {
    background: linear-gradient(90deg, #167ac6 0%, #17a2b8 100%);
}

/* 不同職能的配色變化 - 數據 (綠色) */
.skill-progress.skill-data::-webkit-progress-value {
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
}

.skill-progress.skill-data::-moz-progress-bar {
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
}

.skill-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: #667eea;
    min-width: 40px;
    text-align: left;
    margin-left: 10px;
}

/* 標題樣式 */
.skills-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

/* 響應式 */
@media (max-width: 576px) {
    .skill-label {
        min-width: 90px;
        font-size: 0.85rem;
    }
    
    .skill-progress {
        max-width: 150px;
        height: 18px;
    }
    
    .skill-value {
        font-size: 0.8rem;
    }
    
    .skill-progress-wrapper {
        max-width: 150px;
        height: 18px;
    }
}


/* ========== DIV 進度條樣式（備用方案）========== */
/* 如果瀏覽器不支援 progress 元素樣式，可使用此方案 */
.skill-progress-wrapper {
    flex: 1;
    max-width: 200px;
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    background: #e9ecef;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
}

.skill-progress-bar {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.6s ease;
}

/* AI 配色（紅橘色） */
.skill-progress-bar.skill-ai {
    background: linear-gradient(90deg, #fe8464 0%, #fe6e9a 100%);
}

/* 後端配色（藍色） */
.skill-progress-bar.skill-backend {
    background: linear-gradient(90deg, #167ac6 0%, #17a2b8 100%);
}

/* 數據配色（綠色） */
.skill-progress-bar.skill-data {
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
}


/* ========== 媒體報導按鈕樣式 ========== */
/* 修正：這些按鈕應該使用不同的樣式，而非 video-toggle-btn */
.news-links .btn {
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.news-links .btn-outline-light {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.9);
    color: #667eea;
}

.news-links .btn-outline-light:hover {
    background: #fff;
    border-color: #fff;
    color: #764ba2;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 覆蓋 video-toggle-btn 對新聞連結按鈕的影響 */
.news-links .video-toggle-btn {
    padding: 12px 20px;
    font-size: 0.95rem;
}

.news-links .video-toggle-btn::before {
    display: none;
}


/* ========== 表單相關樣式 ========== */
/* 原本的樣式保持不變 */
mark { 
  background-color: yellow;
  color: black;
}

label {
  padding-right: 5px;
  font-size: 1rem;
}

/* 蜜罐欄位樣式 - 對人類完全隱藏 */
.honey-pot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    height: 0;
    width: 0;
    z-index: -1;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
}

/* 手機號碼錯誤提示樣式 */
.phone-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.phone-error.show {
    display: block;
}
/* ================================
   學員成功故事區塊樣式
   ================================ */

.testimonials-area {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.testimonials-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,106.7C1248,96,1344,96,1392,96L1440,96L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z"></path></svg>') no-repeat top;
    background-size: cover;
    pointer-events: none;
}

/* 輪播容器 */
.testimonial-slider-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* 卡片容器 */
.testimonial-cards {
    position: relative;
    width: 100%;
    min-height: 800px; /* 從 600px 增加到 800px */
}

/* 單張卡片 */
.testimonial-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(100px) scale(0.9);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.testimonial-card.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
    z-index: 10;
}

.testimonial-card.prev {
    opacity: 0;
    transform: translateX(-100px) scale(0.9);
}

/* 卡片內部容器 */
.card-inner {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

/* 頂部裝飾條 */
.card-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

/* 學員頭像區 */
.student-avatar {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.avatar-circle {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease;
}

.avatar-circle:hover {
    transform: scale(1.05);
}

.avatar-circle i {
    font-size: 3rem;
    color: #fff;
}

.student-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #667eea;
}

.badge-icon {
    font-size: 1.2rem;
}

/* 學員資訊 */
.student-info {
    text-align: center;
    margin-bottom: 25px;
}

.student-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.student-subtitle {
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
}

/* 轉職數據 */
.career-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 5px;
    font-weight: 600;
}

.stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
}

.stat-arrow {
    font-size: 1.5rem;
    color: #667eea;
    font-weight: bold;
}

/* 薪資亮點 */
.salary-highlight {
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.salary-icon {
    font-size: 1.5rem;
    margin-right: 10px;
}

.salary-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
}

/* 證言預覽 */
.testimonial-preview {
    margin-bottom: 20px;
}

.testimonial-preview p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
}

/* 完整內容（折疊） */
.testimonial-full-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.testimonial-full-content.expanded {
    max-height: 3000px; /* 從 2000px 增加到 3000px */
    overflow: visible; /* 改為 visible 確保內容完整顯示 */
}

.content-section {
    margin-bottom: 20px;
}

.content-section h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 10px;
}

.content-section p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 10px;
}

/* 推薦重點高亮框 */
.highlight-box {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.recommendation-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.recommendation-list li {
    padding: 8px 0 8px 30px;
    position: relative;
    font-size: 0.95rem;
    color: #555;
}

.recommendation-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
    font-size: 1.2rem;
}

/* 展開按鈕 */
.read-more-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.read-more-btn .btn-icon {
    transition: transform 0.3s ease;
}

.read-more-btn.expanded .btn-icon {
    transform: rotate(180deg);
}

.read-more-btn.expanded .btn-text::after {
    content: ' 收起';
}

/* 輪播導航按鈕 */
.testimonial-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: #fff;
    border: 2px solid #667eea;
    border-radius: 50%;
    color: #667eea;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-nav-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: -60px;
}

.next-btn {
    right: -60px;
}

/* 輪播指示器 */
.testimonial-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator:hover {
    background: #bbb;
}

.indicator.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 30px;
    border-radius: 6px;
}

/* 底部 CTA */
.testimonial-cta-text {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 20px;
}

/* 響應式設計 */
@media (max-width: 992px) {
    .prev-btn {
        left: -10px;
    }
    
    .next-btn {
        right: -10px;
    }
    
    .testimonial-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .card-inner {
        padding: 30px 20px;
    }
    
    .student-name {
        font-size: 1.5rem;
    }
    
    .student-subtitle {
        font-size: 1rem;
    }
    
    .career-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .stat-arrow {
        transform: rotate(90deg);
    }
    
    .salary-text {
        font-size: 1.1rem;
    }
    
    .prev-btn,
    .next-btn {
        display: none;
    }
    
    .testimonial-cards {
        /*min-height: 1200px;*/ /* 從 900px 大幅增加到 1200px */
        min-height: auto;  /* ← 改成 auto */
    }
    
    /* 手機版專用：展開內容需要更大的高度 */
    .testimonial-full-content.expanded {
        max-height: 5000px !important; /* 手機版因為寬度窄，內容會更長 */
    }
    
    /* 確保卡片容器不限制內容高度 */
    .testimonial-card.active {
        position: relative;
        height: auto;
        min-height: auto;
    }
}

@media (max-width: 576px) {
    .testimonials-area {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    
    .avatar-circle {
        width: 80px;
        height: 80px;
    }
    
    .avatar-circle i {
        font-size: 2.5rem;
    }
    
    .testimonial-slider-wrapper {
        padding: 10px;
    }
    
    /* 小螢幕需要更大的容器高度 */
    .testimonial-cards {
        min-height: auto; /* 更小的螢幕需要更大的高度 */
    }
    
    /* 小螢幕的展開內容 */
    .testimonial-full-content.expanded {
        max-height: 6000px !important; /* 更大的值確保內容完整 */
    }
}