﻿
/* --- SCOPED STYLES: .home-testimonial ONLY --- */
.home-testimonial {
    padding: 80px 0;
    background-color: #f1f5f9;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Section Header */
.home-testimonial .section-header {
    text-align: center;
    margin-bottom: 50px;
}

    .home-testimonial .section-header span {
        display: block;
        color: #6366f1;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 2px;
        font-size: 0.85rem;
        margin-bottom: 8px;
    }

    .home-testimonial .section-header h2 {
        font-weight: 800;
        color: #0f172a;
        font-size: 2.5rem;
    }

/* Wrapper for Full-Out Positioning */
.home-testimonial .testimonial-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    padding: 0 80px; /* Essential gutter for outside arrows */
}

/* Fixed Height Container */
.home-testimonial .carousel-inner {
    border-radius: 40px;
    background: #ffffff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    height: 400px; /* FIXED: Prevents page jumping */
    overflow: hidden;
}

.home-testimonial .testimonial-item {
    display: flex;
    align-items: center;
    height: 400px;
    padding: 40px 60px;
}

/* Image Box */
.home-testimonial .img-box {
    flex: 0 0 170px;
    height: 170px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #f8fafc;
}

    .home-testimonial .img-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* Quote Box */
.home-testimonial .content-box {
    flex: 1;
    padding-left: 50px;
}

/* Text Clamping with Dots (...) */
.home-testimonial .quote-text {
    font-size: 1.35rem;
    line-height: 1.6;
    color: #334155;
    font-weight: 500;
    margin-bottom: 15px;
    font-style: italic;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- ARROWS: DESKTOP (OUTSIDE CENTER) --- */
.home-testimonial .carousel-control-prev,
.home-testimonial .carousel-control-next {
    width: 45px;
    height: 45px;
    background-color: #ffffff;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    color: #6366f1;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: none;
    transition: all 0.3s ease;
    z-index: 10;
}

.home-testimonial .carousel-control-prev {
    left: 10px;
}

.home-testimonial .carousel-control-next {
    right: 10px;
}

    .home-testimonial .carousel-control-prev:hover,
    .home-testimonial .carousel-control-next:hover {
        background-color: #6366f1;
        color: #ffffff;
        transform: translateY(-50%) scale(1.1);
    }

/* --- MOBILE RESPONSIVE: ARROWS TO BOTTOM --- */
@media (max-width: 768px) {
    .home-testimonial .testimonial-wrapper {
        padding: 0 15px;
        padding-bottom: 80px; /* Space for bottom arrows */
    }

    .home-testimonial .carousel-inner {
        height: auto;
        min-height: 460px;
    }

    .home-testimonial .testimonial-item {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
        height: auto;
    }

    .home-testimonial .img-box {
        flex: 0 0 120px;
        width: 120px;
        height: 120px;
        margin-bottom: 20px;
    }

    .home-testimonial .content-box {
        padding-left: 0;
    }

    /* Arrows Move to BOTTOM on Mobile */
    .home-testimonial .carousel-control-prev,
    .home-testimonial .carousel-control-next {
        top: auto;
        bottom: 20px;
        transform: none;
    }

    .home-testimonial .carousel-control-prev {
        left: calc(50% - 55px);
    }

    .home-testimonial .carousel-control-next {
        right: calc(50% - 55px);
    }
}


