/* custom_override.css - with inline <style> overrides */
/* 響應式容器設定 */
.container {
    width: 100% !important;
    max-width: 1140px !important;
    margin: 0 auto;
    padding: 0 1rem;
    word-break: normal !important;
    overflow-wrap: break-word;
}
/* 修正左右空間與主體置中 */
.main_left_margin {
    margin: 0 auto !important;
    max-width: 1140px;
    font-size: 18px;
}
/* 產品內文樣式調整 */
.product_text {
    font-size: 18px !important;
    line-height: 1.8;
    margin-bottom: 1rem;
}
/* 標題美化 */
.product_title {
    font-size: 26px;
    font-weight: bold;
    color: #145c8c;
    margin-top: 1rem;
}
/* 圖片美化 */
.product_img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}
/* 讓圖片對齊 modern 方法 */
img.social-icon {
    float: right;
    margin-left: 10px;
}
/* 特定區塊 hover 動畫強化 */
#product-why a {
    transition: transform 0.15s ease-in-out;
}
#product-why a:hover {
    transform: scale(1.05);
}
#product-why .product_text h4 {
    font-size: revert;
    font-weight: bold;
}
#product-why .product_text p {
    font-size: 18px;
}
/* 行動裝置補強 */
.container {
    padding: 0 0.5rem;
}
.product_text {
    font-size: 16px;
}
.product_title {
    font-size: 22px;
    text-align: center;
}

/* 額外修正強制覆蓋 */
.container {
    max-width: 1140px !important;
    margin: 0 auto;
    padding: 0 1rem;
}
.product_title {
    color: #145c8c !important;
    font-size: 26px;
    font-weight: bold;
    margin-top: 2rem;
}
.product_text {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: #333;
}
.product_img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2rem auto;
}
/* Added by assistant to support main_title display */
img[alt=""] {
    vertical-align: middle;
}
.main_title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #1a3e69;
}
.main_title {
    font-size: 1.4rem;
}
/* 主標題框線樣式 */
.main_title_block {
    display: inline-flex;
    align-items: center;
    background-color: #eef4f8; /* 淡藍底提高可視性 */
    border: 2px solid #1a3e69; /* 藍色邊框 */
    border-radius: 8px;
    padding: 6px 16px;
    font-weight: bold;
    font-size: 1.6rem;
    color: #1a3e69;
    gap: 10px;
}
.main_title_block img {
    width: 24px;
    height: auto;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    background-color: #f5f9f8;
    padding: 16px 24px;
    border-left: 6px solid #00704a;
    border-radius: 6px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.section-header .main-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #1a3e69;
    margin: 0;
}
.section-header .social-icons a {
    margin-left: 12px;
    display: inline-block;
}
/* 外層容器 - YouTube Lazy Embed */
.lazy-youtube-hd {
    position: relative;
    width: 100%;
    max-width: 100%; /* 自動填滿父元素，並在 container 中對齊 */
    padding-top: 56.25%; /* 16:9 比例 */
    background-color: #000;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
}
/* 播放按鈕樣式 - 白色播放圖示 */
.lazy-youtube-hd .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 64px;
    height: 44px;
    transform: translate(-50%, -50%);
    background: url("https://img.icons8.com/ios-filled/100/ffffff/play--v1.png")
        no-repeat center;
    background-size: contain;
    z-index: 10;
}
/* 可選：黑底半透明播放按鈕背景容器 */
.play-button-black {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
}
.product_title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
}
.video {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding-top: 20px;
}
.product_title {
    background-color: #94bb35;
    border-radius: 4px;
}
.product_text {
    font-size: 1rem;
    text-decoration: none;
}
.product_title a:hover {
    text-decoration: underline;
}
.container .product-title {
    background-color: #94bb35;
    border-radius: 6px;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-header {
    background-color: #9bc43c;
    display: flex;
    align-items: center; /* 垂直置中 */
    justify-content: space-between;
    padding: 10px 20px; /* 減少 padding 縮短高度 */
    border-radius: 6px;
    font-weight: bold;
    font-size: 1rem;
    line-height: 1.4;
    gap: 12px;
    width: 100%; /* 確保它佔滿父元素 */
    max-width: 100%; /* 移除限制 */
}

.product-header .title {
    color: #fff;
}

.product-header .highlight {
    color: #fffd70;
}

.product-header .download-link {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.product-header .download-link img {
    width: 20px;
    height: 20px;
}

.product_text {
    font-size: 0.95rem;
}

/* Base Font */
body {
    font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #222;
}
/* Product Section Header */
.product-header {
    background-color: #94bb35;
    color: white;
    border-radius: 6px;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.4rem;
    line-height: 1.4;
    margin-top: 20px;
    max-width: 100%;
}
/* Product Description */
.product-title-group {
    flex: 1;
    min-width: 250px;
}

.product-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
}
.product_text {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.8;
    padding-top: 10px;
}
.product-subtitle {
    font-size: 1rem;
    color: #f7f7f7;
    margin-top: 6px;
}
/* Lazy YouTube Embed */
.lazy-youtube-hd {
    position: relative;
    width: 100%;
    max-width: 560px;
    padding-top: 56.25%;
    background-color: #000;
    border-radius: 6px;
    overflow: hidden;
    margin: 0 auto;
    cursor: pointer;
}
.lazy-youtube-hd .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 44px;
    background: url("https://img.icons8.com/ios-filled/100/ffffff/play--v1.png")
        no-repeat center;
    background-size: contain;
    cursor: pointer;
}

.download-dm-button {
    margin-top: 16px;
    margin-bottom: 12px;
    text-align: center;
}

.download-dm-button a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #9bc43c;
    color: #fff;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.download-dm-button a:hover {
    background-color: #7da931;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.download-dm-button a img {
    width: 20px;
    height: 20px;
}

/* Case */
.case-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 2rem;
}
.case-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    flex: 1 1 30%;
    display: flex;
    flex-direction: column;
}
.case-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
}
.case-content {
    padding: 1rem;
}
.case-content .badge {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}
.case-content h3 {
    font-size: 1.25rem;
    margin: 0.5rem 0;
}
.case-content p {
    font-size: 0.95rem;
    color: #444;
}
.case-content .btn {
    margin-top: 1rem;
    font-size: 0.875rem;
}

/* multiple frame AI稽核之旅*/

:root {
    --active-background: #fafafa;
}
.tabe .row {
    margin-bottom: 5%;
}
/* 樣式設定 */
.tabe .nav-pills .nav-link.active {
    background-color: var(--active-background);
    color: #025f33;
    border-radius: 8px 8px 0 0;
    border: 1px solid var(--active-background);
    border-bottom: none;
}
.tabe .nav-pills .nav-link {
    color: #025f33;
}
.tabe .journey-card {
    border: 1px solid var(--active-background);
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 20px;
    overflow: hidden;
}
.tabe .journey-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.tabe .journey-card .card-header {
    background-color: #025f33;
    color: white;
    font-weight: bold;
}
.tabe .journey-card .card-body {
    padding: 15px;
}
.tabe .youtube-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 的比率 */
    margin-bottom: 5%;
}
.tabe .youtube-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.tabe .journey-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
}
.tabe .journey-item:last-child {
    border-bottom: none;
}
.tabe .journey-item a {
    color: #333;
    text-decoration: none;
    display: block;
}
.tabe .journey-item a:hover {
    color: #025f33;
}
.tabe .list-icon {
    margin-right: 10px;
    color: #025f33;
}
.tabe .category-title {
    background-color: var(--active-background);
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-weight: bold;
    color: #025f33;
}
.tabe .list-group-item.active {
    background-color: #025f33;
    border-color: #025f33;
}
.tabe #expandable-list .list-group-item {
    cursor: pointer;
    /* background-color: var(--active-background); */
}
.tabe .category-collapse {
    padding-left: 20px;
}
.tabe .category-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #025f33;
}
.tabe .tab-nav {
    margin-bottom: 0;
    border-bottom: 0;
}
.tabe .tab-content {
    background-color: var(--active-background);
    border: 0px solid var(--active-background);
    border-radius: 0 0px 8px 8px;
    padding: 20px;
}
.tabe .tab-pane {
    background-color: var(--active-background);
}
.tabe .nav-pills {
    border-bottom: 0;
}
.tabe #expandable-list {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
}
.tabe .fa-chevron-up:before {
    content: "\f077" !important;
}
.tabe .youtube-icon {
    width: 30px;
}
/* FAQ樣式 */
.tabe .faq-item {
    margin-bottom: 5px;
}
.tabe .faq-question {
    cursor: pointer;
    padding: 5px;
    font-weight: 500;
}
.tabe .faq-question:hover {
    color: #025f33;
}
.tabe .faq-answer {
    padding-left: 30px;
    margin-top: 5px;
    display: none; /* 默認隱藏 */
}
.tabe .faq-toggle {
    cursor: pointer;
}
.tabe .faq-answer .card {
    border-left: 3px solid #025f33;
}

/* multiple box 學習資源*/
.feature-box {
    background-color: #eef8f2;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Youtube */
.lazy-youtube-hd {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lazy-youtube-hd:hover {
    transform: scale(1.02);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 68px;
    height: 48px;
    background: url("https://img.icons8.com/ios-filled/100/ffffff/play-button-circled.png")
        no-repeat center;
    background-size: contain;
    transform: translate(-50%, -50%);
    opacity: 0.9;
}

.section-title {
    font-weight: 600;
    font-size: 1.75rem;
    color: #333;
}
/* 全頁橫福 */
.carousel-container {
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
}
.carousel img {
    object-fit: cover;
    height: auto; /* 可改成固定高度如 500px 依設計需求 */
}

.carousel,
.carousel-inner,
.carousel-item {
    width: 100vw !important;
    margin: 0 auto;
    padding: 0;
}

.carousel-item img {
    object-fit: cover;
    width: 100vw;
}

.testimonial {
    background: #f8f9fb;
    border-left: 4px solid #338eda;
    padding: 16px 20px;
    margin: 20px 0;
    font-style: italic;
    color: #444;
}
.testimonial span {
    display: block;
    margin-top: 8px;
    font-weight: bold;
    color: #222;
}
