/* ===== Base layout ===== */
.boards.column-12 {
  position: relative;
  overflow: hidden;
}

.boards.column-12 .board-col-12 {
  width: 100%;
}

.boards.column-12 .boardSwiper {
  position: relative;
  width: 100%;
  cursor: grab;
  --fade-width: 64px;     /* ความกว้าง fade */
  --fade-bg: #fff;        /* สีพื้นหลังของ section */
}

/* สไลด์/การ์ด */
.boards.column-12 .swiper-slide {
  max-width: 310px;
  background-color: #fff;
  display: flex;
  justify-content: center;
  border-radius: 24px;
}

.boards.column-12 .card-board {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: rgba(0, 0, 0, 0.08) 0px 4px 12px;
    width: 100%;
    margin-bottom: 20px;
}

.boards.column-12 .card-board img {
  width: 100%;
  height: 305px;
  object-fit: cover;
}

.boards.column-12 .card-board .card__name {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
}

/* ===== Fade edges (ซ้าย/ขวา) ===== */
.boards.column-12 .boardSwiper::before,
.boards.column-12 .boardSwiper::after {
  content: '';
  position: absolute;
  top: 0;
  height: 100%;
  width: var(--fade-width);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity .25s ease;
}
.boards.column-12 .boardSwiper::before {
  left: 0;
  background: linear-gradient(to right, var(--fade-bg) 0%, rgba(255,255,255,0) 100%);
}
.boards.column-12 .boardSwiper::after {
  right: 0;
  background: linear-gradient(to left, var(--fade-bg) 0%, rgba(255,255,255,0) 100%);
}

/* เปิดด้วยคลาสจาก JS */
.boards.column-12 .boardSwiper.fade-left::before { opacity: 1; }
.boards.column-12 .boardSwiper.fade-right::after { opacity: 1; }

/* ===== Navigation buttons ===== */
.pagination-n-btn {
  width: 100%;
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  position: relative;
  z-index: 3;
}
.swiper-button-next.board-6,
.swiper-button-prev.board-6 {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #111;
  color: #fff;
}
.swiper-button-next.board-6::after,
.swiper-button-prev.board-6::after {
  font-size: 16px; /* ไอคอนลูกศรของ Swiper */
}
.swiper-button-disabled {
  opacity: .35;
}

/* ===== Responsive ===== */
@media (max-width: 1199px) {
  .boards.column-12 .boardSwiper { --fade-width: 20vw; }
}

@media (max-width:991px) {
.boards.column-12 .card-board img {
    width: 100%;
    height: 200px;
    object-fit: cover;

  }
  .boards.column-12 .swiper-slide {
    max-width: 310px;
    background-color: #fff;
    display: flex;
    justify-content: center;
    border-radius: 24px;
}
.boards.column-12 .card-board .card__name {
    padding: 24px 8px;
 }
}

@media (max-width: 575px) {
  .boards.column-12 .swiper-slide { max-width: unset; }
  .boards.column-12 .card-board img { height: auto; }
  .boards.column-12 .card-board .card__name {
    padding: 16px;
    justify-content: flex-start;
  }
}
