
.timeline-section {
    display: flex;
    flex-wrap: wrap;
    width: 100vw; 
    max-width: 100%;
    padding: 0;
    overflow-x: hidden;
}

.timeline-content {
    width: 45%;
    display: flex;
    justify-content: center;
    padding: 145px 40px 0 300px;
    position: relative;
    background-image: url(../../assets/images/about/timeline/bg-timeline.webp); 
    background-attachment: fixed;
    
    /* ⚠️ ผมแก้จุดที่มี ; เกินมาให้ด้วยนะครับ จาก left; center; เป็น left center; */
    background-position: left center; 
    background-repeat: no-repeat;
    background-size: contain; 
    
    /* ⚠️ เพิ่ม 2 บรรทัดนี้: ทำเป็นกำแพงทึบสีขาว และดันให้อยู่ชั้นบนสุดเสมอ */
    background-color: #ffffff; 
    z-index: 20; 
}
.content-inner {
    max-width: 500px; 
}

.timeline-content h2 {
    font-size: 42px;
    font-weight: 500;
    margin: 0;
    line-height: 1.1;
}

.title-red { color: #E22123; }
.title-blue { color: #006CAF; margin-bottom: 25px; }

.timeline-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 20px;
}

.timeline-controls {
    display: flex;
    gap: 15px;
    position: absolute;
    bottom: 40px; 
    right: 40px;  
    margin-top: 0; 
}


.timeline-prev, 
.timeline-next {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid #333;
    background-color: #fff;
    color: #3333336b;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
}

.timeline-prev:not(.slick-disabled):hover,
.timeline-next:not(.slick-disabled):hover {
    background-color: #E22723;
    color: #fff;
    border: 1px solid #E22723;
}

.timeline-prev.slick-disabled,
.timeline-next.slick-disabled {
    border-color: #ccc;
    color: #ccc;
    cursor: default;
    opacity: 0.6;
}
.timeline-slider-wrapper {
    width: 55%;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
    
    /* ⚠️ เพิ่ม 2 บรรทัดนี้: จัดให้อยู่เลเยอร์ล่าง และตัดสไลด์ที่พุ่งทะลุกรอบออกทันที */
    z-index: 1; 
    overflow: hidden; 
}

#timeline-slick {
    width: 100%;
}
#timeline-slick .slick-list,
#timeline-slick .slick-track {
   display: flex !important;
}

#timeline-slick .slick-slide {
    height: auto;
    margin: 0 !important; 
    float: none !important; 
}

.slide-item {
    display: block !important; 
    margin: 0 !important;
    padding: 0 !important;
    height: 92vh; 
    position: relative;
    /* ⚠️ เพิ่ม 2 บรรทัดนี้ เพื่อป้องกันภาพล้นและตั้งเป็นเสาหลักให้เลเยอร์ */
    overflow: hidden; 
    z-index: 1;
}

.slide-item img {
    width: 100%;
    /* ⚠️ ปรับจาก auto เป็น 100% เพื่อให้รูปเต็มกรอบ 88vh พอดี และไม่ยืดหดผิดปกติ */
    height: 100%; 
    object-fit: cover;
    display: block !important; 
    /* ⚠️ ผลักรูปไปอยู่เลเยอร์ล่างสุดเสมอ */
    position: relative;
    z-index: 0;
}

.slide-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%; 
    /*background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);*/
    pointer-events: none;
    /* ⚠️ ดันเงาดำให้อยู่เหนือรูป */
    z-index: 1; 
}
.slide-info {
    position: absolute;
    bottom: 30px;
    left: 55px;
    right: 40px; 
    /* ⚠️ ดันข้อความให้อยู่ชั้นบนสุดเสมอ (ปรับให้สูงขึ้นจาก 2 เป็น 10 เพื่อความชัวร์) */
    z-index: 10; 
    color: #ffffff;
}

.slide-info h3 {
    font-size: 40px;
    font-weight: 400;
    margin: 0 0 10px 0;
    text-transform: uppercase;
}

.slide-info p {
    font-size: 20px;
    margin: 0;
    line-height: 1.5;
    opacity: 0.9;
    color: #fff;
    min-height: 90px;
    font-weight: 300;
}




.network-section {
    position: relative;
    padding: 80px 0;
    position: relative;
}

.network-section {
    
    
}


.network-bg-fixed {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; 
    background-image: url('../../assets/images/about/network/bg-profile.webp');
    background-size: cover;
    background-position: center;
}

.relative-z-index {
    position: relative;
    z-index: 10;
}

.network-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.network-section .container {
    position: relative;
    z-index: 2; 
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.network-title {
    color: #ffffff;
    font-size: 64px;
    font-weight: 500;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.network-sub-title {
    color: #ffffff;
    font-size: 40px;
    font-weight: 500;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.left-align { text-align: left; }
.right-align { text-align: right; }

.dotted-divider {
    border: none;
    border-top: 2px dashed #cccccc; 
    margin: 40px 0;
}

/*.network-group {
    margin-bottom: 60px;
}*/

.network-card {
    display: flex;
    background-color: rgb(245 245 245 / 88%);
    border-radius: 8px;
    margin-bottom: 25px;
    padding: 25px;
    gap: 30px; 
    align-items: stretch; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}


.network-card.reverse {
    flex-direction: row-reverse;
}


.card-logo {
    flex: 0 0 220px; 
    background-color: #ffffff; 
    border-radius: 6px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
}

.card-logo img {
    max-width: 100%;
    height: auto;
    max-height: 180px; 
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; 
}

.card-content h3 {
    color: #111111;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-transform: uppercase;
}

.card-content p {
    color: #565656;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 15px 0;
}

.card-content p:last-child {
    margin-bottom: 0;
}
@media (max-width: 1536px) {
.slide-info p {font-size: 16px;line-height: 1.4;} 
.timeline-content {padding: 130px 40px 0 225px;}
.timeline-content p {font-size: 16px;}
.timeline-prev, .timeline-next {width: 37px;height: 37px;}
.network-section .container {max-width: 1100px; padding: 0;}
.network-title {font-size: 55px;}
.network-sub-title {font-size: 30px;}
.card-content h3 {color: #111111;}
.card-content p {font-size: 16px;line-height: 1.3;}
.card-logo {flex: 0 0 200px;}
.slide-info h3 {font-size: 32px;margin: 0}
.slide-info {bottom: 0px;}

}
@media (max-width: 1280px) {
.timeline-prev, .timeline-next {width: 35px;height: 35px;}     
.timeline-content {padding: 120px 40px 0 195px;}
/*.timeline-content, .timeline-slider-wrapper {width: 50%;}*/
.timeline-content p, .card-content p {font-size: 14px;line-height: 1.3;}
.slide-info h3 {font-size: 25px;}
.slide-info p {font-size: 14px;min-height: 70px;}
.network-section .container {max-width: 900px;}
.network-title {font-size: 40px;}
.dotted-divider {margin: 25px 0;}
.network-sub-title {font-size: 26px;}
.network-card {;padding: 20px;gap: 20px;}
.card-content h3 {font-size: 17px;margin: 0 0 5px 0;}
.card-logo {flex: 0 0 170px;}
} 


@media (max-width: 1200px) {
    
} 
@media (max-width: 1080px) {
    .text-his-bottom{margin-bottom: 45px}
    .network-section .container {padding: 0 20px;}
    .timeline-section { flex-direction: column; }
    .timeline-content { width: 100%; padding: 40px 20px; }
    .timeline-slider-wrapper { width: 100%; }
    .slide-item { height: auto; } 
    .right-align {text-align: left;}


} 
  

@media (max-width: 992px) {
.network-bg-fixed {background-image: url('../../assets/images/about/network/bg-profile-mb.webp');}  
.slide-info {bottom: 45px;}
.slide-item {height: 60vh;}
.timeline-controls {bottom: 20px;}
.card-content h3 {font-size: 19px;margin: 0 0 10px 0;}
.network-section .container {padding: 40px 20px 30px 20px;}
.timeline-content p, .card-content p {font-size: 18px;line-height: 1.3;}
.content-inner {max-width: 100%;}   
.slide-info h3 {font-size: 33px;}

.content-heading .text-blue {font-size: 36px;}
.slide-info p {font-size: 16px;}
.timeline-content {padding: 120px 20px 35px 20px;}
.timeline-content p {font-size: 16px;line-height: 1.4;} 
.network-section {padding: 40px 0 0px 0;;}
    .network-card, 
    .network-card.reverse {
        flex-direction: column; 
        padding: 20px;
        gap: 20px;
    }
    
    .card-logo {
        flex: auto;
        width: 100%;
        max-width: 250px;
        margin: 15px auto; 
    }
    .network-title {font-size: 35px;margin-bottom: 10px;}
    .network-sub-title {font-size: 24px;}
    .main-title { font-size: 32px; text-align: center; }
    .sub-title { font-size: 20px; text-align: center; }
    .content-heading {font-size: 24px;line-height: 1.3;}
    .text-blue {font-size: 36px;}
    
}
@media (max-width: 768px) {
    .timeline-slider-wrapper {
        width: 100vw !important;
        position: relative !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    /* 2. 🎯 บังคับสไลด์ย่อยทุกตัว ให้กว้างเท่าขอบจอพอดีเป๊ะ */
    #timeline-slick .slick-slide {
        width: 100vw !important;
        min-width: 100vw !important;
        max-width: 100vw !important;
        flex: 0 0 100vw !important; /* ล้างอาถรรพ์จากโค้ด display: flex เดิม */
        margin: 0 !important;
        padding: 0 !important;
    }

    /* 3. รูปภาพข้างในก็ต้อง 100% เช่นกัน */
    .slide-item {
        width: 100vw !important;
        margin: 0 !important;
    }

    /* 4. ดึงปุ่มมาทับบนรูป (ถ้าของเดิมตำแหน่งโอเคแล้ว ลบส่วนนี้ได้ครับ) */
    .timeline-controls {
        position: absolute !important;
        top: 140% !important;
        left: 0 !important;
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        padding: 0 20px !important;
        z-index: 99 !important;
        pointer-events: none !important;
        margin: 0 !important;
    }

    .timeline-prev, 
    .timeline-next {
        pointer-events: auto !important;
        width: 45px !important;
        height: 45px !important;
        background-color: rgba(255, 255, 255, 0.85) !important;
        border: none !important;
        box-shadow: 0 4px 10px rgba(0,0,0,0.15) !important;
    }
    .slide-info {
        bottom: 30px;
        left: 25px;
    }
    
    
}
@media (max-width: 568px) {
.slide-item {
        height: auto;
    }
.card-logo {max-width: 215px;}
.card-logo img {max-height: 130px;}

}
@media (max-width: 480px) {

    .dotted-divider {margin: 25px 0;}


}
