/* Main Wrapper */
.bespoke-slider-wrapper {
  width: 100%;
  max-width: 2500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  overflow: hidden;
  background: #fff;
}

/* Swiper Fade Effect Fix - ensures active slide is visible */
.bespoke-slider-wrapper.swiper-fade .swiper-slide {
  pointer-events: none;
  transition-property: opacity;
}

.bespoke-slider-wrapper.swiper-fade .swiper-slide-active,
.bespoke-slider-wrapper.swiper-fade .swiper-slide-duplicate-active {
  pointer-events: auto;
  opacity: 1 !important;
}

.bespoke-slide {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

/* LEFT SIDE */
.bespoke-slide-left {
  width: 44%;
  padding: 2rem 4rem 2rem 6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #fff;
  box-sizing: border-box;
}

.bespoke-title {
  font-size: 3rem;
  line-height: 1.1;
  color: #000;
  margin-bottom: 20px;
  font-weight: 600;
}

.bespoke-desc {
  font-size: 1rem;
  color: #555;
  margin-bottom: 30px;
  line-height: 1.6;
  max-width:95%;
}

.bespoke-btn,
.bespoke-btn:link,
.bespoke-btn:visited {
  display: inline-block;
  padding: 13px 25px;
  background-color: #2a3037;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  color: #fff !important;
  font-weight: 600;
  width: fit-content;
  transition: background-color 0.3s ease;
}

.bespoke-btn:hover,
.bespoke-btn:focus,
.bespoke-btn:active {
  background-color: #3392d2;
  color: #fff !important;
}

/* RIGHT SIDE */
.bespoke-slide-right {
  width: 56%;
  overflow: hidden;
}

/* Slide Image - natural height based on aspect ratio */
.bespoke-slide-image,
img.bespoke-slide-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
}

/* ARROW STYLES */
.bespoke-slider-wrapper .swiper-button-prev,
.bespoke-slider-wrapper .swiper-button-next {
  transition: all 0.3s ease;
}

/*
 * Elementor injects its own <svg class="swiper-navigation-icon"> chevron into
 * any .swiper-button-prev/next it finds. That lands on top of the chevron Swiper
 * already draws through ::after, so each button rendered two overlapping icons -
 * the garbled arrows reported on the homepage. Elementor flips its SVG for the
 * previous direction using its own .elementor-swiper-button-prev class, which
 * this widget does not use, so the injected icon points the wrong way here
 * anyway. Hide it and keep Swiper's own directional glyphs, which the Arrow
 * Color control already styles.
 */
.bespoke-slider-wrapper .swiper-button-prev .swiper-navigation-icon,
.bespoke-slider-wrapper .swiper-button-next .swiper-navigation-icon {
  display: none !important;
}

/* Keep the arrows as a matched pair on the outer edges of the slider */
.bespoke-slider-wrapper .swiper-button-prev {
  left: 20px;
  right: auto;
}

.bespoke-slider-wrapper .swiper-button-next {
  left: auto;
  right: 20px;
}

/* Round white background for arrows */
.bespoke-arrows-bg .swiper-button-prev,
.bespoke-arrows-bg .swiper-button-next {
  background-color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  /* Swiper centres using --swiper-navigation-size (44px); match the real height */
  margin-top: -25px;
}

.bespoke-arrows-bg .swiper-button-prev::after,
.bespoke-arrows-bg .swiper-button-next::after {
  font-size: 18px;
  font-weight: 700;
}

/* Navigation Row - desktop: absolute positioning */
.bespoke-nav-row {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 10;
}

.bespoke-nav-row > * {
  pointer-events: auto;
}

/* Pagination - hidden by default, shown on smaller screens */
.bespoke-pagination {
  display: none;
}

/* Pagination dot colors */
.bespoke-pagination .swiper-pagination-bullet {
  background: #ccc;
  opacity: 1;
}

.bespoke-pagination .swiper-pagination-bullet-active {
  background: #3392D2;
}

/* RESPONSIVE - Tablet and Mobile (under 1024px) */
@media (max-width: 1024px) {
  .e-con>.e-con-inner {
    padding: 0;
  }

  /* Wrapper becomes flex column to stack slides and nav */
  .bespoke-slider-wrapper {
    display: flex;
    flex-direction: column;
  }

  /* Image on top, content below */
  .bespoke-slide {
    flex-direction: column-reverse;
  }

  .bespoke-slide-left,
  .bespoke-slide-right {
    width: 100%;
  }

  /* Image section - full width, auto height */
  .bespoke-slide-right {
    height: auto;
  }

  /* Content section - consistent padding */
  .bespoke-slide-left {
    padding: 2rem;
  }

  .bespoke-title {
    font-size: 1.75rem;
    margin-bottom: 12px;
  }

  .bespoke-desc {
    font-size: 0.95rem;
    margin-bottom: 18px;
    max-width:100%;
  }

  .bespoke-btn {
    padding: 10px 24px;
    font-size: 0.9rem;
  }

  /* Navigation row - relative, flex row below content */
  .bespoke-nav-row {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 2rem;
    pointer-events: auto;
  }

  .bespoke-slider-wrapper .swiper-button-prev,
  .bespoke-slider-wrapper .swiper-button-next {
    position: static;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    margin: 0;
  }

  .bespoke-slider-wrapper .swiper-button-prev::after,
  .bespoke-slider-wrapper .swiper-button-next::after {
    font-size: 14px;
  }

  .bespoke-arrows-bg .swiper-button-prev,
  .bespoke-arrows-bg .swiper-button-next {
    width: 36px;
    height: 36px;
  }

  .bespoke-arrows-bg .swiper-button-prev::after,
  .bespoke-arrows-bg .swiper-button-next::after {
    font-size: 12px;
  }

  /* Show pagination inline between arrows */
  .bespoke-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    position: static;
    flex-grow: 1;
    margin: 0 1rem;
  }
}
