/* Theme variables defined in theme.css */

.section {
    padding: 80px 0;
    position: relative;
}

 .testimonial .testimonial-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--surface-bg);
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    color: var(--text-color);
 }

.testimonial-slider-container {
    width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative; /* Good for managing absolutely positioned children if ever needed for transitions */
    /* Height will be set by JavaScript */
}

.testimonial-slides {
    display: flex; /* This is mainly for if you ever implement slide transitions */
    width: 100%;
    position: relative; /* Slides are positioned within this */
    /* If testimonial-slider-container has a fixed height, this could be height: 100% */
}

.testimonial-slide {
    display: none;
    flex: 0 0 100%; /* Each slide takes full width */
    gap: 50px;
    align-items: center; /* Vertically align items within the slide if they have different heights */
    flex-wrap: wrap;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    /* Ensure slides can fill the container height if needed, but default to content height */
    /* min-height: 100%; // Could be added if you want shorter slides to stretch, but might not be desired */
}

    .testimonial-slide.active-slide {
        display: flex;
        opacity: 1;
    }

/* ... rest of your existing CSS for .testimonial-text, .testimonial-image, nav, dots etc. ... */
/* Ensure no styles are overriding the height calculation logic unintentionally. */

.testimonial-text {
    flex: 1.5;
    min-width: 350px;
}

    .testimonial-text h2 {
        margin-top: 10px;
        margin-bottom: 25px;
        color: var(--secondary-color);
    }

    .testimonial-text .subtitle {
        color: var(--primary-color);
        font-weight: bold;
        text-transform: uppercase;
        font-size: 0.9em;
        letter-spacing: 1px;
        display: block;
    }

    .testimonial-text blockquote {
        font-size: 1.3em;
        font-style: italic;
        color: var(--text-dark);
        margin-bottom: 20px;
        position: relative;
        padding-left: 20px;
    }

        .testimonial-text blockquote::before {
            /* content: '"'; */
            position: absolute;
            left: 0;
            top: -10px;
            font-size: 3em;
            color: var(--primary-color);
            line-height: 1;
        }

    .testimonial-text .quote-icon {
        font-size: 3rem;
        color: var(--primary-color);
        margin-bottom: 20px;
    }


    .testimonial-text .client-name {
        font-weight: 600;
        color: var(--white);
        margin-bottom: 5px;
        font-size: 1.1em;
    }

    .testimonial-text .client-title {
        color: var(--text-gray);
        font-size: 0.9em;
        margin: 0;
    }

.testimonial-image {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

    .testimonial-image img {
        width: 250px;
        height: 250px;
        border-radius: 50%;
        object-fit: cover;
        border: 5px solid var(--primary-color);
        box-shadow: 0 5px 20px rgba(0, 128, 128, 0.4);
    }


.testimonial-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: none;
    font-size: 24px;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
    line-height: 1;
}

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

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.testimonial-dots {
    text-align: center;
    margin-top: 10px;
}

.testimonial-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: var(--text-gray);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .testimonial-dot.active-dot {
        background-color: var(--primary-color);
    }

@media (max-width: 768px) {
    .testimonial .testimonial-content {
        padding: 30px;
    }

    .testimonial-slide {
        gap: 30px;
        flex-direction: column;
    }

    .testimonial-text {
        min-width: auto;
        text-align: center;
    }

        .testimonial-text blockquote {
            font-size: 1.1em;
        }

    .testimonial-image {
        min-width: auto;
        margin-top: 20px;
    }

        .testimonial-image img {
            width: 180px;
            height: 180px;
        }

    .testimonial-nav-btn {
        font-size: 20px;
        padding: 8px 12px;
        top: auto;
        bottom: 60px;
        transform: none;
    }

    .prev-btn {
        left: 20px;
    }

    .next-btn {
        right: 20px;
    }

    .testimonial-dots {
        margin-top: 60px;
    }
}
