/* =========================================
   字體大小系統 (Typography System)
   基準設計稿：1920px
========================================= */
:root {
    /* 1920px 桌機版尺寸 (依你的需求設定) */
    --fs-section-title: 50px;
    /* 區塊大標：我們的教學特色、家長最常問的問題等 */
    --fs-card-title: 30px;
    /* 卡片主標題：預約試聽、弱點分析、FAQ題目等 */
    --fs-card-subtitle: 28px;
    /* 卡片副標題：先檢測，再上課等 */
    --fs-text-main: 25px;
    /* 主要內文：文章內容、特色介紹段落等 */
    --fs-text-faq: 25px;
    /* 次要內文：FAQ 問題回覆等 */
}

/* 筆電/平板橫向尺寸 (1200px 以下)  */
@media (max-width: 1200px) {
    :root {
        --fs-section-title: 36px;
        --fs-card-title: 26px;
        --fs-card-subtitle: 22px;
        --fs-text-main: 20px;
        --fs-text-faq: 18px;
        --fs-teacher-name: 36px;
        --fs-teacher-text: 19px;
    }
}

@media (max-width: 1024px) {
    :root {
        --fs-section-title: 30px;
        --fs-card-title: 22px;
        --fs-card-subtitle: 20px;
        --fs-text-main: 18px;
        --fs-text-faq: 16px;
        --fs-teacher-name: 33px;
        --fs-teacher-text: 18px;
    }
}

/* 平板直向/大手機尺寸 (768px 以下) */
@media (max-width: 768px) {
    :root {
        --fs-section-title: 32px;
        --fs-card-title: 26px;
        --fs-card-subtitle: 24px;
        --fs-text-main: 18px;
        --fs-text-faq: 16px;
    }
}

/* 小手機尺寸 (575px 以下) */
@media (max-width: 575px) {
    :root {
        --fs-section-title: 28px;
        --fs-card-title: 22px;
        --fs-card-subtitle: 20px;
        --fs-text-main: 16px;
        --fs-text-faq: 15px;
    }
}



/*共用設定 */

body {
    /* 1. 覆蓋原廠的字體大小，掛載我們自己設計的變數 */
    font-size: var(--fs-text-main) !important;

    background-color: #ffffff !important;

    color: #333333 !important;

    font-weight: 300 !important;
}

p {
    font-weight: 300 !important;
    font-size: var(--fs-text-main) !important;
    color: #555555 !important;
}

@media (min-width: 320px) and (max-width: 767px) {
    .smt_dec--30 {
        margin-top: -30px;
    }

    .smt_dec--10 {
        margin-top: -10px;
    }

    .smt_dec--40 {
        margin-top: -40px;
    }

    .smt_dec--80 {
        margin-top: -80px;
    }

    .smb_dec--120 {
        margin-bottom: -120px;

    }

    .smb_dec--140 {
        margin-bottom: -140px;

    }

}

/* =========================================
   自訂寬度容器
========================================= */
.container-custom {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding-left: 85px;
    padding-right: 85px;
}

@media (max-width: 1800px) {
    .container-custom {
        max-width: 100%;
    }
}

/* --- 平板與手機版的 Padding 微調 --- */
@media (max-width: 1200px) {

    .container-custom {
        padding-left: 40px;
        padding-right: 40px;
    }
}

@media (max-width: 768px) {

    .container-custom {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* 將所有圖片設置為 4:3 的長寬比 */

.img-uniform {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* header 咨詢區塊 */
.header-top-bar .header-right .info-content {
    display: flex;
    align-items: center;
    margin: 0 60px;
}

@media only screen and (max-width: 932px) {
    .header-top-bar .header-right .info-content {
        margin: 0 -10px;
    }
}

@media only screen and (max-width: 479px) {
    .logo a img {
        max-width: 200px !important;
    }
}

.header-top-bar .header-right .info-content p {
    margin: 0;
    line-height: 1;
    display: flex;
    align-items: center;
}

.header-top-bar .header-right .info-content p a {
    margin-bottom: 0;
    padding: 0 10px;
    font-size: 20px;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--color-maincolor);
}

.header-top-bar .header-right .info-content p a:hover {
    color: var(--color-hovercolor);
}

@media only screen and (max-width: 575px) {
    .header-top-bar .header-right .info-content p {
        padding: 0 8px;
    }
}

.header-top-bar .header-right .info-content p+p::before {
    position: absolute;
    content: "";
    height: 20px;
    width: 2px;
    background: var(--color-border);
    top: 50%;
    transform: translateY(-50%);
    left: -1px;
}

.header-top-bar .header-right .info-content p a {
    transition: 0.3s;
}

.header-top-bar .header-right .info-content p i {
    margin-right: 8px;
    font-size: 16px;
}

/* =========================================
   Header 與桌機導覽列
========================================= */
.site-header {
    background: var(--color-gray-light);
    position: relative;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-light);
}

.desktop-nav ul li {
    margin: 0 20px;
}

.desktop-nav ul li a {
    font-size: 20px;
    padding: 0 5px;
    color: var(--color-bodyest);
    text-decoration: none;
    font-weight: var(--f-regular);
    transition: var(--transition);
    position: relative;
    padding-bottom: 5px;
}

.desktop-nav ul li a:hover {
    color: var(--color-maincolor);

}

.desktop-nav ul li a::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    /* 預設寬度為 0，所以看不見 */
    height: 2px;
    /* 底線的厚度 */
    background-color: var(--color-maincolor);
    /* 底線顏色為橘色 */
    transition: width 0.3s ease-in-out;
    /* 設定寬度展開的平滑動畫 */
}

.desktop-nav ul li a:hover::before {
    width: 100%;
}

.desktop-nav ul li.active a {
    color: var(--color-maincolor, #D95C25) !important;
    font-weight: bold;
}


.desktop-nav ul li a.active {
    color: var(--color-maincolor, #D95C25) !important;
    font-weight: bold;
}

.mobile-only-list li.active a,
.mobile-only-list li a.active {
    color: var(--color-maincolor, #D95C25) !important;
    font-weight: bold;
}

.desktop-nav ul li:not(:last-child)::after {
    content: "|";
    position: absolute;
    margin-left: 15px;
    color: var(--color-gray);
}

.btn-consultation {
    color: var(--color-maincolor);
    font-weight: var(--f-bold);
    text-decoration: none;
    transition: var(--transition);
}

.btn-consultation:hover {
    color: var(--color-hovercolor);
    /* 加上了 hover 變色 */
}

/* =========================================
   漢堡按鈕動畫 (變成叉叉)
========================================= */
.hamburger-btn {
    background: none;
    border: none;
    margin-top: 8px;
    width: 30px;
    height: 20px;
    cursor: pointer;
    position: relative;
    z-index: 1002;
}

.hamburger-btn .bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-maincolor);
    margin-bottom: 4px;
    transition: var(--transition);
}

.hamburger-btn.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background-color: var(--color-white);
}

.hamburger-btn.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
    background-color: var(--color-white);
}

/* =========================================
   全螢幕選單的專屬關閉按鈕 (X)
========================================= */
.menu-close-btn {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1005;
    transition: var(--transition);
}

.menu-close-btn:hover {
    transform: rotate(90deg);
}

.menu-close-btn::before,
.menu-close-btn::after {
    content: '';
    position: absolute;
    top: 14px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-white);
}

.menu-close-btn::before {
    transform: rotate(45deg);
}

.menu-close-btn::after {
    transform: rotate(-45deg);
}

/* =========================================
   漢堡選單 (桌機全螢幕 vs 手機左側滑出)
========================================= */

/* --- 預設：手機版 (左側滑出 Off-canvas) --- */
.main-menu-overlay {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;

    background-color: rgba(242, 85, 0, 0.85) !important;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    z-index: 1001;
    overflow-y: auto;
    transition: left 0.4s ease-in-out;
    padding: 80px 30px 30px;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.2);

    border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.main-menu-overlay.open {
    left: 0;
}

/* 手機版黑色半透明遮罩 */
.menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.menu-backdrop.open {
    opacity: 1;
    visibility: visible;
}

/* 選單內部文字樣式 */
.main-menu-overlay a {
    color: #ffffff !important;
    text-decoration: none;
    display: block;
    padding: 12px 0;
    font-size: var(--font-size-b1);
    font-weight: var(--f-bold);
    letter-spacing: 1px;
    transition: var(--transition);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.main-menu-overlay a:hover {
    color: var(--color-yellow) !important;
    padding-left: 8px;

}

.overlay-nav-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.menu-divider {
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    margin: 20px 0;
}

.overlay-footer-logo {
    margin-top: 40px;
    text-align: center;
}

/* --- 桌機版 (全螢幕覆蓋) --- */
@media (min-width: 992px) {
    .main-menu-overlay {
        background-color: var(--color-maincolor) !important;
        left: 0;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 0;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        box-shadow: none;

    }

    .main-menu-overlay.open {
        opacity: 1;
        visibility: visible;
    }

    .main-menu-overlay a {
        font-size: var(--h4);
        padding: 15px 0;
        color: #fff;
    }

    .main-menu-overlay a:hover {
        padding-left: 0;
    }

    .menu-backdrop {
        display: none !important;
    }

    .hamburger-btn.active {
        position: fixed;
        right: 20px;
        top: 25px;
    }
}

/* =========================================
   首頁輪播圖：左側垂直 Indicator (圓點)
========================================= */
.custom-vertical-carousel {
    position: relative;
}

.custom-vertical-carousel .banner-img {
    height: 600px;
    object-fit: cover;
    object-position: center center;
}

/* 重新定位 Indicators 到左邊垂直居中 */
.custom-vertical-carousel .carousel-indicators {
    position: absolute;
    top: 50%;
    left: 40px;
    right: auto;
    bottom: auto;
    transform: translateY(-50%);
    margin: 0;

    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 15;
}

/* 預設圓點 */
.custom-vertical-carousel .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ffffff;
    opacity: 0.5;
    border: none;
    margin: 0;
    transition: all 0.3s ease;
}

.custom-vertical-carousel .carousel-indicators .active {
    opacity: 1;
    background-color: var(--color-maincolor);
    transform: scale(1.1);
    opacity: 0.5;
}

/* --- 手機版微調 (RWD) --- */
@media (max-width: 1024px) {
    .custom-vertical-carousel .banner-img {
        height: auto;
    }

    .custom-vertical-carousel .carousel-indicators {
        left: 15px;

    }

    .custom-vertical-carousel .carousel-indicators [data-bs-target] {
        width: 6px;
        height: 6px;
    }
}

/* =========================================
   教學特色, Q AND A Section,榮譽榜section
========================================= */
.special-section-title-border h3,
.QA-section-title-border h3,
.honr-section-title-border h3,
.affim-section-title-border h3 {
    color: var(--color-maincolor);
    font-size: var(--fs-section-title) !important;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.special-section-title-border h3::before {
    content: "";
    display: inline-block;
    width: 60px;
    height: 70px;
    background-image: url('../images/special.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 5px;
}

.QA-section-title-border h3::after {
    content: "";
    display: inline-block;
    width: 60px;
    height: 70px;
    background-image: url('../images/qa.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 5px;
}

.honr-section-title-border h3::before {
    content: "";
    display: inline-block;
    width: 60px;
    height: 70px;
    background-image: url('../images/honr-left.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 5px;
}

.honr-section-title-border h3::after {
    content: "";
    display: inline-block;
    width: 60px;
    height: 70px;
    background-image: url('../images/honr-right.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 5px;
}

.affim-section-title-border h3::after {
    content: "";
    display: inline-block;
    width: 60px;
    height: 70px;
    background-image: url('../images/affim.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 5px;
}


/* =========================================
   教學特色 步驟區塊
========================================= */
.teaching-features-section {
    padding: 30px 0;
    background-color: #ffffff;
    overflow: hidden;
}

/* 網格容器 */
.features-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    gap: 20px;
}

.feature-card-title {
    font-size: var(--fs-card-title, 26px);
}

.feature-card-subtitle {
    font-size: var(--fs-card-subtitle, 24px);
}

.feature-card-text {
    font-size: var(--fs-text-main, 18px);
}

/* 單個項目 */
.feature-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 25%;
}

/* 圖片外框 
.feature-img,
.feature-text {
    width: 100%;
    height: auto;
    position: static !important;
    transform: none !important;
    margin: 0 !important;
}*/

.feature-img img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background-color: #f5f5f5;
}

/* 文字區域 */
.feature-text {
    text-align: center;
    padding: 0 10px;

}

.feature-text .title {
    color: var(--color-maincolor);
    font-size: var(--fs-card-title) !important;
    font-weight: 800;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.feature-text .subtitle {
    color: var(--color-maincolor);
    font-size: calc(var(--fs-card-subtitle) * 0.79) !important;
    font-weight: 300;
    margin-bottom: 15px;
}

.feature-text p {
    color: #555555;
    font-size: var(--fs-text-main) !important;
    line-height: 1.6;
    font-weight: 300;
    text-align: left;
    text-align: justify;
}

/* =========================================
   (RWD) 處理
========================================= */

/* 平板尺寸 (轉為 2 排 2 欄) */
@media (max-width: 1024px) {
    .features-row {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: flex-start;
    }

    .feature-item {
        width: calc(50% - 20px);
        flex: none;
        margin-bottom: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .feature-img,
    .feature-text {
        width: 100%;
        height: auto;
        position: static !important;
        transform: none !important;
        margin: 0 !important;
    }

    .feature-img img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }


    .feature-text {
        text-align: center;
        margin-top: 35px !important;
        padding-top: 0;

    }
}



/* 手機尺寸 (轉為 1 排 1 欄) */
@media (max-width: 575px) {
    .feature-item {
        width: 100%;
        margin-bottom: 50px;
    }

    .feature-img {
        width: 100%;
        height: 100%;
    }
}

/* =========================================
   Q and A  步驟區塊
========================================= */
.QA-features-section,
.honr-features-section,
.affim-features-section {
    padding: 30px 0;
    background-color: #ffffff;
    overflow: hidden;
}

/* =========================================
   手風琴樣式
========================================= */
.tmp-accordion-style .card+.card {
    margin-top: -10px !important;
}

.custom-faq-accordion {
    padding: 0 !important;
    margin: 0 !important;
}

.custom-faq-accordion .accordion-item,
.custom-faq-accordion .card {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background-color: transparent !important;
    margin-bottom: 20px !important;
}

.custom-faq-accordion .accordion-header,
.custom-faq-accordion .card-header {
    padding: 0 !important;
    background-color: transparent !important;
    border: none !important;
}

.custom-faq-accordion .accordion-button {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    background-color: transparent !important;
    color: var(--color-maincolor, #D95C25) !important;
    font-size: var(--fs-card-title) !important;
    font-weight: 300 !important;
    padding: 15px 0 !important;
    border: none !important;
    border-bottom: 2px solid var(--color-maincolor, #D95C25) !important;
    box-shadow: none !important;
}

.custom-faq-accordion .accordion-button::after {
    display: none !important;
    content: none !important;
    background: transparent !important;
}


.custom-faq-accordion .accordion-button::before {
    content: "" !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
    width: 20px !important;
    height: 20px !important;
    margin-right: 12px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D95C25' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='7 6 12 11 17 6'%3E%3C/polyline%3E%3Cpolyline points='7 13 12 18 17 13'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    transition: transform 0.3s ease !important;
}

/* 展開時，左側雙箭頭反轉朝上 */
.custom-faq-accordion .accordion-button:not(.collapsed)::before {
    transform: rotate(180deg) !important;
}

/* 展開後的灰色區塊 */
.custom-faq-accordion .accordion-collapse {
    border: none !important;
}

.custom-faq-accordion .accordion-body,
.custom-faq-accordion .card-body {
    background-color: #F5F5F5 !important;
    color: #333333 !important;
    font-size: var(--fs-text-faq) !important;
    line-height: 1.8 !important;
    /* 左側縮排對齊上方的標題文字 (20px箭頭 + 12px間距 = 32px) */
    padding: 20px 0px 20px 0px !important;
    border: none !important;
    margin: 0 !important;
}

/* =========================================
   榮譽榜/榜單 輪播圖樣式
========================================= */


/* 圖片連結外框*/
.honor-link {
    display: block;
    text-align: center;
    cursor: zoom-in;
}

/*  圖片樣式設定  */
.honor-img {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    border: 1px solid #eaeaea;
    transition: transform 0.3s ease;
    width: 100%;
    /*max-width: 300px;*/
    margin: 0 auto;

}

.honor-img:hover {
    transform: translateY(-5px);
}

/* =========================================
   左右箭頭 (橘色實心三角形)
========================================= */

.swiper-container-wrapper {
    position: relative;
    padding: 10px 50px;
    /* 電腦版左右各留 50px 給箭頭 */
}

/* 箭頭按鈕 */
.honorSwiper {
    padding: 0 !important;
}

/* 隱藏 Swiper 原本醜醜的藍色箭頭圖示 */
.swiper-button-next::after,
.swiper-button-prev::after {
    display: none !important;
}

.custom-swiper-arrow {
    width: 40px;
    height: 40px;
    position: absolute;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin-top: 0 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.left-arrow {
    left: 0px !important;
}

.right-arrow {
    right: 0px !important;
}

.low-left-arrow,
.low-right-arrow {
    top: auto !important;
    /* 解除上方固定 */
    transform: none !important;
    /* 解除 Y 軸置中偏移 */
    bottom: -50px !important;
}

.low-left-arrow {
    left: -110px !important;
}

.low-right-arrow {
    right: 0px !important;
}

.triangle-left {
    display: inline-block;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid var(--color-maincolor, #D95C25);
}

.triangle-right {
    display: inline-block;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid var(--color-maincolor, #D95C25);
}

/* =========================================
   Feature 手機版專屬箭頭 (橘色實心三角形)
========================================= */


/* 隱藏 Swiper 原本的藍色箭頭 */
.feature-swiper-arrow::after {
    display: none !important;
}

/* 箭頭外框基礎設定 */
.feature-swiper-arrow {
    width: 40px;
    height: 40px;
    position: absolute;
    top: 33%;
    transform: translateY(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
    cursor: pointer;

}

@media(max-width: 768px) {

    /* 手機版左右貼齊邊緣 */
    .feature-arrow-left {
        left: 10px;
    }

    .feature-arrow-right {
        right: 10px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {

    .feature-swiper-arrow {
        top: 25%;
    }

    .feature-arrow-left {
        left: -10px;
        /* 🌟 調整成 0，或是 5px，讓它回到防護罩裡 */
    }

    .feature-arrow-right {
        right: -10px;
        /* 🌟 調整成 0，或是 5px */
    }

}



/*圓形分頁樣式*/
.swiper-pagination-bullet-active {
    background-color: var(--color-maincolor, #D95C25) !important;
}

/* 手機版微調 */
@media (max-width: 768px) {


    .swiper-container-wrapper {
        padding: 10px 10px;
    }

    .honorSwiper,
    .affimSwiper,
    .teacherSwiper,
    .classroomSwiper,
    .joinusSwiper {
        padding-bottom: 40px !important;
    }

    .swiper-pagination {
        bottom: 0 !important;
    }

    .triangle-left {
        border-top: 10px solid transparent;
        border-bottom: 10px solid transparent;
        border-right: 14px solid var(--color-maincolor, #D95C25);
        margin-top: -30px;
        margin-left: -45px;

    }

    .triangle-right {
        border-top: 10px solid transparent;
        border-bottom: 10px solid transparent;
        border-left: 14px solid var(--color-maincolor, #D95C25);
        margin-top: -30px;
        margin-right: -45px;
    }
}

@media (max-width: 430px) {

    .swiper-container-wrapper {
        padding: 10px 0px;
    }

    .honor-img {
        max-width: 100% !important;
    }

    .left-arrow {
        left: 5px !important;
    }

    .right-arrow {
        right: 5px !important;
    }

    .custom-swiper-arrow {
        display: none !important;
    }
}



/* =========================================
   頁尾 Footer 樣式
========================================= */

/* --- 上半部 --- */
.custom-footer .footer-main {
    background-color: var(--color-maincolor, #D95C25);
    padding: 30px 0;
    color: #ffffff;
}

/* Logo*/
.custom-footer .footer-logo {
    max-width: 280px;
    height: auto;
}

/* 簡介文字 */
.custom-footer .footer-desc {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.8;
    letter-spacing: 0.5px;
    color: #ffffff;
}

/* 聯絡資訊列表 */
.custom-footer .footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-footer .footer-contact-list li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 16px;
    color: #fff;
    letter-spacing: 0.5px;
}

.custom-footer .footer-contact-list li:last-child {
    margin-bottom: 0;
}

/* 聯絡資訊的白色圓形 Icon 背景 */
.custom-footer .icon-circle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 28px;
    height: 28px;
    background-color: #ffffff;
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
    color: var(--color-maincolor, #D95C25);
    font-size: 16px;
}

/* --- 下半部 --- */
.custom-footer .footer-bottom {
    background-color: #666666;
    padding: 10px 0;
    text-align: center;
}

.custom-footer .footer-bottom p {
    color: #ffffff !important;
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 0 !important;

}

/* =========================================
   (RWD) 處理
========================================= */

/* 電腦版  */
@media (min-width: 992px) {
    .custom-footer .footer-desc {
        border-left: 1px solid rgba(255, 255, 255, 0.8);
        padding-left: 20px;
        margin-left: 10px;
        font-size: 14px;
    }
}

/* 平板與手機版 */
@media (max-width: 991px) {
    .custom-footer .footer-main {
        padding: 40px 0 30px 0;
        text-align: center;
    }

    .custom-footer .footer-logo {
        max-width: 220px;
    }

    .custom-footer .footer-desc {
        padding: 0 15px;
    }

    .custom-footer .footer-contact-list li {
        justify-content: center;
    }
}

/* =========================================
   側邊浮動選單 (Side Floating Bar)
========================================= */
.side-floating-bar {
    position: fixed;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* 共用按鈕基礎樣式 */
.side-floating-bar .float-btn {
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* 滑鼠懸停時微往上浮起 */
.side-floating-bar .float-btn:hover {
    transform: translateY(-5px);
    filter: brightness(1.1);
}

/* --- 圓形 Icon 按鈕 (LINE & FB) --- */
.side-floating-bar .icon-btn i {
    font-size: 38px;
}

/*.side-floating-bar .icon-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: #ffffff !important;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);

}


.side-floating-bar .icon-btn i {
    display: flex;
    justify-content: center;
    align-items: center;
}

.side-floating-bar .line-btn {
    background-color: #00C300;
}

.side-floating-bar .fb-btn {
    background-color: #1877F2;
}*/

/* --- 橘色預約試聽按鈕 --- */
.side-floating-bar .booking-btn {
    background-color: var(--color-maincolor, #D95C25);
    color: #ffffff !important;
    width: 40px;
    padding: 15px 0;

    border-radius: 10px;
    /* 圓角矩形 */
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    line-height: 1.2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    display: block;
}

/* --- 回到頂部按鈕 --- */
.side-floating-bar .go-top-btn {
    flex-direction: column;
    margin-top: 5px;
}

.side-floating-bar .go-top-btn img {
    width: 60px;
    height: auto;
    display: block;
}

.side-floating-bar .go-top-btn span {
    color: var(--color-maincolor, #D95C25);
    font-weight: 800;
    font-size: 15px;
    margin-top: 5px;
    font-family: Arial, sans-serif;
}

/* =========================================
   手機版 
========================================= */
@media (max-width: 768px) {
    .side-floating-bar {
        right: -5px;
        bottom: 15px;
        gap: 10px;
    }

    .side-floating-bar .icon-btn {
        width: 42px;
        height: 42px;
        font-size: 22px;
    }

    .side-floating-bar .booking-btn {
        width: 42px;
        font-size: 16px;
        padding: 12px 0;
        border-radius: 8px;
    }

    .side-floating-bar .go-top-btn img {
        width: 48px;
    }

    .side-floating-bar .go-top-btn span {
        font-size: 13px;
        margin-top: 3px;
    }
}

html {
    scroll-behavior: smooth;
}

/* =========================================
   分校資訊
========================================= */
.branch-card {
    /* 將背景改為白色，或者直接刪除 background 屬性 */
    background: #ffffff;
    overflow: hidden;
    height: 100%;

    /* 建議加上 flex，確保卡片高度一致時，排版不會跑掉 */
    display: flex;
    flex-direction: column;
}

.branchSwiper .swiper-wrapper {
    background-color: #ffffff !important;
    /* 暫時設為超亮紅色 */
}

.branchSwiper {
    /* 確保輪播圖區塊的底色是白色 */
    background: #ffffff;
    width: 100%;
}

/* 2. 圖片放大 2%，強制切除邊緣可能存在的黑邊/灰邊 */
.branch-img {
    width: 100%;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* 資訊區塊留白 */
.branch-info {
    background: #f3f3f3;

    flex-grow: 1;

    padding: 20px;
}

/* 分校名稱 */
.branch-name {
    color: var(--color-maincolor, #D95C25);
    font-weight: 700;
    font-size: 25px;
}

/* 分校名稱底線 */
.branch-name {
    text-decoration: underline;
    text-underline-offset: 8px;
    text-decoration-thickness: 2px;
}

/* 社群按鈕樣式 */
.branch-social .social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;

    transition: 0.3s;
}



/* 地址與電話文字 */
.branch-contact p {
    font-size: 20px;
    font-weight: 500;
    color: #555;
    line-height: 1.5;
}

.contact-icon .pin {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 27px;
    height: 27px;
    margin-top: 5px;

}

.contact-icon .phone {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 18px;
    height: 18px;
    margin-top: 0px;


}

/* 分校資訊內頁設定 */
.title-underline {
    border-bottom: 3px solid #f25502;
    padding-bottom: 8px;
    display: inline-block;
}

.bg-brand-orange {
    background-color: var(--color-maincolor);
}

.text-brand-orange {
    color: var(--color-maincolor);
}


.form-label-custom {
    color: #005b8f;
    font-weight: bold;
    text-align: right;
}

@media (max-width: 768px) {
    .form-label-custom {
        text-align: left;
    }
}

/* 分校線上試聽表格設定 */
.reserve-form-card {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    padding: 40px;
}

.form-label-custom {
    color: #003366;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 1.8rem;
    text-align: left;
}

.required-star {
    color: #f25502;
    margin-right: 4px;
}

.form-control-custom {
    border-radius: 8px;
    border: 1px solid #dce1e5;
    padding: 14px 18px;
    font-size: 1.8rem;
    background-color: #fcfcfc;
    transition: all 0.3s ease;
}

.form-control-custom:focus {
    background-color: #ffffff;
    border-color: #f25502;
    box-shadow: 0 0 0 4px rgba(242, 85, 2, 0.1);
    outline: none;
}

.form-control-custom::placeholder {
    color: #adb5bd;
    font-size: 1.4rem;
}

.btn-reserve-submit {
    background-color: #003366;
    color: #ffffff;
    border-radius: 8px;
    font-size: 1.8rem;
    letter-spacing: 4px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
}

.btn-reserve-submit:hover {
    background-color: #f25502;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(242, 85, 2, 0.25);
}

.input-submitting {
    background-color: #e9ecef !important;
    opacity: 0.7;
    pointer-events: none;

}

/* 按鈕處理中的狀態 */
.btn-loading {
    opacity: 0.8;
    cursor: not-allowed !important;
}

/* =========================================
   Swiper 箭頭與點點
========================================= */
.branchSwiper .branch-prev,
.branchSwiper .branch-next {

    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    background-color: rgba(0, 0, 0, 0.1) !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;


    /* 設定箭頭的顏色與大小 */
    color: #ffffff !important;
    font-size: 16px !important;

    transition: all 0.3s ease !important;
}

.branchSwiper .branch-prev:hover,
.branchSwiper .branch-next:hover {

    background-color: rgba(0, 0, 0, 0.7) !important;
}

/* 3. 設定左右邊距，不要太貼邊 */
.branchSwiper .branch-prev {
    left: 8px !important;
}

.branchSwiper .branch-next {
    right: 8px !important;
}

/* =========================================
   隱藏 Swiper 內建的預設箭頭
========================================= */
.branchSwiper .branch-prev::after,
.branchSwiper .branch-next::after {
    display: none !important;
    content: '' !important;
}

/* =========================================
   預約表單客製化樣式
========================================= */
.category-menu .category-item a.anchor-link,
.category-menu .category-item a.menu-link {
    color: #555555;
    /* 預設深灰色 */
    font-size: 1.5rem;
    font-weight: 300;
    text-decoration: none;
    padding: 5px 10px;
    position: relative;
    transition: color 0.3s ease;
}

.category-menu .category-item a.anchor-link:hover,
.category-menu .category-item a.menu-link:hover {
    color: var(--color-maincolor, #D95C25);
}

.category-menu .category-item.active a.anchor-link,
.category-menu .category-item.active a.menu-link {
    color: var(--color-maincolor, #D95C25);
    font-weight: bold;
}



.trial-form .col-form-label {
    font-size: 20px !important;
    line-height: 1.5;
}

.trial-form .col-form-label span.text-muted {
    font-size: 18px !important;
}

.trial-form table tr td,
.trial-form table tr th {
    font-size: 20px;
}

.trial-form .form-control,
.trial-form .form-select {
    font-size: 18px !important;
    min-height: 45px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    box-shadow: none;
}

.trial-form .form-control:focus,
.trial-form .form-select:focus {
    border-color: var(--color-maincolor, #D95C25);
    box-shadow: 0 0 0 0.25rem rgba(217, 92, 37, 0.25);
}

.custom-theme-control {
    opacity: 1 !important;
    position: relative !important;
    width: 2rem !important;
    height: 2rem !important;

    transform: scale(1.6) !important;
    transform-origin: center center;
    -webkit-appearance: auto !important;
    appearance: auto !important;
    accent-color: var(--color-maincolor, #D95C25) !important;

    width: 1.3rem !important;
    height: 1.3rem !important;
    cursor: pointer;
    margin: 0 !important;
    vertical-align: middle;
}

.custom-theme-control~label,
.custom-theme-control+label {
    padding-left: 0 !important;
    margin-left: 5px !important;
    line-height: normal !important;
}

.custom-theme-control~label::before,
.custom-theme-control~label::after,
.custom-theme-control+label::before,
.custom-theme-control+label::after {
    display: none !important;
    content: none !important;
    background: none !important;
}

.time-table td {
    vertical-align: middle !important;
    height: 50px;
}

.time-table {
    border: 1px solid #dee2e6 !important;
    background-color: #ffffff;
}

.time-table th,
.time-table td {
    border: 1px solid #dee2e6 !important;
    text-align: center;
}

.time-table thead th,
.time-table .bg-light-gray {
    background-color: #f8f9fa !important;
    color: #495057;
}


.btn-custom-submit {
    background-color: var(--color-maincolor, #D95C25);
    color: white;
    font-size: 2rem;
    height: 45px;
    border: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-custom-submit:hover {
    background-color: #C24A1A;
    color: white;
}

/* =========================================
   影音專區：YouTube 嵌入卡片與 Read More 按鈕
========================================= */

.video-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.btn-outline-maincolor {
    color: var(--color-maincolor, #D95C25);
    font-size: 2rem;
    border: 2px solid var(--color-maincolor, #D95C25);
    background-color: transparent;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-outline-maincolor:hover {
    color: #fff;
    background-color: var(--color-maincolor, #D95C25);
}

/* =========================================
   資料下載區塊：練習題庫 & 學習輔助
========================================= */

.resource-section .section-title {
    color: var(--color-maincolor, #D95C25);
    font-size: var(--fs-section-title) !important;
    /* ★ 區塊標題 (50px) */
    letter-spacing: 1px;
}

.resource-section .custom-divider {
    border: none;
    border-top: 1px solid var(--color-maincolor, #D95C25);
    opacity: 0.8;
    margin: 0 auto;
}

/* ★ 題目清單文字 */
.resource-section .aid-title,
.resource-section .list-item-link .text-dark {
    font-size: var(--fs-text-main) !important;
    line-height: 1.5 !important;
}

/* ★ Icon 圖示 */
.resource-section .list-icon {
    font-size: calc(var(--fs-text-main) * 0.8) !important;
    margin-top: 6px !important;
    color: var(--color-maincolor);
}

.resource-section .aid-title {
    color: var(--color-maincolor, #D95C25);
}

.resource-section .list-item-link span {
    transition: color 0.3s ease;
}

.resource-section .list-item-link:hover span.text-dark {
    color: var(--color-maincolor, #D95C25) !important;
}

/* Read More 按鈕 */
.btn-outline-maincolor {
    color: var(--color-maincolor, #D95C25);
    border: 2px solid var(--color-maincolor, #D95C25);
    background-color: transparent;
    border-radius: 30px;
    font-size: calc(var(--fs-text-main) * 0.8) !important;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-outline-maincolor:hover {
    color: #fff;
    background-color: var(--color-maincolor, #D95C25);
}

/* =========================================
   客製化無框線分頁樣式 (Text-only Pagination)
========================================= */


.custom-pagination .page-item .page-link {
    border: none !important;
    background-color: transparent !important;
    color: #555;
    font-size: 2rem;
    padding: 0.5rem 0.6rem;
    transition: color 0.3s ease;
}

.custom-pagination .page-item .page-link:hover {
    color: var(--color-maincolor, #D95C25) !important;
    background-color: transparent !important;
}

.custom-pagination .page-item.active .page-link {
    color: var(--color-maincolor, #D95C25) !important;
    font-weight: bold;
    background-color: transparent !important;
}

.custom-pagination .page-link:focus {
    box-shadow: none !important;
}

/* =========================================
   內容編輯器   清除浮動，限制圖片的最大寬度
========================================= */
/* --- 桌機版基礎保護 --- */
/* =========================================
   內容編輯器 (.page-editor-content) RWD 整合防護傘
========================================= */
.page-editor-content p {
    font-size: var(--fs-text-main);
    margin-bottom: 15px;
}

/* --- 1. 桌機版基礎保護與表格設定 --- */
.page-editor-content {
    display: flow-root;
    width: 100%;
    overflow-wrap: break-word;
}

.page-editor-content table {
    width: 100% !important;
    border-collapse: collapse;
}

.page-editor-content img {
    max-width: 100% !important;
    height: auto !important;
}

/* --- 2. 字體大小自動平滑縮放 (Fluid Typography) --- */
/* 取代傳統斷點，直接讓標題與內文隨螢幕寬度伸縮 */

.page-editor-content span[style*="font-size: 48px"] {
    display: inline-block !important;
    /* 確保行高能正常運作 */
    font-size: clamp(28px, 5vw, 48px) !important;
    /* 手機最小28px，最大48px */
    line-height: 1.4 !important;
    margin-bottom: 10px !important;
}

.page-editor-content span[style*="font-size: 20px"] {
    display: inline-block !important;
    font-size: clamp(16px, 2.5vw, 20px) !important;
    /* 手機最小16px，最大20px */
    line-height: 1.6 !important;
}

.page-editor-content p {
    margin-bottom: 15px !important;
}


/* --- 3. 手機版 RWD (小於 768px 時觸發排版重組) --- */
@media (max-width: 768px) {

    /* 處理圖片：強制解除浮動、滿版、清除內距 */
    .page-editor-content img {
        float: none !important;
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 0 20px 0 !important;
    }

    /* 處理表格：強制打碎表格結構，變成上下堆疊 (圖上文下) */
    .page-editor-content table,
    .page-editor-content tbody,
    .page-editor-content tr,
    .page-editor-content td {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    .page-editor-content td {
        padding: 0 !important;
        margin-bottom: 20px !important;
        /* 讓上下儲存格保持距離 */
    }

    .page-editor-content td img {
        width: 100% !important;
        height: auto !important;
        display: block !important;
        margin: 0 auto !important;
    }
}

/* learn和paractice的共用樣式 */
.nav-link-hover {
    color: #212529;
    transition: color 0.3s ease;
}

.nav-link-hover:hover {
    color: var(--color-maincolor) !important;
}

.post-nav-wrapper:hover .small,
.post-nav-wrapper:hover .nav-link-hover {
    color: var(--color-maincolor) !important;
}