.otp-carousel-section {
  width: 100%;
  padding: 2.6rem 1.75rem 3.2rem;
  display: flex;
  justify-content: center;
}

.otp-carousel-inner {
  width: 100%;
  max-width: 980px;
}

.otp-carousel-title {
  font-size: 1.35rem;
  font-weight: 640;
  letter-spacing: 0.02em;
  margin: 0 0 1.4rem;
  color: var(--otpdocs-text-main, #111827);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* --- CAROUSEL BOX --- */
.otp-carousel {
  position: relative;
  width: 100%;
  border-radius: 16px;
  padding: 0.75rem;
  overflow: hidden;
}

/* --- FRAME --- */
.otp-carousel-track {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
}

/* --- SLIDES --- */
.otp-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  filter: blur(6px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
    filter 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.otp-carousel-slide-active {
  opacity: 1;
  filter: blur(0);
}

.otp-carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  border: 1px solid var(--otpdocs-border-subtle, #e5e7eb);
  background: #020617;
  object-fit: cover;
}

/* --- SQUARED CONTROLS WITH SOFT RADIUS --- */
.otp-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(15, 23, 42, 0.55);
  border-radius: 6px;
  width: 30px;     
  height: 30px;    
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #e5e7eb;
  z-index: 5;
  transition: background 0.15s ease-out, transform 0.15s ease-out;
}

.otp-carousel-nav span {
  font-size: 17px;
}

.otp-carousel-prev {
  left: 18px;
}

.otp-carousel-next {
  right: 18px;
}

.otp-carousel-nav:hover {
  transform: translateY(-50%) scale(1.06);
  background: rgba(15, 23, 42, 0.82);
}

.otp-carousel-nav:active {
  transform: translateY(-50%) scale(0.94);
}

.otp-carousel-text-top,
.otp-carousel-text-extra,
.otp-carousel-text-bottom {
    text-align: center;
    font-size: 1.05rem;
    font-weight: 460;
    line-height: 1.5;
    color: var(--otpdocs-text-main, #111827);
    opacity: 0.78;
    margin: 0 0 1.3rem;
    padding: 0 0.4rem;
}

.dark-mode .otp-carousel-text-top,
.dark-mode .otp-carousel-text-extra,
.dark-mode .otp-carousel-text-bottom {
    color: #e5e5e5;
    opacity: 0.9;
}

/* --- DOTS UNDER THE CAROUSEL (fixed) --- */
.otp-carousel-dots {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
}

.otp-carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.45);
  cursor: pointer;
  transition:
    width 0.38s cubic-bezier(0.25, 0.8, 0.35, 1),
    background 0.32s ease,
    opacity 0.32s ease,
    transform 0.38s cubic-bezier(0.25, 0.8, 0.35, 1);
  opacity: 0.55;
}

.otp-carousel-dot:hover {
  opacity: 0.9;
  transform: scale(1.18);
}

.otp-carousel-dot-active {
  width: 22px;
  opacity: 1;
  background: var(--otpdocs-accent, #EDA4E3);
  outline-offset: 2px;
}

/* --- DARK MODE --- */
.dark-mode .otp-carousel-title {
  color: var(--otpdocs-text-main, #e5e7eb);
}

.dark-mode .otp-carousel {
  background: transparent;
}

.dark-mode .otp-carousel-slide img {
  border-color: var(--otpdocs-border-subtle, #1f2937);
  background: #020617;
}

.dark-mode .otp-carousel-nav {
  background: rgba(15, 23, 42, 0.7);
  color: #f9fafb;
}

.dark-mode .otp-carousel-nav:hover {
  background: rgba(55, 65, 81, 1);
}

.dark-mode .otp-carousel-dot {
  background: rgba(75, 85, 99, 0.95);
}

.dark-mode .otp-carousel-dot-active {
  background: var(--otpdocs-accent, #a855f7);
}
.otp-carousel-dot{
  border: none;
  outline: none;
}
.otp-carousel-dot-active{
  width: 22px;
  opacity: 1;
  background: var(--otpdocs-accent, #EDA4E3);
  box-shadow: inset 0 0 0 1px var(--otpdocs-accent, #EDA4E3);
}
.dark-mode .otp-carousel-dot-active{
  background: var(--otpdocs-accent, #a855f7);
  box-shadow: inset 0 0 0 1px var(--otpdocs-accent, #a855f7);
}

@media (max-width: 960px) {
  .otp-carousel-nav {
    display: none;
  }
}