﻿/* ===== Container ===== */
.dcas-carousel { --dcas-ratio: 8 / 11; position: relative; width: 100%; max-width: min(100%, calc(85vh * 8 / 11));
  margin: 0 auto; overflow: hidden; border-radius: 8px; background: #000; touch-action: pan-y;}
  .dcas-carousel .d-none { display: none !important;}
/* ===== Track & Slides ===== */
.dcas-carousel-track { display: flex; align-items: flex-start; /* har slide apni natural height rakhe */
  transition: transform 0.6s ease-in-out; will-change: transform;}
.dcas-carousel { --dcas-ratio: 8 / 11; position: relative; width: 100%; max-width: min(100%, calc(85vh * 8 / 11)); margin: 0 auto; overflow: hidden;
  border-radius: 8px; background: #000; touch-action: pan-y;}
/* Blurred background: image ki hi dhundhli copy */
.dcas-carousel-slide { position: relative; flex: 0 0 100%; width: 100%; min-width: 0; max-width: 100%; aspect-ratio: var(--dcas-ratio); overflow: hidden;
  background: #000;}
  .dcas-carousel-slide img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: contain; object-position: center;
    image-rendering: auto;  }
/* ===== Controls bar: < pause dots > ===== */
.dcas-carousel-controls { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; align-items: center;
  gap: 10px; padding: 5px 12px; background: rgba(0, 0, 0, 0.5); border-radius: 24px; white-space: nowrap;}
/* Prev / Next arrows */
.dcas-arrow { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; transition: background 0.3s;}
.dcas-arrow:hover { background: rgba(255, 255, 255, 0.25);  }
/* RTL me arrow icon flip */
.dcas-carousel[dir="rtl"] .dcas-arrow svg { transform: scaleX(-1);}
/* Play / Pause button */
.dcas-carousel .btn-slide-control { display: flex;  align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 0;
  background: transparent; color: #fff; cursor: pointer;}
.dcas-carousel .btn-slide-control .icon-play { font-size: 18px; color: #fff; }
/* Dots */
.dcas-carousel-dots { display: flex; align-items: center; gap: 8px;}
.dcas-carousel-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent; padding: 0; cursor: pointer;
  transition: background 0.3s, transform 0.3s;}
  .dcas-carousel-dot:hover { transform: scale(1.2);  }
  .dcas-carousel-dot.active { background: #fff;  }
.dcas-carousel:focus { outline: none;}
.dcas-carousel:focus-visible { outline: 3px solid #fff; outline-offset: -3px; /* keyboard se focus ho to outline dikhe */}
/* ===== Mobile ===== */
@media (max-width: 576px) {
  .dcas-carousel-controls { bottom: 8px; gap: 6px; padding: 3px 8px; }
  .dcas-arrow { width: 24px; height: 24px; }
  .dcas-arrow svg { width: 16px; height: 16px; }
  .dcas-carousel-dots { gap: 6px; }
  .dcas-carousel-dot { width: 10px; height: 10px; }
}
