.testimonials-sec {
    position: relative;
    padding: 60px 0;
    overflow: hidden;
}

/* Testimonials overlay */
.testimonials-loader {
  position: absolute;
  inset: 0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  opacity: 1;
  visibility: visible;
  transition: opacity 200ms ease, visibility 200ms ease;
}
.testimonials-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

/* Same spinner used elsewhere */
.testimonials-loader .spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e5e7eb;      /* gray-200 */
  border-top-color: #132b66;
  border-radius: 50%;
  animation: spn 0.8s linear infinite;
}
@keyframes spn { to { transform: rotate(360deg); } }

.testimonials-sec .testimonials-header {
    margin-bottom: 60px;
    text-align: center;
}

.testimonials-sec .testimonials-header h2 {
    font-size: 40px;
    line-height: 56px;
    letter-spacing: 0;
}

.testimonials-sec .testimonials-container {
    position: relative;
    width: 100%;
}

.testimonials-sec .testimonials-container .testimonials-slider {
    position: relative;
    max-width: 800px;
}

.testimonials-sec .testimonials-container .testimonials-slider .testimonials-profile .testimonials-profile-wrap {
    position: relative;
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    column-gap: 30px;
    min-height: 100%
}

.testimonials-sec .testimonials-container .testimonials-slider .testimonials-profile .testimonials-profile-img {
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    aspect-ratio: 1/1;
    max-width: 250px;
}

.testimonials-sec .testimonials-container .testimonials-slider .testimonials-profile .testimonials-profile-img img {
    max-width: 250px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
}

.testimonials-sec .testimonials-container .testimonials-slider .testimonials-profile .testimonials-profile-content {
    display: flex;
    row-gap: 20px;
    flex-direction: column;
    position: relative;
}

.testimonials-sec .testimonials-container .testimonials-slider .testimonials-profile .testimonials-profile-content:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    max-width: 100%;
    max-height: 100%;
    background-image: url(data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiB2aWV3Qm94PSIwIDAgMjYwIDIzOSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSIjRjdGNkY2IiBkPSJNNzguNTMuMzcxbDM3LjczNiAyOS4xQzg4LjcyOSA2MS42OSA3MS4zOTEgOTMuOTA5IDYzLjIzMiAxMjYuMTI3YzMwLjU5NiAwIDU1LjA3MyAyNS45ODIgNTUuMDczIDU3LjE2MSAwIDI5LjEwMS0yMy40NTcgNTUuMDgzLTU2LjA5MyA1NS4wODNDMjMuNDU3IDIzOC4zNzEgMCAyMDMuMDM1IDAgMTU1LjIyNyAwIDExMy42NTUgMTcuMzM4IDc4LjMxOSA3OC41My4zNzF6bTE0MS42OTUgMGwzNy43MzUgMjkuMWMtMjcuNTM2IDMyLjIxOS00NC44NzQgNjQuNDM3LTUzLjAzMyA5Ni42NTYgMzAuNTk2IDAgNTUuMDczIDI1Ljk4MiA1NS4wNzMgNTcuMTYxIDAgMjkuMTAxLTIzLjQ1NyA1NS4wODMtNTYuMDkzIDU1LjA4My0zOC43NTUgMC02Mi4yMTItMzUuMzM2LTYyLjIxMi04My4xNDQgMC00MS41NzIgMTcuMzM3LTc2LjkwOCA3OC41My0xNTQuODU2eiIvPjwvc3ZnPg==);
    background-repeat: no-repeat;
    background-position: left center;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.testimonials-sec .testimonials-container .testimonials-slider .testimonials-profile .testimonials-profile-content .testimonials-profile-description {
    font-size: 16px;
    line-height: 26px;
    z-index: 2;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Limit to 4 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.testimonials-sec .testimonials-container .testimonials-slider .testimonials-profile .testimonials-profile-content .testimonials-profile-description p {
    font-size: 16px;
    line-height: 26px;
}

.testimonials-sec .testimonials-container .testimonials-slider .testimonials-profile .testimonials-profile-content .testimonials-profile-description br {
    display: none;
}

.testimonials-sec .testimonials-container .testimonials-slider .testimonials-profile .testimonials-profile-content .testimonials-header h2 {
    font-size: 40px;
    line-height: 56px;
    letter-spacing: 0;
}

.testimonials-sec .testimonials-container .testimonials-slider .testimonials-profile .testimonials-profile-content .testimonials-header {
    margin-bottom: 60px;
    text-align: center;
}

.testimonials-sec .testimonials-container .testimonials-slider .testimonials-profile .testimonials-profile-content .testimonials-profile-details {
    z-index: 2;
}

.testimonials-sec .testimonials-container .testimonials-slider .testimonials-profile .testimonials-profile-content .testimonials-profile-details h5 {
    font-size: 22px;
    line-height: 26px;
    font-weight: 700;
}

.testimonials-sec .testimonials-container .testimonials-slider .testimonials-profile .testimonials-profile-content .testimonials-profile-info * {
    font-size: 18px;
    line-height: 20px;
}

.testimonials-sec .testimonials-container .testimonials-slider .testimonials-profile .testimonials-profile-content .testimonials-profile-info span {
    padding-right: 15px;
}

.testimonials-sec .testimonials-container .testimonials-slider .testimonials-profile .testimonials-profile-content .testimonials-profile-info span:after {
    content: ' | ';
    display: inline-block;
    left: 10px;
    position: relative;
}

.testimonials-sec .testimonials-container .testimonials-slider .testimonials-profile .testimonials-profile-content .testimonials-profile-info span:last-of-type {
    padding-right: 0;
}

.testimonials-sec .testimonials-container .testimonials-slider .testimonials-profile .testimonials-profile-content .testimonials-profile-info span:last-of-type:after {
    content: none;
}

.testimonials-sec .testimonials-container .testimonials-slider .testimonials-profile .testimonials-profile-content .testimonials-profile-link {
    z-index: 2;
}

.testimonials-sec .testimonials-container .testimonials-slider .testimonials-profile .testimonials-profile-content .testimonials-profile-link button {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0;
    gap: 5px;
    font-size: 22px;
    line-height: 26px;
    font-weight: 600;
    color: #132B66;
}

.testimonials-sec .testimonials-container .testimonials-slider .testimonials-profile .testimonials-profile-content .testimonials-profile-link button:after {
    content: url(data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiB2aWV3Qm94PSIwIDAgMTEgMTgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbD0iIzEzMkI2NiIgZD0iTTEgMTcuOTkzYS45OTkuOTk5IDAgMDEtLjcwNy0xLjcwN2w3LjI5My03LjI5MkwuMjkzIDEuNzAxQS45OTkuOTk5IDAgMDExLjcwNy4yODdsOC43MDcgOC43MDdMMS43MDcgMTcuN2ExIDEgMCAwMS0uNzA3LjI5M3oiLz48L3N2Zz4=);
    width: 10px;
    height: 17px;
    position: relative;
    display: inline-block;
    margin-bottom: 5px;
}

@media (max-width: 767px) {
    .testimonials-sec .testimonials-header {
        margin-bottom: 30px;
    }
    
    .testimonials-sec .testimonials-header h2 {
        font-size: 26px;
        line-height: 34px;
    }
    
    .testimonials-sec .testimonials-container .testimonials-slider .testimonials-profile .testimonials-profile-wrap {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 20px;
    }
    
    .testimonials-sec .testimonials-container .testimonials-slider .testimonials-profile .testimonials-profile-img {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .testimonials-sec .testimonials-container .testimonials-slider .testimonials-profile .testimonials-profile-content {
        row-gap: 15px;
    }
    
    .testimonials-sec .testimonials-container .testimonials-slider .testimonials-profile .testimonials-profile-content .testimonials-profile-details h5 {
        font-size: 18px;
    }
    
    .testimonials-sec .testimonials-container .testimonials-slider .testimonials-profile .testimonials-profile-content .testimonials-profile-info * {
        font-size: 15px;
        line-height: 26px;
    }
    
    .testimonials-sec .testimonials-container .testimonials-slider .testimonials-profile .testimonials-profile-content .testimonials-profile-link button {
        font-size: 20px;
    }
    
    .testimonials-sec .testimonials-container .dots-container {
        margin-top: 30px;
    }
    
    .testimonials-sec .testimonials-container .testimonials-slider .testimonials-profile .testimonials-profile-content:before {
        background-position: right center;
    }
}

/* Testimonials Modal */
.testimonials-modal {
    background: transparent !important;
    padding: 0!important;
}

.testimonials-modal .modal-dialog {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin: auto;
    max-width: 1280px;
}

.testimonials-modal .modal-content {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(24px);
    border-radius: 0;
    padding: 60px;
    max-height: 100vh;
    overflow: auto;
}

.testimonials-modal .modal-header {
    position: absolute;
    top: 0;
    right: 0;
    padding: 20px;
}

.testimonials-modal .modal-header .close {
    padding: 0;
}

.testimonials-modal .modal-header i {
    font-size: 30px;
}

.testimonials-modal .testimonials-modal-container {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    column-gap: 40px;
}

.testimonials-modal .testimonials-modal-details h5 {
    font-size: 36px;
    line-height: 32px;
    font-weight: 700;
    margin-bottom: 0;
}

.testimonials-modal .testimonials-modal-info * {
    font-size: 18px;
    line-height: 20px;
}

.testimonials-modal .testimonials-modal-description {
    font-size: 18px;
    line-height: 28px;
}

.testimonials-modal .testimonials-modal-details, .testimonials-modal .testimonials-modal-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.testimonials-modal .testimonials-modal-details span {
    padding-right: 15px;
}

.testimonials-modal .testimonials-modal-details span:after {
    content: ' | ';
    display: inline-block;
    left: 10px;
    position: relative;
}

.testimonials-modal .testimonials-modal-details span:last-of-type {
    padding-right: 0;
}

.testimonials-modal .testimonials-modal-details span:last-of-type:after {
    content: none;
}

.testimonials-modal .testimonials-modal-image {
    aspect-ratio: 1/1;
    max-width: 300px;
    width: 100%;
    margin: auto;
}

.testimonials-modal .testimonials-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 1320px) {
    .testimonials-modal .modal-dialog {
        max-width: 1000px;
    }
}

@media (max-width: 1023px) {
    .testimonials-modal .modal-dialog {
        max-width: 800px;
    }
}

@media (max-width: 991px) {
    .testimonials-modal .modal-dialog {
        max-width: 700px;
    }
}

@media (max-width: 767px) {
    .testimonials-modal .modal-dialog {
        max-width: 500px;
    }
    
    .testimonials-modal .modal-content {
        height: 95vh;
        padding: 60px 20px;
        margin: 0 15px;
    }
    
    .testimonials-modal .testimonials-modal-container {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 20px;
    }
    
    .testimonials-modal .modal-body {
        padding: 0;
    }
    
    .testimonials-modal .testimonials-modal-details h5 {
        font-size: 26px;
        line-height: 34px;
    }
    
    .testimonials-modal .testimonials-modal-info * {
        font-size: 15px;
        line-height: 26px;
    }
    
    .testimonials-modal .testimonials-modal-description {
        font-size: 16px;
        line-height: 26px;
    }
    
    .testimonials-modal .testimonials-modal-image {
        max-width: 100%;
    }
}

.modal-backdrop {
    z-index: 9999;
}

/* Slick */
.testimonials-sec .testimonials-container .testimonials-slider .slick-track {
	display: flex !important;
}
.testimonials-sec .testimonials-container .testimonials-slider .slick-slide {
	height: inherit;
}
.testimonials-sec .testimonials-container .testimonials-slider .slick-slide > div {
	height: 100%;
	width: 100%;
	margin: 0 auto;
}
.testimonials-sec .testimonials-container .testimonials-slider .slick-slide {
    margin: 0 120px;
}
.testimonials-sec .testimonials-container .testimonials-slider .slick-list {
    margin: 0 -120px;
    overflow: inherit;
}
.testimonials-sec .testimonials-container .slick-arrow {
	cursor: pointer;
}

.testimonials-sec .testimonials-container .slick-arrow.slick-disabled {
	cursor: auto;
    opacity: 0.5;
}

.testimonials-sec .testimonials-container .dots-container {
    margin-top: 60px;
}

.testimonials-sec .testimonials-container .dots-container .dots {
    display: flex;
    gap: 50px;
    align-items: center;
    justify-content: center;
}

.testimonials-sec .testimonials-container .dots-container .dots .slick-counter {
    font-size: 18px;
    line-height: 24px;
}