/* SPK Testimonials Section Styles */
.spk-testimonials-section {
    font-family: 'Libre Franklin', sans-serif;
    position: relative;
    /* Use grid-like background from reference */
    background-color: #fcfcfc;
    background-image:
        linear-gradient(#eee 1px, transparent 1px),
        linear-gradient(90deg, #eee 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center;
    overflow: hidden;
}

.spk-testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header with Premium Look - Matching other sections */
.spk-testimonials-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    width: 100%;
}

.spk-testimonials-subtitle {
    display: inline-block;
    color: #71b100;
    /* Primary Green */
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-family: 'Libre Franklin', sans-serif;
    position: relative;
}

/* Add decorative lines on sides of subtitle for extra flair */
.spk-testimonials-subtitle::before,
.spk-testimonials-subtitle::after {
    content: '';
    display: inline-block;
    width: 30px;
    height: 2px;
    background-color: #71b100;
    vertical-align: middle;
    margin: 0 10px;
    opacity: 0.5;
}

.spk-testimonials-title {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    /* Bold weight */
    font-family: 'Playfair Display SC', serif;
    color: #222;
    margin: 0;
    line-height: 1.2;
    text-transform: none;
    /* Sentence case is cleaner */
}


/* Layout Wrapper - Refactored to Flex for better height control */
.spk-testimonials-layout {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
    padding: 40px 0;
    /* Add padding for decorations */
}

/* Background Decorations (Yellow/Green Boxes) */

/* Left/Bottom shape */
.spk-testimonials-shape-bg {
    position: absolute;
    bottom: 20px;
    /* Adjusted relative to container */
    left: 50%;
    transform: translateX(-50%) translateX(-350px);
    /* Move nicely to left of center */
    width: 250px;
    height: 300px;
    background-color: #71b100;
    z-index: 0;
    border-radius: 4px;
}

/* Top Right Quote Box */
.spk-testimonials-quote-box {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateX(350px);
    /* Move nicely to right of center */
    width: 180px;
    height: 220px;
    background-color: #71b100;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.spk-testimonials-quote-icon {
    font-size: 5rem;
    color: #000;
}

/* Bottom Right Dots Pattern */
.spk-testimonials-dots {
    position: absolute;
    bottom: 40px;
    right: 10%;
    width: 100px;
    height: 100px;
    background-image: radial-gradient(#333 2px, transparent 2px);
    background-size: 20px 20px;
    opacity: 0.5;
    z-index: 0;
}

/* Main Content Card */
.spk-testimonials-slider-container {
    position: relative;
    z-index: 5;
    background-color: #fff;
    padding: 60px 50px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    width: 100%;
    max-width: 800px;
    /* Constrain width */
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}


/* Slider Items */
.spk-testimonial-item {
    display: none;
    /* Hidden by default */
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    width: 100%;
    /* Ensure content fits */
}

.spk-testimonial-item.active {
    display: flex;
    opacity: 1;
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.spk-testimonial-author-block {
    margin-bottom: 30px;
}

.spk-testimonial-name {
    font-family: 'Playfair Display', serif;
    /* Strong serif from ref */
    font-size: 2rem;
    font-weight: 800;
    color: #000;
    margin: 0;
    line-height: 1.2;
}

.spk-testimonial-designation {
    font-size: 1rem;
    color: #555;
    margin-top: 5px;
    font-weight: 500;
}

.spk-testimonial-project {
    display: block;
    margin-top: 5px;
    font-size: 0.9rem;
    color: #71b100;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.spk-testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    color: #444;
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 90%;
}

/* Rating Stars */
.spk-testimonial-rating {
    color: #fca311;
    /* Gold for stars always good */
    font-size: 1.5rem;
    gap: 5px;
    display: flex;
}

/* Navigation Arrows or Dots */
.spk-testimonials-nav {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    position: relative;
    z-index: 10;
}

.spk-nav-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #ddd;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #333;
}

.spk-nav-btn:hover {
    border-color: #71b100;
    background-color: #71b100;
    color: #fff;
}


/* Responsive */
@media (max-width: 991px) {
    .spk-testimonials-outline-title {
        font-size: 3rem;
    }

    .spk-testimonials-layout {
        flex-direction: column;
        padding-top: 60px;
        /* Space for quote box */
    }

    .spk-testimonials-shape-bg {
        display: none;
    }

    .spk-testimonials-quote-box {
        left: 50%;
        transform: translateX(-50%);
        top: 0;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        margin-bottom: -30px;
        /* Pull closer to card */
    }

    .spk-testimonials-quote-icon {
        font-size: 2rem;
    }

    .spk-testimonials-slider-container {
        padding: 40px 20px;
        width: 100%;
        min-height: auto;
    }
}