/* Home Testimonials Styles - New Design */

.home-testimonials {
    background-color: #ffffff;
    overflow: hidden;
    margin-bottom: 3rem;
}

.home-testimonials__header {
    text-align: center;
}

.home-testimonials__header h2 {
    font-family: 'Playfair Display', serif;
    font-size: var(--font-size-h2);
    color: #5C4033;
    margin-bottom: 1rem;
    font-weight: 700;
}

.home-testimonials__header p {
    color: #6B5744;
    font-size: var(--font-size-lg);
    opacity: 0.8;
}

.home-testimonials__outer-wrapper {
    position: relative;
    padding: 0 4rem;
    /* Add padding for arrows */
}

.home-testimonials__slider-wrapper {
    margin: 0;
    overflow: hidden;
}

#testimonial-slider {
    display: flex;
    transition: transform 0.5s ease-out;
    width: 100%;
}

.testimonial-card-wrapper {
    flex: 0 0 33.333%;
    padding: 1rem;
    box-sizing: border-box;
}

.testimonial-card {
    background-color: #F8F4F0;
    border-radius: 1.25rem;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.05);
    height: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.testimonial-card__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.testimonial-avatar {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-info {
    display: flex;
    flex-direction: column;
}

.testimonial-name {
    font-family: 'Inter', sans-serif;
    font-size: var(--font-size-h5);
    font-weight: 700;
    color: #2D1A12;
    margin: 0;
}

.testimonial-subtitle {
    font-size: var(--font-size-sm);
    color: #8C7E74;
    font-weight: 500;
}

.testimonial-content blockquote {
    font-family: 'Inter', sans-serif;
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: #6B5744;
    font-style: italic;
    margin: 0;
    border: none;
    padding: 0;
    font-weight: 400;
}

.testimonial-quote-icon {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    color: #ECE0D1;
    opacity: 0.6;
}

/* Lateral Navigation Buttons */
.testimonial-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #5C4033;
    /* Darker Brand Brown for visibility */
    cursor: pointer;
    z-index: 10;
    width: 4rem;
    /* Increased size */
    height: 4rem;
    /* Increased size */
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.testimonial-nav-button:hover {
    color: #3E2b22;
    /* Darker on hover */
    transform: translateY(-50%) scale(1.1);
}

.prev-button {
    left: 0;
    /* Align to edge instead of outside */
}

.next-button {
    right: 0;
    /* Align to edge instead of outside */
}

/* Pagination Dots */
.testimonial-pagination {
    display: none;
    /* Hidden on desktop by default */
    justify-content: center;
    gap: 0.5rem;
    margin: 1.5rem 0;
    width: 100%;
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ddd;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    padding: 0;
}

.testimonial-dot.active {
    background-color: #D4844D;
    transform: scale(1.2);
}

/* Media Queries consolidated at the end */
@media (max-width: 1019px) {
    .testimonial-card-wrapper {
        flex: 0 0 50%;
    }

    .home-testimonials__outer-wrapper {
        padding: 0 1rem;
    }

    .testimonial-nav-button {
        display: none !important;
    }

    .testimonial-pagination {
        display: flex;
    }

    .home-testimonials__slider-wrapper {
        overflow: hidden;
    }
}

@media (max-width: 767px) {
    .testimonial-card-wrapper {
        flex: 0 0 100%;
    }

    .home-testimonials__header {
        text-align: left;
    }

    .testimonial-card {
        padding: 2rem;
    }
}