/*
 * Welcome to SMBC Homepage Carousel
 * Replaces the default right-side stock image in the Welcome section.
 */

.smbc-welcome-carousel-shell {
  position: relative;
}

.smbc-welcome-carousel {
  position: relative;
  width: 100%;
  min-height: 460px;
  background: oklch(0.95 0.015 80);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(12, 18, 42, 0.14);
}

.smbc-welcome-carousel-track {
  position: relative;
  width: 100%;
  min-height: 460px;
}

.smbc-welcome-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.smbc-welcome-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.smbc-welcome-slide img {
  width: 100%;
  height: 460px;
  display: block;
  object-fit: cover;
  object-position: center;
}

.smbc-welcome-carousel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18, 23, 52, 0.22) 0%, rgba(18, 23, 52, 0.02) 38%, rgba(18, 23, 52, 0) 65%);
  pointer-events: none;
}

.smbc-welcome-carousel-frame {
  position: absolute;
  right: -16px;
  bottom: -16px;
  width: 60%;
  height: 60%;
  border: 3px solid oklch(0.65 0.12 65);
  z-index: -1;
}

.smbc-welcome-carousel-controls {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  pointer-events: none;
  z-index: 3;
}

.smbc-welcome-carousel-btn {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(23, 30, 65, 0.75);
  color: white;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.smbc-welcome-carousel-btn:hover,
.smbc-welcome-carousel-btn:focus-visible {
  background: rgba(23, 30, 65, 0.92);
  transform: translateY(-1px);
  outline: none;
}

.smbc-welcome-carousel-btn svg {
  width: 18px;
  height: 18px;
}

.smbc-welcome-carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(23, 30, 65, 0.56);
  backdrop-filter: blur(6px);
  z-index: 3;
}

.smbc-welcome-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.smbc-welcome-carousel-dot:hover,
.smbc-welcome-carousel-dot:focus-visible {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.05);
  outline: none;
}

.smbc-welcome-carousel-dot.is-active {
  background: oklch(0.72 0.12 65);
  transform: scale(1.15);
}

.smbc-welcome-carousel-caption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  max-width: calc(100% - 7rem);
  padding: 0.75rem 0.95rem;
  background: rgba(23, 30, 65, 0.68);
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 3;
}

.smbc-welcome-carousel-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1024px) {
  .smbc-welcome-carousel,
  .smbc-welcome-carousel-track,
  .smbc-welcome-slide img {
    min-height: 420px;
    height: 420px;
  }
}

@media (max-width: 768px) {
  .smbc-welcome-carousel,
  .smbc-welcome-carousel-track,
  .smbc-welcome-slide img {
    min-height: 360px;
    height: 360px;
  }

  .smbc-welcome-carousel-frame {
    right: -10px;
    bottom: -10px;
    width: 56%;
    height: 56%;
  }

  .smbc-welcome-carousel-controls {
    padding: 0 0.65rem;
  }

  .smbc-welcome-carousel-btn {
    width: 40px;
    height: 40px;
  }

  .smbc-welcome-carousel-caption {
    left: 0.75rem;
    right: 0.75rem;
    max-width: none;
    bottom: 3.9rem;
    font-size: 0.66rem;
    letter-spacing: 0.1em;
  }

  .smbc-welcome-carousel-dots {
    bottom: 0.75rem;
    gap: 0.45rem;
    padding: 0.5rem 0.75rem;
  }
}

@media (max-width: 520px) {
  .smbc-welcome-carousel,
  .smbc-welcome-carousel-track,
  .smbc-welcome-slide img {
    min-height: 320px;
    height: 320px;
  }

  .smbc-welcome-carousel-frame {
    display: none;
  }

  .smbc-welcome-carousel-btn {
    width: 36px;
    height: 36px;
  }

  .smbc-welcome-carousel-caption {
    bottom: 3.6rem;
    padding: 0.65rem 0.8rem;
    font-size: 0.62rem;
  }
}
