/* ==========================================================================
   Testimonials Carousel — Digital HR Ecosystem
   Matches brand: --primary-clr #5102D6 / --secondary-clr #C10FFF / --teritary-clr #FFC000
   ========================================================================== */

/* --------------------------------------------------------------------------
   Section wrapper
   -------------------------------------------------------------------------- */
.tm-section {
    padding: 0;
    position: relative;
}

/* --------------------------------------------------------------------------
   Carousel outer container — clips the sliding track
   -------------------------------------------------------------------------- */
.tm-carousel-container {
    position: relative;
    overflow: hidden;
    padding: 0;
}

/* --------------------------------------------------------------------------
   Sliding track — flex row of cards, transitions on transform
   -------------------------------------------------------------------------- */
.tm-track {
    display: flex;
    flex-direction: row;
    gap: 24px;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* --------------------------------------------------------------------------
   Individual card — two per row on desktop, one per row on mobile
   -------------------------------------------------------------------------- */
.tm-card {
    /* Two cards per visible row, accounting for the track gap */
    flex: 0 0 calc(50% - 12px);
    width: calc(50% - 12px);
    max-width: none;
    margin: 0;

    background: #faf8ff;
    border: 1px solid var(--brd-clr, #f5f2ff);
    border-radius: 16px;
    padding: 40px 44px 36px;
    position: relative;
    /* box-shadow: 0 4px 24px rgba(81, 2, 214, 0.07); */

    display: flex;
    flex-direction: column;
    gap: 0;

    box-sizing: border-box;
}

@media (max-width: 640px) {
    .tm-card {
        flex: 0 0 100%;
        width: 100%;
        padding: 28px 20px 24px;
        border-radius: 12px;
    }
}

/* --------------------------------------------------------------------------
   Star rating
   -------------------------------------------------------------------------- */
.tm-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 20px;
}

.tm-star {
    font-size: 20px;
    line-height: 1;
}

.tm-star--filled {
    color: var(--teritary-clr, #FFC000);
}

.tm-star--empty {
    color: #e0e0e0;
}

/* --------------------------------------------------------------------------
   Quote
   -------------------------------------------------------------------------- */
.tm-quote {
    font-size: 15px;
    /* 18px */
    line-height: 1.35;
    /* color: #1a1a2e; */
    color: #888;
    font-weight: 300;
    font-style: italic;
    margin: 0 0 20px 0;
    padding: 0;
    position: relative;

    /* Opening quotation mark as a decorative accent */
    padding-left: 28px;
}

.tm-quote::before {
    content: '\201E';
    /* „ Swiss/German lower opening quote */
    position: absolute;
    left: 0;
    top: -4px;
    font-size: 3rem;
    line-height: 1;
    color: var(--primary-clr, #5102D6);
    opacity: 0.20;
    font-style: normal;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   Project context pill
   -------------------------------------------------------------------------- */
.tm-project {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--primary-clr, #5102D6);
    background: rgba(81, 2, 214, 0.07);
    border-radius: 100px;
    padding: 4px 12px;
    margin-bottom: 20px;
    width: fit-content;
    line-height: 1.2 !important;
}

/* .tm-project::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-clr, #5102D6);
    flex-shrink: 0;
} */

/* --------------------------------------------------------------------------
   Divider
   -------------------------------------------------------------------------- */
.tm-divider {
    border: none;
    border-top: 1px solid var(--brd-clr, #f5f2ff);
    margin: 0 0 24px 0;
}

/* --------------------------------------------------------------------------
   Author row: avatar + name + org + LinkedIn
   -------------------------------------------------------------------------- */
.tm-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Avatar ring using brand gradient — always rounded, whether it's a
   real photo or the UI-Avatars initials fallback */
.tm-avatar-wrap {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    padding: 2px;
    /* background: linear-gradient(135deg, var(--primary-clr, #5102D6), var(--secondary-clr, #C10FFF)); */
    background: var(--primary-clr);
    overflow: hidden;
}

.tm-avatar {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
    border: 2px solid #ffffff !important;
}

.tm-author-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

/* Name + LinkedIn icon on the same line */
.tm-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tm-name {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* LinkedIn icon link */
.tm-linkedin {
    display: inline-flex;
    align-items: center;
    color: #0a66c2;
    /* LinkedIn blue — intentional brand recognition */
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.tm-linkedin:hover {
    opacity: 0.75;
}

.tm-org {
    font-size: 0.875rem;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --------------------------------------------------------------------------
   Status badge (pending/draft state — shown when field is set)
   -------------------------------------------------------------------------- */
.tm-badge {
    display: inline-block;
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #92400e;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 4px;
    padding: 3px 8px;
}

/* --------------------------------------------------------------------------
   Navigation arrows — hidden; navigation is via dots + swipe only
   -------------------------------------------------------------------------- */
.tm-arrow {
    display: none !important;
}

/* --------------------------------------------------------------------------
   Dot navigation
   -------------------------------------------------------------------------- */
.tm-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.tm-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--brd-clr, #f5f2ff);
    cursor: pointer;
    padding: 0;
    transition: background 0.25s, transform 0.25s, width 0.25s;
}

/* Active dot stretches into a pill — matches primary brand colour */
.tm-dot--active {
    background: var(--primary-clr, #5102D6);
    width: 24px;
    border-radius: 100px;
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .tm-track {
        transition: none;
    }

    .tm-dot {
        transition: none;
    }


}

/* --------------------------------------------------------------------------
   Responsiveness
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .tm-track {
        gap: 0;
    }
}