/* ================================================
   Custom Testimonial Slider v3.0
   ================================================ */

.cts-wrap {
    padding: 40px 0 32px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    position: relative;
    width: 100%;
}

/* Avatar Row */
.cts-avatar-row {
    position: relative;
    width: 100%;
    transition: height 0.3s ease;
    overflow: hidden; /* clip ::before so it never covers content below */
}

/* soft radial glow centred on the active (center) avatar */
/*.cts-avatar-row::before {*/
/*    content: '';*/
/*    position: absolute;*/
/*    left: 50%;*/
/*    top: 0;*/
/*    transform: translate(-50%, -25%);*/
/*    width: 240px;*/
/*    height: 240px;*/
/*    border-radius: 50%;*/
/*    background: radial-gradient(circle, rgba(219, 234, 254, 0.65) 0%, rgba(191, 219, 254, 0.35) 45%, transparent 72%);*/
/*    pointer-events: none;*/
/*    z-index: 0;*/
/*}*/

.cts-avatar {
    position: absolute;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid #ffffff;
    transition: all 0.4s ease;
    background: #e5e7eb;
    z-index: 1;
}

.cts-avatar.active {
    border: 4px solid #3b82f6;
}

.cts-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    transition: filter 0.4s ease;
}

.cts-avatar:not(.active) img {
    filter: grayscale(30%);
}

/* Connector */
.cts-connector-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -55px;
}

.cts-connector {
    width: 2px;
    height: 36px;
    background: #3b82f6;
}

.cts-dot-center {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #3b82f6;
    margin-top: -1px;
}

.cts-hidden { display: none !important; }

/* Slides wrapper — clips overflow during animation */
.cts-content {
    text-align: center;
    max-width: 640px;
    margin: 16px auto 0;
    padding: 0 24px;
}

.cts-slides-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.cts-slides-track {
    position: relative;
    width: 100%;
    min-height: 160px;
}

.cts-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

/* First slide is static so height works */
.cts-slides-track .cts-slide:only-child {
    position: relative;
}

.cts-review {
    font-size: 15px;
    line-height: 1.85;
    color: #374151;
    margin: 0 0 20px;
}

.cts-name {
    font-size: 24px;
    font-weight: 700;
    color: #1e3a5f;
    font-family: Georgia, serif;
    margin: 0 0 4px;
    text-decoration: underline;
    text-decoration-color: #3b82f6;
    text-underline-offset: 4px;
}

.cts-role {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 12px;
    font-style: italic;
}

.cts-stars {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 0;
}

.cts-star        { font-size: 22px; line-height: 1; }
.cts-star.filled { color: #3b82f6; }
.cts-star.empty  { color: #d1d5db; }

/* Dots */
.cts-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.cts-dots-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    border: none;
    padding: 0;
    transition: all 0.28s ease;
    display: block;
    flex-shrink: 0;
}

.cts-dots-dot.active {
    background: #3b82f6;
    width: 22px;
    border-radius: 4px;
}

/* Arrows */
.cts-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.cts-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid #3b82f6;
    background: transparent;
    color: #3b82f6;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
}

.cts-nav-btn:hover {
    background: #3b82f6;
    color: #ffffff;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .cts-review  { font-size: 13.5px; }
    .cts-name    { font-size: 20px; }
    .cts-role    { font-size: 12px; }
    .cts-star    { font-size: 19px; }
    .cts-content { padding: 0 16px; }
    /*.cts-avatar-row::before { width: 200px; height: 200px; transform: translate(-50%, -25%); }*/
}

@media (max-width: 480px) {
    .cts-review  { font-size: 13px; }
    .cts-name    { font-size: 17px; }
    .cts-role    { font-size: 11px; }
    .cts-star    { font-size: 17px; }
    .cts-content { padding: 0 12px; }
    .cts-dots-dot        { width: 7px; height: 7px; }
    .cts-dots-dot.active { width: 18px; }
    /*.cts-avatar-row::before { width: 150px; height: 150px; transform: translate(-50%, -25%); }*/
}
