/* --- Hero Section (Section แรก) --- */
.hero {
    padding: 2rem 0 0 4rem;
    overflow: hidden;
    position: relative;
}
.url-section{
    padding: 1rem 2rem;
    display: flex;
    align-items:start;
    color: #161616;
    width: 100%;
}
.url-section p {
    font-size: 1.8rem;
    font-weight: 500;
}
.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-text {
    flex: 1;
    max-width: 50%;
    padding-right: 2.5rem;
    z-index: 2;
}

.hero-text h1 {
    color: #003db3;
    font-size: 2.15rem; /* 36px / 16 */
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1.75rem; /* 20px / 16 */
}

.hero-text p {
    color: #003db3;
    font-size: 1.4rem; /* 16px / 16 */
    font-weight: 300;
    line-height: 1.2;
}

.hero-image-area {
    flex: 1;
    position: relative;
    max-width: 50%;
    display: flex;
    justify-content: flex-end;
}

.image-wrapper {
    position: relative;
    width: 100%;
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* เทคนิคทำสีขาว Fade กลืนกับรูปภาพทางซ้าย */
.fade-left {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -1px;
    width: 40%;
    background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
    z-index: 1;
}

/* Responsive Design สำหรับหน้า Home */
@media (max-width: 62rem) { /* 992px / 16 */
    .hero-container {
        flex-direction: column;
    }
    .hero-text {
        max-width: 100%;
        padding-right: 0;
        margin-bottom: 2.5rem; /* 40px / 16 */
    }
    .hero-image-area {
        max-width: 100%;
    }
    .fade-left {
        width: 20%;
    }
}

/* =========================================
   Mobile Responsive (Hero Section)
   ========================================= */
@media (max-width: 48rem) { /* 768px / 16 */
    .hero {
        padding: 2rem 1.5rem; /* ลบ padding ซ้าย 4rem ออกเพื่อให้พอดีมือถือ */
    }
    
    .hero-text h1 {
        font-size: 1.75rem; /* ลดขนาด Font หัวข้อลง */
        margin-bottom: 1rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
}



/* =========================================
   Agent Profile Section (Section ใหม่)
   ========================================= */
.agent-profile {
    padding: 4rem 4rem 0 4rem; /* ลด padding-top ลงเพื่อให้สมดุลกับ section ด้านบน */
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.profile-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 4rem; /* เพิ่มระยะห่างระหว่างฝั่งซ้ายและขวาให้มี Space เหมือนในรูป */
    justify-items: flex-start;
}

/* ด้านซ้าย - ข้อความ */
.profile-text {
    flex: 1;
    max-width: 55%; /* ปรับสัดส่วนให้กว้างขึ้นเล็กน้อยเพื่อรองรับ Card */
    z-index: 2;
}

.profile-text h2 {
    color: #003db3; 
    font-size: 2.15rem; /* ขนาดอิงตาม hero h1 */
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1.25rem;
}

.profile-text p {
    color: #003db3;
    font-size: 1.4rem; /* 16px / 16 */
    font-weight: 300;
    line-height: 1.2;
    text-indent: 2rem;
}

/* การ์ดข้อมูลตัวแทนสีน้ำเงิน */
.profile-card {
    background-color: #003db3; 
    color: #ffffff;
    padding: 1.5rem 2rem; /* ปรับ Padding ไม่ให้ดูหนาเกินไป */
    border-radius: 0.75rem; /* เพิ่มความมนให้ใกล้เคียงภาพตัวอย่าง */
    text-align: center;
    margin-top: 2rem;
    display: block; /* เปลี่ยนจาก inline-block เพื่อให้เต็มพื้นที่ขอบเขตข้อความ */
    width: 100%; 
}

.profile-card h3 {
    font-size: 1.5rem; /* ปรับขนาดให้พอดี ไม่แย่งซีน Heading */
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.profile-card p.role {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #ffffff;
    text-indent: 0rem;
}

.profile-card p.license {
    font-size: 0.95rem;
    font-weight: 300;
    opacity: 0.9;
    color: #ffffff;
    text-indent: 0rem;
}

/* ด้านขวา - รูปภาพ */
.profile-image {
    flex: 1;
    max-width: 50%; /* ปรับจาก 45% เป็น 50% เพื่อให้รูปภาพมีพื้นที่ขยายได้เต็มที่ */
    display: flex;
    justify-content: center; 
    align-items: center;
}

.image-box {
    background-color: transparent; 
    border-radius: 1rem; 
    overflow: hidden;
    padding: 0; 
    box-shadow: none; 
    position: relative;
    z-index: 1;
    width: 100%; /* ให้รูปภาพยืดหยุ่นและเล็กลงตามขนาดจออัตโนมัติ */
    aspect-ratio: 4 / 5;
    max-width: 600px; /* อัปเดตจาก 300px เป็น 600px */
}

.image-box img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 1rem; /* ให้รูปโค้งมนตามคอนเทนเนอร์ */
}


/* =========================================
   Profile Stats Bar (แถบสถิติด้านล่าง)
   ========================================= */
.profile-stats {
    background-color: #003db3;
    padding: 2rem 0; /* ลดความหนาของแถบลง */
    width: 100%;
    position: relative;
    margin-top: -1px;
}

.stats-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-item {
    flex: 1;
    text-align: center;
    color: #ffffff;
    padding: 0 1rem;
    border-right: 1px solid rgba(255, 255, 255, 0.4);
}

.stat-item:last-child,
.logo-item {
    border-right: none; 
}

.stat-item h4 {
    font-size: 2.4rem; /* ลดขนาดจาก 3.2rem ให้สมดุล */
    font-weight: 700;
    margin-bottom: 0.25rem;
    line-height: 1;
}

.stat-item p {
    font-size: 1.1rem; /* ลดขนาดข้อความกำกับเล็กน้อย */
    font-weight: 400;
    opacity: 0.9;
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

/* =========================================
   Responsive Design (แท็บเล็ต/หน้าจอขนาดกลาง)
   ========================================= */
@media (max-width: 62rem) {
    .hero-container {
        flex-direction: column;
    }
    .hero-text {
        max-width: 100%;
        padding-right: 0;
        margin-bottom: 2.5rem;
    }
    .hero-image-area {
        max-width: 100%;
    }
    .fade-left {
        width: 20%;
    }
    
    .profile-container {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }
    .profile-text {
        max-width: 100%;
    }
    .profile-card {
        margin: 2rem auto 3rem auto;
    }
    .profile-image {
        max-width: 100%;
        justify-content: center;
    }
    .image-box {
        width: 80%; /* ขยายรูปในหน้าจอ Tablet */
    }
    
    .stats-container {
        flex-wrap: wrap;
        gap: 2rem 0;
    }
    .stat-item {
        flex-basis: 50%;
        margin-bottom: 1rem;
        border-right: none;
    }
    .stat-item:nth-child(odd) {
        border-right: 1px solid rgba(255, 255, 255, 0.3);
    }
    .logo-item {
        flex-basis: 100%;
        border-right: none !important;
    }
}

/* =========================================
   Responsive Design (มือถือ)
   ========================================= */
@media (max-width: 48rem) {
    .hero {
        padding: 2rem 1.5rem;
    }
    .hero-text h1 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    .hero-text p {
        font-size: 1rem;
    }
    .profile-container {
        display: flex;
        flex-direction: column;
    }
    .profile-image {
        order: 3;
        width: 100%;
        display: flex;
        justify-content: center;
        margin: 1.5rem 0; /* เพิ่มช่องไฟให้สวยงามบนมือถือ */
    }
    
    /* ดันการ์ดลงไปอยู่ล่างสุด */
    .profile-card {
        order: 4;
        width: 100%;
        padding: 1.5rem; /* ของเดิมที่คุณตั้งไว้ */
        margin-top: 0; /* ล้างระยะขอบเดิม */
    }

    .profile-card h3 {
        font-size: 1.4rem; /* ของเดิมที่คุณตั้งไว้ */
    }

    /* 4. ย้ำให้กรอบรูปภาพอยู่กึ่งกลางแน่นอน */
    .image-box {
        width: 100%;
        margin: 0 auto; 
    }
    /* 2. สลายกรอบ .profile-text ชั่วคราว เพื่อให้เราเรียงลำดับลูกๆ ข้าม DOM ได้ */
    .profile-text {
        display: contents; 
    }
    .agent-profile {
        padding: 3rem 1.5rem 0;
    }
    .profile-text h2 {
        order: 1;
        font-size: 1.6rem; /* ของเดิมที่คุณตั้งไว้ */
        align-items: center;
    }
    .profile-card h3 {
        font-size: 1.4rem;
    }
    
    .profile-stats {
        padding: 2rem 1.5rem;
    }
    .stat-item {
        flex-basis: 100%; 
        border-right: none !important; 
    }
    .stat-item h4 {
        font-size: 2.2rem;
    }
}

/* =========================================
   Global Utilities สำหรับส่วนที่เพิ่มมาใหม่
   ========================================= */

.text-center { text-align: center; }
.text-right { text-align: center; margin-top:2rem;}
.text-primary { color: #003db3; }
.text-danger { color: #e74c3c; font-size: 0.9rem; }
.text-white { color: #ffffff; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }
.mb-2 { margin-bottom: 1.5rem; }
.mb-3 { margin-bottom: 2.5rem; }
.pl-3 { padding-left: 3rem; }

.section-title {
    color: #003db3;
    font-size: 2.15rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-decoration: underline; 
    text-decoration-color: #fb9e25; 
    text-decoration-thickness: 3px; 
    text-underline-offset: 1rem;
}

.read-more {
    color: #003db3;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
    font-size: 1.3rem;
}
.read-more:hover { opacity: 0.7; }

/* =========================================
   อัปเดตตำแหน่งลูกศรซ้าย-ขวา (Carousel Buttons)
   ========================================= */

.carousel-wrapper {
    position: relative;
    display: flex; /* กลับมาใช้ Flex เหมือนเดิม */
    align-items: center; 
    padding: 0 2rem; /* เพิ่ม Padding ซ้าย-ขวาให้กับ Wrapper เพื่อให้ลูกศรไม่ชิดขอบมากเกินไป */
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    /* เปลี่ยนจาก mandatory เป็น proximity ถ้าอยากให้ลื่นขึ้น หรือคง mandatory ไว้ */
    scroll-snap-type: x mandatory; 
    scroll-behavior: smooth;
    padding-bottom: 1rem;
    width: 100%;
}
.carousel-card-content{
    width: 20rem;
}
.carousel-card {
    flex: 0 0 calc(33.333% - 1rem); /* ปรับตามจำนวนที่ต้องการแสดง */
    scroll-snap-align: start; /* ล็อกที่จุดเริ่มต้นของการ์ด */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.carousel-card:hover {
    transform: translateY(-5px); /* ยกการ์ดขึ้นนิดหน่อย */
    /* ไม่ใส่เงาตรงนี้เยอะเพราะใน VDO และประกันมีการกำหนดขอบไว้แล้ว */
}
.carousel-track-review{
    gap: 1.5rem;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}


/* ใส่ Class นี้ไว้ใน CSS */
.bg-curve {
    position: absolute;
    top: -50px;    /* ปรับให้ลอยขึ้นไปบนนิดหน่อยถ้าต้องการ */
    right: -50px;  /* ปรับตำแหน่งตามต้องการ */
    width: 300px;  /* ปรับขนาดตามความเหมาะสมของกล่อง */
    height: 300px;
    background-color: #003db3;
    border-radius: 50%;
    z-index: 0;    /* อยู่หลังสุด */
    pointer-events: none;
}





/* =========================================
   Section 3: Stable Company
   ========================================= */
.stable-container {
    display: flex;
    gap: 4rem;
    padding: 0 4rem;
}
.stable-text { flex: 1; }
.stable-text h2 {
    color: #003db3;
    font-size: 2.15rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}
.stable-text p {
    color: #003db3;
    font-size: 1.6rem; /* 16px / 16 */
    font-weight: 200;
    line-height: 1.4;
}
.stable-image { flex: 1; display: flex; justify-content: center;}
.stable-image img {
    width: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    width: 100%;
    aspect-ratio: 4 / 5;
    max-width: 600px;
}

/* =========================================
   Section 4: Insurance Plans (สไตล์ตามรูปตัวอย่าง)
   ========================================= */
.search-bar-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto 3rem auto;
    padding: 0 1rem;
}

.search-input-group {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    flex: 1;
    min-width: 250px;
    max-width: 400px;
}

.search-input-group input {
    border: none;
    outline: none;
    flex: 1;
    padding: 0 0.5rem;
    font-size: 1rem;
    background: transparent;
    color: #333;
}

.category-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 0.6rem 2.5rem 0.6rem 1.5rem;
    border: 1px solid #ccc;
    border-radius: 50px;
    background-color: #fff;
    font-size: 1rem;
    color: #333;
    outline: none;
    cursor: pointer;
    min-width: 180px;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23003db3%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    background-size: 0.75rem auto;
}

.btn-search {
    background-color: #1847ab; /* สีฟ้าอมเขียวตามต้นฉบับ */
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-search:hover {
    background-color: #0040c8;
}



/* สไตล์การ์ดสไลด์ของแผนประกัน (จัดตรงกลางคลีนๆ แบบในรูป) */
.plan-card {
    flex: 0 0 calc(33.333% - 1rem); /* หน้าจอปกติแสดง 3 รูป */
    scroll-snap-align: start;
    background: transparent;
    text-align: center;
    padding: 0 0.5rem;
}

.plan-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain; /* ป้องกันรูปเบี้ยวบีบ */
    border-radius: 1rem;
    margin-bottom: 1rem;
}




/* Mobile & Tablet Responsive */
@media (max-width: 992px) {
    .plan-card {
        flex: 0 0 calc(50% - 0.75rem); /* แท็บเล็ตแสดง 2 รูป */
    }
}

@media (max-width: 768px) {
    .search-bar-container {
        flex-direction: column;
        width: 100%;
    }
    .search-input-group, .category-select, .btn-clear {
        width: 100%;
        max-width: 100%;
    }
}
/* =========================================
   Section 4: Insurance Plans (อัปเดตโครงสร้าง UI ใหม่)
   ========================================= */
.plan-card {
    flex: 0 0 calc(33.333% - 1rem); /* คงการคำนวณ Grid ไว้ 3 คอลัมน์ */
    scroll-snap-align: start;
    background: transparent; /* ลบพื้นหลังสีขาวเพื่อความคลีน */
    text-align: center; /* บังคับข้อความจัดกึ่งกลาง Absolute */
}

.plan-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 0.75rem; /* กำหนดความมนที่ตัว Render รูปภาพโดยตรง */
    border: 1px solid #e2e8f0; /* เพิ่มขอบบางๆ เลียนแบบเงาสะท้อนจากภาพตัวอย่าง */
    margin-bottom: 1.25rem;
}

.plan-card .card-content { 
    padding: 0 0.5rem; /* ลด Padding เพื่อขยายขอบเขต Text Node */
}
/* --- ส่วนล็อคความสูงหัวข้อ 3 (บังคับ 2 บรรทัด) --- */
.plan-card h3 {
    color: #003db3;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.4; /* เพิ่มระยะบรรทัดให้คำนวณง่าย */
    margin-bottom: 0.75rem;
    
    display: -webkit-box;
    -webkit-line-clamp: 2; /* ตัดข้อความที่ 2 บรรทัด */
    -webkit-box-orient: vertical;
    overflow: hidden;
    
    /* 1.4rem (ขนาดฟอนต์) x 1.4 (ระยะบรรทัด) x 2 (บรรทัด) = 3.92rem */
    min-height: 3.92rem; 
}

/* --- ส่วนล็อคความสูงคำอธิบาย (บังคับ 4 บรรทัด) --- */
.plan-card p { 
    font-size: 1rem; 
    color: #003db3; 
    line-height: 1.5;
    font-weight: 300;
    
    display: -webkit-box;
    -webkit-line-clamp: 4; /* ตัดข้อความที่ 4 บรรทัด (ปรับเลขได้ตามต้องการ) */
    -webkit-box-orient: vertical;
    overflow: hidden;
    
    /* 1rem (ขนาดฟอนต์) x 1.5 (ระยะบรรทัด) x 4 (บรรทัด) = 6rem */
    min-height: 6rem;
    margin-bottom: 0;
}



/* =========================================
   Pagination Dots Component
   ========================================= */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 1.6rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    width: 100%;
}

.carousel-dots .dot {
    width: 1.2rem;
    height: 1.2rem;
    background-color: #d1d5db; /* สีเทาอ่อน */
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-dots .dot.active {
    background-color: #003db3; /* สี Active เป็นสีน้ำเงินแบรนด์ */
}

/* =========================================
   Section 5: VDO News (อัปเดต UI)
   ========================================= */
.vdo-card { 
    flex: 0 0 calc(25% - 1.125rem);
    background: #fff;
    border: 1px solid #e2d0a4;
    border-radius: 0;
    position: relative; 
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.vdo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 50, 150, 0.15);
}
/* --- ไอคอน Play บนรูปภาพ (แสดงตอน Hover) --- */
.vdo-img-wrapper {
    position: relative;
    overflow: hidden;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 61, 179, 0.7); /* ใช้สีน้ำเงินธีมบริษัทโปร่งแสง */
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    opacity: 0; /* ซ่อนไว้ก่อน */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.vdo-card:hover .play-overlay {
    opacity: 1; /* แสดงขึ้นมาตอนเอาเมาส์ชี้ */
    transform: translate(-50%, -50%) scale(1.1);
}
.vdo-content { 
    padding: 1.25rem; 
    text-align: left;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* ดันเนื้อหาให้เต็มพื้นที่ว่าง */
}



/* ปุ่มกดไปต่อ (จัดให้อยู่ล่างขวาเสมอ) */
.vdo-readmore-container {
    margin-top: auto; /* ดันเนื้อหาส่วนนี้ลงไปล่างสุดของการ์ดเสมอ */
    text-align: right;
}

.vdo-readmore {
    color: #e2d0a4;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.vdo-card:hover .vdo-readmore {
    color: #cda434; /* สีทองเข้มขึ้นตอน Hover */
}
.vdo-card-link {
    text-decoration: none; 
    color: inherit; 
    display: flex; 
    flex-direction: column;
    height: 100%;
}
.vdo-card img {
    width: 100%;
    aspect-ratio: 16 / 11; /* สัดส่วนภาพ VDO */
    object-fit: cover;
    display: block;
}

.vdo-title-text {
    color: #003db3;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* ตัดข้อความที่ 2 บรรทัด */
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3rem; /* บังคับความสูงเผื่อกรณีชื่อสั้นแค่ 1 บรรทัด */
}
/* คลาสสำหรับใส่พื้นหลังโค้งมุมขวา */

/* --- การจัดเรียงส่วนล่างของการ์ด (Footer) --- */
.vdo-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* จัดให้อยู่ระดับเดียวกันที่ฐานล่าง */
}

.vdo-info {
    display: flex;
    flex-direction: column;
}

.vdo-views {
    color: #003db3;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

/* --- บล็อกวันที่ (ไอคอน + เลข + เดือน/ปี) --- */
.vdo-date-block {
    display: flex;
    align-items: center;
    color: #003db3;
}

.vdo-date-block .calendar-icon {
    margin-right: 0.25rem;
}

.vdo-date-block .date-num {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    margin: 0 0.4rem;
    letter-spacing: -1px;
}

.vdo-date-block .date-month-year {
    display: flex;
    flex-direction: column;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
}

/* --- ไอคอนแชร์ด้านขวาล่าง --- */
.vdo-share {
    cursor: pointer;
    transition: transform 0.2s;
}

.vdo-share:hover {
    transform: scale(1.1); /* ขยายเล็กน้อยตอนเอาเมาส์ชี้ */
}

/* --- สีลูกศรเฉพาะ Section VDO --- */
.vdo-nav-btn {
    color: #cda434 !important; /* บังคับให้ลูกศรใน VDO เป็นสีทอง */
}
/* ปรับปรุง .vdo-carousel เพื่อให้รองรับการวาง Background */
.vdo-carousel {
    position: relative;
    overflow: hidden;  
}

/* ปรับปรุง .bg-curve */
.bg-curve {
    position: absolute;
    top: -50px;       /* ปรับให้ชิดขอบบน */
    right: -450px;     /* ปรับให้ชิดขอบขวา */
    width: 800px;     /* ขนาดที่เหมาะสม */
    height: 800px;    /* ขนาดที่เหมาะสม */
    background-color: #003db3; /* สีน้ำเงินของคุณ */
    border-radius: 50%; /* ทำให้เป็นทรงวงกลม/โค้ง */
    z-index: 0;       /* สำคัญ: ให้มันอยู่ชั้นล่างสุด */
    pointer-events: none; /* สำคัญ: ป้องกันการกดโดน */
}

/* ล็อคให้ปุ่มลูกศร VDO ใช้การลอยตัวแบบ Absolute และตั้งค่า Translate รอไว้ */
.vdo-nav-btn {
    position: absolute;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
    background: transparent;
    border: none;
    font-size: 2.5rem;
    font-weight: 800;
    padding: 0;
}
/* =========================================
   Section 6: Career
   ========================================= */
/* =========================================
   Section 6: Career (แนะนำอาชีพ - อัปเดต Hover Effect)
   ========================================= */
.career-top {
    display: flex;
    gap: 1.5rem;
    align-items: stretch;
    margin: 0 2rem;
}


/* คลาสหลักสำหรับจับ Hover */
.career-hover-box {
    position: relative;
    overflow: hidden;
    display: block;
    cursor: pointer;
}

/* บังคับให้ภาพขวาเล็ก สูงเท่าๆ กัน */
.career-side-imgs .career-hover-box {
    flex: 1; /* บังคับให้ทั้ง 2 รูปแบ่งความสูงกันคนละครึ่ง (50/50) เสมอ */
    width: 100%;
    height: auto; /* ปลดล็อคความสูงตายตัว */
}
.career-text h3 {
    color: #003db3;
    font-size: 1.55rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}
.career-text h4 {
    color: #003db3;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}
.career-text p {
    color: #003db3;
    font-size: 1.3rem; /* 16px / 16 */
    font-weight: 200;
    line-height: 1.4;
}
.career-hover-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease; /* เตรียมแอนิเมชันสำหรับซูมรูป */
}

/* --- กล่องข้อความสีน้ำเงิน (Peek Overlay) --- */
.hover-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* 1. แก้ไข: ไล่สีน้ำเงินตอนรอให้เตี้ยลง (แค่ 35%) และโปร่งใสขึ้น ไม่ให้บังรูปภาพ */
    background: linear-gradient(to top, rgba(0, 61, 179, 0.85) 0%, transparent 35%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 1.5rem;
    transition: background 0.4s ease;
}

/* ซ่อนคำอธิบายและปุ่มไว้ก่อน */
.hover-overlay .stats,
.hover-overlay .btn-link {
    max-height: 0; opacity: 0; overflow: hidden; margin: 0;
    transform: translateY(15px);
    transition: all 0.4s ease;
}

/* หัวข้อและลูกศร */
.hover-overlay h4 { 
    margin: 0 0 0.5rem 0; 
    font-size: 1.25rem; font-weight: 500; color: #fff;
    display: flex; align-items: center; justify-content: space-between;
}
.hover-overlay h4::after {
    content: '▴'; font-size: 1.8rem; color: #ffb703;
    transition: transform 0.4s ease; line-height: 1;
}

/* --- เมื่อเอาเมาส์ชี้ (Hover Effect) --- */
.career-hover-box:hover img { transform: scale(1.08); }

/* ถมสีน้ำเงินให้เข้มขึ้นเฉพาะตอนเอาเมาส์ชี้ (Hover) */
.career-hover-box:hover .hover-overlay { 
    background: rgba(0, 61, 179, 0.95); 
}

.career-hover-box:hover .hover-overlay h4::after { transform: rotate(180deg); }

.career-hover-box:hover .hover-overlay .stats,
.career-hover-box:hover .hover-overlay .btn-link {
    max-height: 150px; opacity: 1; transform: translateY(0); margin-top: 0.75rem;
}

/* 2. แก้ไข: ปรับขนาดตัวอักษร P (.stats) ให้ใหญ่ขึ้น เป็นสีขาวชัดเจน และอ่านง่าย */
.career-hover-box:hover .hover-overlay .stats {
    font-size: 1rem; 
    color: #ffffff;
    opacity: 1; 
    line-height: 1.5;
    margin-bottom: 0.75rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}

/* ปุ่มอ่านเพิ่มเติม (ขยายพื้นที่กดให้เต็มกล่องสำหรับมือถือ) */
.hover-overlay .btn-link { 
    color: #ffb703; text-decoration: none; font-weight: 600; font-size: 1rem; position: static; 
}
.hover-overlay .btn-link::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 1;
}
.hover-overlay .btn-link { 
    color: #fff; 
    text-decoration: none; 
    font-weight: 500;
    transform: translateY(15px);
    transition: transform 0.4s ease;
    transition-delay: 0.1s;
}

/* เมื่อเอาเมาส์ชี้ ให้ดึงข้อความเด้งกลับมาตำแหน่งเดิม (0) */
.career-hover-box:hover .hover-overlay h4,
.career-hover-box:hover .hover-overlay .stats,
.career-hover-box:hover .hover-overlay .btn-link {
    transform: translateY(0);
}
.career-right{
    flex: 2;
    display: flex;
    flex-direction: row;
    background-color: #f2ededc5;
}
.career-right-text{
    flex: 1;
}
.career-text {
    flex: 1;
    padding: 1rem;
    padding-right: 3rem;
}
.career-side-imgs {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* กำหนดระยะห่างระหว่าง 2 รูปให้ตายตัว (ปรับตัวเลขได้ตามต้องการ) */
}
.career-side-imgs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.btn-link { color: #fff; text-decoration: none; }

.career-blue-section {
    background: #003db3;
    padding: 2rem 2rem;
}
.career-blue-container {
    display: flex;
    gap: 4rem;
}

.blue-text { flex: 1; color: white; display: flex; flex-direction: column; gap:1rem;}
.blue-text h2 { font-size: 2.2rem; margin-bottom: 1rem; line-height: 1.3;}
.blue-text p { font-size: 1.3rem;margin-bottom: 1.5rem; opacity: 0.9;    font-weight: 200; }
.blue-text ul {
    list-style: none;
    margin-bottom: 2rem;
    list-style-type: disc;
    margin-left: 2rem;
}
.blue-text ul li {
    margin-bottom: 0.5rem;
    position: relative;
    font-size: 1.3rem;
    font-weight: 200;
}
.btn-yellow {
    display: inline-block;
    background: #ffb703;
    color: #333;
    padding: 0.75rem 2rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 600;
    width: fit-content;
    margin-left: 2rem;
}
.blue-text a{
    font-weight: 300;
}
.blue-images {
    flex: 1;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    gap:2rem;
    justify-content: center;
}


.blue-images img {
    aspect-ratio: 16 / 9; 

    border-radius: 1rem;
    width: 60%; /* ขนาดรูปเทียบกับ .blue-images */
    aspect-ratio: 16 / 9; /* ล็อกสัดส่วน */
    object-fit: cover;    /* ตัดส่วนที่เกินออกโดยไม่ทำให้ภาพเบี้ยว */
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* ตัวบนแนบซ้าย */
.img-top {
    align-self: start;
}

/* ตัวล่างแนบขวา */
.img-bottom {
    align-self: end;
}

/* =========================================
   Section 7: Testimonials 
   ========================================= */

.carousel-track-review {
    gap: 1.5rem;
    padding: 1rem 0; /* เพิ่มพื้นที่ให้เงาถ้ามี */
}

.review-card { 
    /* คำนวณความกว้างให้พอดี 3 ใบเป๊ะๆ (ลบ gap ออก 2 ช่อง) */
    flex: 0 0 calc((100% - 3rem) / 3); 
    scroll-snap-align: start;
    background-color: #f4f5f8; /* สีพื้นหลังเทาอ่อนมากๆ */
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    text-align: left; /* บังคับข้อความชิดซ้าย */
    border: none;
}

/* เอาความกว้างที่จำกัดออก ให้ขยายเต็มการ์ด */
.review-card .carousel-card-content {
    width: 100%;
}

.review-card .stars { 
    color: #fbbc04; /* สีดาวเหลืองทอง */
    margin-bottom: 1rem; 
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.review-card .review-text { 
    font-size: 1.1rem; 
    color: #111; 
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 2rem; 
    min-height: 100px; 
}

.reviewer {
    display: flex;
    align-items: center;
    color: #111;
    font-size: 1.05rem;
}

.reviewer .avatar { 
    background: #fbbc04; /* วงกลมสีเหลือง */
    color: white;
    width: 38px; 
    height: 38px; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 50%;
    margin-right: 0.8rem;
    font-size: 1rem; /* ขนาดไอคอนด้านใน */
}

.text-orange {
    color: #f26522; /* สีข้อความส้มด้านล่าง */
}

/* รองรับมือถือและแท็บเล็ต */
@media (max-width: 992px) {
    .review-card { flex: 0 0 calc((100% - 1.5rem) / 2); } /* แท็บเล็ตโชว์ 2 ใบ */
}
/* กล่องนอกสุด ทำหน้าที่คุม Layout 3 คอลัมน์ (ห้ามใส่สีพื้นหลังตรงนี้) */
.review-wrapper {
    flex: 0 0 calc((100% - 3rem) / 3); 
    scroll-snap-align: start;
    text-align: left;
    display: flex;
    flex-direction: column;
}

/* ดาวที่อยู่ด้านนอกกล่องเทา */
.review-wrapper .stars { 
    color: #fbbc04; 
    margin-bottom: 0.5rem; /* ระยะห่างระหว่างดาวกับกล่องเทา */
    font-size: 1.5rem;
    letter-spacing: 2px;
    padding-left: 1.5rem; /* ขยับดาวให้ตรงกับ Text ข้างในกล่อง */
}

/* กล่องข้อความสีเทา (ย้ายสี, padding, ขอบมน มาไว้ตรงนี้แทน) */
.review-card-box {
    background-color: #f4f5f8;
    border-radius: 1rem;
    padding: 1.5rem 1rem;
    flex-grow: 1; /* บังคับให้กล่องเทายืดความสูงเท่ากันทุกใบ */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* ดันโปรไฟล์ลงไปด้านล่างสุด */
    align-items: center;
    max-width: 400px;
}

.review-card-box .review-text { 
    font-size: 1.1rem; 
    color: #111; 
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 2rem; 
}

.reviewer {
    display: flex;
    align-items: center;
    color: #111;
    font-size: 1.05rem;
}

.reviewer .avatar { 
    background: #fbbc04; 
    color: white;
    width: 38px; 
    height: 38px; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 50%;
    margin-right: 0.8rem;
    font-size: 1rem; 
}

/* Responsive สำหรับมือถือและแท็บเล็ต */
@media (max-width: 992px) {
    .review-wrapper { flex: 0 0 calc((100% - 1.5rem) / 2); }
}

.stars { color: #ffb703; margin-bottom: 1rem; font-size: 1.2rem;}
.review-text { 
    font-size: 1rem; 
    color: #333; 
    margin-bottom: 1.5rem; 
    min-height: 100px; /* ยืดความสูงให้เท่ากันทุกการ์ด */
}
.reviewer .avatar { 
    background: #ddd; /* หรือสีอื่นที่ต้องการ */
    width: 35px; 
    height: 35px; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 50%;
    margin-right: 0.5rem;
}
/* =========================================
   Section 8: Contact Channels
   ========================================= */
.contact-grid {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    width: 100%;
}
.contact-card {
    padding: 1.5rem 2.5rem;
    border-radius: 1rem;
    background-color: #6c9df72c;
    min-width: 200px
}
.contact-icon {
    width: 60px;
    height: 60px;
    background: #4891e041;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem auto;
}
.contact-card h4 { color: #003db3; margin-bottom: 0.5rem; font-size: 1rem;}
.contact-card p {  margin-bottom: 0.5rem; font-size: 1rem;}
.text-second { color: #000000; }

.insurance-layout-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.insurance-sidebar {
    flex: 0 0 250px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 20px 0;
}
.sidebar-title {
    padding: 0 20px 10px;
    font-weight: 600;
    color: #004aad;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}
.sidebar-menu-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 20px;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
}
.sidebar-menu-btn.active, .sidebar-menu-btn:hover {
    background: #004aad;
    color: #fff;
}
.insurance-grid-content {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
/* =========================================
   MOBILE RESPONSIVE FIXES (Max-width: 768px)
   แก้ไขการเรียงตัวจาก Row เป็น Column สำหรับมือถือ
   ========================================= */
@media (max-width: 768px) {

    /* 1. Stable Company (บริษัทที่มั่นคง) */
    .stable-container {
        flex-direction: column;
        padding: 0 1.5rem; /* ลด padding ขอบจอ */
        gap: 2rem;
        text-align: center; /* จัดกึ่งกลางให้อ่านง่ายบนมือถือ */
    }
    .stable-text p {
        font-size: 1.2rem;
    }
    .career-text h4 {
        font-size: 1.4rem;
    }
    /* 2. Insurance Plans (แบบประกัน) */
    .search-bar {
        margin-left: 0;
        padding: 0 1.5rem;
    }
    .insurance-layout-container {
        flex-direction: column; /* ดัน Sidebar ขึ้นไปด้านบน */
        padding: 0 1.5rem;
    }
    .insurance-sidebar {
        flex: 1 1 100%;
        width: 100%;
    }

    .bg-curve {
        display: none; /* ปิดพื้นหลังโค้งในมือถือ ป้องกันจอเลื่อนไปด้านข้าง (Horizontal Scroll) */
    }

    /* 4. Career Section (แนะนำอาชีพ) */
    .career-top {
        flex-direction: column;
        margin: 0 1.5rem;
    }
    .career-right {
        flex-direction: column;
    }
    .career-text {
        padding-right: 0;
        text-align: center;
    }
    .career-side-imgs {
        flex-direction: column; /* เปลี่ยนเป็น column เพื่อให้รูปขยายเต็ม 100% เรียงต่อลงมา */
        gap: 1.5rem; /* เพิ่มช่องไฟให้ห่างกันนิดนึงจะได้สวยๆ */
    }

    /* Career Blue Box (กล่องสีน้ำเงิน) */
    .career-blue-section {
        padding: 2rem 1.5rem;
    }
    .career-blue-container {
        flex-direction: column;
        gap: 2rem;
    }
    .btn-yellow {
        margin-left: 0;
        align-self: center; /* จัดปุ่มให้อยู่ตรงกลาง */
    }
    .blue-images {
        min-height: auto;
    }
    .blue-images img {
        width: 100%; /* ขยายรูปให้เต็มจอ */
        align-self: center;
    }

    /* 5. Contact Channels (ช่องทางการติดต่อ) */
    .contact-grid {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding: 0 1.5rem;
    }
    .contact-card {
        width: 100%;
        max-width: 350px; /* จำกัดความกว้างไม่ให้ยืดจนเกินไป */
    }
}


/* =========================================
   แก้ไขระบบ Carousel บนมือถือ (Max-width: 768px)
   ========================================= */
@media (max-width: 768px) {
    /* 1. บังคับให้การ์ดทุกประเภท (ประกัน, VDO, รีวิว) แสดง 1 ใบเต็มจอ 100% */
    .plan-card, 
    .vdo-card, 
    .review-wrapper {
        flex: 0 0 100% !important; 
        scroll-snap-align: center; /* ให้เวลาปัดแล้วหยุดตรงกลางจอพอดีเป๊ะ */
    }

    /* 2. จัดการระยะห่างของ Track ใหม่ */
    .carousel-wrapper {
        padding: 0 !important; /* เอา Padding นอกสุดออก เพื่อให้ปุ่มลูกศรชิดขอบจอที่สุด */
    }
    
    .carousel-track {
        padding: 0 1rem; /* ย้าย Padding มาไว้ข้างในแทน เพื่อให้รูปไม่ชิดขอบจอจนเกินไป */
        gap: 1rem; /* ลดระยะห่างระหว่างการ์ดตอนปัด */
    }
    .url-section{
    padding: .8rem 1.5rem;
    }
    .url-section p {
        font-size: 1.2rem;
    }

}




/* --- ส่วนลูกศรสำหรับทุก Carousel โฉมใหม่ (ไม่มีพื้นหลังวงกลม) --- */
.carousel-btn {
    position: absolute;
    background-color: transparent !important; /* ถอดสีพื้นหลังออก */
    color: #cda434; /* สีหลัก: สีทอง/น้ำตาล คุมโทนเดียวกัน */
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    padding: 0;
    box-shadow: none !important; /* ถอดเงาออก */
    transition: transform 0.3s ease, color 0.3s ease;
}

/* เอฟเฟกต์ตอนเอาเมาส์ชี้ปุ่มลูกศร */
.carousel-btn:hover {
    transform: scale(1.2); /* ขยายใหญ่ขึ้นเล็กน้อยให้น่ากด */
    color: #b38b4d; /* ดรอปสีให้เข้มขึ้นนิดนึงเวลา Hover */
}

/* หากต้องการให้แผนประกันเป็นสีน้ำเงินตามรูปที่ 3 ให้เก็บโค้ดนี้ไว้ 
   แต่ถ้าอยากให้เป็นสีทองเหมือนกันหมด ให้ลบ block นี้ทิ้งได้เลยครับ */
.insurance-plans .carousel-btn {
    color: #003db3; 
}
.insurance-plans .carousel-btn:hover {
    color: #002366; 
}

/* ปรับระยะลูกศรให้ห่างจากการ์ดออกมาให้บาลานซ์ */
.prev-btn { left: -10px; }
.next-btn { right: -10px; }

/* สำหรับข้อความบอกจำนวนโพสต์ด้านล่าง */
.carousel-page-info {
    color: #f26522; /* สีส้มอมแดงตามหน้าดีไซน์ */
    font-size: 1.1rem;
    font-weight: 500;
}



.section-padding{
    margin: 10rem 0rem;
}
.hero{
    margin: 5rem 0 -5rem 0;
}
.padding-select {
    margin-top: 5rem;
    padding-left: 5rem;  /* บีบด้านซ้าย */
    padding-right: 5rem; /* บีบด้านขวา */
}
@media (max-width: 992px) {
    .padding-select {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    .review-card-box {
        max-width: none;
        width: 100%;
    }
}
/* =========================================
   MOBILE RESPONSIVE FIXES สำหรับ padding-select
   ========================================= */
@media (max-width: 768px) {
    .padding-select {
        margin-top: 2rem; /* ปรับลดระยะห่างด้านบนให้พอดีกับมือถือ */
        padding-left: 0;  /* ล้างระยะซ้าย */
        padding-right: 0; /* ล้างระยะขวา */
        margin-left: 0;   /* ป้องกันไม่ให้ margin เก่าดันหน้าจอเบี้ยว */
        margin-right: 0;
    }
}

/* =========================================
   ระบบซ่อน/ขยาย ข้อความในการ์ด VDO
   ========================================= */
.vdo-excerpt-text {
    font-size: 1rem; 
    color: #003db3; 
    line-height: 1.5; 
    font-weight: 300;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* ตัดข้อความที่ 3 บรรทัด */
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

/* คลาสนี้จะถูก JS เติมเข้ามาตอนกดปุ่มขยาย */
.vdo-excerpt-text.expanded {
    -webkit-line-clamp: unset;
    display: block;
}

.vdo-expand-btn {
    color: #2279f2; 
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    margin-bottom: 1rem;
}

.vdo-expand-btn:hover {
    color: #d14a0a;
    text-decoration: underline;
}
