@import "../../../components/section/css/banner.css";
* {
    font-size: inherit;
    font-weight: inherit;
}
html {
  scroll-behavior: auto !important;
}
.nowrap {
    white-space: nowrap;
}

body.mfp-noscroll {
    overflow: hidden !important;
}

.show-dt {display: block;}
.show-mb {display: none;}
.show-ipad {display: none;}

@media (max-width: 1024px) {
    .show-ipad {
        display: block;
    }
    .show-dt {
        display: none;
    }
}
@media (max-width: 768px) {
    .show-mb {display: block;}
}

.whatwedo {
    background-image: url('../img/bg-whatwedo.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: right center;
}

.whatwedo .sc-container {
    padding: 90px 60px 78px 60px;
    overflow: hidden;
}

.whatwedo .sc-whatwedo-detail {
    display: grid;
    grid-template-columns: 2fr 2fr;
    gap: 96px;
    width: 100%;
    margin-bottom: 121px;
}

.sc-whatwedo-detail .video-detaill {
    display: flex;
    justify-content: flex-end;
    align-items: stretch;
    height: 100%;
    position: relative;
}

.video-player {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: 554px;
    border-radius: 16px;
    border: 1px solid #EBEBEB;
}

.zoom-video {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    width: 48px;
    height: 48px;
    bottom: 24px;
    right: 24px;
    border-radius: 100px;
    background: #E9F8F1;
    border: none;
    padding: 0;
}

.zoom-video img {
    width: 20px;
    height: 20px;
}

.context-detail {
    width: 100%;
    max-width: 661px;
}
.content-whatwedo {max-width: 580px;}
.context-detail .header-detail {
    background: linear-gradient(95deg, #0FAB72 3.74%, #0C3F28 66.94%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.context-detail .header-detail,
.header-detail span {
    font-size: 33px;
    font-weight: 600;
    line-height: 1.5;
    color: #181D27;
    margin-bottom: 24px;
}

.context-detail .deac-detail {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    color: #535862;
    margin-bottom: 54px;
}

.stats-container .stat-group {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 661px;
    height: 100px;
}

.stats-container .stat-group .stat-box {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 18px;
    gap: 14px;
    margin-left: -10px;
    background-color: #e6f3ec;
    color: #004d40;
    border: 1px solid #0C3F28;
    position: relative;
    width: fit-content; 
    height: 70px;
    transition: all 0.3s ease-out, z-index 0s;
}

/* .stats-container .stat-group .stat-box:hover,  */
.stats-container .stat-group .stat-box.active {
    background-color: #ffffff;
    border-color: #0C3F28;
    border-radius: 4px !important;
    width: fit-content; 
    height: 100%;
    margin-top: -5px; 
    margin-bottom: -5px;
    margin-left: -15px;
    z-index: 10 !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.stats-container .stat-group .stat-box:nth-child(1) {
    border-radius: 8px 0 0 8px;
    z-index: 3;
}

.stats-container .stat-group .stat-box:nth-child(2) {
    z-index: 2;
}

.stats-container .stat-group .stat-box:nth-child(3) {
    border-radius: 0 8px 8px 0;
    max-width: 300px;
    z-index: 1;
}

.stats-container .stat-group .stat-box img {
    width: 36px;
    height: 36px;
}

.stats-container .stat-group .stat-box .stat-number {
    color: #0C3F28;
    font-size: 42px;
    font-weight: 600;
    line-height: 1;
    display: inline-block;
    text-box-trim: trim-both;
    text-box-edge: cap alphabetic;
}

.stats-container .stat-group .stat-box .stat-label {
    color: #535862;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
}

.stats-container .stat-group .stat-box .stat-label.multiple-row {
    line-height: 1;
}

@media (max-width: 1127px) and (min-width: 1024px) {
    .stats-container .stat-group .stat-box {
        height: 121px;
    }
    .stats-container .stat-group .stat-box.active {
        height: 140px;
    }
}
@media (max-width: 1025px) {
    .whatwedo .sc-container {
        padding: 40px 16px;
    }
    .whatwedo .sc-whatwedo-detail {
        gap: 60px;
    }
}

@media (max-width: 991px) {
    
    .whatwedo .sc-whatwedo-detail {
        display: flex;
        flex-direction: column;
        gap: 40px;
        margin-bottom: 60px;
    }

    .sc-whatwedo-detail .video-detaill {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
        display: block;
    }

    .video-player {
        width: 100%;
        height: 100%;
        max-width: 100%;
        object-fit: contain;
    }

    .zoom-video {
        width: 40px;
        height: 40px;
        bottom: 16px;
        right: 16px;
    }

    .context-detail {
        max-width: 100%;
        text-align: center;
    }

    .context-detail .header-detail,
    .header-detail span {
        font-size: 24px;
    }

    .context-detail .deac-detail {
        margin-bottom: 40px;
    }

    .stats-container .stat-group {
        flex-direction: column;
        width: 100%;
        height: unset;
        margin: 0 auto;
        position: relative;
    }

    .stats-container .stat-group .stat-box {
        width: 65%;
        height: 68px;
        justify-content: center;
        margin-left: 0;
        margin-top: -1px;
        padding: 18px 16px;
        background-color: #e6f3ec;
        color: #004d40;
        border: 1px solid #0C3F28;
        transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
        z-index: 1;
    }
/* 
    .stats-container .stat-group .stat-box:hover {
        background-color: #ffffff;
        border-color: #0C3F28;
        border-radius: 4px !important;
        width: 80%; 
        height: 100px;
        margin-top: -5px; 
        margin-bottom: -5px;
        margin-left: -9px;
        z-index: 10;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    } */

    .stats-container .stat-group .stat-box.active {
        background-color: #ffffff;
        border-color: #0C3F28;
        border-radius: 4px !important;
        width: 80%; 
        height: 100px;
        margin-top: -5px; 
        margin-bottom: -5px;
        margin-left: -9px;
        z-index: 10;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

    .stats-container .stat-group .stat-box:nth-child(1) {
        border-radius: 4px 4px 0 0;
    }

    .stats-container .stat-group .stat-box:nth-child(2) {
        border-radius: 0;
    }

    .stats-container .stat-group .stat-box:nth-child(3) {
        max-width: unset;
        border-radius: 0 0 4px 4px;
    }

    .stats-container .stat-group .stat-box .stat-number {
        font-size: 28px;
    }
}

.my-mfp-zoom-in .mfp-container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 10px;
    box-sizing: border-box;
    text-align: center;
}

.my-mfp-zoom-in .mfp-container:before {
    display: none !important;
}

.my-mfp-zoom-in .mfp-content {
    max-width: 800px;
    display: block !important;
    border-radius: 16px;
    background: #00000000;
}

.zoom-anim-dialog {
    background: transparent;
    padding: 0;
    width: 100%;
    margin: 0 auto ;
    position: relative;
    top: 40px;
    overflow: visible ;
    left: auto ;
    right: auto ;
    transform: none ;
}

.video-popup-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    isolation: isolate;
    transform: translateZ(0);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.video-popup-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    outline: none;
}

#custom-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.2s ease, opacity 0.3s;
    padding: 0;
    opacity: 1;
    visibility: visible;
}

.video-popup-wrapper.playing #custom-play-btn {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-icon-circle {
    width: 80px;
    height: 80px;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255,255,255,0.8);
    color: white;
    transition: all 0.3s ease;
}

.play-icon-circle svg {
    width: 32px;
    height: 32px;
}

#custom-play-btn:hover .play-icon-circle {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.custom-close-btn {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s ease;
}

.custom-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .custom-close-btn {
        top: -40px;
        right: 0;
    }
}

.mb-only {
    display: none !important;
}

.dt-only {
    display: flex !important;
}

/* --- ตั้งค่า Mobile (หน้าจอเล็กกว่า 991px) --- */
@media (max-width: 991px) {
    
    /* ซ่อนปุ่ม Zoom */
    .dt-only {
        display: none !important;
    }

    /* แสดงปุ่ม Play */
    .mb-only {
        display: block !important;
    }

    /* จัดตำแหน่งปุ่ม Play ให้อยู่ตรงกลางวิดีโอ */
    .inline-play-btn {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 10;
        padding: 0;
    }
    
    /* Effect ตอนกดแล้วหายไป (ใช้คู่กับ JS) */
    .video-detaill.playing .inline-play-btn {
        opacity: 0;
        pointer-events: none;
    }
}

.gallery-section {
    width: 100%;
}

.gallery-swiper {
    max-width: 1085px;
    overflow: visible;
}

.gallery-swiper .swiper-slide {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
}

.gallery-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .gallery-section {
        /* width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        padding: 0;
        margin-left: -50vw;
        margin-right: -50vw; */
    }
}

/* sustainability-section */
.sustainability-section {
    position: relative;
    width: 100%;
    height: 100vh;
    background-image: url('../img/bg-sustainability.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    padding: 128px 60px 24px 60px;
    overflow: hidden;
}

.sustainability-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transform-origin: top center; 
    transition: transform 0.3s ease-out;
}

.glass-box {
    background: rgba(0, 0, 0, 0.50);
    backdrop-filter: blur(7.5px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.glass-box:nth-child(1) {
    border-radius: 100px 100px 8px 8px;
    padding: 25px 18px;
}

.glass-box:nth-child(2) {
    border-radius: 8px;
    padding: 15px 18px;
}

.header-box h2 {
    color: #FFFFFF;
    font-size: 33px;
    font-weight: 600;
    line-height: 1.5;
}

.middle-box p {
    color: #FFFFFF;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.5;
}

.middle-box p.text-unit {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.5;
}

.middle-box p.text-unit .unit-number {
    font-size: 48px;
    font-weight: 600;
    line-height: 1.5;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.cards-grid .glass-box {
    border-radius: 8px;
    padding: 16px;
}

.feature-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 16px;
    border: 0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.5;
    height: 54px;
}

.card-content p {
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
}

.footer-note {
    text-align: center;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    max-width: 1000px;
    margin: 40px auto 0;
}

@media (max-width: 900px) {
    .sustainability-container {
        transform: scale(1.0) !important;
    }
}

@media (max-width: 1024px) {
    .sustainability-section {
        padding: 40px 16px;
        height: unset;
        overflow:  unset;
    }
    .sustainability-container {
        height: unset;
    }
    .card-content h3 {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .glass-box:nth-child(1) {
        border-radius: 70px 70px 8px 8px;
        padding: 15.5px 21.866px;
    }
    .glass-box:nth-child(2) {
        border-radius: 8px;
        padding: 20.5px 20.527px 20.5px 20.529px;
    }
    .sustainability-container {
        gap: 8px;
    }
    .header-box h2 {
        font-size: 18px;
    }

    .middle-box p {
        font-size: 14px;
    }

    .middle-box p.text-unit {
        font-size: 16px;
    }

    .middle-box p.text-unit .unit-number {
        font-size: 24px;
    }

    .cards-grid .glass-box {
        border-radius: 8px;
    }

    .header-box {
        padding: 15.5px 21.866px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .cards-grid .feature-card {
        padding: 16px;
    }

    .card-content h3 {
        font-size: 16px;
        min-height: 48px;
        margin-bottom: 8px;
    }
    .card-content p {
        font-size: 14px;
    }
    .footer-note {
        font-size: 10px;
        margin: 16px auto 0;
    }
}

@media (min-width: 1025px) and (max-width: 1300px) and (min-height: 550px) and (max-height: 970px) {
.whatwedo .sc-container {transform: scale(0.9);}
.whatwedo .sc-whatwedo-detail {grid-template-columns: 2fr 3fr;}
.member-net-wrapper {max-width: 800px !important;}
.committee-container {max-width: 1000px !important;}
.related-news-content {max-width: 1000px !important;}
}

/* scale hv */
@media (min-width: 1025px) and (max-width: 1250px), (min-width: 1025px) and (min-height: 550px) and (max-height: 910px) {
    .sustainability-section {
        padding: 90px 60px 24px 60px;
    }
    .sustainability-container{
        max-width: 1000px;
        gap: 8px;
        justify-content: center;
    }
    .header-box h2 {
        font-size: 16px;
    }
    .middle-box p {
        font-size: 12px;
    }
    .middle-box p.text-unit {
        font-size: 12px;
    }
    .middle-box p.text-unit .unit-number {
        font-size: 24px;
    }
    .card-content h3 {
        font-size: 12px;
        height: 36px;
        margin-bottom: 8px;
    }
    .card-content p {
        font-size: 11px;
    }
    .glass-box.header-box {
        padding: 10px 9px;
    }
    .glass-box.middle-box {
        display: flex;
        align-items: baseline;
        justify-content: center;
        gap: 8px;
        padding: 10px 9px;
    }
    .cards-grid {
        gap: 8px;
    }
    .card-image {
        margin-bottom: 8px;
    }
    .footer-note {
        font-size: 10px;
        margin-top: 0;
    }
}

@media (min-height: 637px) and (max-height: 910px) and (min-width: 768px) {
    .header-box h2 {
        font-size: 22px;
    }
    .middle-box p {
        font-size: 18px;
    }
    .middle-box p.text-unit {
        font-size: 18px;
    }
    .middle-box p.text-unit .unit-number {
        font-size: 32px;
    }
    .card-content h3 {
        font-size: 16px;
        height: 54px;
    }
    .card-content p {
        font-size: 13px;
    }
    .footer-note {
        font-size: 12px;
    }
}

/* member-net-section */
.member-net-section {
    padding: 128px 16px;
}
.member-net-wrapper {
    max-width: 1140px;
    margin: 0 auto;
}

/* --- Header & Title --- */
.member-net-title {
    text-align: center;
    font-size: 42px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 40px;
}

/* --- Desktop Filter Buttons --- */
.member-net-filter-desktop {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.member-net-filter-btn {
    background: unset;
    border-radius: 9999px;
    border: 1px solid #EBEBEB;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #717680;
    transition: all 0.3s ease;
}

.member-net-filter-btn:hover {
    color: #188152;
    background: #E9F8F1;
    border: 1px solid #E9F8F1;
}

.member-net-filter-btn.active {
    color: #188152;
    background: #E9F8F1;
    border: 1px solid #E9F8F1;
}

/* --- Mobile Dropdown --- */
.member-net-filter-mobile {
    display: none;
    position: relative;
    margin-bottom: 24px;
    width: 100%;
    z-index: 10;
}

.member-net-dropdown-trigger {
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px 14px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: var(--member-net-text-dark);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.member-net-dropdown-trigger span {
    color: #181D27;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
}

.member-net-dropdown-trigger.active {
    border: 2px solid #188152;
}

.member-net-dropdown-trigger i img {
    filter: invert(73%) sepia(8%) saturate(365%) hue-rotate(185deg) brightness(91%) contrast(86%);
}

.member-net-dropdown-menu {
    display: none;
    /* jQuery slideToggle will handle this */
    position: absolute;
    top: 110%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 4px 6px;
}

.member-net-dropdown-item {
    font-size: 14px;
    font-weight: 600;
    padding: 10px 8px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #717680;
    line-height: 1.4;
    border-radius: 6px;
}

.member-net-dropdown-item.active {
    color: #188152;
    background: #FAFAFA;
}

.member-net-dropdown-item.active .icon-check {
    background-image: url('../../../image/icon/icon-check.svg');
    display: inline-block;     
    width: 20px;              
    height: 20px;             
    background-size: contain;  
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
}

/* --- Content Sections --- */
.member-net-category-section {
    border-radius: 16px;
    background: #E9F8F1;
    padding: 24px;
    margin-bottom: 32px;
}

.member-net-category-header {
    text-align: center;
    font-weight: 600;
    margin-bottom: 16px;
    font-size: 18px;
}

.member-net-logo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.member-net-logo-card {
    border-radius: 16px;
    border: 1px solid #EBEBEB;
    background: #FFF;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--member-net-shadow);
    padding: 16px;
}

.member-net-logo-card img {
    max-width: 100%;
    height: 80px;
    object-fit: contain;
}

@media screen and (max-width: 767px) {
    .member-net-logo-card img {
        height: 60px;
        object-fit: cover;
    }
}
@media screen and (max-width: 400px) {
    .member-net-logo-card img.fix-mb-h {
        height: 28px;
    }
}
@media screen and (max-width: 360px) {
    .member-net-logo-card img {
        height: 50px;
    }
}
@media screen and (max-width: 280px) {
    .member-net-logo-card img {
        height: 33px;
    }
}



/* --- Toggle List Section --- */
.member-net-toggle-header {
    text-align: center;
    margin: 40px 0 40px 0;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    user-select: none;
}

.member-net-toggle-header.collapsed {
    margin: 40px 0 0 0;
}

.member-net-toggle-header p {
    color: #188152;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
}

.member-net-toggle-header i {
    transform: rotate(270deg);
    transition: transform 0.3s ease;
}

.member-net-toggle-header.collapsed i {
    transform: rotate(90deg);
}

.member-net-list-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    /* Use CSS classes for transition logic, or rely on jQuery slideToggle */
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    max-height: 3000px;
    opacity: 1;
}

.member-net-list-container.hidden {
    max-height: 0;
    opacity: 0;
    margin: 0;
}

/* Style for List Boxes */
.member-net-list-box {
    border-radius: 16px;
    border: 1px solid #0C3F28;
    background: #E9F8F1;
    padding: 24px;
}

.member-net-list-box h4 {
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 600;
    color: #181D27;
}

.member-net-list-box ul {
    padding-inline-start: 20px
}

.member-net-list-box ul li {
    font-size: 14px;
    color: #181D27;
    line-height: 1.5;
    font-weight: 500;
    margin-bottom: 8px;
    position: relative;
}

.list-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 16px; 
}

.list-wrapper ul {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
    flex: 1; 
    min-width: 45%; 
}

.list-wrapper li {
    line-height: 1.8;
}

@media (max-width: 1025px) {
    .member-net-section {
        padding: 40px 16px;
    }
}

@media (max-width: 768px) {
    .member-net-title {
        font-size: 24px;
        margin-bottom: 24px;
    }
    .member-net-filter-desktop {
        display: none;
    }

    .member-net-filter-mobile {
        display: block;
    }

    .member-net-logo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }

    .member-net-list-container {
        grid-template-columns: 1fr;
    }

    .member-net-list-box {
        padding: 16px;
    }

    .member-net-category-section {
        padding: 20px;
    }

    .member-net-category-header {
        margin-bottom: 8px;
    }

    .member-net-toggle-header{ 
        margin: 24px 0 16px 0;
    }
    .list-wrapper {
        flex-direction: column;
        gap: 0;
    }
}

@media (min-width: 1025px) and (min-height: 550px) and (max-height: 970px) {
    .member-net-wrapper {
        max-width: 1000px;
    }
}

/* climate-section */
.climate-section {
    background-color: #E9F8F1;
    padding: 80px 60px 24px 60px;
    height: 100vh;
    display: flex;
    justify-content: center;
    overflow: hidden;
    align-items: center;
}

.climate-container {
    width: 100%;
    max-width: 1140px;
    transition: transform 0.3s ease-out;
}

/* --- Header --- */
.climate-main-header {
    text-align: center;
    margin-bottom: 48px;
}

.climate-main-header h2 {
    font-size: 42px;
    font-weight: 600;
    line-height: 1.5;
    color: #181D27;
    margin-bottom: 4px;
}

.climate-main-header p {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    color: #535862;
}

/* --- Layout Wrapper --- */
.climate-content-wrapper {
    display: flex;
    gap: 48px;
    align-items: flex-start;
}

/* --- Accordion (Left Side) --- */
.climate-accordion-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    /* gap: 16px; */
}

.climate-accordion-item {
    padding: 16px;
    border-bottom: 1px solid #d1e7dd;
    overflow: hidden;
    position: relative;
    transition: background 0.3s ease;
}

.climate-accordion-item:hover {
    background: #BAE8D4;
}

.climate-accordion-item.active:hover {
    background: unset;
}

/* --- Timer Bar Style --- */
.climate-timer-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 1px;
    background-color: #0C3F28;
    /* เดิม --climate-timer-color */
    width: 0%;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s;
}

.climate-accordion-item.active .climate-timer-bar {
    opacity: 1;
}

/* --- Header Items --- */
.climate-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s;
}

.climate-item-header h3 {
    font-size: 24px;
    font-weight: 500;
    line-height: 1.5;
    color: #181D27;
    margin: 0;
}

/* --- Arrow Style --- */
.climate-item-header .climate-arrow {
    background-image: url('../../../image/icon/chevron-down-dark.svg');
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

.climate-accordion-item.active .climate-arrow {
    transform: rotate(0deg);
}

/* Accordion Body */
.climate-item-body {
    display: none;
}
/* 
.climate-accordion-item.active .climate-item-body {
    display: block;
} */

.climate-body-content p {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    color: #535862;
    margin-top: 8px;
    margin-bottom: 16px;
}

.climate-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1FA569;
    /* เดิม --climate-green-main */
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 16px;
}

.climate-read-more:hover {
    color: #1FA569;
    /* เดิม --climate-green-main */
}

.climate-read-more .arrow-right {
    background-image: url('../../../image/icon/arrow-up-right.svg');
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
    rotate: 0deg;
    transition: rotate 0.3s ease;
}

.climate-read-more:hover .arrow-right {
    rotate: 45deg;
}

/* Logo Grid */
.climate-logo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.climate-logo {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.climate-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* --- Mobile Image (Hidden on Desktop) --- */
.climate-mobile-image-wrapper {
    display: none;
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 4/3;
}

.climate-mobile-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Right Side: Desktop Image --- */
.climate-desktop-image-container {
    flex: 0.7;
    /* position: sticky; */
    top: 40px;
    border-radius: 12px;
}

#climate-display-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 1024px) {
    .climate-section {
        height: auto;
        padding: 40px 16px;
    }
}

@media (max-width: 900px) {
    .climate-section {
        padding: 60px 20px;
        height: auto; 
        min-height: 100vh; 
        align-items: flex-start;
    }
    .climate-container {
        height: auto;
        transform: scale(1.0) !important;
    }
    .climate-main-header {
        margin-bottom: 36px;
    }

    .climate-main-header h2 {
        font-size: 24px;
    }

    .climate-item-header h3 {
        font-size: 18px !important;
    }

    .climate-body-content p {
        font-size: 16px !important;
    }

    .climate-read-more {
        font-size: 16px !important;
    }

    .climate-content-wrapper {
        flex-direction: column;
    }

    .climate-desktop-image-container {
        display: none;
    }

    .climate-mobile-image-wrapper {
        display: block;
    }

    .climate-accordion-container {
        width: 100%;
    }
    .climate-accordion-item:hover {
        background: unset;
    }
    .climate-accordion-item:active {
        background: #BAE8D4;
    }

    .committee-position, .committee-org {font-size: 14px !important;}
}

/* scale hv */
@media (min-width: 1025px) and (max-width: 1250px) , (min-height: 550px) and (max-height: 910px) {
    .climate-section {
            padding: 80px 20px 24px 20px;
    }
    .climate-container {
        max-width: 1000px;
    }
    .climate-main-header {
        margin-bottom: 10px;
    }
    .climate-content-wrapper {
        gap: 22px;
    }
    .climate-desktop-image-container {
        flex: 0.6;
    }
    .climate-main-header h2 {
        font-size: 24px;
    }
    .climate-main-header p {
        font-size: 16px;
    }
    .climate-item-header h3 {
        font-size: 14px;
    }
    .climate-body-content p {
        font-size: 12px;
        margin-top: 4px;
        margin-bottom: 8px;
    }
    .climate-accordion-item {
        padding: 8px;
    }
    .climate-read-more {
        font-size: 12px;
        margin-bottom: 8px;
    }
    .climate-logo {
        width: 42px;
        height: 42px;
    }

    .climate-item-header .climate-arrow {
        width: 12px;
        height: 12px;
    }
    .climate-read-more .arrow-right {
        width: 12px;
        height: 12px;
    }
}

@media (min-height: 637px) and (max-height: 910px) and (min-width: 768px) {
    .climate-main-header h2 {
        font-size: 36px;
    }
    .climate-main-header p {
        font-size: 16px;
    }
    .climate-item-header h3 {
        font-size: 21px;
    }
    .climate-body-content p {
        font-size: 14px;
    }
    .climate-read-more {
        font-size: 16px;
    }
    .climate-read-more .arrow-right {
        width: 16px;
        height: 16px;
    }
    .climate-logo {
        width: 52px;
        height: 52px;
    }
}


.committee-wrapper {
    font-family: 'Prompt', sans-serif;
    background-color: #13643F;
    padding: 60px 20px;
    width: 100%;
}

.committee-container {
    max-width: 1140px;
    margin: 0 auto;
}

/* --- Header Section --- */
.committee-header {
    text-align: center;
    color: #fff;
    margin-bottom: 40px;
}

.committee-header h2 {
    font-size: 42px;
    font-weight: 600;
    line-height: 1.5;
}

.committee-header span {
    font-weight: 600;
    font-size: 32px;
    display: block;
}

/* --- Grid Layout --- */
.committee-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
    /* Mobile: 1 Column */
}

/* --- Card Design --- */
.committee-card {
    position: relative;
    background: none;
    border-radius: 20px;
    overflow: hidden;
    height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: default;
}

/* --- Background Image Container --- */
.committee-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    border-radius: 20px;
    z-index: 0;
    /* Path รูปของคุณ */
    background-image: url('../../home/img/bg-committee-card.png');
}

/* --- Image Section --- */
.committee-img-box {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 1;
}

.committee-img-box img {
    max-width: 100%;
    height: 90%;
    object-fit: contain;
    object-position: center bottom;
}

/* --- Info Box Section --- */
.committee-info-box {
    z-index: 3;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 6px 16px;
    text-align: center;
    background: rgba(255, 255, 255, 0.80);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    /* Transition พื้นฐาน */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
}

/* ส่วนที่แสดงผลตลอดเวลา */
.committee-role-green {
    color: #13643F;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    display: block;
}

.committee-name {
    color: #181D27;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
}

/* --- Wrapper สำหรับส่วนที่ต้องการยืดหด --- */
.committee-details-grid {
    display: grid;
    /* Global State (Mobile & iPad): เปิดตลอด */
    grid-template-rows: 1fr;
    opacity: 1;
    transition: grid-template-rows 0.3s ease-out, opacity 0.3s ease-out;
}

.committee-details-inner {
    overflow: hidden;
}

.committee-position,
.committee-org {
    color: #181D27;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    display: block;
}

@media (max-width: 768px) {
    .committee-header h2 {
        font-size: 24px;
    }
}

/* --- [Step 1] Tablet Layout (768px - 1024px) --- */
@media (min-width: 768px) {
    .committee-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- [Step 2] Desktop Only Interaction (1025px+) --- */
@media (min-width: 1025px) {

    /* Desktop: กลับมาเป็น 3 คอลัมน์ */
    .committee-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* [เพิ่มเติม] Desktop ให้กลับไปใช้ความสูงแบบ Compact */
    .committee-card {
        height: 267px;
    }

    /* --- Desktop Base State (Non-Hover: ปิด) --- */
    .committee-card .committee-info-box {
        background: rgba(255, 255, 255, 0.80);
        padding: 16px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }

    .committee-card .committee-name {
        margin-bottom: 0;
        /* เอา margin ออกตอนปิด */
    }

    /* สั่งซ่อนเฉพาะ Desktop */
    .committee-details-grid {
        grid-template-rows: 0fr;
        /* หุบ */
        opacity: 0;
        /* จาง */
    }

    /* --- Desktop Hover State: เปิด --- */
    .committee-card:hover .committee-info-box {
        background: rgba(255, 255, 255, 0.80);
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        height: auto;
        padding: 15px;
        justify-content: center;
    }

    /* Hover: ยืด + ชัด */
    .committee-card:hover .committee-details-grid {
        grid-template-rows: 1fr;
        opacity: 1;
    }

    .committee-card:hover .committee-name {
        margin-bottom: 5px;
    }
}

/* ############### sc-news-related ############### */
.related-news-container {
  padding: 64px 16px;
}
.related-news-content {
  max-width: 1140px;
  margin-inline: auto;
}
.related-news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.related-news-head {
  font-size: 42px;
  font-weight: 600;
  line-height: 1.5;
  color: #181d27;
}
.related-news-all {
  position: relative;
  display: flex;
  align-items: center;
  color: #188152;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  gap: 6px;
  cursor: pointer;
  transition: gap 0.3s ease;
}
.related-news-all:hover {
  color: #188152;
  gap: 12px;
}
.related-news-all img {
  position: absolute;
  right: -26px;
  width: 20px;
  transition: right 0.3s ease, filter 0.3s ease;
}
.related-news-all:hover img {
    filter: brightness(0) saturate(100%) invert(35%) sepia(77%) saturate(420%) hue-rotate(110deg) brightness(90%) contrast(95%);
    right: -36px;
}
.related-news-wrapper {
  overflow: hidden;
}
.related-news-wrapper .swiper-wrapper {
  margin-block: 32px;
}
.ralated-card {
  border-radius: 8px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 8px 12px 0 rgba(0, 0, 0, 0.05);
}
.ralated-card:hover {
  background: #e9f8f1;
}
.related-news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 16px;
}
.related-news-content {
  flex-grow: 1;
}
.related-news-content .related-news-date {
  color: #535862;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 4px;
}
.related-news-content .related-news-title {
  color: #181d27;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  min-height: 54px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.related-tags {
  display: flex;
  justify-content: space-between;
}
.related-tags .tag-item {
  color: #181d27;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  border: 1px solid #99ddbf;
  border-radius: 9999px;
  background: #e9f8f1;
  padding-inline: 10px;
  transition: all 0.3s ease;
}
.related-tags .tag-item:hover {
  background: #6bcda1;
  color: #ffffff;
  border-color: #6bcda1;
}
.related-tags img {
  width: 20px;
  height: 20px;
  transition: rotate 0.3s ease;
}
.ralated-card:hover .related-tags a img {
  rotate: 45deg;
}

.related-news-wrapper .related-swiper-pagination {
  text-align: center;
}
.related-swiper-pagination .swiper-pagination-bullet {
  background: #e9eaeb;
  opacity: 1;
}
.related-swiper-pagination .swiper-pagination-bullet-active {
  background: #1eba75;
}

@media (max-width: 768px) {
  .related-news-head {
    font-size: 24px;
  }
  .related-news-all {
    font-size: 14px;
    margin-right: 29px;
  }
  .related-news-content .related-news-title {
    font-size: 14px;
    min-height: 84px;
    -webkit-line-clamp: 4;
  }
  .related-tags .tag-item {
    font-size: 10px;
    padding-block: 6px;
    line-height: 1.2;
  }
  .related-news-container {
    padding: 40px 16px;
  }
}

/* --- Video Loader (Pure CSS Spinner) --- */
.video-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 5px solid #13643F;
    border-radius: 50%;
    border-top: 5px solid #ffffff; 
    animation: spin 1s linear infinite;
    z-index: 20; 
    display: none;
    pointer-events: none; 
}

.video-detaill.loading .video-loader {
    display: block !important;
}

.video-detaill.loading .inline-play-btn {
    display: none !important;
}



/* Animation */
@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}