/* Investment Essentials - Testimonials section (Next.js parity) */

.investment-testimonials-section .header {
  align-self: stretch;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(20px, 4vw, 40px);
  position: relative;
  width: 100%;
  margin-bottom: 80px;
}

@media (max-width: 767px) {
  .investment-testimonials-section .header {
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(20px, 6vw, 28px);
  }
}

.investment-testimonials-section .headerContent {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(32px, 6vw, 64px);
  max-width: clamp(600px, 65vw, 1095px);
}

@media (max-width: 767px) {
  .investment-testimonials-section .headerContent {
    align-self: stretch;
    gap: clamp(20px, 7vw, 28px);
    max-width: none;
  }
}

.investment-testimonials-section .testimonialsContainer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  /*
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  */
  margin-top: 80px;
}
.om-testimonials-slider .om-slider-track {
  gap: 32px;
}

.investment-testimonials-section .testimonialsContainer::-webkit-scrollbar {
  display: none;
}

@media (min-width: 768px) {
  .investment-testimonials-section .testimonialsContainer {
    gap: 32px;
  }
  .om-testimonials-slider .om-slider-track {
    gap: 32px;
  }
  
}

/* Testimonial card (from Next.js component) */
.investment-testimonials-section .testimonialCard {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  /*
  width: 538px;
  height: 414px;
  */
  border-radius: 24px;
  overflow: hidden;
  box-sizing: border-box;
  /*
  flex: 1;
  min-width: 0;
  */  
}

.investment-testimonials-section .cardBackground {
  position: absolute;
  inset: 0;
  background: url("../images/testimonial-card-background.svg") no-repeat center center;
  background-size: cover;
  border-radius: 24px;
  z-index: 1;
}

.investment-testimonials-section .quoteSection {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: flex-start;
}

.investment-testimonials-section .quote {
  font-family: var(--font-p22-mackinac-pro), serif;
  font-weight: 500;
  font-size: 28px;
  line-height: 1.35;
  letter-spacing: -0.96px;
  color: #333f5b;
  margin: 0;
  max-width: 414px;
  padding: 48px 76px 0 48px;
}

.investment-testimonials-section .investmentTestimonialBottom {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  margin-top: 26px;
}

.investment-testimonials-section .authorInfo {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  padding: 0 0 48px 48px;
}

.investment-testimonials-section .authorName {
  font-family: var(--font-avenir-next), sans-serif;
  font-weight: 700;
  font-size: 24px;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: -0.72px;
  color: #333f5b;
  margin: 0;
  white-space: nowrap;
}

.investment-testimonials-section .imageContainer {
  position: absolute;
  bottom: -1rem;
  right: 0.5rem;
  flex-shrink: 0;
  z-index: 3;
}

.investment-testimonials-section .accentDecoration {
  position: absolute;
  width: 80px;
  height: 80px;
  right: -10px;
  bottom: 0;
  z-index: 3;
  opacity: 0.8;
}

.investment-testimonials-section .accentImage {
  width: 80px;
  height: 80px;
  object-fit: cover;
}
@media (max-width: 1024px) {
  .investment-testimonials-section .container {
    /* padding-right: 0; */
  }
}
@media (max-width: 480px) {
  .investment-testimonials-section .testimonialCard {
    /*
    width: 273px;
    height: 280px;
    min-width: 273px;
    flex: none;
    */
    width: 100%;
  }

  .investment-testimonials-section .quote {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.54px;
    padding: 20px 20px 0 20px;
    max-width: 221px;
    max-width: 100%;
  }

  .investment-testimonials-section .authorInfo {
    padding: 0 0 20px 20px;
  }

  .investment-testimonials-section .authorName {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.39px;
  }

  .investment-testimonials-section .accentDecoration {
    width: 40px;
    height: 40px;
    top: -2px;
    right: -2px;
  }

  .investment-testimonials-section .accentImage {
    width: 40px;
    height: 40px;
  }
}

@media (min-width: 481px) and (max-width: 767px) {
  .investment-testimonials-section .testimonialCard {
    /*
    width: 320px;
    height: 320px;
    min-width: 320px;
    */
    width: calc(50% - 8px);
  }

  .investment-testimonials-section .quote {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.6px;
    padding: 28px 28px 0 28px;
    max-width: 220px;
    max-width: 100%;
  }

  .investment-testimonials-section .authorInfo {
    padding: 0 0 28px 28px;
  }

  .investment-testimonials-section .authorName {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.48px;
  }

  .investment-testimonials-section .accentDecoration {
    width: 50px;
    height: 50px;
    top: -3px;
    right: -3px;
  }

  .investment-testimonials-section .accentImage {
    width: 50px;
    height: 50px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .investment-testimonials-section .testimonialCard {
    /*
    width: 320px;
    height: 420px;
    min-width: 320px;
    */
    width: calc(50% - 16px);
  }

  .investment-testimonials-section .quote {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.6px;
    padding: 28px 28px 0 28px;
    max-width: 220px;
    max-width: 360px;
  }

  .investment-testimonials-section .authorInfo {
    padding: 0 0 30px 36px;
  }

  .investment-testimonials-section .accentDecoration {
    width: 50px;
    height: 50px;
    top: -3px;
    right: -3px;
  }

  .investment-testimonials-section .accentImage {
    width: 50px;
    height: 50px;
  }
}

@media (min-width: 1025px) and (max-width: 1366px) {
  .investment-testimonials-section .testimonialCard {
    /*
    width: 450px;
    height: 360px;
    */
    width: calc(33.33% - 21.33px);
  }

  .investment-testimonials-section .quote {
    font-size: 24px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.72px;
    padding: 36px 36px 0 36px;
    max-width: 320px;
  }

  .investment-testimonials-section .authorInfo {
    padding: 0 0 36px 36px;
  }

  .investment-testimonials-section .authorName {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.6px;
  }

  .investment-testimonials-section .accentDecoration {
    width: 60px;
    height: 60px;
    top: -4px;
    right: -4px;
  }

  .investment-testimonials-section .accentImage {
    width: 60px;
    height: 60px;
  }
}

@media (min-width: 1367px) and (max-width: 1920px) {
  .investment-testimonials-section .testimonialCard {
    /* 
    width: 538px;
    height: 460px;
    */
    width: calc(33.33% - 21.33px);
  }

  .investment-testimonials-section .quote {
    font-size: 28px;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: -0.96px;
    padding: 48px 76px 0 48px;
    max-width: 414px;
  }

  .investment-testimonials-section .authorInfo {
    padding: 0 0 48px 48px;
  }

  .investment-testimonials-section .authorName {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -0.72px;
  }

  .investment-testimonials-section .accentDecoration {
    width: 70px;
    height: 70px;
    top: -5px;
    right: -5px;
  }

  .investment-testimonials-section .accentImage {
    width: 70px;
    height: 70px;
  }
}

@media (min-width: 1921px) {
  .investment-testimonials-section .testimonialCard {
    /* 
    width: 600px;
    height: 460px;
    */
    width: calc(33.33% - 21.33px);
  }

  .investment-testimonials-section .quote {
    font-size: 29px;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: -1.12px;
    padding: 40px 80px 0 56px;
    max-width: 480px;
  }

  .investment-testimonials-section .authorInfo {
    padding: 0 0 56px 56px;
  }

  .investment-testimonials-section .authorName {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -0.84px;
  }

  .investment-testimonials-section .accentDecoration {
    width: 80px;
    height: 80px;
    top: -6px;
    right: -6px;
  }

  .investment-testimonials-section .accentImage {
    width: 80px;
    height: 80px;
  }
}





/* Slider Convert CSS */
.investment-testimonials-section .om-testimonials-slider {
  overflow: hidden;
  position: relative;
  display: block;
  padding-bottom: 70px;
  height: auto !important;
}

.om-testimonials-slider .om-slider-track {
  display: flex;
  transition: transform 0.3s ease;
  align-items: stretch;
}

.om-testimonials-slider .om-slide-item {
  flex: 0 0 auto;
}

.om-testimonials-slider .slider-btn {
  position: absolute;
  z-index: 2;
    bottom: 0;
    width: clamp(44px, 4.5vw, 52px);
    height: clamp(44px, 4.5vw, 52px);
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    flex-shrink: 0;
    padding: 0px;
    box-sizing: border-box;    
    background: rgb(52, 149, 255);
}
.om-testimonials-slider .slider-btn img {
    width: clamp(18px, 2vw, 22px);
    height: clamp(18px, 2vw, 22px);
    filter: brightness(0) invert(1);
}
.om-testimonials-slider .slider-btn.prev-btn { left: calc(50% - 60px); }
.om-testimonials-slider .slider-btn.next-btn { right: calc(50% - 60px); }
.om-testimonials-slider .slider-btn:disabled {
      opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
}

.om-testimonials-slider + .om-slider-dots {
  text-align: center;
  margin-top: 15px;
  display: none;
}

.om-testimonials-slider + .om-slider-dots button {
  width: 10px;
  height: 10px;
  margin: 0 4px;
  border-radius: 50%;
  border: none;
  background: #ccc;
  cursor: pointer;
  padding: 0;
  background: rgb(52, 149, 255);
  opacity: 0.3;
}

.om-testimonials-slider + .om-slider-dots button.active {
  opacity: 1;
}
/* Slider Convert CSS End */