/*================ custom global ==================*/
.mb-0 {
    margin-bottom: 0;
}
.mt-24 {
    margin-top: 24px !important;
}
.sc-kpoint .title {
    margin-bottom: 16px !important;
}
.sc-kpoint .desc {
    margin-top: 38px !important;
    margin-bottom: 0 !important;
}
.bg-grey {
    background-color: #F4F4F4;
}
.bg-light-grey {
    background-color: #FAFAFA;
}
.table-remark {
    color: #333333;
}
.compn-overflow .compn-overflow-scroll-wrapper {
    display: block;
}
.kfin-feature__text .btn {
    max-width: fit-content;
    padding-left: 32px;
    padding-right: 32px;
}
.text-left {
    text-align: left;
}
.show-dt {
    display: block;
}
.show-mb {
    display: none;
}
.c-black {
    color: #333333 !important;
}
.social-tag {
    margin-top: 0 !important;
}

/*================ special-campaign ==================*/
.special-campaign {
    background-color: rgba(102, 202, 174, 0.05);
    border: 1px solid #66CAAE;
    border-radius: 8px;
    padding: 24px;
    color: #333333;
}
.special-campaign:first-of-type {
    margin-top: 24px;
}
.special-campaign:not(:first-of-type) {
    margin-top: 16px;
}
.special-campaign .header-special-campaign {
    font-size: 26px;
    line-height: 39px;
    font-weight: 600;
    color: #111111;
    margin-bottom: 8px;
}
.special-campaign .sub-header-special-campaign {
    color: #333333;
    font-size: 20px;
    line-height: 30px;
    font-weight: 600;
    margin-bottom: 8px;
}

/*================ sc-special-timeline-campaign ==================*/
.sc-special-timeline-campaign {
    padding-top: 64px;
    padding-bottom: 64px;
}
.sc-special-timeline-campaign .header-special-timeline-campaign {
    color: #111111;
    font-size: 33px;
    line-height: 50px;
    font-weight: 600;
    margin-bottom: 8px;
}
.sc-special-timeline-campaign .sub-header-special-timeline-campaign {
    color: #333333;
    font-size: 26px;
    font-weight: 600;
    line-height: 39px;
    margin-bottom: 0;
}
.sc-special-timeline-campaign #table-timeline {
    margin-top: 24px;
}
.sc-special-timeline-campaign td i {
    font-size: 26px;
    color: #2B988C;
}
.sc-special-timeline-campaign .detail {
    margin-top: 16px;
}
.sc-special-timeline-campaign ul li {
    font-size: 13px !important;
    line-height: 20px !important;
}

/*================ special-campaign ==================*/
.sc-product2.bg-light-grey .head-26 {
    font-size: 33px !important;
    font-weight: 600;
    line-height: 50px !important;
    margin-bottom: 8px;
    color: #111111 !important;
}
.sc-product2.bg-light-grey .sub-head-26 {
    font-size: 26px !important;
    font-weight: 600;
    line-height: 39px;
    color: #333333 !important;
    margin-bottom: 0;
}
.sc-product2.bg-light-grey .accordion-group {
    margin-top: 24px !important;
}

/*================ sc-FAQ ==================*/
.section-faq .header-faq {
    font-size: 26px;
    font-weight: 600;
    line-height: 39px;
    color: #111111;
    margin-bottom: 24px;
}
.section-faq .blog-content {
    background: #ffffff;
    box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1);
    border-top: 5px solid #00A94F;
    padding: 48px 32px;
    border-radius: 8px;
}
.section-faq .blog-content-inside.content-1 {
    background-color: #F5FBFA;
    border-radius: 8px;
    padding: 24px;
    margin-top: 32px;
}
.section-faq .blog-content-inside.content-2 {
    background-color: #F0FAF7;
    border-radius: 8px;
    padding: 24px;
    margin-top: 32px;
}
.section-faq .blog-content-inside:not(:first-of-type) {
    background-color: #F0FAF7;
    border-radius: 8px;
    padding: 24px;
    margin-top: 16px;
}
.header-blog-content-inside {
    color: #111111 !important;
    font-size: 20px !important;
    font-weight: 600;
    line-height: 30px;
}
.header-accordion {
    font-size: 18px !important;
    line-height: 27px;
    font-weight: 600;
}
.sub-header-blog-content-inside {
    font-size: 13px !important;
    font-weight: 500;
    color: #333333 !important;
    line-height: 20px;
}

/*================ sc-infomation ==================*/
.sc-infomation {
    text-align: center;
    padding-top: 40px;
    padding-bottom: 64px;
}
.sc-infomation .header-infomarion {
    font-size: 16px;
    font-weight: 500;
    color: #66666666;
    line-height: 24px;
    margin-bottom: 40px;
}
.sc-infomation a {
    text-decoration: underline;
}
.sc-infomation .small-text {
    color: #666666;
    font-size: 13px;
    line-height: 20px;
}

/*================ responsive ==================*/
@media screen and (max-width: 767px) {
    .section-faq .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .section-faq .blog-content {
        background: transparent;
        box-shadow: unset;
        border: none;
        padding: 0 16px;
    }
    .show-dt {
        display: none;
    }
    .show-mb {
        display: block;
    }
    .head-wealth {
        font-size: 28px !important;
    }
    .special-campaign .header-special-campaign {
        font-size: 20px;
        line-height: 30px;
    }
    .special-campaign .sub-header-special-campaign {
        font-size: 18px;
        line-height: 27px;
    }
    .sc-special-timeline-campaign .header-special-timeline-campaign {
        font-size: 24px;
        line-height: 36px;
    }
    .sc-special-timeline-campaign .sub-header-special-timeline-campaign {
        font-size: 20px;
        line-height: 30px;
    }
    .sc-product2.bg-light-grey .head-26 {
        font-size: 24px !important;
        line-height: 36px !important;
    }
    .sc-product2.bg-light-grey .sub-head-26 {
        font-size: 20px !important;
        line-height: 30px !important;
    }
    .icw .head-26 {
        font-size: 24px !important;
        line-height: 36px !important;
    }
    .kfin-feature__text .btn {
        font-size: 16px !important;
    }
    .sc-howto .title {
        font-size: 24px !important;
    }
    .section-faq .header-faq {
        font-size: 20px;
        line-height: 30px;
    }
    .icw .detail ul li {
        line-height: 24px !important;
    }
    .sc-infomation {
        padding-bottom: 48px;
        padding-top: 48px;
    }
    .text-bottom {
        padding-left: 15px;
        padding-right: 15px;
    }
    .btn-tel {
        max-width: fit-content;
    }
}

/* สำหรับ expand-mobile */
.expand-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 122px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 17.78%, #FFFFFF 78.69%);
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.bg-light-grey .expand-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 122px;
    background: linear-gradient(180deg, rgba(250, 250, 250, 0) 17.78%, #FAFAFA 78.69%);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.read-more-btn,
.read-less-btn {
    display: block;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    text-decoration: underline;
    color: #00A94F;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    margin-top: -24px !important;
    z-index: 1000;
    position: relative;
}

/* .read-more-btn:hover {
    background-color: #F5FBFA;
}

.read-more-btn i {
    font-size: 18px;
    transition: transform 0.3s ease;
} */

/* สำหรับ mobile button */
.mobile-expand-btn {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}
.blog-content .mobile-expand-btn.bm-custom {
    border-bottom: 1px solid #DBDBDB;
}
.mobile-expand-btn:active {
    background-color: #E8F7F4;
}

.mobile-expand-btn span {
    color: #111111;
    font-size: 16px;
    font-weight: 600;
    flex: 1;
}

.mobile-expand-btn i {
    font-family: 'icokbank' !important;
    font-size: 12px;
    font-weight: 600;
    color: #00a950;
    margin-left: 12px;
}
.close-popup-btn i {
    font-family: 'icokbank' !important;
    font-size: 12px;
    font-weight: 600;
    color: #00a950;
}

/* สำหรับ popup */
.content-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 11000;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 0.3s, opacity 0.3s ease;
}

.content-popup.active {
    visibility: visible;
    opacity: 1;
    transition: visibility 0s, opacity 0.3s ease;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.content-popup.active .popup-overlay {
    opacity: 1;
}

.popup-container {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    background-color: #ffffff;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
}

.content-popup.active .popup-container {
    transform: translateX(0);
}

.popup-header {
    position: sticky;
    top: 0;
    background-color: #ffffff;
    padding: 16px;
    /* border-bottom: 1px solid #E5E5E5; */
    z-index: 10;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); */
}

.close-popup-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    background: transparent;
    border: none;
    color: #111111;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.close-popup-btn i {
    font-size: 16px;
    background-color: #00A94F;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-body {
    padding: 24px 16px;
    padding-top: 0;
}

/* ป้องกัน scroll หน้าหลักเมื่อเปิด popup */
body.popup-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    left: 0;
    right: 0;
}
.expand-mobile.expanded + .read-more-btn,
.expand-mobile.expanded + .read-less-btn {
    margin-top: 0 !important;
}
/* Responsive */
@media screen and (min-width: 992px) {
    .read-more-btn,
    .read-less-btn,
    .mobile-expand-btn,
    .content-popup {
        display: none !important;
    }
    
    .expand-mobile {
        max-height: none !important;
    }
    
    .expand-gradient {
        display: none;
    }
    
    .blog-content-inside {
        display: block !important;
    }
}

@media screen and (max-width: 991px) {
    .blog-content-inside {
        display: none !important;
    }
    .mobile-expand-btn {
        display: flex !important; /* ซ่อนไว้ก่อน jQuery จะจัดการเอง */
    }
}