/* --- TESTIMONIALS (TWO-SLIDE SLIDER) --- */

/* Main Slider Container */
.testimonial-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 20px;
    /* Reduced vertical padding */
}

.testimonial-grid {
    display: flex;
    /* Key for Horizontal Slides */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 0;

    /* Hide Scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.testimonial-grid::-webkit-scrollbar {
    display: none;
}

/* Slide Wrapper (The "Page") */
.t-slide {
    min-width: 100%;
    box-sizing: border-box;
    scroll-snap-align: start;
    padding: 0 5px;
}

/* Internal Grid for Each Slide (Bento Layout) */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, minmax(130px, auto));
    /* Reduced Min Row Height (Was 200px) */
    gap: 15px;
    /* Tighter Gap */
    grid-auto-flow: dense;
}

/* --- CARD GEOMETRY (Explicit) --- */

/* Tall Card (1x2) */
.geo-tall {
    grid-row: span 2;
}

/* Wide Card (2x1) */
.geo-wide {
    grid-column: span 2;
}

/* Big Card (2x2) */
.geo-big {
    grid-column: span 2;
    grid-row: span 2;
}

/* Normal Card (1x1) - Default */
.geo-normal {
    grid-column: span 1;
    grid-row: span 1;
}


/* --- CARD STYLING --- */
.testimonial-card {
    background: white;
    border-radius: 20px;
    /* Slightly tighter radius for smaller cards */
    padding: 20px;
    /* Reduced padding (Was 30px) */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    /* Softer shadow */
    border: 1px solid rgba(0, 0, 0, 0.02);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* --- THEME VARIATIONS --- */

/* Style 1: Standard (Clean Vertical) */
.t-style-1 {
    align-items: flex-start;
}

.t-style-1 .quote-icon {
    font-size: 3rem;
    /* Adjusted */
    color: var(--primary);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: -10px;
}

.t-style-1 .t-text {
    font-size: 1.15rem;
    /* Compact but readable */
    margin-top: 10px;
    /* Reduced */
    color: #333;
}

/* Style 2: Hero Centered (Big Cards) */
.t-style-2 {
    text-align: center;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #ffffff 0%, #f9fdf9 100%);
}

.t-style-2 .t-avatar {
    width: 90px;
    /* Adjusted to fit tighter height */
    height: 90px;
    margin-bottom: 15px;
    /* Reduced */
    border: 4px solid white;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.06);
}

.t-style-2 .t-text {
    font-size: 1.25rem;
    font-weight: 400;
    font-style: italic;
    max-width: 95%;
    color: #222;
}

/* Style 3: Compact Side-by-Side (Wide Cards) */
.t-style-3 {
    flex-direction: row;
    align-items: center;
    gap: 15px;
}

.t-style-3 .t-author {
    flex-direction: column;
    align-items: flex-start;
    min-width: 100px;
    margin-top: 0;
}

.t-style-3 .t-text {
    font-size: 1.1rem;
    margin: 0;
}

.t-style-3 .t-avatar {
    width: 60px;
    height: 60px;
}

/* CLEANUP */
.testimonial-card::after {
    display: none;
}

/* --- COMMON ELEMENTS (Updated Sizes) --- */
.t-text {
    font-family: 'Playfair Display', serif;
    /* "Stylish Font" Request */
    line-height: 1.4;
    /* Tighter leading */
    color: #444;
}

.t-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
    /* Reduced from 30px */
}

.t-avatar {
    width: 55px;
    /* Adjusted */
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    background: #eee;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
}

.t-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: #111;
    font-family: 'Inter', sans-serif;
}

.t-rating {
    font-size: 1rem;
    color: #fbc02d;
    letter-spacing: 1px;
}

/* --- SLIDER CONTROLS --- */
.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
    /* Reduced */
}

.slider-dot {
    width: 10px;
    height: 10px;
    background: #ddd;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    width: 30px;
    background: var(--primary);
    border-radius: 10px;
}

/* Responsive Adjustments */
@media (max-width: 1100px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .geo-tall,
    .geo-wide,
    .geo-big {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
}