/* ===== TESTIMONIALS SECTION CSS ===== */

:root {
  --testimonial-bg-dark: rgba(18, 18, 24, 0.6);
  --testimonial-bg-light: rgba(255, 255, 255, 0.8);
  --testimonial-border-dark: rgba(255, 255, 255, 0.05);
  --testimonial-border-light: rgba(0, 0, 0, 0.05);
  --testimonial-shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.15);
  --testimonial-shadow-light: 0 10px 30px rgba(0, 0, 0, 0.08);
  --testimonial-text-dark: #f1f1f1;
  --testimonial-text-light: #333;
  --testimonial-author-dark: #fff;
  --testimonial-author-light: #222;
  --testimonial-highlight: #7ED321;
  --testimonial-secondary: #9c27b0;
}

.testimonials-container {
    position: relative;
    overflow: visible;
    padding: 20px 0;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Navigation buttons */
.testimonial-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.testimonial-nav-btn.prev {
    left: -25px;
}

.testimonial-nav-btn.next {
    right: -25px;
}

.testimonial-nav-btn:hover {
    background: var(--primary-green);
    color: #111;
}

/* Testimonials Slider - Horizontal scroll with 3 cards visible */
#testimonials-slider {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease-out;
    width: 100%;
    padding: 20px 0;
    margin: 0;
    position: relative;
    overflow: visible;
}

/* Testimonial Item */
.testimonial-item {
    background: var(--testimonial-bg-dark);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--testimonial-shadow-dark);
    backdrop-filter: blur(10px);
    border: 1px solid var(--testimonial-border-dark);
    box-sizing: border-box;
    transition: all 0.3s ease;
    flex: 0 0 calc(33.333% - 14px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.testimonial-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(126, 211, 33, 0.3);
}

/* Testimonial content styles for consistency */
.testimonial-content {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.testimonial-content p {
    height: auto;
    line-height: 1.7;
    overflow: hidden;
    margin-bottom: 20px;
    flex: 1 0 auto;
    position: relative; /* For positioning invisible content */
    color: var(--testimonial-text-dark);
    font-size: 14px;
    transition: color 0.3s ease;
}

.testimonial-content p::after {
    content: "...";
    color: #FFD700;
    font-weight: 700;
    margin-left: 2px;
}

.quote-icon {
    margin-bottom: 15px;
    color: var(--primary-green);
    font-size: 24px;
    transition: color 0.3s ease;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.3s ease;
}

/* Avatar image fixes */
.author-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.testimonial-luxury-border {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-luxury-border::after {
    content: "";
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7ED321, #2E7D32, #9c27b0);
    z-index: -1;
    animation: rotateBorder 5s linear infinite;
}

@keyframes rotateBorder {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    border: 2px solid rgba(126, 211, 33, 0.3);
    position: relative;
} 

.author-info {
    flex: 1;
}

.author-name {
    font-family: var(--heading-font);
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--testimonial-author-dark);
    font-size: 16px;
    transition: color 0.3s ease;
}

.star-rating {
    display: flex;
    gap: 2px;
}

.star-rating i {
    color: #FFD700;
    font-size: 12px;
}

.testimonial-premium-card {
    position: relative;
    overflow: hidden;
}

.testimonial-premium-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: translateX(-100%);
    transition: transform 1s ease;
}

.testimonial-premium-card:hover::before {
    transform: translateX(50%);
}

/* Indicator dots */
.testimonial-indicator {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    position: relative;
    z-index: 10;
}

.indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0 5px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.indicator-dot.active {
    background: linear-gradient(90deg, #7ED321, #9cd178);
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(126, 211, 33, 0.5);
}

/* Enhanced Light theme adjustments */
.light-theme .testimonials-section {
    background: linear-gradient(145deg, #f8f9fa, #ffffff);
}

.light-theme .testimonials-section .section-subtitle {
    background: linear-gradient(90deg, rgba(126, 211, 33, 0.15) 0%, rgba(154, 122, 249, 0.15) 100%);
    color: var(--accent-green-light, #4CAF50);
}

.light-theme .testimonials-section .section-title {
    color: var(--text-heading-light, #222222);
}

.light-theme .testimonials-section .section-description,
.light-theme .testimonials-section .testimonials-description {
    color: var(--text-body-light, rgba(0, 0, 0, 0.7));
}

.light-theme .testimonial-nav-btn {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #444;
}

.light-theme .testimonial-nav-btn:hover {
    background: var(--primary-green);
    color: #fff;
    box-shadow: 0 5px 15px rgba(126, 211, 33, 0.3);
}

.light-theme .testimonial-item {
    background: var(--testimonial-bg-light);
    box-shadow: var(--testimonial-shadow-light);
    border: 1px solid var(--testimonial-border-light);
}

.light-theme .testimonial-item:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(126, 211, 33, 0.3);
    transform: translateY(-5px) scale(1.01);
}

.light-theme .testimonial-item.testimonial-premium-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(245, 245, 245, 0.9));
    border: 1px solid rgba(200, 160, 60, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(200, 160, 60, 0.1);
}

.light-theme .testimonial-item.testimonial-premium-card::before {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 100%
    );
}

.light-theme .testimonial-content p {
    color: var(--testimonial-text-light);
}

.light-theme .testimonial-content p::after {
    color: rgba(218, 165, 32, 0.9);
}

.light-theme .quote-icon {
    color: var(--accent-green-light, #4CAF50);
}

.light-theme .testimonial-author {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.light-theme .author-name {
    color: var(--testimonial-author-light);
}

.light-theme .author-image {
    border: 2px solid rgba(126, 211, 33, 0.2);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.light-theme .image-placeholder {
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    color: #2E7D32;
}

.light-theme .indicator-dot {
    background-color: rgba(0, 0, 0, 0.15);
}

.light-theme .indicator-dot.active {
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    box-shadow: 0 0 10px rgba(126, 211, 33, 0.3);
}

/* Main section styling */
.testimonials-section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at center, #1a1a24 0%, #161623 100%);
    transition: background 0.3s ease;
}

.testimonials-section .section-subtitle {
    display: inline-block;
    background: linear-gradient(90deg, rgba(126, 211, 33, 0.2) 0%, rgba(154, 122, 249, 0.2) 100%);
    color: var(--accent-green, #78e57e);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 8px 16px;
    border-radius: 30px;
    margin-bottom: 15px;
    position: relative;
    text-align: left;
    transition: background 0.3s ease, color 0.3s ease;
}

.testimonials-section .section-title {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
    text-align: left;
    color: var(--text-heading, #ffffff);
    transition: color 0.3s ease;
}

.testimonials-section .section-description,
.testimonials-section .testimonials-description {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
    color: var(--text-body, rgba(255, 255, 255, 0.8));
    max-width: 70%;
    text-align: left;
    transition: color 0.3s ease;
}

.testimonials-section .gradient-text {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-purple) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    font-weight: 800;
}

/* Header spacing for Testimonials Section */
.testimonials-section .col-lg-6.p-0 {
    padding-left: 25px !important;
}

@media (max-width: 768px) {
    .testimonials-section .col-lg-6.p-0 {
        padding-left: 15px !important;
    }
}

@media (max-width: 576px) {
    .testimonials-section .col-lg-6.p-0 {
        padding-left: 10px !important;
    }
}

/* Adding background elements */
.testimonials-bg-element {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(126, 211, 33, 0.15) 0%, rgba(156, 39, 176, 0.15) 100%);
    filter: blur(60px);
    z-index: 0;
    opacity: 0.3;
    transition: opacity 0.3s ease, background 0.3s ease;
}

.testimonials-bg-1 {
    width: 500px;
    height: 500px;
    top: -150px;
    right: -100px;
}

.testimonials-bg-2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -100px;
}

.light-theme .testimonials-bg-element {
    opacity: 0.1;
    background: linear-gradient(135deg, rgba(126, 211, 33, 0.1) 0%, rgba(156, 39, 176, 0.1) 100%);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .testimonial-item {
        flex: 0 0 calc(50% - 10px);
    }
    
    .testimonials-container {
        max-width: 900px;
    }
    
    .testimonial-nav-btn.prev {
        left: 5px;
    }
    
    .testimonial-nav-btn.next {
        right: 5px;
    }
}

@media (max-width: 768px) {
    .testimonial-item {
        flex: 0 0 100%;
    }
    
    .testimonials-container {
        padding: 0 20px;
    }
    
    .testimonial-nav-btn {
        display: flex;
        width: 40px;
        height: 40px;
    }
    
    .testimonial-nav-btn.prev {
        left: 0;
    }
    
    .testimonial-nav-btn.next {
        right: 0;
    }
}

@media (max-width: 576px) {
    .testimonial-content p {
        font-size: 14px;
    }
    
    .quote-icon {
        font-size: 20px;
    }
    
    .testimonials-container {
        padding: 0 15px;
    }
}