/* ==========================================================================
   Testimonial Category Mapper – Frontend Styles
   ========================================================================== */

:root {
    --tcm-bg-primary:    #ffffff;
    --tcm-bg-secondary:  #f5f5f5;
    --tcm-border-light:  rgba(0,0,0,0.15);
    --tcm-border-med:    rgba(0,0,0,0.3);
    --tcm-text-primary:  #1c1e21;
    --tcm-text-info:     #1d9bf0;
    --tcm-radius:        12px;
}

.tcm-outer {
    position: relative;
    width: 100%;
}

.tcm-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 0.75rem 0 0;
}

.tcm-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.tcm-card {
    flex: 0 0 calc(33.333% - 16px);
    margin: 0 8px;
    background: var(--tcm-bg-primary);
    border: 0.5px solid var(--tcm-border-light);
    border-radius: var(--tcm-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tcm-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.tcm-img-placeholder {
    background: #d1d9e6;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #5c7080;
    font-size: 1rem;
    font-family: sans-serif;
    height: 240px;
}

.tcm-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tcm-quote {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.55;
    color: var(--tcm-text-primary);
    font-style: italic;
    flex: 1;
    margin: 0;
}

.tcm-title {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--tcm-text-info);
    margin: 0;
}

.tcm-designation {
    font-size: 14px;
    color: var(--tcm-text-primary);
    opacity: 0.65;
    margin: 0;
    font-style: italic;
}

.tcm-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--tcm-bg-primary);
    border: 0.5px solid var(--tcm-border-med);
    color: var(--tcm-text-primary);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    z-index: 10;
    line-height: 1;
}

[id$="-prev"] { left: -18px; }
[id$="-next"] { right: -18px; }

.tcm-btn:hover {
    background: var(--tcm-bg-secondary);
}

.tcm-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 0.6rem;
}

.tcm-dots {
    display: flex;
    gap: 6px;
}

.tcm-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--tcm-border-med);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.tcm-dot.active {
    background: var(--tcm-text-info);
    transform: scale(1.3);
}

@media (max-width: 700px) {
    .tcm-card { flex: 0 0 calc(100% - 16px); }
    .tcm-quote { font-size: 17px; }
    .tcm-title { font-size: 15px; }
}

@media (min-width: 701px) and (max-width: 999px) {
    .tcm-card { flex: 0 0 calc(50% - 16px); }
}
