.slider-container {
    width: 70%; /* ปรับให้ไม่ชิดขอบจอเกินไปเหมือนในรูป */
    max-width: 1800px;
    margin: 20px auto;
    height: auto; /* ให้ความสูงปรับตามรูปภาพ */
    overflow: hidden;
    position: relative;
    border-radius: 15px; /* ทำให้ขอบโค้งมนเหมือนในรูปตัวอย่าง */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* เพิ่มเงาให้นุ่มนวล */
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
}

.slide img {
    width: 100%;
    display: block;
    object-fit: cover;
}

/* ปรับแต่งจุด Dots */
.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background-color: #ffffff; /* จุดที่กำลังแสดงจะเป็นสีขาวชัดเจน */
    width: 12px;
    height: 12px;
}

.company-section {
    padding: 20px;
    font-family: 'Sarabun', sans-serif;
}

.card-slider-container {
    position: relative;
    overflow: hidden; /* ซ่อนส่วนที่เกินขอบ */
    width: 100%;
}

.card-wrapper {
    display: flex;
    gap: 15px; /* ระยะห่างระหว่างการ์ด */
    transition: transform 0.4s ease-out;
    padding: 10px 0;
}

.company-card {
    min-width: 220px; /* ปรับขนาดความกว้างของการ์ด */
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    position: relative;
}

.card-image {
    height: 300px;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* โลโก้สีขาวที่ลอยทับรูปภาพ */
.overlay-logo {
    position: absolute;
    bottom: 40px;
    left: 15px;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 8px;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.overlay-logo img {
    max-width: 100%;
    object-fit: contain;
}

/* แถบสีแดงด้านล่างข้อความ */
.card-info {
    background: #010101; /* สีแดงตามรูปตัวอย่าง */
    color: white;
    padding: 15px 10px;
    font-size: 14px;
    min-height: 60px;
}

/* ปุ่มกดซ้าย-ขวา (Minimalist) */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.4);
    color: #fff;
    border: none;
    width: 40px;
    height: 80px; /* ทรงรีแนวตั้งตามรูปตัวอย่าง */
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
    font-size: 20px;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.5);
}

.nav-btn.prev { left: 0; border-radius: 0 10px 10px 0; }
.nav-btn.next { right: 0; border-radius: 10px 0 0 10px; }

/* คอนเทนเนอร์หลักต้องซ่อนส่วนที่เกิน */
.card-slider-container {
    overflow: hidden;
    position: relative;
    width: 100%;
}

/* Wrapper ต้องวางการ์ดเรียงกันเป็นแถวเดียว */
.card-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 20px; /* ระยะห่างระหว่างการ์ด */
}

/* ปรับขนาดปุ่มให้น่าสนใจ (ตัวอย่าง) */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
}
.prev { left: 10px; }
.next { right: 10px; }

