/*** 
=============================================
   Testimonial Style1 Area Css
=============================================
***/
.testimonial-style1-area {
  position: relative;
  display: block;
  padding: 63px 0 93px;
  background: #ffffff;
  z-index: 10;
}

.testimonial-style1-area .shape {
  position: absolute;
  top: -30px;
  right: -30px;
  z-index: 2;
}

.testimonial-style1-area .shape img {
  opacity: 0.08;
}

.testimonial-style1-content {
  position: relative;
  display: block;
  z-index: 1;
}

.testimonial-style1-content .bg-color {
  position: absolute;
  top: -30px;
  left: -9999999px;
  bottom: -52px;
  right: -9999999px;
  background: #f2f3fa;
  z-index: -1;
}

/* Enhanced testimonial carousel styles for uniform cards */
.testimonial-carousel.owl-theme .owl-stage-outer {
  padding: 20px 0;
}

.testimonial-carousel.owl-theme .owl-item {
  display: flex;
  justify-content: center;
}

.testimonial-carousel.owl-theme .owl-item .item {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.testimonial-carousel.owl-theme .owl-item .card {
  width: 100% !important;
  min-width: 550px !important;
  display: flex !important;
  flex-direction: column !important;
  border-radius: 15px !important;
  overflow: hidden !important;
  transition: all 0.3s ease !important;
  background: #ffffff !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
  /* Height will be set dynamically via JavaScript */
}

.testimonial-carousel.owl-theme .owl-item .card:hover {
  transform: translateY(-10px) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2) !important;
}

.testimonial-carousel.owl-theme .owl-item .card .card-body {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  padding: 40px 35px !important;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
}

.testimonial-carousel.owl-theme .owl-item .card .card-text {
  font-size: 18px !important;
  line-height: 1.7 !important;
  color: #333 !important;
  margin: 0 !important;
  font-style: italic !important;
  text-align: center !important;
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}

.testimonial-carousel.owl-theme .owl-item .card .card-footer {
  padding: 30px 35px !important;
  background: #ffffff !important;
  border: none !important;
  text-align: center !important;
  min-height: 100px !important;
  border-top: 1px solid #f0f0f0 !important;
}

.testimonial-carousel.owl-theme .owl-item .card .card-footer h5 {
  color: var(--thm-primary) !important;
  font-family: "Dancing Script", cursive !important;
  font-size: 32px !important;
  margin: 0 0 8px 0 !important;
  line-height: 1.2 !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}

.testimonial-carousel.owl-theme .owl-item .card .card-footer small {
  color: #666666 !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .testimonial-carousel.owl-theme .owl-item .item {
    max-width: 550px;
  }

  .testimonial-carousel.owl-theme .owl-item .card {
    min-width: 500px !important;
  }
}

@media (max-width: 768px) {
  .testimonial-carousel.owl-theme .owl-item .item {
    max-width: 500px;
  }

  .testimonial-carousel.owl-theme .owl-item .card {
    min-width: 450px !important;
  }

  .testimonial-carousel.owl-theme .owl-item .card .card-body {
    padding: 30px 25px !important;
  }

  .testimonial-carousel.owl-theme .owl-item .card .card-text {
    font-size: 16px !important;
  }

  .testimonial-carousel.owl-theme .owl-item .card .card-footer {
    padding: 25px 30px !important;
    min-height: 90px !important;
  }

  .testimonial-carousel.owl-theme .owl-item .card .card-footer h5 {
    font-size: 28px !important;
  }

  .testimonial-carousel.owl-theme .owl-item .card .card-footer small {
    font-size: 14px !important;
  }
}

@media (max-width: 480px) {
  .testimonial-carousel.owl-theme .owl-item .item {
    max-width: 400px;
  }

  .testimonial-carousel.owl-theme .owl-item .card {
    min-width: 380px !important;
  }

  .testimonial-carousel.owl-theme .owl-item .card .card-body {
    padding: 25px 20px !important;
  }

  .testimonial-carousel.owl-theme .owl-item .card .card-text {
    font-size: 15px !important;
  }

  .testimonial-carousel.owl-theme .owl-item .card .card-footer {
    padding: 20px 25px !important;
    min-height: 80px !important;
  }

  .testimonial-carousel.owl-theme .owl-item .card .card-footer h5 {
    font-size: 24px !important;
  }

  .testimonial-carousel.owl-theme .owl-item .card .card-footer small {
    font-size: 13px !important;
  }
}

.single-testimonial-style1 {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  z-index: 11;
}

.single-testimonial-style1 .img-holder {
  position: relative;
  display: block;
  max-width: 480px;
  width: 100%;
  overflow: hidden;
}

.single-testimonial-style1 .img-holder:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--thm-primary);
  opacity: 0;
  transition-delay: 0.1s;
  transition-timing-function: ease-in-out;
  transition-duration: 0.7s;
  transition-property: all;
  z-index: 1;
}

.single-testimonial-style1:hover .img-holder:before {
  opacity: 0.7;
}

.single-testimonial-style1 .img-holder img {
  width: 100%;
}

.single-testimonial-style1:hover .img-holder img {
  transform: scale(1.1) rotate(2deg);
}

.single-testimonial-style1 .overlay-content {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.single-testimonial-style1 .overlay-content .quote-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: var(--thm-base);
  border-radius: 50%;
}

.single-testimonial-style1 .overlay-content .quote-icon img {
  position: relative;
  display: inline-block;
  width: auto;
}

.single-testimonial-style1 .review-box {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 140px;
  height: 50px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.single-testimonial-style1 .text-holder {
  position: relative;
  display: block;
  max-width: 570px;
  width: 100%;
  overflow: hidden;
}

.single-testimonial-style1 .text-holder .sec-title--style2 {
  padding-bottom: 38px;
}

.single-testimonial-style1 .text-holder .text {
  position: relative;
  display: block;
}

.single-testimonial-style1 .text-holder .text p {
  color: #cccccc;
  font-size: 24px;
  line-height: 40px;
  margin: 0;
}

.single-testimonial-style1 .text-holder .text h3 {
  color: #ffffff;
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
  margin: 33px 0 0;
}

.single-testimonial-style1 .text-holder .text h3 span {
  color: #cccccc;
  font-size: 16px;
  font-weight: 400;
}

.testimonial-carousel.owl-nav-style-one.owl-theme .owl-nav {
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 999;
}

.testimonial-carousel.owl-nav-style-one.owl-theme .owl-nav [class*="owl-"] {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin: 0 5px;
  padding: 0;
  background: #ffffff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.4s ease;
  z-index: 1;
}

.testimonial-carousel.owl-nav-style-one.owl-theme
  .owl-nav
  [class*="owl-"]:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: var(--thm-base);
  border-radius: 50%;
  transform: scale(0);
  transition: all 0.4s ease;
  z-index: -1;
}

.testimonial-carousel.owl-nav-style-one.owl-theme
  .owl-nav
  [class*="owl-"]
  span {
  display: block;
  color: var(--thm-primary);
  font-size: 18px;
  line-height: 50px;
  text-align: center;
  transition: all 0.4s ease;
}

.testimonial-carousel.owl-nav-style-one.owl-theme .owl-nav .owl-prev {
  transform: rotate(-180deg);
}

.testimonial-carousel.owl-nav-style-one.owl-theme .owl-nav .owl-next {
  transform: rotate(0deg);
}

.testimonial-carousel.owl-nav-style-one.owl-theme
  .owl-nav
  [class*="owl-"]:hover {
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4), 0 6px 15px rgba(0, 0, 0, 0.3);
}

.testimonial-carousel.owl-nav-style-one.owl-theme .owl-nav .owl-prev:hover {
  transform: rotate(-180deg) translateY(-3px);
}

.testimonial-carousel.owl-nav-style-one.owl-theme .owl-nav .owl-next:hover {
  transform: rotate(0deg) translateY(-3px);
}

.testimonial-carousel.owl-nav-style-one.owl-theme
  .owl-nav
  [class*="owl-"]:hover:before {
  transform: scale(1);
}

.testimonial-carousel.owl-nav-style-one.owl-theme
  .owl-nav
  [class*="owl-"]:hover
  span {
  color: #ffffff;
}

/*** 
=============================================
   Testimonial Page Css
=============================================
***/
.testimonial-page {
  position: relative;
  display: block;
  background: #ffffff;
  padding: 120px 0 70px;
  z-index: 10;
}

.testimonial-style2__single {
  position: relative;
  display: block;
  margin-bottom: 50px;
}

.testimonial-style2__single .img-holder {
  position: relative;
  display: block;
  width: 170px;
  height: 170px;
  overflow: hidden;
  margin: 0 auto 30px;
  background-color: var(--thm-base);
}

.testimonial-style2__single .img-holder img {
  width: 100%;
  transition: all 500ms linear;
  transition-delay: 0.2s;
}

.testimonial-style2__single:hover .img-holder img {
  transform: scale(1.1) rotate(2deg);
  opacity: 0.2;
  transition: all 500ms linear;
  transition-delay: 0.1s;
}

.testimonial-style2__single .text-holder {
  position: relative;
  display: block;
  background: #ffffff;
  padding: 41px 30px 40px;
  box-shadow: 0px 10px 60px 0px rgba(0, 0, 0, 0.07);
  border-top-left-radius: 60px;
  border-bottom-right-radius: 60px;
  transition: all 200ms linear;
  transition-delay: 0.1s;
}

.testimonial-style2__single:hover .text-holder {
  background: var(--thm-base);
}

.testimonial-style2__single .text-holder::before {
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  width: 60px;
  margin: 0 auto;
  border-bottom: 20px solid #ffffff;
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  transition: all 200ms linear;
  transition-delay: 0.1s;
  content: "";
}

.testimonial-style2__single:hover .text-holder::before {
  border-bottom: 20px solid var(--thm-base);
}

.testimonial-style2__single .text-holder p {
  font-size: 18px;
  line-height: 32px;
  margin: 0 0 21px;
  transition: all 200ms linear;
  transition-delay: 0.1s;
}

.testimonial-style2__single:hover .text-holder p {
  color: #ffffff;
}

.testimonial-style2__single .text-holder .border-box {
  position: relative;
  display: block;
  width: 220px;
  height: 1px;
  background: #f2f3fa;
  margin: 0 auto;
}

.testimonial-style2__single .text-holder .border-box:before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  right: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--thm-base);
}

.testimonial-style2__single .text-holder .client-info {
  position: relative;
  display: block;
  margin-top: 23px;
}

.testimonial-style2__single .text-holder .client-info h3 {
  color: var(--thm-base);
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  font-family: var(--thm-font);
  transition: all 200ms linear;
  transition-delay: 0.1s;
}

.testimonial-style2__single:hover .text-holder .client-info h3 {
  color: #ffffff;
}

.testimonial-style2__single .text-holder .client-info span {
  color: var(--thm-primary);
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
  transition: all 200ms linear;
  transition-delay: 0.1s;
}

.testimonial-style2__single:hover .text-holder .client-info span {
  color: var(--thm-primary);
}
