/* ==========================================================
   JT MAISON — Testimonials Widget
   ========================================================== */

.jtm-testimonials {
    width: 100%;
    margin: 0 auto;
    padding: 100px 10px;
    background: var(--jtm-white);
    box-sizing: border-box;
}

.jtm-testimonials__inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header (Now inside the list column) */
.jtm-testimonials__header {
    text-align: right;
    margin-bottom: 20px; /* Slight gap before testimonials start */
}

.jtm-testimonials__subtitle {
    font-family: var(--jtm-font-ui);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--jtm-teal);
    text-transform: uppercase;
    margin: 0 0 16px 0;
}

.jtm-testimonials__title {
    font-family: var(--jtm-font-ui);
    font-size: clamp(32px, 5vw, 42px);
    font-weight: bold;
    color: var(--jtm-dark);
    margin: 0;
}

/* Grid Layout */
.jtm-testimonials__grid {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    align-items: center; /* Vertically center the media and the list+header */
}

.jtm-testimonials__media {
    flex: 0 0 38%; /* Reduced from 45% to make the image smaller */
}

.jtm-testimonials__media img {
    width: 100%;
    height: auto;
    display: block;
}

.jtm-testimonials__list {
    flex: 0 0 52%; /* Increased from 50% to give more room to text */
    display: flex;
    flex-direction: column;
}

/* Single Testimonial Item */
.jtm-testimonial {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.jtm-testimonial__author-box {
    flex: 0 0 35%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.jtm-testimonial__quote-mark {
    font-family: Georgia, serif;
    font-size: 60px;
    line-height: 0.5;
    color: rgba(0,0,0,0.1);
    margin-bottom: 10px;
    padding-top: 10px;
}

.jtm-testimonial__author {
    font-family: var(--jtm-font-ui);
    font-size: 24px;
    font-weight: bold;
    color: var(--jtm-dark);
    margin: 0;
    line-height: 1.4;
}

.jtm-testimonial__text-box {
    flex: 0 0 60%;
    text-align: right;
    padding-top: 15px;
}

.jtm-testimonial__text {
    font-family: var(--jtm-font-ui);
    font-size: 18px;
    color: rgba(0,0,0,0.5);
    line-height: 1.6;
    margin: 0;
}

/* Responsive Tablet & Mobile */
@media (max-width: 1024px) {
    .jtm-testimonials {
        padding: 60px 24px;
    }
    
    .jtm-testimonials__header {
        text-align: center !important;
        margin-bottom: 40px;
    }
    
    .jtm-testimonials__grid {
        flex-direction: column;
        gap: 40px;
        align-items: stretch;
    }
    
    .jtm-testimonials__media,
    .jtm-testimonials__list {
        flex: 1 1 100%;
    }
    
    .jtm-testimonial {
        flex-direction: column;
        align-items: stretch;
    }
    
    .jtm-testimonial__author-box {
        flex: 1 1 100%;
        margin-bottom: 20px;
        align-items: center;
        text-align: center;
    }
    
    .jtm-testimonial__text-box {
        flex: 1 1 100%;
        text-align: center;
        padding-left: 0;
        padding-top: 0;
    }
}
