.modern-testimonials.testimonials-section {
    position: relative;
    overflow: visible !important;
}

.modern-testimonials.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.modern-testimonials.testimonials-section .container {
    position: relative;
    z-index: 2;
}

.modern-testimonials .section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    text-transform: capitalize;
}

.modern-testimonials .section-subtitle {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
}

/* Carousel Section Styles */
.modern-testimonials .testimonial-two {
    margin: 0 -15px;
    position: relative;
    padding: 0 50px;
}

.modern-testimonials .testimonial-two .item {
    padding: 0 15px;
}

.modern-testimonials .testimonial-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.modern-testimonials .testimonial-card:hover {
    transform: translateY(-5px);
}

.modern-testimonials .testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modern-testimonials .testimonial-pic {
    position: relative;
    width: 80px;
    height: 80px;
    margin-right: 1.5rem;
}

.modern-testimonials .testimonial-pic img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.modern-testimonials .testimonial-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #007bff;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.modern-testimonials .testimonial-info {
    flex: 1;
}

.modern-testimonials .testimonial-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.3rem;
}

.modern-testimonials .testimonial-position {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    color: #666;
    display: block;
}

.modern-testimonials .testimonial-date {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.8rem;
    color: #999;
}

.modern-testimonials .testimonial-content {
    position: relative;
}

.modern-testimonials .testimonial-text {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1rem;
    border-left: 3px solid #007bff;
}

.modern-testimonials .testimonial-rating {
    color: #ffc107;
    font-size: 1.1rem;
}

.modern-testimonials .testimonial-rating .fa-star {
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.modern-testimonials .testimonial-rating .fa-star.active {
    opacity: 1;
}

/* Modern Owl Carousel Navigation Styles */
.modern-testimonials .owl-carousel {
    position: relative;
    overflow: visible;
}

.modern-testimonials .owl-carousel .owl-stage-outer {
    overflow: visible;
    padding: 20px 0;
}

.modern-testimonials .owl-nav {
    margin: 0;
    width: 100%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    z-index: 1;
}

.modern-testimonials .owl-prev,
.modern-testimonials .owl-next {
    position: absolute;
    width: 40px !important;
    height: 40px !important;
    background: #fff !important;
    border-radius: 50% !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #333 !important;
    font-size: 20px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.modern-testimonials .owl-prev {
    left: -50px;
}

.modern-testimonials .owl-next {
    right: -50px;
}

.modern-testimonials .owl-prev:hover,
.modern-testimonials .owl-next:hover {
    background: #007bff !important;
    color: #fff !important;
    transform: scale(1.1);
}

.modern-testimonials .owl-dots {
    text-align: center;
    margin-top: 20px;
}

.modern-testimonials .owl-dot {
    display: inline-block;
    margin: 0 5px;
}

.modern-testimonials .owl-dot span {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: block;
    transition: all 0.3s ease;
}

.modern-testimonials .owl-dot.active span {
    background: #fff;
    transform: scale(1.2);
}

@media (max-width: 1200px) {
    .modern-testimonials .owl-prev {
        left: -30px;
    }
    .modern-testimonials .owl-next {
        right: -30px;
    }
}

@media (max-width: 768px) {
    .modern-testimonials .owl-prev {
        left: -20px;
    }
    .modern-testimonials .owl-next {
        right: -20px;
    }
    .modern-testimonials .owl-prev,
    .modern-testimonials .owl-next {
        width: 35px !important;
        height: 35px !important;
        font-size: 16px !important;
    }

    .modern-testimonials .testimonial-two {
        padding: 0 40px;
    }

    .modern-testimonials .section-title {
        font-size: 2rem;
    }
    
    .modern-testimonials .testimonial-card {
        padding: 1.5rem;
    }
    
    .modern-testimonials .testimonial-pic {
        width: 60px;
        height: 60px;
    }
    
    .modern-testimonials .testimonial-name {
        font-size: 1.1rem;
    }
}

/* Testimonials Custom Owl Carousel Styles */
.td-testimonials-carousel.owl-carousel .owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 50% !important;
    color: #fff !important;
    font-size: 20px !important;
    transition: all 0.3s ease;
}

.td-testimonials-carousel.owl-carousel .owl-nav button:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}

.td-testimonials-carousel.owl-carousel .owl-nav button.owl-prev {
    left: -20px;
}

.td-testimonials-carousel.owl-carousel .owl-nav button.owl-next {
    right: -20px;
}

.td-testimonials-carousel.owl-carousel .owl-dots {
    margin-top: 30px;
    text-align: center;
}

.td-testimonials-carousel.owl-carousel .owl-dot {
    display: inline-block;
    margin: 0 5px;
}

.td-testimonials-carousel.owl-carousel .owl-dot span {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3) !important;
    border-radius: 50%;
    display: block;
    transition: all 0.3s ease;
}

.td-testimonials-carousel.owl-carousel .owl-dot.active span {
    background: #ff8b56 !important;
}

/* Testimonials Section Styles */
.td-testimonials-section {
    padding: 80px 0;
    /* background: linear-gradient(135deg, #614385 0%, #516395 25%, #264b81 50%, #33b0cc 75%, #614385 100%); */
    background-size: 400% 400%;
    position: relative;
    overflow: hidden;
    color: #fff;
    animation: gradientAnimation 15s ease infinite;
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.td-testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.td-testimonials-header h2 {
    font-size: 36px;
    margin-bottom: 15px;
    color: #fff;
    font-weight: 600;
}

.td-testimonials-divider {
    width: 50px;
    height: 2px;
    background: #ff8b56;
    margin: 15px auto;
    position: relative;
}

.td-testimonials-divider:after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #ff8b56;
    border-radius: 50%;
}

.td-testimonial-card {
    background: #f7dfcabf;
    border-radius: 10px;
    padding: 30px;
    margin: 20px;
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease;
    border: 0.2px solid #ffd5c2;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

.td-testimonial-card:hover {
    transform: translateY(-5px);
}

.td-testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.td-testimonial-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 20px;
    border: 3px solid #ff8b56;
}

.td-testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.td-testimonial-info {
    flex: 1;
}

.td-testimonial-name {
    font-size: 20px;
    margin: 0 0 5px;
    color: #ff8b56;
}

.td-testimonial-designation {
    font-size: 14px;
    color: #555555;
    display: block;
    margin-bottom: 5px;
}

.td-testimonial-date {
    font-size: 12px;
    color: #777;
}

.td-testimonial-content {
    position: relative;
}

.td-testimonial-text {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #031435;
}

.td-testimonial-rating {
    color: #ffd700;
}

.td-testimonial-rating .fa-star {
    margin-right: 2px;
    opacity: 0.3;
}

.td-testimonial-rating .fa-star.active {
    opacity: 1;
}

.td-testimonial-btn {
    display: inline-block;
    padding: 12px 35px;
    background: #ff8b56;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    margin-top: 50px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.td-testimonial-btn:hover {
    background: #0b5ed7;
    transform: translateY(-1px);
}

.td-testimonial-center {
    text-align: center;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .td-testimonials-section {
        padding: 60px 0;
    }

    .td-testimonials-header h2 {
        font-size: 28px;
    }

    .td-testimonial-card {
        padding: 20px;
        margin: 10px;
    }

    .td-testimonial-image {
        width: 60px;
        height: 60px;
    }

    .td-testimonial-name {
        font-size: 18px;
    }

    .td-testimonial-text {
        font-size: 14px;
    }
} 