/* Testimonial Section Styles */

/* Horizontal Scroll Animation */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% + 100vw));
    }
}

.animate-scroll {
    animation: scroll 30s linear infinite;
}

.testimonials-container {
    position: relative;
}

.testimonials-track {
    display: flex;
    gap: 1.5rem;
}

.testimonial-card {
    flex-shrink: 0;
    min-width: 400px;
}

@media (min-width: 768px) {
    .testimonial-card {
        min-width: 450px;
    }
}

/* Pause animation on hover */
.testimonials-container:hover .animate-scroll {
    animation-play-state: paused;
}

/* Dot navigation styles */
.testimonial-dot {
    transition: all 0.3s ease;
    cursor: pointer;
}

.testimonial-dot.active {
    background-color: #2563eb;
    transform: scale(1.2);
}

.testimonial-dot:hover {
    background-color: #3b82f6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .testimonial-card {
        min-width: 320px;
    }
    
    .animate-scroll {
        animation-duration: 20s;
    }
}

.testimonials-marquee {
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.testimonial-card {
    width: 300px;
}

@media (min-width: 1024px) {
    .testimonial-card {
        width: 340px;
    }
}

.heading {
    text-align: center;
    color: #454343;
    font-size: 30px;
    font-weight: 700;
    position: relative;
    margin-bottom: 70px;
    text-transform: uppercase;
    z-index: 999;
}

.white-heading{
    color: #ffffff;
}

.heading:after {
    content: ' ';
    position: absolute;
    top: 100%;
    left: 50%;
    height: 40px;
    width: 180px;
    border-radius: 4px;
    transform: translateX(-50%);
    background: url(img/heading-line.png);
    background-repeat: no-repeat;
    background-position: center;
}

.white-heading:after {
    background: url(https://i.ibb.co/d7tSD1R/heading-line-white.png);
    background-repeat: no-repeat;
    background-position: center;
}

.heading span {
    font-size: 18px;
    display: block;
    font-weight: 500;
}

.white-heading span {
    color: #ffffff;
}

.testimonial:after {
    position: absolute;
    top: -0 !important;
    left: 0;
    content: " ";
    background: url(img/testimonial.bg-top.png);
    background-size: 100% 100px;
    width: 100%;
    height: 100px;
    float: left;
    z-index: 99;
}

.testimonial {
    min-height: 375px;
    position: relative;
    background: url(https://i.ibb.co/PTJDkgb/testimonials.jpg);
    padding-top: 50px;
    padding-bottom: 50px;
    background-position: center;
    background-size: cover;
}

#testimonial4 .carousel-inner:hover{
  cursor: -moz-grab;
  cursor: -webkit-grab;
}

#testimonial4 .carousel-inner:active{
  cursor: -moz-grabbing;
  cursor: -webkit-grabbing;
}

#testimonial4 .carousel-inner .item{
  overflow: hidden;
}

.testimonial4_indicators .carousel-indicators{
  left: 0;
  margin: 0;
  width: 100%;
  font-size: 0;
  height: 20px;
  bottom: 15px;
  padding: 0 5px;
  cursor: e-resize;
  overflow-x: auto;
  overflow-y: hidden;
  position: absolute;
  text-align: center;
  white-space: nowrap;
}

.testimonial4_indicators .carousel-indicators li{
  padding: 0;
  width: 14px;
  height: 14px;
  border: none;
  text-indent: 0;
  margin: 2px 3px;
  cursor: pointer;
  display: inline-block;
  background: #ffffff;
  -webkit-border-radius: 100%;
  border-radius: 100%;
}

.testimonial4_indicators .carousel-indicators .active{
  padding: 0;
  width: 14px;
  height: 14px;
  border: none;
  margin: 2px 3px;
  background-color: #9dd3af;
  -webkit-border-radius: 100%;
  border-radius: 100%;
}

.testimonial4_indicators .carousel-indicators::-webkit-scrollbar{
  height: 3px;
}

.testimonial4_indicators .carousel-indicators::-webkit-scrollbar-thumb{
  background: #eeeeee;
  -webkit-border-radius: 0;
  border-radius: 0;
}

.testimonial4_control_button .carousel-control{
  top: 175px;
  opacity: 1;
  width: 40px;
  bottom: auto;
  height: 40px;
  font-size: 10px;
  cursor: pointer;
  font-weight: 700;
  overflow: hidden;
  line-height: 38px;
  text-shadow: none;
  text-align: center;
  position: absolute;
  background: transparent;
  border: 2px solid #ffffff;
  text-transform: uppercase;
  -webkit-border-radius: 100%;
  border-radius: 100%;
  -webkit-box-shadow: none;
  box-shadow: none;
  -webkit-transition: all 0.6s cubic-bezier(0.3,1,0,1);
  transition: all 0.6s cubic-bezier(0.3,1,0,1);
}

.testimonial4_control_button .carousel-control.left{
  left: 7%;
  top: 50%;
  right: auto;
}

.testimonial4_control_button .carousel-control.right{
  right: 7%;
  top: 50%;
  left: auto;
}

.testimonial4_control_button .carousel-control.left:hover,
.testimonial4_control_button .carousel-control.right:hover{
  color: #000;
  background: #fff;
  border: 2px solid #fff;
}

.testimonial4_header{
  top: 0;
  left: 0;
  bottom: 0;
  width: 550px;
  display: block;
  margin: 30px auto;
  text-align: center;
  position: relative;
}

.testimonial4_header h4{
  color: #ffffff;
  font-size: 30px;
  font-weight: 600;
  position: relative;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.testimonial4_slide{
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 70%;
  margin: auto;
  padding: 20px;
  position: relative;
  text-align: center;
}

.testimonial4_slide img {
    top: 0;
    left: 0;
    right: 0;
    width: 136px;
    height: 136px;
    margin: auto;
    display: block;
    color: #f2f2f2;
    font-size: 18px;
    line-height: 46px;
    text-align: center;
    position: relative;
    border-radius: 50%;
    box-shadow: -6px 6px 6px rgba(0, 0, 0, 0.23);
    -moz-box-shadow: -6px 6px 6px rgba(0, 0, 0, 0.23);
    -o-box-shadow: -6px 6px 6px rgba(0, 0, 0, 0.23);
    -webkit-box-shadow: -6px 6px 6px rgba(0, 0, 0, 0.23);
}

.testimonial4_slide p {
    color: #ffffff;
    font-size: 20px;
    line-height: 1.4;
    margin: 40px 0 20px 0;
}

.testimonial4_slide h4 {
  color: #ffffff;
  font-size: 22px;
}

.testimonial .carousel {
    padding-bottom:50px;
}

.testimonial .carousel-control-next-icon, .testimonial .carousel-control-prev-icon {
    width: 35px;
    height: 35px;
}

.testimonial-scroll-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
    margin: 2rem 0 2rem 0;
    width: 100%;
    box-sizing: border-box;
}

.testimonial-scroll-wrapper::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Webkit */
}

.testimonial-cards-row {
    display: flex;
    gap: 1.2rem;
    width: fit-content;
    align-items: stretch;
    /* Remove justify-content:center for natural scroll */
    padding: 0.5rem 0;
    margin: 0;
}

.testimonial4_slide {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(255,255,255,0.8);
    padding: 2rem 1.5rem 2rem 1.5rem;
    min-width: 320px;
    max-width: 320px;
    margin: 0;
    flex: 0 0 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.testimonial4_slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
    border-radius: 20px 20px 0 0;
}

.testimonial4_slide img {
    margin-bottom: 1.5rem;
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.testimonial4_slide .icon-container {
    margin-bottom: 1.5rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border: 2px solid rgba(59, 130, 246, 0.2);
    position: relative;
}

.testimonial4_slide .icon-container svg {
    width: 36px;
    height: 36px;
    color: #3b82f6;
}

.testimonial4_slide p {
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
    min-height: 80px;
    text-align: center;
    font-weight: 400;
}

.testimonial4_slide h4 {
    color: #1f2937;
    font-size: 1.25rem;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
    text-align: center;
}

.testimonial4_slide .testimonial-role {
    display: block;
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    font-weight: 500;
    letter-spacing: 0.025em;
    text-align: center;
    text-transform: uppercase;
    opacity: 0.8;
}

.testimonial4_slide:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

.testimonial4_slide:hover .icon-container {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
    border-color: rgba(59, 130, 246, 0.4);
    transform: scale(1.05);
}

.testimonial4_slide:hover .icon-container svg {
    color: #2563eb;
}

.testimonial-scroll-wrapper::-webkit-scrollbar {
    height: 8px;
}

.testimonial-scroll-wrapper::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.testimonial-scroll-wrapper::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.heading.white-heading {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .testimonial4_slide {
        min-width: 280px;
        max-width: 280px;
        flex: 0 0 280px;
        padding: 1.5rem 1.2rem 1.5rem 1.2rem;
    }
}

@media (max-width: 900px) {
    .testimonial-cards-row {
        gap: 1rem;
    }
    .testimonial4_slide {
        min-width: 260px;
        max-width: 260px;
        flex: 0 0 260px;
        padding: 1.2rem 1rem 1.2rem 1rem;
    }
}

@media (max-width: 600px) {
    .testimonial4_slide {
        min-width: 90vw;
        max-width: 95vw;
        flex: 0 0 95vw;
        padding: 0.7rem 0.5rem 0.9rem 0.5rem;
    }
    .testimonial4_slide h4 {
        font-size: 1rem;
        margin-bottom: 0.2rem;
    }
    .testimonial4_slide p {
        font-size: 0.85rem;
        min-height: unset;
        margin-bottom: 0.7rem;
    }
    .testimonial4_slide .testimonial-role {
        font-size: 0.75rem;
        margin-top: 0.1rem;
    }
    .heading.white-heading {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    .testimonial.text-center > p {
        font-size: 0.95rem !important;
        margin-bottom: 1.2rem !important;
    }
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    animation: marquee 30s linear infinite;
    will-change: transform;
} 