/* Embla Core */
.embla {
  overflow: hidden;
  position: relative;
}

.embla__container {
  display: flex;
  will-change: transform;
  transition: height 0.3s;
}

.embla__slide {
  flex: 0 0 100%;
  min-width: 0;
  position: relative;
  transition: transform 0.3s;
}

/* Themes */
.embla-theme-minimal .embla__button {
  background: none;
  border: 1px solid #ccc;
}

.embla-theme-classic .embla__button {
  background: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.embla-theme-dark .embla__button {
  background: #333;
  fill: #fff;
}

.embla-theme-dark .embla__dot {
  border-color: #fff;
}

.embla-theme-dark .embla__dot--selected {
  background: #fff;
}

/* Progress Bar */
.embla__progress {
  position: relative;
  height: 4px;
  background: #eee;
  margin-top: 15px;
  border-radius: 2px;
  overflow: hidden;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
}

.embla__progress__bar {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #333;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.1s;
}

/* Counter */
.embla__counter {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  z-index: 10;
  font-family: sans-serif;
}

/* Arrows & Dots (Updated) */
.embla__button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  cursor: pointer;
  border: 0;
  padding: 0;
  transition: all 0.3s;
}

.embla__button--prev {
  left: 10px;
}

.embla__button--next {
  right: 10px;
}

.embla__button svg {
  width: 18px;
}

.embla__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
}

.embla__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #333;
  cursor: pointer;
  background: transparent;
  padding: 0;
}

.embla__dot--selected {
  background: #333;
}

/* RTL */
[dir="rtl"] .embla__progress__bar {
  transform-origin: right;
}

[dir="rtl"] .embla__button--prev {
  left: auto;
  right: 10px;
  transform: translateY(-50%) rotate(180deg);
}

[dir="rtl"] .embla__button--next {
  right: auto;
  left: 10px;
  transform: translateY(-50%) rotate(180deg);
}