/* --- TESTIMONIAL SECTION STYLES (NEW) --- */
#testimonial {
    padding: 100px 0;
    background-color: linear-gradient(
        135deg,
        var(--gray-100) 0%,
        #f0f0f0 100%
    ); /* Latar belakang lembut */
}

.testimonial-card {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* Quote Icon Styling */
.quote-icon {
    color: var(--secondary-brown);
    font-size: 3rem;
    opacity: 0.2;
    position: absolute;
    top: 20px;
    left: 25px;
    z-index: 1;
}

/* Testimonial Text */
.testimonial-text {
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.7;
    color: var(--gray-700);
    margin-bottom: 24px;
    font-style: italic;
    position: relative;
    z-index: 2;
}

/* Author/Profile Area */
.testimonial-profile {
    display: flex;
    align-items: center;
    margin-top: auto; /* Push to bottom */
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.profile-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--light-brown);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.profile-info {
    margin-left: 15px;
}

.profile-name {
    font-weight: 700;
    color: var(--primary-brown);
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.house-type {
    font-size: 0.9rem;
    color: var(--secondary-brown);
    font-weight: 500;
    display: flex;
    align-items: center;
}

.house-type i {
    margin-right: 6px;
}

.testimonial-outer {
    overflow: visible; /* biar bayangan nggak kepotong */
    position: relative;
}

/* Container scroll horizontal */
.testimonial-wrapper {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; /* smooth di iOS */
    padding-bottom: 1rem;
    align-items: stretch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;
    padding: 0 1.5rem 1rem;
    scroll-behavior: smooth;
}

/* Hide scrollbar di desktop tapi tetap bisa di-scroll */
.testimonial-wrapper::-webkit-scrollbar {
    display: none;
}

.testimonial-wrapper::-webkit-scrollbar-thumb {
    background: var(--light-brown);
    border-radius: 10px;
}

.testimonial-wrapper::-webkit-scrollbar-track {
    background: #f5f5f5;
}

/* Card style tetap sama, tapi atur lebar */
.testimonial-card {
    flex: 0 0 360px; /* Lebar tetap tiap card */
    scroll-snap-align: start;
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: auto;
}

/* Hover animasi */
.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
}

/* Highlight tengah */
.testimonial-card.highlight {
    border: 3px solid var(--secondary-brown);
    background-color: var(--light-brown);
}

/* Tambahan padding kanan agar card terakhir tidak nabrak tepi */
.testimonial-wrapper::after {
    content: "";
    flex: 0 0 1rem;
}

/* Card ganjil = putih, card genap = light brown */
.testimonial-card:nth-child(even) {
    background-color: var(--light-brown);
    border: 3px solid var(--secondary-brown);
}

.testimonial-card:nth-child(odd) {
    background-color: var(--white);
    border: 1px solid rgba(139, 69, 19, 0.1);
}


/* Responsif: lebar otomatis di mobile */
@media (max-width: 768px) {
    .testimonial-card {
        flex: 0 0 85%;
        padding: 30px;
    }
}
