::-webkit-scrollbar:horizontal {
    height: 4px !important;
}

h1, h2, h3, h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
}

h1, h2, h3, p, h1, h2, h3, p, h4, h5, h6, hr {
    margin: 0;
}

hr {
    height: 0;
    color: #C8CBD0;
    border-top-width: 1px;
    margin: 10px 30px 10px 30px;
}

.bg-white {
    background-color: #FFFFFF;
}

section {
    padding-top: 20px;
    padding-bottom: 20px;
}

.allDiv {
    width: 100%;
    text-align: center;
    overflow: hidden;
}

.frame {
    width: 100%;
}

.frameDiv {
    width: 100%;
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 30px;
    padding-bottom: 30px;

    display: flex;
    flex-direction: column;
    /*gap: 30px;*/
}

.frameDiv.noTop {
    padding-top: 0;
}

.caption {
    font-style: normal;
    font-weight: bold;
    font-size: 36px !important;
    line-height: 53px;
    color: #3AAFA9;
    text-align: center;
    letter-spacing: 4%;
}

.captionBr {
    display: none;
}

.smallCaption {
    font-style: normal;
    font-weight: bold;
    font-size: 28px !important;
    line-height: 150%;
    color: #2B7A77;
    letter-spacing: 4%;
    text-align: center;
}

.contentDiv {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 30px;
    width: 100%;
    flex: none;
    flex-grow: 0;
    position: relative;
}

.contentDiv span,.contentDoc, .imageContent {
    font-style: normal;
    font-weight: normal;
    font-size: 20px;
    line-height: 150%;
    text-align: justify;
    letter-spacing: 0.4px;
    color: #40474A;
}
.captionContent {
    width: 100%;
    font-style: normal;
    font-weight: normal;
    font-size: 20px;
    line-height: 150%;

    text-align: justify;
    letter-spacing: 0.02em;

    color: #40474A;

    flex: none;
    flex-grow: 0;
}

#contractorDiv {
    justify-content: center;
    align-items: center;
}

#contractorDiv a:link {
    text-decoration: none;
    width: 453px;
    max-width: calc(100% - 30px);
    height: 50px;
}

#contractorMore {
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 30px;
    background-color: #3AAFA9;
    cursor: pointer;
}
#contractorMore span {
    color: white;
    text-align: center;
    font-size: 20px;
    font-style: normal;
    font-weight: bold;
    line-height: 150%;
}

#otherFrame {
    background-color: #F9F7F4;
}

.tableArrow {
    display: none;
    cursor: pointer;
}

.box-frame {
    width: 1080px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px auto;
}

.box {
    width: 200px;
    height: 82px;
    background-color: #F9F7F4;
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    box-sizing: border-box;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    color: #2B7A77;
}

.checkmark {
    font-size: 20px;
    margin-left: 10px;
    margin-right: 8px;
    margin-bottom: 22px;
    flex-shrink: 0;
    width: 18px;
    height: 14px;
    background: url("../../../img/menu/6/6-7/icon-tick.svg") no-repeat; /* 綠色勾勾 */
    background-size: cover;
    background-repeat: no-repeat;
}

.text {
    font-size: 16px;
    line-height: 1.3;
    text-align: left;
}

.sub-title {
    /*font-family: 'Roboto';*/
    font-style: normal;
    font-weight: 700;
    font-size: 28px;
    line-height: 42px;
    text-align: center;
    letter-spacing: 0.04em;
    color: #2B7A77;
}

.pic-desc {
    width: auto;
    height: 50px;
    padding-left: 20px;
    padding-right: 20px;
    border-radius: 10px;
    background-color: #FFFFFF;
    color: #3AAFA9;
    text-align: center;
    line-height: 50px;
    font-size: 20px;
    float: right;
    margin-top: -20px;
    position: relative;
}

.section3-title {
    /*font-family: 'Roboto';*/
    font-style: normal;
    font-weight: 700;
    font-size: 28px;
    line-height: 150%;
    text-align: center;
    letter-spacing: 0.04em;
    color: #2B7A77;
}

.legendView {
    display: inline-block;
    width: 350px;
    /*height: 30px;*/
    line-height: 30px;
    padding: 8px 10px 8px 10px;
    border-radius: 60px;
    /*box-shadow: 0 2px 4px 0 rgb(0 0 0 / 50%);*/
    border: solid 1px #ffffff;
    color: black;
    font-size: 15px;
    text-align: center;
    margin: 20px 0px 20px 0px;
    background: white;
}

.legendContent {
    display: inline-block;
    font-size: 16px;
    height: 25px;
    line-height: 25px;
}

input[type="checkbox"] {
    -webkit-appearance: none;
    vertical-align: middle;
    margin-top:0;
    width: 25px;
    height: 25px;
    background: #fff;
    border: #fff solid 1px;
    border-radius: 3px;
    /*box-shadow: inset 0 1px 3px 0 rgba(0, 0, 0, 0.5);*/
    cursor: pointer;
}

input.employeeCheckBox[type="checkbox"] {
    -webkit-appearance: none;
    vertical-align: middle;
    margin-top:0;
    width: 25px;
    height: 25px;
    background: #fff;
    border: #4AC8C1 solid 1px;
    border-radius: 3px;
    /*box-shadow: inset 0 1px 3px 0 rgba(0, 0, 0, 0.5);*/
    cursor: pointer;
}

input.adoptCheckBox[type="checkbox"] {
    -webkit-appearance: none;
    vertical-align: middle;
    margin-top:0;
    width: 25px;
    height: 25px;
    background: #fff;
    border: #45D2FF solid 1px;
    border-radius: 3px;
    /*box-shadow: inset 0 1px 3px 0 rgba(0, 0, 0, 0.5);*/
    cursor: pointer;
}

input.employeeCheckBox[type="checkbox"]:checked {
    background: #4AC8C1;
}
input.employeeCheckBox[type=checkbox]:checked::after {
    content: '';
    margin-top: 6px;
    margin-left: 4px;
    display: block;
    background: transparent;
    border: white solid 2px;
    border-top: none;
    border-right: none;
    height: 5px;
    width: 12px;
    -moz-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

input.adoptCheckBox[type="checkbox"]:checked {
    background: #45D2FF;
}
input.adoptCheckBox[type=checkbox]:checked::after {
    content: '';
    margin-top: 6px;
    margin-left: 4px;
    display: block;
    background: transparent;
    border: white solid 2px;
    border-top: none;
    border-right: none;
    height: 5px;
    width: 12px;
    -moz-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

.overflow-x-scroll {
    overflow-x: scroll;
}

.mobileGraphScrollBtn {
    position: absolute;
    background-image: url(../../../img/menu/5/5-3/icon-next-btn.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    width: 35px;
    height: 35px;
    left: 95px;
    margin-top: -14px;
    border-radius: 50%;
    border: 1px solid #ABABAB;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
    background-color: white;
    display: none;
    z-index: 1;
}

.tableSelectItem{
    display: inline-block;
    text-align: left;
}

.box-item {
    /*background: white;*/
    border-radius: 20px;
    /* padding: 20px; */
    width: calc(33% - 15px);
    min-width: 300px;
    /*box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);*/
    height: 400px;
}

.box-item-flex {
    display: flex;
    gap: 20px;
    align-items: center;
    height: 100%;
    flex-flow: column;
}

.image-placeholder {
    flex: 0 0 200px;
    width: 100%;
    height: 129px;
    border-radius: 10px;
}

.box-item-title {
    font-size: 20px;
    color: #2B7A77;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: 2%;
}

.box-item-content {
    font-size: 20px;
    color: #40474A;
    line-height: 130%;
    font-weight: 700;
    letter-spacing: 2%;
}

.sec2-pic1 {
    background: url("../../../img/menu/6/6-8/育成基金會集賢庇護工場.png") no-repeat;
    background-size: cover;
    background-repeat: no-repeat;
}

.sec2-pic2 {
    background: url("../../../img/menu/6/6-8/唐氏症基金會.png") no-repeat;
    background-size: cover;
    background-repeat: no-repeat;
}

.sec2-pic3 {
    background: url("../../../img/menu/6/6-8/支持在地店家.png") no-repeat;
    background-size: cover;
    background-repeat: no-repeat;
}

.sec3-pic1 {
    background: url("../../../img/menu/6/6-8/AIESEC頒獎照.png") no-repeat;
    background-size: cover;
    background-repeat: no-repeat;
    width: 100%;
    height: 400px;
}

.icon-sec3-bg-1 {
    background: url("../../../img/menu/6/6-8/北科1.png") no-repeat;
    /*background-position: center;*/
    background-size: cover;
}

.icon-sec3-bg-2 {
    background: url("../../../img/menu/6/6-8/北科2.png") no-repeat;
    /*background-position: center;*/
    background-size: cover;
}

.sec3-pic2 {
    width: 50%;
    max-width: 525px;
    height: 300px;
    border-radius: 20px;
    background: url("../../../img/menu/6/6-8/北科1.png") no-repeat;
    background-size: cover;
    background-repeat: no-repeat;
    display: inline-block;
}

.sec3-pic3 {
    width: 50%;
    max-width: 525px;
    height: 300px;
    border-radius: 20px;
    background: url("../../../img/menu/6/6-8/北科2.png") no-repeat;
    background-size: cover;
    background-repeat: no-repeat;
    display: inline-block;
}

.icon-sec6-bg-1 {
    background: url("../../../img/menu/6/6-8/採茶1.jpg") no-repeat;
    /*background-position: center;*/
    background-size: cover;
}

.icon-sec6-bg-2 {
    background: url("../../../img/menu/6/6-8/採茶2.jpg") no-repeat;
    /*background-position: center;*/
    background-size: cover;
}

.sec6-pic1 {
    width: 50%;
    max-width: 525px;
    height: 300px;
    border-radius: 20px;
    background: url("../../../img/menu/6/6-8/採茶1.jpg") no-repeat;
    background-size: cover;
    background-repeat: no-repeat;
    display: inline-block;
}

.sec6-pic2 {
    width: 50%;
    max-width: 525px;
    height: 300px;
    border-radius: 20px;
    background: url("../../../img/menu/6/6-8/採茶2.jpg") no-repeat;
    background-size: cover;
    background-repeat: no-repeat;
    display: inline-block;
}

.icon-prev-btn {
    width: 40px;
    height: 40px;
    background: url("../../../img/menu/5/5-3/icon-prev-btn.svg") no-repeat;
    background-position: center;
    cursor: pointer;
    opacity: 0.7;
}

.icon-prev-btn:hover {
    opacity: 1;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
}

.icon-next-btn {
    width: 40px;
    height: 40px;
    background: url("../../../img/menu/5/5-3/icon-next-btn.svg") no-repeat;
    background-position: center;
    cursor: pointer;
    opacity: 0.7;
}

.icon-next-btn:hover {
    opacity: 1;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
}

.sec6-bg {
    background: #F7F7F7;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(../../../img/menu/6/6-8/淨灘活動.jpg) center center/cover no-repeat;
    background-size: cover;
    background-position-x: unset;
    /*background-position-y: -250px;*/
}

.common-4 {
    color: #717784;
    float: unset;
    position: unset;
    left: 0px;
    margin-top: 10px;
    font-size: 18px;
}

.article-box {
    width: 8px;
    height: 8px;
    display: inline-block;
    background: #4AC8C1;
    margin: 6px 6px 4px 6px;
}


/* 外層總容器，左右兩欄並排 */
.sdgs-container {
    display: flex;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
}

/* 左右兩大卡片樣式 */
.sdgs-card {
    flex: 1;
    background-color: #F9F7F4; /* 需求指定的背景顏色 */
    border-radius: 12px;
    padding: 24px 30px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02); /* 淡淡的細緻陰影 */
}

/* 標題列佈局 */
.card-title-row-right {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.card-title-row-left {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    margin-left: 61px;
}

/* 純 CSS 繪製的黃色打勾符號 */
.sdgs-checkmark {
    display: inline-block;
    width: 14px;
    height: 8px;
    border-left: 2.5px solid #C8B400; /* 需求指定的黃色 */
    border-bottom: 2.5px solid #C8B400;
    transform: rotate(-45deg);
    margin-top: -4px;
    flex-shrink: 0;
}

/* 卡片黃色粗體主標題 */
.card-title {
    color: #C8B400; /* 需求指定的黃色 */
    font-size: 16px; /* 需求指定的字體大小 */
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* 卡片內部排版結構 */
.card-content-layout {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

/* 左側兩張圖示的垂直組合 */
.icon-group {
    display: flex;
    flex-direction: column;
    gap: 15px; /* 圖示之間的上下距離 */
    flex-shrink: 0;
}

.icon-placeholder {
    width: 50px;  /* 可依實際圖示大小調整寬度 */
    height: 50px; /* 可依實際圖示大小調整高度 */
    border-radius: 6px;
    background-size: contain;     /* 確保圖片完整顯示不被裁切 */
    background-position: center;  /* 圖片置中 */
    background-repeat: no-repeat; /* 不重複鋪滿 */
    flex-shrink: 0;
}

/* 核心修改：利用 class 直接載入第一張背景圖 */
.sdgs-icon-8 {
    background: url("../../../img/menu/6/6-8/icon-SDG-tag-8-zh.jpg") no-repeat;
    background-repeat: round;
}

/* 核心修改：利用 class 直接載入第二張背景圖 */
.sdgs-icon-11 {
    background: url("../../../img/menu/6/6-8/icon-SDG-tag-11-zh.jpg") no-repeat;
    background-repeat: round;
}

/* 右側文字敘述組合 */
.text-group {
    display: flex;
    flex-direction: column;
    gap: 20px; /* 兩段文字之間的上下間距 */
    flex: 1;
}

/* 敘述文字樣式 */
.sdgs-text {
    color: #40474A; /* 需求指定的文字顏色 */
    font-size: 16px; /* 需求指定的字體大小 */
    line-height: 1.6;
    text-align: justify;
}

.sec3-pic2 {
    width: 50%;
    max-width: 525px;
    height: 300px;
    border-radius: 20px;
    background: url("../../../img/menu/6/6-8/北科1.png") no-repeat;
    background-size: cover;
    background-repeat: no-repeat;
    display: inline-block;
}

.sec3-pic3 {
    width: 50%;
    max-width: 525px;
    height: 300px;
    border-radius: 20px;
    background: url("../../../img/menu/6/6-8/北科2.png") no-repeat;
    background-size: cover;
    background-repeat: no-repeat;
    display: inline-block;
}

/* 單條數據卡片外框 */
.summary-card-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;

    /* 核心修改：移除左右均分，改為左邊靠齊(0)，右邊自動推擠(auto) */
    margin: 20px auto 20px 0;

    padding: 20px 24px;
    background-color: #FFFDEB;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.01);
}

/* --- 左側區塊樣式 --- */
.summary-title-section {
    display: flex;
    align-items: flex-start;  /* 對齊打勾符號頂端 */
    gap: 12px;
    margin-right: 20px;
}

/* 純 CSS 繪製的黃色打勾符號 */
.summary-checkmark {
    display: inline-block;
    width: 14px;
    height: 8px;
    border-left: 2.5px solid #C8B400; /* 需求指定的黃色 */
    border-bottom: 2.5px solid #C8B400;
    transform: rotate(-45deg);
    margin-top: 6px;                  /* 讓打勾與第一行字對齊 */
    flex-shrink: 0;
}

/* 主標題文字設定 */
.summary-title-text {
    color: #40474A;           /* 基礎文字顏色 */
    font-size: 16px;
    line-height: 1.5;
    font-weight: 500;
}

/* 需要變黃色的文字 */
.highlight-yellow {
    color: #C8B400;
}

/* 「68門」特別加粗的黃色文字 */
.highlight-yellow-bold {
    color: #C8B400;
    font-weight: bold;
}

/* --- 右側數據區塊樣式 --- */
.summary-stats-section {
    display: flex;
    gap: 20px;                /* 兩組數據之間的水平間距 */
}

/* 單組數據垂直疊加結構 */
.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;                 /* 標籤與數字之間的上下微調 */
}

/* 數據標籤（共參與 / 共計） */
.stat-label {
    color: #40474A;           /* 需求指定的其餘文字顏色 */
    font-size: 16px;
    letter-spacing: 0.5px;
}

/* 數據具體數值（2,182 人 / 2,956 小時） */
.stat-value {
    color: #40474A;           /* 需求指定的其餘文字顏色 */
    font-size: 16px;          /* 數字稍微放大，更清晰突出 */
    font-weight: bold;
    white-space: nowrap;      /* 確保數字在任何情況下都不會斷行 */
}

.canvas_view {
    width: calc(100% - 100px);
}

#common-3 {
    line-height: 20.8px;
    color: #c3c3c3;
    margin-left: 72px;
    margin-top: 20px;
    margin-bottom: 20px;
    display: block;
    float: left;
    text-align: right;
}

/*------------------------------------------------*/
@media only screen and (max-width: 1080px) {
    .contentDiv, .contentDoc {
        padding-left: 15px;
        padding-right: 15px;
    }

    .captionContent {
        padding-left: 15px;
        padding-right: 15px;
        font-size: 16px;
        line-height: 140%;
    }
}

/*------------  512px 以下，就認為是手機 -----------------*/
@media only screen and (max-width: 512px) {
    .imageBlockScrollDiv {
        width: calc(100% - 30px);
    }

    .imageBlockSelectDiv {
        display: flex;
    }

    .rightImg {
        display: block;
    }

    .frameDiv {
        padding-top: 10px;
        padding-bottom: 10px;
        gap: 0px
    }

    .caption {
        font-size: 24px !important;
        line-height: 32px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .smallCaption {
        font-size: 20px !important;
    }

    .captionBr {
        display: inline-block;
    }

    .contentDiv {
        gap: 20px;
    }

    .captionContent {
        font-size: 16px;
        line-height: 140%;
    }

    .sub-title {
        font-size: 20px;
        line-height: 26px;
    }


    .pic-desc {
        font-size: 16px;
        height: 40px;
        line-height: 40px;
    }

    .box-frame {
        flex-wrap: nowrap;  /* 防止換行 */
        overflow-x: auto;   /* 啟用水平滾動 */
        -webkit-overflow-scrolling: touch;  /* 讓滾動更順暢 */
        /*padding: 15px 0;    !* 增加上下間距 *!*/
        gap: 15px;         /* 調整間距 */
        justify-content: flex-start;  /* 從左側開始排列 */
        scroll-snap-type: x mandatory;  /* 讓滾動更順暢 */
        width: calc(100% - 20px);
        padding-top: 0px;
        gap: 10px !important;
    }

    /*!* 美化滾動條 *!*/
    /*.box-frame::-webkit-scrollbar {*/
    /*    height: 8px;*/
    /*}*/

    /*.box-frame::-webkit-scrollbar-track {*/
    /*    background: #f1f1f1;*/
    /*    border-radius: 10px;*/
    /*}*/

    /*.box-frame::-webkit-scrollbar-thumb {*/
    /*    background: #2B7A77;*/
    /*    border-radius: 10px;*/
    /*}*/

    /*.box-frame::-webkit-scrollbar-thumb:hover {*/
    /*    background: #264E58;*/
    /*}*/

    /* 確保子元素不會被壓縮 */
    .box-frame > * {
        flex: 0 0 auto;  /* 防止子元素被壓縮 */
        scroll-snap-align: start;  /* 滾動對齊 */
    }

    .section3-title {
        font-size: 20px;
    }

    .mobileGraphScrollBtn {
        display: block;
    }

    .box-item {
        padding: 10px;
        width: calc(100%);
        height: auto;
    }

    .box-item-flex {
        gap: 10px;
    }

    .image-placeholder {
        width: 345px;
        height: 200px;
        flex: unset;
    }

    .box-item-title {
        font-size: 14px;
        margin-bottom: 10px;
        letter-spacing: 1px;
    }

    .box-item-content {
        font-size: 14px;
        letter-spacing: 1px;
    }


    .sec6-bg {
        background-position-x: calc(50% - 80px);
        background-position-y: unset;
    }

    .common-4 {
        color: #717784;
        float: left;
        position: relative;
        left: 120px;
        margin-top: 0px;
        font-size: 16px;
    }

    .contentDoc {
        font-size: 16px;
    }

    .legendView {
        width: calc(100% - 10px);
    }

    .article-box {
        margin: 4px 6px 4px 6px;
        vertical-align: bottom;
    }

    .sec3-pic1 {
        width: 345px;
        height: 200px;
        background-position: center;
        border-radius: 20px;
    }

    .sdgs-container {
        flex-direction: column; /* 雙欄變垂直單欄 */
        padding: 0 15px;
    }

    .sdgs-card {
        padding: 20px;
    }

    .icon-placeholder {
        width: 30px;  /* 可依實際圖示大小調整寬度 */
        height: 30px; /* 可依實際圖示大小調整高度 */
    }

    .card-title-row-right {
        margin-bottom: 10px;
    }

    .card-title-row-left {
        margin-left: 36px;
        margin-bottom: 10px;
    }

    .card-content-layout {
        gap: 10px;
    }

    .canvas_view {
        width: calc(100% - 40px);
    }

    #common-3 {
        line-height: 20.8px;
        color: #c3c3c3;
        margin-left: 48px;
        margin-top: 0px;
        margin-bottom: 0px;
        display: block;
        float: left;
        text-align: right;
    }
}