/* Section Styling */
.testi-section {
    background-color: #f9f5f4;
    background-image: url('/src/images/Group 177.png');
    background-size: auto;
    background-position: center;
    background-repeat: no-repeat;
    padding: 30px 0;
    position: relative;
    width: 100%;
}

/* Overlay to dim the background image */
.testi-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(135, 79, 71, 0.15);
    z-index: 1;
}

.testi-container {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.testi-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #874F47;
    margin-bottom: 40px;
    font-family: 'Montserrat', sans-serif;
}

/* Carousel Container */
.testi-carousel-container {
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* Carousel Slides */
.testi-carousel-slides {
    display: flex;
    transition: transform 1s ease-in-out;
    width: 100%;
}

.testi-carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
    padding: 0 15px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
}

/* Testimonial Card */
.testi-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 30px;
    position: relative;
    width: 100%;
    max-width: 1000px;
}

.testi-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.testi-avatar {
    height: 100px;
    width: 100px;
    border-radius: 50%;
    border: 4px solid rgba(135, 79, 71, 0.2);
    margin-bottom: 20px;
    object-fit: cover;
}

.testi-text {
    font-size: 1rem;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.5;
    font-family: Arial, sans-serif;
}

.testi-author-info {
    width: 100%;
}

.testi-author-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #874F47;
    margin-bottom: 5px;
}

.testi-author-role {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin-top: 0;
}

/* Navigation Buttons */
.testi-carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 3;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.testi-carousel-button:hover {
    background-color: white;
    transform: translateY(-50%) scale(1.1);
}

.testi-carousel-button.prev {
    left: calc(50% - 520px); /* Adjust based on card width */
}

.testi-carousel-button.next {
    right: calc(50% - 520px); /* Adjust based on card width */
}

.testi-carousel-button svg {
    height: 24px;
    width: 24px;
    color: #874F47;
}

/* Navigation Dots */
.testi-carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.testi-dot {
    height: 12px;
    width: 12px;
    border-radius: 50%;
    background-color: rgba(135, 79, 71, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testi-dot.active {
    background-color: #874F47;
    width: 32px;
    border-radius: 6px;
}

.testi-dot:hover {
    background-color: rgba(135, 79, 71, 0.5);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .testi-carousel-button.prev {
        left: 10px;
    }

    .testi-carousel-button.next {
        right: 10px;
    }
}

@media (max-width: 992px) {
    .testi-card {
        max-width: 320px;
    }
}

@media (max-width: 768px) {
    /* Section Styling */
    .testi-section {
        padding: 30px 0;
    }

    .testi-container {
        width: 100%;
        padding: 0 10px;
    }

    .testi-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    /* Carousel Container */
    .testi-carousel-container {
        overflow: hidden;
    }

    /* Testimonial Card */
    .testi-card {
        padding: 20px;
        margin: 0 auto;
    }

    .testi-avatar {
        height: 60px;
        width: 60px;
        margin-bottom: 15px;
        border-width: 2px;
    }

    .testi-text {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .testi-author-name {
        font-size: 1rem;
    }

    .testi-author-role {
        font-size: 0.8rem;
    }

    /* Navigation Buttons */
    .testi-carousel-button {
        width: 32px;
        height: 32px;
        top: 50%;
        transform: translateY(-50%);
    }

    .testi-carousel-button.prev {
        left: 5px;
    }

    .testi-carousel-button.next {
        right: 5px;
    }

    .testi-carousel-button svg {
        height: 18px;
        width: 18px;
    }

    /* Navigation Dots */
    .testi-carousel-dots {
        margin-top: 20px;
    }

    .testi-dot {
        height: 10px;
        width: 10px;
    }

    .testi-dot.active {
        width: 28px;
    }
}

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

    .testi-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .testi-container {
        width: 100%;
    }

    .testi-carousel-slide {
        padding: 0 10px;
    }

    .testi-card {
        padding: 20px;
    }

    .testi-avatar {
        height: 60px;
        width: 60px;
        margin-bottom: 15px;
        border-width: 2px;
    }

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

    .testi-author-name {
        font-size: 1rem;
    }

    .testi-author-role {
        font-size: 0.8rem;
    }

    .testi-carousel-button {
        width: 32px;
        height: 32px;
    }

    .testi-carousel-button svg {
        height: 18px;
        width: 18px;
    }

    .testi-carousel-button.prev {
        left: 5px;
    }

    .testi-carousel-button.next {
        right: 5px;
    }

    .testi-dot {
        height: 10px;
        width: 10px;
    }

    .testi-dot.active {
        width: 28px;
    }
}       