/* ===============================
   SECTION (Figma container)
================================ */
.dsand-carousel-section{
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
}

/* ===============================
   WRAPPER
================================ */
.dsand-carousel-wrap{
  width: 100%;
  position: relative;
  padding: 10px 0 40px;
}

/* Swiper */
.dsand-carousel-wrap .swiper{
  width: 100%;
  overflow: hidden;
}

/* ===============================
   SLIDES (2 full + 3rd peek)
================================ */
.dsand-carousel-wrap .swiper-slide{
  width: 48%;                 /* 2 full cards */
}

/* ===============================
   CARD
================================ */
.dsand-card{
  width: 100%;
  border-radius: 20px;
  background: #ffffff;
  overflow: hidden;
}

/* ===============================
   GRID
================================ */
.dsand-grid{
  display: grid;
  gap: 12px;
  padding: 12px;
}

/* ===== Layout A ===== */
.dsand-card.layout-a .dsand-grid{
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: 240px 300px;
}

.dsand-card.layout-a .dsand-box:nth-child(1){
  grid-column: 1;
  grid-row: 1;
}
.dsand-card.layout-a .dsand-box:nth-child(2){
  grid-column: 2;
  grid-row: 1;
}
.dsand-card.layout-a .dsand-box:nth-child(3){
  grid-column: 1 / span 2;
  grid-row: 2;
}

/* ===== Layout B ===== */
.dsand-card.layout-b .dsand-grid{
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: 300px 240px;
}

.dsand-card.layout-b .dsand-box:nth-child(1){
  grid-column: 1 / span 2;
  grid-row: 1;
}
.dsand-card.layout-b .dsand-box:nth-child(2){
  grid-column: 1;
  grid-row: 2;
}
.dsand-card.layout-b .dsand-box:nth-child(3){
  grid-column: 2;
  grid-row: 2;
}

/* ===============================
   MEDIA
================================ */
.dsand-box{
  border: 1px solid #D8C4FF;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dsand-media{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ===============================
   ARROWS
================================ */
.dsand-carousel-wrap .swiper-button-next,
.dsand-carousel-wrap .swiper-button-prev{
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,0.7);
}

.dsand-carousel-wrap .swiper-button-next:after,
.dsand-carousel-wrap .swiper-button-prev:after{
  font-size: 18px;
  color: #fff;
}

/* ===============================
   DOTS
================================ */
.dsand-carousel-wrap .swiper-pagination{
  bottom: 6px !important;
}

/* ===============================
   RESPONSIVE
================================ */
@media(max-width: 992px){
  .dsand-carousel-wrap .swiper-slide{
    width: 70%;
  }
}

@media(max-width: 768px){
  .dsand-carousel-wrap .swiper-slide{
    width: 82%;
  }

  .dsand-carousel-wrap .swiper-button-next,
  .dsand-carousel-wrap .swiper-button-prev{
    display: none;
  }

  .dsand-card.layout-a .dsand-grid{
    grid-template-rows: 180px 260px !important;
  }

  .dsand-card.layout-b .dsand-grid{
    grid-template-rows: 260px 180px !important;
  }
}
