/* ===================================
   第七區塊：學員回饋 (使用 Bootstrap 5 Carousel)
   =================================== */

.section7-feedback {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    scroll-margin-top: 100px;
}

/* 背景層 */
.section7-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.section7-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 主要內容容器 */
.section7-container {
    position: relative;
    width: 75vw;
    margin: 0 auto;
    padding: 144px 0 100px 0;
    z-index: 2;
}

/* 標題區域 */
.section7-title-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 50px;
}

.section7-title-main {
    font-family: 'AR FangXinShuH7B5Std', 'Noto Sans TC', sans-serif;
    font-size: 62px;
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: 1.86px;
    text-align: center;
    color: #0b5b7c;
    margin: 0;
}

.section7-title-sub {
    font-family: 'AR FangXinShuH7B5Std', 'Noto Sans TC', sans-serif;
    font-size: 54px;
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: 5.4px;
    text-align: center;
    color: #AFF4FFCF;
    -webkit-text-stroke: 8px #0B5B7CE5;
    text-stroke: 6px #0B5B7CE5;
    paint-order: stroke fill;
    margin: 0;
}

/* Bootstrap Carousel 輪播容器 */
.section7-carousel-inner {
    padding: 0 60px;
    margin-bottom: 60px;
}

/* 卡片行容器 */
.section7-cards-row {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: stretch;
}

/* 回饋卡片 */
.section7-feedback-card {
    flex: 0 0 364px;
    width: 364px;
    height: 450px;
    background: linear-gradient(180deg, rgba(250, 250, 250, 0.667) 0%, rgba(246, 249, 250, 0.56) 100%);
    border: 4px solid #ffffff;
    border-radius: 12px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}

/* 卡片頭部 */
.section7-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.section7-user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    opacity: 0.96;
}

.section7-user-info {
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #0b5b7c;
    letter-spacing: 0.44px;
    margin: 0;
}

/* 卡片內容 */
.section7-card-content {
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.8;
    color: #0b5b7c;
    letter-spacing: 0.32px;
    opacity: 0.95;
    margin: 0;
}

.section7-card-content p {
    margin: 0 0 12px 0;
}

.section7-card-content p:last-child {
    margin-bottom: 0;
}

/* Bootstrap 左右箭頭覆蓋樣式 */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
}

.carousel-control-prev {
    left: 0;
}

.carousel-control-next {
    right: 0;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 0.8;
}

.section7-arrow-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

/* 隱藏 Bootstrap 預設的箭頭圖示 */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    display: none;
}

/* Bootstrap 圓點指示器覆蓋樣式 */
.section7-carousel-indicators {
    position: static;
    margin: 0 0 60px 0;
}

.section7-carousel-indicators button {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    background: rgba(11, 91, 124, 0.3) !important;
    border: none !important;
    margin: 0 5px !important;
    padding: 0 !important;
    transition: all 0.3s ease;
    text-indent: 0 !important;
    opacity: 1 !important;
}

.section7-carousel-indicators button.active {
    background: #ff8c42 !important;
    width: 14px !important;
    height: 14px !important;
}

.section7-carousel-indicators button:hover {
    background: rgba(11, 91, 124, 0.6) !important;
}

/* CTA 按鈕 */
.section7-cta-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.section7-cta-wrapper:hover {
    transform: scale(1.05);
}

.section7-cta-button {
    width: auto;
    max-width: 664px;
    height: auto;
    cursor: pointer;
}

/* 平板尺寸 (768px ~ 1290px) - 顯示 2 張卡片 */
@media (max-width: 1290px) and (min-width: 768px) {
    .section7-container {
        width: 90vw;
        padding: 80px 0 80px 0;
    }

    .section7-title-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .section7-title-main {
        font-size: 48px;
    }

    .section7-title-sub {
        font-size: 40px;
    }

    .section7-carousel-inner {
        padding: 0 70px;
    }

    /* 平板隱藏第3張卡片 (d-none d-xl-block 會自動隱藏) */
}

/* 手機尺寸 (< 768px) - 顯示 1 張卡片 */
@media (max-width: 767px) {
    .section7-container {
        width: 90vw;
        padding: 60px 0 60px 0;
    }

    .section7-title-wrapper {
        flex-direction: column;
        gap: 15px;
    }

    .section7-title-main {
        font-size: 36px;
    }

    .section7-title-sub {
        font-size: 32px;
    }

    .section7-carousel-inner {
        padding: 0 60px;
    }

    .section7-feedback-card {
        flex: 0 0 300px;
        width: 300px;
        height: auto;
        min-height: 350px;
    }

    .section7-user-info {
        font-size: 18px;
    }

    .section7-card-content {
        font-size: 14px;
    }

    .carousel-control-prev {
        left: 5px;
    }

    .carousel-control-next {
        right: 5px;
    }

    .section7-arrow-img {
        width: 40px;
        height: 40px;
    }

    .section7-cta-button {
        max-width: 90%;
    }

    /* 手機隱藏第2、3張卡片 (d-none d-md-block 會自動隱藏) */
}
