/* Florence testimonial carousel, no section background, no Swiper height issues */

.florence-slider-wrapper {
  --florence-overlap: 90px;
  position: relative;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 50px 0;
  overflow: visible !important;
  background: transparent !important;
  box-sizing: border-box;
}

.florence-slides {
  position: relative;
  width: 100%;
  overflow: visible !important;
}

.florence-slide {
  display: none;
  width: 100%;
  overflow: visible !important;
}

.florence-slide.is-active {
  display: block;
  animation: florenceFadeIn 0.45s ease both;
}

@keyframes florenceFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.florence-card {
  position: relative;
  display: flex;
  align-items: center;
  width: calc(100% - var(--florence-overlap));
  max-width: 1050px;
  min-height: 500px;
  margin: 0 0 0 var(--florence-overlap);
  padding: 70px 70px 70px 300px;
  background-color: #ffffff;
  box-sizing: border-box;
  overflow: visible !important;
  border-radius: 0;
  box-shadow: none;
}

.florence-image-wrapper {
  position: absolute;
  left: calc(var(--florence-overlap) * -1);
  top: 50%;
  transform: translateY(-50%);
  width: 340px;
  height: 440px;
  z-index: 10;
  overflow: visible !important;
}

.florence-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  border: 14px solid #ffffff;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.florence-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.florence-content-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  text-align: left;
  z-index: 2;
}

.florence-quote {
  font-family: 'Playfair Display', 'Didot', Georgia, serif;
  font-size: 2.25rem;
  font-style: italic;
  line-height: 1.45;
  font-weight: 400;
  color: #2B2926;
  margin: 0;
  padding: 0;
}

.florence-meta-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.florence-client-name {
  font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: #2B2926;
  font-weight: 600;
  font-style: normal;
  line-height: 1;
}

.florence-navigation-wrapper {
  display: flex;
  align-items: center;
  gap: 24px;
  z-index: 20;
  line-height: 1;
}

.florence-nav-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.7rem;
  line-height: 1;
  letter-spacing: 0.16em;
  color: #2B2926;
  text-transform: uppercase;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.florence-nav-btn:hover {
   opacity: 1;
  color: #A8B3BD;
}

.florence-nav-btn svg {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}

.florence-prev:hover svg {
  transform: translateX(-4px);
}

.florence-next:hover svg {
  transform: translateX(4px);
}

@media (max-width: 1024px) {
  .florence-slider-wrapper {
    max-width: 760px;
    padding: 35px 0;
  }

  .florence-card {
    width: 100%;
    min-height: auto;
    margin-left: 0;
    flex-direction: column;
    align-items: center;
    padding: 40px;
    text-align: center;
  }

  .florence-image-wrapper {
    position: relative;
    left: 0;
    top: 0;
    transform: none;
    width: 340px;
    height: 440px;
    margin-bottom: 32px;
  }

  .florence-content-block {
    align-items: center;
    text-align: center;
  }

  .florence-quote {
    font-size: 1.8rem;
  }

  .florence-meta-row {
    flex-direction: column;
    justify-content: center;
    gap: 22px;
  }
}

@media (max-width: 767px) {
  .florence-slider-wrapper {
    max-width: 100%;
    padding: 25px 0;
  }

  .florence-card {
    padding: 30px 20px;
  }

  .florence-image-wrapper {
    width: 100%;
    max-width: 320px;
    height: 400px;
    margin-bottom: 28px;
  }

  .florence-image-container {
    border-width: 10px;
  }

  .florence-quote {
    font-size: 1.45rem;
    line-height: 1.45;
  }

  .florence-client-name {
    font-size: 0.68rem;
    letter-spacing: 0.18em;
  }

  .florence-navigation-wrapper {
    gap: 16px;
  }

  .florence-nav-btn {
    font-size: 0.65rem;
  }
}

.florence-nav-btn,
.florence-nav-btn:hover,
.florence-nav-btn:focus,
.florence-nav-btn:active {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Mobile: image inside the white testimonial card */
@media (max-width: 767px) {
  .florence-card {
    position: relative;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    background-color: #ffffff;
    padding: 30px 20px 90px 20px !important;
    margin: 20px auto !important;
    min-height: auto !important;
    overflow: hidden !important;
  }

  .florence-image-wrapper {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 320px !important;
    height: 380px !important;
    margin: 0 auto 28px auto !important;
    z-index: 2;
  }

  .florence-image-container {
    width: 100%;
    height: 100%;
    border: 10px solid #ffffff;
    box-sizing: border-box;
    overflow: hidden;
    background-color: #ffffff;
  }

  .florence-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .florence-content-block {
    width: 100%;
    align-items: center !important;
    text-align: center !important;
    gap: 20px;
  }

  .florence-quote {
    font-size: 1.45rem;
    line-height: 1.45;
    text-align: center;
  }

  .florence-client-name {
    text-align: center;
  }

  .florence-navigation-wrapper {
    position: absolute !important;
    bottom: 28px !important;
    right: 50% !important;
    transform: translateX(50%) !important;
    justify-content: center;
  }
}
/* Mobile only: wider white testimonial card */
@media (max-width: 767px) {
  .florence-slider-wrapper {
    width: calc(100vw - 24px) !important;
    max-width: none !important;
    margin-left: 50% !important;
    margin-right: 0 !important;
    transform: translateX(-50%) !important;
  }

  .florence-card {
    width: 100% !important;
    max-width: none !important;
    margin: 20px auto !important;
    padding: 30px 16px 90px 16px !important;
    box-sizing: border-box !important;
  }

  .florence-image-wrapper {
    max-width: 330px !important;
  }
}
