/* Testimonials Section Styles */
.testimonials-section {
    position: relative;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 50%, #f0fdf4 100%);
    padding: 120px 0;
    overflow: hidden;
}

.testimonials-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Background Decorations */
.testimonials-decorations {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.testimonials-box {
    position: absolute;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    opacity: 0.06;
    border-radius: 12px;
    animation: rotateFloat 15s ease-in-out infinite;
}

.decoration-box-1 {
    width: 180px;
    height: 180px;
    top: 15%;
    right: 8%;
    transform: rotate(45deg);
    animation-delay: 0s;
}

[dir="ltr"] .decoration-box-1 {
    right: auto;
    left: 8%;
}

.decoration-box-2 {
    width: 140px;
    height: 140px;
    bottom: 20%;
    left: 10%;
    transform: rotate(-30deg);
    animation-delay: 3s;
}

[dir="ltr"] .decoration-box-2 {
    left: auto;
    right: 10%;
}

.testimonials-circle {
    position: absolute;
    border: 3px dashed var(--primary-light);
    border-radius: 50%;
    opacity: 0.15;
    animation: pulseRotate 10s ease-in-out infinite;
}

.decoration-circle-1 {
    width: 280px;
    height: 280px;
    top: 25%;
    right: -120px;
    animation-delay: 1.5s;
}

[dir="ltr"] .decoration-circle-1 {
    right: auto;
    left: -120px;
}

@keyframes rotateFloat {
    0%, 100% {
        transform: rotate(45deg) translateY(0) scale(1);
    }
    25% {
        transform: rotate(50deg) translateY(-25px) scale(1.05);
    }
    50% {
        transform: rotate(45deg) translateY(-15px) scale(1);
    }
    75% {
        transform: rotate(40deg) translateY(-20px) scale(0.95);
    }
}

@keyframes pulseRotate {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.15;
    }
    25% {
        transform: scale(1.1) rotate(90deg);
        opacity: 0.2;
    }
    50% {
        transform: scale(1) rotate(180deg);
        opacity: 0.15;
    }
    75% {
        transform: scale(1.1) rotate(270deg);
        opacity: 0.2;
    }
}

/* Section Header */
.testimonials-header {
    margin-bottom: 70px;
    opacity: 0;
    transform: translateY(-30px);
    transition: all 0.8s ease-out;
}

.testimonials-header.animate-fade-in {
    opacity: 1;
    transform: translateY(0);
}

.testimonials-header-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 50px;
    flex-wrap: wrap;
}

.testimonials-header-left {
    flex: 1;
    min-width: 300px;
    max-width: 700px;
}

.testimonials-header-right {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding-top: 48px;
}

.testimonials-header .section-label-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 24px;
}

.testimonials-header .section-label {
    display: inline-block;
    padding: 8px 18px;
    background: var(--primary-color);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(11, 106, 50, 0.2);
    transition: all 0.3s ease;
}

.testimonials-header .section-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(11, 106, 50, 0.3);
}

.testimonials-header .section-label-decorations {
    display: flex;
    gap: 5px;
    align-items: center;
}

.testimonials-header .deco-line {
    width: 5px;
    height: 22px;
    background: var(--accent-color);
    border-radius: 3px;
    transition: transform 0.3s ease;
}

.testimonials-header .section-label-wrapper:hover .deco-line {
    transform: scaleY(1.1);
}

.testimonials-header .deco-line:nth-child(1) {
    transition-delay: 0s;
}

.testimonials-header .deco-line:nth-child(2) {
    transition-delay: 0.05s;
}

.testimonials-header .deco-line:nth-child(3) {
    transition-delay: 0.1s;
}

.testimonials-header .section-title {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.testimonials-header .section-description {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 95%;
    margin-bottom: 0;
}

[dir="ltr"] .testimonials-header .section-description {
    max-width: 100%;
}

/* Navigation Buttons */
.testimonial-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    color: var(--primary-color);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.testimonial-nav-btn:hover {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(11, 106, 50, 0.25);
}

.testimonial-nav-btn:active {
    transform: translateY(0);
}

.testimonial-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Testimonials Slider - Carousel Layout */
.testimonials-slider {
    position: relative;
    overflow: hidden;
    margin-bottom: 50px;
    padding-bottom: 100px;
}

.testimonials-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    gap: 30px;
    align-items: flex-start;
}

/* Testimonial Card - Fixed Width for Slider */
.testimonial-card {
    flex: 0 0 calc((100% - 60px) / 3);
    min-width: calc((100% - 60px) / 3);
    max-width: calc((100% - 60px) / 3);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 16px;
    padding: 45px 40px 40px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 85px;
    overflow: visible;
}

/* Card gradient overlay - Always visible */
.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%);
    opacity: 1;
    border-radius: 16px 16px 0 0;
}

/* Card subtle background pattern */
.testimonial-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(11, 106, 50, 0.02) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    border-radius: 20px;
}

.testimonial-card:hover::after {
    opacity: 1;
}

@media (max-width: 992px) {
    .testimonials-slider {
        padding-bottom: 90px;
    }
    
    .testimonial-card {
        flex: 0 0 calc((100% - 30px) / 2);
        min-width: calc((100% - 30px) / 2);
        max-width: calc((100% - 30px) / 2);
        padding: 40px 35px 35px 35px;
        margin-bottom: 80px;
        overflow: visible;
    }
    
    .testimonial-author {
        bottom: -65px;
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 768px) {
    .testimonials-slider {
        padding-bottom: 85px;
    }
    
    .testimonial-card {
        flex: 0 0 100%;
        min-width: 100%;
        max-width: 100%;
        padding: 35px 30px 30px 30px;
        margin-bottom: 75px;
        overflow: visible;
    }
    
    .testimonial-author {
        bottom: -60px;
        gap: 16px;
        opacity: 1;
        visibility: visible;
    }
}

.testimonial-card.animate-fade-in {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-8px);
    border-color: rgba(11, 106, 50, 0.15);
}

/* Testimonial Content */
.testimonial-content {
    position: relative;
    z-index: 2;
    flex: 1;
    padding-bottom: 25px;
    margin-bottom: 0;
}

/* Quote Icon - Bottom Right Inside Card */
.testimonial-quote-icon {
    position: absolute;
    bottom: 20px;
    right: 25px;
    width: 95px;
    height: 95px;
    color: rgba(59, 130, 246, 0.12);
    font-size: 95px;
    line-height: 1;
    z-index: 1;
    opacity: 0.6;
    pointer-events: none;
    transition: all 0.4s ease;
}

[dir="ltr"] .testimonial-quote-icon {
    right: auto;
    left: 25px;
}

.testimonial-card:hover .testimonial-quote-icon {
    opacity: 0.8;
    transform: scale(1.05);
    color: rgba(59, 130, 246, 0.18);
}

/* Testimonial Text - At Top */
.testimonial-text {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-primary);
    margin-bottom: 20px;
    margin-top: 0;
    padding-top: 0;
    padding-right: 50px;
    position: relative;
    z-index: 2;
    font-weight: 400;
    transition: color 0.4s ease;
}

[dir="ltr"] .testimonial-text {
    padding-right: 0;
    padding-left: 50px;
}

.testimonial-card:hover .testimonial-text {
    color: var(--text-primary);
}

/* Rating - Below Text */
.testimonial-rating {
    display: flex;
    gap: 6px;
    margin-bottom: 0;
    margin-top: 0;
    padding-top: 0;
    position: relative;
    z-index: 2;
    align-items: center;
}

.testimonial-rating i {
    color: var(--accent-color);
    font-size: 18px;
    filter: drop-shadow(0 1px 2px rgba(212, 175, 55, 0.2));
    transition: all 0.3s ease;
}

.testimonial-card:hover .testimonial-rating i {
    transform: scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.3));
}

/* Testimonial Author - Positioned below card */
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 0;
    padding-top: 0;
    position: absolute;
    bottom: -70px;
    left: 0;
    right: 0;
    z-index: 10;
    opacity: 1;
    visibility: visible;
}

.testimonial-avatar {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    border: 3.5px solid var(--primary-light);
    box-shadow: 0 5px 15px rgba(11, 106, 50, 0.2), 0 2px 6px rgba(11, 106, 50, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-primary);
}

.testimonial-card:hover .testimonial-avatar {
    transform: scale(1.12);
    box-shadow: 0 8px 20px rgba(11, 106, 50, 0.3), 0 3px 8px rgba(11, 106, 50, 0.15);
    border-color: var(--primary-color);
}

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

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    display: none;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 24px;
}

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

.author-name {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
    transition: all 0.4s ease;
    letter-spacing: 0.3px;
}

.testimonial-card:hover .author-name {
    color: var(--primary-color);
    transform: translateX(3px);
}

[dir="ltr"] .testimonial-card:hover .author-name {
    transform: translateX(-3px);
}

.author-company {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.65;
    font-weight: 400;
    letter-spacing: 0.2px;
}

/* Slider Indicator */
.testimonials-indicator {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 30px;
}

[dir="ltr"] .testimonials-indicator {
    justify-content: flex-end;
}

.indicator-bar {
    width: 120px;
    height: 6px;
    background: rgba(11, 106, 50, 0.12);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.indicator-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 3px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: 16.666%;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .testimonials-section {
        padding: 100px 0;
    }

    .testimonials-header {
        margin-bottom: 50px;
    }

    .testimonials-header-content {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .testimonials-header-left {
        max-width: 100%;
        width: 100%;
        text-align: center;
    }

    .testimonials-header .section-label-wrapper {
        justify-content: center;
    }

    .testimonials-header-right {
        width: 100%;
        padding-top: 0;
        display: flex;
        justify-content: center;
    }

    .testimonials-header .section-title {
        font-size: 38px;
        text-align: center;
    }

    .testimonials-header .section-description {
        font-size: 17px;
        text-align: center;
        max-width: 100% !important;
    }

    .testimonial-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }

    .testimonial-card {
        padding: 42px 38px 38px 38px;
        border-radius: 18px;
    }
    
    .testimonial-card::before {
        border-radius: 18px 18px 0 0;
    }
    
    .testimonial-card::after {
        border-radius: 18px;
    }

    .testimonial-quote-icon {
        width: 70px;
        height: 70px;
        font-size: 70px;
        bottom: 25px;
        right: 35px;
    }

    [dir="ltr"] .testimonial-quote-icon {
        right: auto;
        left: 35px;
    }

    .testimonial-text {
        font-size: 17px;
        margin-bottom: 30px;
    }

    .author-name {
        font-size: 17px;
    }
}

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

    .testimonials-header {
        margin-bottom: 40px;
    }

    .testimonials-header-content {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    .testimonials-header-left {
        max-width: 100%;
        width: 100%;
        text-align: center;
    }

    .testimonials-header .section-label-wrapper {
        justify-content: center;
    }

    .testimonials-header-right {
        width: 100%;
        padding-top: 0;
        display: flex;
        justify-content: center;
    }

    .testimonials-header .section-title {
        font-size: 32px;
        text-align: center;
    }

    .testimonials-header .section-description {
        font-size: 16px;
        text-align: center;
        max-width: 100% !important;
    }

    .testimonials-track {
        gap: 25px;
    }

    .testimonial-card {
        padding: 36px 32px 32px 32px;
        margin-bottom: 70px;
        border-radius: 16px;
    }
    
    .testimonial-card::before {
        border-radius: 16px 16px 0 0;
    }
    
    .testimonial-card::after {
        border-radius: 16px;
    }

    .testimonial-quote-icon {
        width: 70px;
        height: 70px;
        font-size: 70px;
        bottom: 18px;
        right: 24px;
    }

    [dir="ltr"] .testimonial-quote-icon {
        right: auto;
        left: 24px;
    }

    .testimonial-text {
        font-size: 15px;
        margin-bottom: 22px;
        padding-right: 35px;
        line-height: 1.7;
    }

    [dir="ltr"] .testimonial-text {
        padding-right: 0;
        padding-left: 35px;
    }

    .testimonial-rating {
        margin-bottom: 0;
    }

    .testimonial-rating i {
        font-size: 16px;
    }

    .testimonial-author {
        bottom: -60px;
        gap: 15px;
        opacity: 1;
        visibility: visible;
    }

    .testimonial-avatar {
        width: 55px;
        height: 55px;
    }

    .author-name {
        font-size: 16px;
        margin-bottom: 5px;
    }

    .author-company {
        font-size: 13px;
    }

    .indicator-bar {
        width: 100px;
    }
}

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

    .testimonials-header {
        margin-bottom: 35px;
    }

    .testimonials-header-content {
        gap: 20px;
    }

    .testimonials-header .section-title {
        font-size: 28px;
        margin-bottom: 18px;
    }

    .testimonials-header .section-description {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .testimonial-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .testimonials-track {
        gap: 20px;
    }

    .testimonials-slider {
        padding-bottom: 80px;
    }

    .testimonial-card {
        padding: 32px 26px 26px 26px;
        margin-bottom: 65px;
        border-radius: 14px;
        overflow: visible;
    }
    
    .testimonial-card::before {
        border-radius: 14px 14px 0 0;
    }
    
    .testimonial-card::after {
        border-radius: 14px;
    }
    
    .testimonial-author {
        bottom: -55px;
        gap: 14px;
        opacity: 1;
        visibility: visible;
    }

    .testimonial-quote-icon {
        width: 65px;
        height: 65px;
        font-size: 65px;
        bottom: 16px;
        right: 20px;
    }

    [dir="ltr"] .testimonial-quote-icon {
        right: auto;
        left: 20px;
    }

    .testimonial-text {
        font-size: 14px;
        margin-bottom: 20px;
        padding-right: 30px;
        line-height: 1.7;
    }

    [dir="ltr"] .testimonial-text {
        padding-right: 0;
        padding-left: 30px;
    }

    .testimonial-rating i {
        font-size: 15px;
    }

    .testimonial-author {
        bottom: -55px;
        gap: 14px;
    }

    .testimonial-avatar {
        width: 52px;
        height: 52px;
    }

    .author-name {
        font-size: 15px;
        margin-bottom: 4px;
    }

    .author-company {
        font-size: 12px;
    }

    .indicator-bar {
        width: 100px;
        height: 5px;
    }
}

