/**
 * Testimonials Frontend Styles
 * Strict Brand Colors:
 * Primary Gold: #F9AD1B
 * Deep Forest Green: #344C36
 */

:root {
    --tm-brand-gold: #F9AD1B;
    --tm-brand-green: #344C36;
    --tm-brand-green-hover: #263828;
    --tm-text-dark: #18181B;
    --tm-text-muted: #6B7280;
    --tm-card-bg: #FFFFFF;
    --tm-card-border: #E5E7EB;
    --tm-font-primary: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --tm-font-text: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.tm-testimonials-section {
    padding: 70px 0;
    width: 100%;
    overflow: hidden;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
}

.tm-testimonials-wrapper {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    font-family: var(--tm-font-text);
}

/* Typography Font Assignments for Testimonials */
.tm-testimonials-heading,
.tm-testimonials-subtitle,
.tm-author-name,
.tm-testimonial-counter {
    font-family: var(--tm-font-primary) !important;
}

.tm-testimonial-quote,
.tm-author-role,
.tm-author-company {
    font-family: var(--tm-font-text) !important;
}

.tm-testimonials-wrapper * {
    box-sizing: border-box;
}

/* ==========================================================================
   Centered Header (Exact Match to Screenshot)
   ========================================================================== */

.tm-testimonials-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.tm-testimonials-subtitle {
    display: inline-block;
    font-size: 15px;
    font-weight: 700;
    color: var(--tm-brand-green);
    margin-bottom: 12px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.tm-testimonials-subtitle .tm-dash-accent {
    color: var(--tm-brand-gold);
    font-weight: 900;
    font-size: 18px;
    margin-right: 4px;
}

.tm-testimonials-main-heading {
    font-size: clamp(30px, 4.5vw, 44px);
    font-weight: 800;
    color: var(--tm-text-dark);
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.tm-heading-line1 {
    display: block;
}

.tm-heading-line2.tm-italic-gold {
    color: var(--tm-brand-gold);
    font-style: italic;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* ==========================================================================
   Carousel Cards Viewport & Track
   ========================================================================== */

.tm-testimonials-carousel {
    width: 100%;
    position: relative;
    overflow: hidden;
    padding: 20px 0 30px 0;
}

.tm-testimonials-track {
    display: flex;
    gap: 30px;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
    align-items: stretch;
}

/* Individual Testimonial Card (Exact Match to Screenshot) */
.tm-testimonial-card {
    flex: 0 0 calc((100% - 60px) / 3);
    min-width: 340px;
    max-width: 420px;
    background: var(--tm-card-bg);
    border: 1px solid var(--tm-card-border);
    border-radius: 24px;
    padding: 36px 32px 32px 32px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.35s ease;
}

@media (max-width: 1100px) {
    .tm-testimonial-card {
        flex: 0 0 calc((100% - 30px) / 2);
    }
}

@media (max-width: 720px) {
    .tm-testimonial-card {
        flex: 0 0 100%;
        min-width: 100%;
    }
}

.tm-testimonial-card:hover {
    border-color: rgba(249, 173, 27, 0.5);
    box-shadow: 0 12px 32px rgba(52, 76, 54, 0.07);
}

/* Watermark Quotation Mark in Background (Matches Screenshot) */
.tm-quote-watermark {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 90px;
    height: 90px;
    color: #000000;
    opacity: 0.04;
    pointer-events: none;
    z-index: 1;
}

.tm-quote-watermark svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Rating Row (5 Gold Stars + 5.0) */
.tm-card-rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.tm-stars-group {
    display: flex;
    gap: 3px;
    color: var(--tm-brand-gold);
    font-size: 20px;
    line-height: 1;
}

.tm-star {
    display: inline-block;
}

.tm-rating-number {
    font-size: 15px;
    font-weight: 700;
    color: var(--tm-text-dark);
    margin-left: 4px;
}

/* Testimonial Quote Text */
.tm-testimonial-quote {
    font-size: 14.5px;
    line-height: 1.65;
    color: #4B5563;
    margin: 0 0 28px 0;
    flex-grow: 1;
    position: relative;
    z-index: 2;
}

/* Author Row (Avatar + Name + Role) */
.tm-author-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: auto;
    position: relative;
    z-index: 2;
}

.tm-author-avatar-box {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #E5E7EB;
}

.tm-author-img,
.tm-testimonial-avatar-svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tm-author-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tm-author-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--tm-text-dark);
    margin: 0;
    line-height: 1.25;
}

.tm-author-role {
    font-size: 13px;
    color: var(--tm-text-muted);
    line-height: 1.3;
}

/* ==========================================================================
   Navigation Buttons (Centered Bottom: Dark Green Left, Gold Right)
   ========================================================================== */

.tm-testimonials-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 35px;
}

.tm-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

/* Left Button: Dark Green #344C36 with Gold Arrow */
.tm-nav-btn.tm-btn-prev {
    background-color: var(--tm-brand-green) !important;
    background: var(--tm-brand-green) !important;
    color: var(--tm-brand-gold) !important;
}

.tm-nav-btn.tm-btn-prev:hover {
    background-color: var(--tm-brand-green-hover) !important;
    background: var(--tm-brand-green-hover) !important;
    transform: scale(1.08) translateX(-2px);
    box-shadow: 0 6px 18px rgba(52, 76, 54, 0.25);
}

/* Right Button: Gold #F9AD1B with Dark Green Arrow */
.tm-nav-btn.tm-btn-next {
    background-color: var(--tm-brand-gold) !important;
    background: var(--tm-brand-gold) !important;
    color: var(--tm-brand-green) !important;
}

.tm-nav-btn.tm-btn-next:hover {
    background-color: #E89E10 !important;
    background: #E89E10 !important;
    transform: scale(1.08) translateX(2px);
    box-shadow: 0 6px 18px rgba(249, 173, 27, 0.4);
}

.tm-nav-arrow {
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
    display: inline-block;
}
