/* Container หลักของ Slide */
  .custom-slider-section {
    width: 100%;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    position: relative;
  }

  .custom-slider-container {
    position: relative;
    width: 100%;
    max-width: 1100px;
    height: 340px;      /* ปรับความสูงรวมให้กระชับพอดีกับการ์ด */
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none; 
    -webkit-user-drag: none;
  }

  .custom-slider-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    height: 100%;
    justify-content: center;
  }

  /* สไตล์ตัวการ์ดสีขาวด้านนอก */
  .custom-card-item {
    position: absolute;
    width: 440px;          /* ความกว้างการ์ดแนวนอน */
    height: 280px;          /* ความสูงการ์ด */
    background: #ffffff;
    border-radius: 20px;
    padding: 0;             /* ไม่มี padding เพื่อให้รูปชนขอบทุกด้าน */
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 5px 15px 0px;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: grab;
    opacity: 0;
    transform: scale(0.6) translateX(0);
    visibility: hidden;
    border: 1px solid #e2e8f0;
    overflow: hidden;       /* บังคับตัดรูปภาพให้โค้งมนตามขอบการ์ด */
  }
  
  .custom-card-item:active {
    cursor: grabbing;
  }

  /* บังคับรูปภาพให้ขยายเต็มพื้นที่การ์ด 100% (ชนทุกขอบ บน ล่าง ซ้าย ขวา) */
  .custom-card-item img {
    width: 100%;            
    height: 100%;           /* เปลี่ยนเป็น 100% เพื่อให้รูปเต็มเนื้อการ์ดทั้งหมด */
    object-fit: cover;      /* ดึงรูปให้เต็มพื้นที่การ์ดโดยสัดส่วนไม่เบี้ยว */
    border-radius: 20px;    /* มนขอบรูปทั้ง 4 ด้านให้เท่ากับการ์ด */
    pointer-events: none;
  }

  /* จัดพิกัดตำแหน่งเยื้องซ้ายและเยื้องขวา */
  .custom-card-item.prev {
    opacity: 0.4;
    transform: scale(0.75) translateX(-360px); 
    visibility: visible;
    z-index: 1;
  }

  .custom-card-item.active {
    opacity: 1;
    transform: scale(1.1) translateX(0); 
    visibility: visible;
    z-index: 2;
  box-shadow: rgba(0, 0, 0, 0.56) 0px 22px 70px 4px;
    border-color: #ffffffc2; /* เส้นขอบไฮไลท์สีทอง/น้ำตาลของใบตรงกลาง */
  }

  .custom-card-item.next {
    opacity: 0.4;
    transform: scale(0.75) translateX(360px);  
    visibility: visible;
    z-index: 1;
  }

  /* ปุ่มกดควบคุมใต้ Slide */
  .custom-slider-controls {
    margin-top: 20px;
    display: flex;
    gap: 15px;
  }

  .custom-slider-btn {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 8px 22px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
  }

  .custom-slider-btn:hover {
    background: #1e293b;
    color: #ffffff;
    border-color: #1e293b;
  }

  /* Responsive สำหรับ Mobile */
  @media (max-width: 768px) {
    .custom-slider-container { height: 220px; }
    .custom-card-item { width: 280px; height: 178px; border-radius: 12px; }
    .custom-card-item img { border-radius: 12px; }
    .custom-card-item.prev { transform: scale(0.75) translateX(-190px); }
    .custom-card-item.next { transform: scale(0.75) translateX(190px); }
  }