/* ================================ TESTIMONIALS - MODERN CARD DESIGN ================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --accent: #3b82f6;
    --accent-dark: #2563eb;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-tertiary: #999999;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --border: #e5e5e5;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.15);
}

/* ===== SECTION HEADER ===== */
.testimonials-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.testimonials-section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--text-primary);
    margin: 0;
}

.testimonials-section-title span {
    color: var(--accent);
    font-weight: 700;
}

/* ===== SLIDER STYLE ===== */
.testimonials-slider-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 80px auto;
    padding: 0 40px 80px;
    overflow: hidden;
}

.testimonials-slider {
    display: flex;
    gap: 32px;
    transition: transform 0.5s ease;
    padding: 20px 0;
}

.testimonial-slide {
    min-width: 100%;
    box-sizing: border-box;
}

.testimonial-content {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 50px 45px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Bottom double quote as background image - RIGHT SIDE */
.testimonial-content::after {
    content: '"';
    position: absolute;
    bottom: -50px;
    right: 30px;
    font-size: 350px;
    font-family: Georgia, serif;
    color: var(--accent);
    opacity: 0.025;
    z-index: 0;
    line-height: 1;
    pointer-events: none;
    font-weight: 700;
}

.testimonial-content:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.quote-icon {
    position: relative;
    height: 0;
    z-index: 0;
}

.quote-icon svg {
    fill: var(--accent);
    stroke: var(--accent);
}

.testimonial-text {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 30px;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

.testimonial-text p {
    margin: 0;
}

.testimonial-rating {
    font-size: 1.2rem;
    margin-bottom: 20px;
    letter-spacing: 3px;
    display: flex;
    gap: 4px;
    align-items: center;
}

.testimonial-rating svg.star {
    display: inline-block;
    vertical-align: middle;
}

.testimonial-author {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 0;
    border: none;
    margin-top: auto;
    position: relative;
    z-index: 1;
}

.author-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bg-white);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.author-info {
    text-align: left;
}

.author-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    margin: 0 0 4px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.author-location {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin: 0;
    font-weight: 400;
}

/* Decorative dots - left side */
.testimonial-content::before {
    content: '';
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 80px;
    background: radial-gradient(circle, var(--border) 3px, transparent 3px),
        radial-gradient(circle, var(--border) 3px, transparent 3px),
        radial-gradient(circle, var(--border) 3px, transparent 3px);
    background-size: 8px 8px;
    background-position: 0 0, 0 20px, 0 40px;
    background-repeat: no-repeat;
    opacity: 0.5;
    z-index: 1;
}

/* Navigation */
.testimonial-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 50px;
    position: relative;
    z-index: 10;
}

.testimonial-prev,
.testimonial-next {
    background: var(--bg-white);
    color: var(--text-primary);
    border: 2px solid var(--border);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.testimonial-prev:hover,
.testimonial-next:hover {
    background: var(--accent);
    color: var(--bg-white);
    border-color: var(--accent);
    transform: scale(1.05);
}

/* Dots */
.testimonial-dots {
    display: flex;
    gap: 10px;
    align-items: center;
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-dot:hover {
    background: var(--accent-dark);
    transform: scale(1.2);
}

.testimonial-dot.active {
    background: var(--accent);
    width: 10px;
    height: 10px;
    border: 2px solid var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* ===== GRID STYLE ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
    max-width: 1400px;
    margin: 80px auto;
    padding: 0 40px;
}

.testimonial-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 50px 45px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Bottom double quote for grid cards - RIGHT SIDE */
.testimonial-card::after {
    content: '"';
    position: absolute;
    bottom: -50px;
    right: 30px;
    font-size: 320px;
    font-family: Georgia, serif;
    color: var(--accent);
    opacity: 0.025;
    z-index: 0;
    line-height: 1;
    pointer-events: none;
    font-weight: 700;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.testimonial-card .quote-icon {
    position: relative;
    height: 0;
    z-index: 0;
}

.testimonial-card .quote-icon svg {
    fill: var(--accent);
    stroke: var(--accent);
}

.testimonial-card .testimonial-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 30px;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

.testimonial-card .testimonial-author {
    flex-direction: row;
    gap: 16px;
    margin-top: auto;
    position: relative;
    z-index: 1;
}

.testimonial-card .author-photo {
    width: 56px;
    height: 56px;
}

.testimonial-card .author-name {
    font-size: 0.95rem;
}

.testimonial-card .author-location {
    font-size: 0.8rem;
}

/* Decorative dots for cards - left top */
.testimonial-card::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 20px;
    width: 12px;
    height: 60px;
    background: radial-gradient(circle, var(--border) 2px, transparent 2px),
        radial-gradient(circle, var(--border) 2px, transparent 2px),
        radial-gradient(circle, var(--border) 2px, transparent 2px);
    background-size: 6px 6px;
    background-position: 0 0, 0 15px, 0 30px;
    background-repeat: no-repeat;
    opacity: 0.4;
    z-index: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .testimonial-slide {
        min-width: calc(100% - 32px);
    }
}

@media (max-width: 768px) {
    .testimonials-slider-wrapper {
        padding: 0 20px 60px;
    }

    .testimonial-slide {
        min-width: 100%;
    }

    .testimonial-content,
    .testimonial-card {
        padding: 40px 35px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    .testimonials-section-title {
        font-size: 2rem;
    }

    /* Adjust quote size for tablets */
    .testimonial-content::after,
    .testimonial-card::after {
        font-size: 250px;
        bottom: -35px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .testimonials-slider-wrapper {
        margin: 60px auto;
        padding: 0 15px 50px;
    }

    .testimonial-content,
    .testimonial-card {
        padding: 35px 25px;
        border-radius: 16px;
    }

    .quote-icon svg {
        width: 80px !important;
        height: 64px !important;
    }

    .testimonial-text {
        font-size: 0.9rem;
    }

    .author-photo {
        width: 50px;
        height: 50px;
    }

    .author-name {
        font-size: 0.9rem;
    }

    .author-location {
        font-size: 0.8rem;
    }

    .testimonial-prev,
    .testimonial-next {
        width: 42px;
        height: 42px;
        font-size: 1.3rem;
    }

    .testimonials-section-title {
        font-size: 1.6rem;
    }

    .testimonials-grid {
        padding: 0 15px;
        gap: 24px;
    }

    .testimonial-content::before {
        display: none;
    }

    /* Smaller quote for mobile */
    .testimonial-content::after,
    .testimonial-card::after {
        font-size: 180px;
        bottom: -25px;
        right: 15px;
        opacity: 0.02;
    }
}