
/* ---- Section ---- */
.testimonials-section {
    padding: 40px 0;
    background: linear-gradient(135deg, #1a2530 0%, #2c3e50 100%);
}

.testimonials-header {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto 48px;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ---- Social Proof Badge Styles ---- */
.t-badge-container {
    margin-bottom: 10px; /* Reduced vertical spacing slightly */
}

.t-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;               /* Reduced gap from 16px */
    padding: 4px 14px 4px 8px; /* Shrunk padding down for a tighter pill look */
    background: rgba(26, 37, 48, 0.6);
    border: 1px solid rgba(255, 152, 0, 0.2);
    border-radius: 50px;
}

.t-avatar-stack {
    display: flex;
    align-items: center;
}

.t-stack-img {
    width: 30px;             /* Reduced from 38px */
    height: 30px;            /* Reduced from 38px */
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #1a2530;
    margin-right: -10px;     /* Adjusted overlapping margin to match new size */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    background: #2c3e50;
}

.t-stack-img:last-child {
    margin-right: 0;
}

.t-stack-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.t-stack-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;         /* Reduced font size for smaller initials */
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #ff9800, #ff6f00);
}

.t-badge-text {
    font-size: 12px;         /* Reduced text size from 14px */
    font-weight: 700;
    color: orange;
    letter-spacing: 0.5px;
}

.testimonials-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: #ffffff;
}

.testimonials-subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.5);
    margin: 0;
}

/* ---- Scroll columns wrapper ---- */
.testimonials-columns-wrap {
    display: flex;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    height: 500px; 
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    overflow: hidden;

    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        black 15%,
        black 85%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        black 15%,
        black 85%,
        transparent 100%
    );
}

/* ---- Scroll columns ---- */
.testimonials-column {
    overflow: hidden;
    width: 340px;
    flex-shrink: 1;
}

.testimonials-track {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: max-content;
}

/* ---- Card ---- */
.t-card {
    flex-shrink: 0;
    width: 100%;
    background: linear-gradient(135deg, #1a2530 0%, #2c3e50 100%);
    border: none;
    border-radius: 20px;
    padding: 20px 20px 16px;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid rgba(255,152,0,0.25);
}

.t-card:hover {
    transform: translateY(-0.5px);
    box-shadow: 0 12px 32px rgba(255,152,0,0.18);
}

/* ---- Label ---- */
.t-label {
    font-size: 9px;
    color: orange;
    margin: 0;
    font-weight: 400;
}

/* ---- Stars ---- */
.t-stars {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #ff9800;
    margin: 0;
}

.t-stars span {
    letter-spacing: 2px;
}

/* ---- Content ---- */
.t-content {
    font-size: 14px;
    color: #ffffff;
    line-height: 1.65;
    margin: 0;
    flex: 1;
}

/* ---- Bottom row ---- */
.t-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: 4px;
}

/* ---- Big closing quote marks ---- */
.t-big-quote {
    font-size: 56px;
    line-height: 1;
    color: rgba(255,152,0,0.35);
    font-family: Georgia, 'Times New Roman', serif;
    transform: scaleX(-1) rotate(180deg);
    display: inline-block;
    margin-bottom: -8px;
}

/* ---- Author wrap ---- */
.t-author-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ---- Avatar ---- */
.t-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.7);
}

.t-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.t-avatar--initials {
    background: linear-gradient(135deg, #ff9800, #ff6f00);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

/* ---- Author text ---- */
.t-author {
    min-width: 0;
}

.t-name {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.t-role {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
}

/* ---- Vertical Scroll animations ---- */
@keyframes scrollUp {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

@keyframes scrollDown {
    0%   { transform: translateY(-50%); }
    100% { transform: translateY(0); }
}

.scroll-up   { animation: scrollUp   45s linear infinite; }
.scroll-down { animation: scrollDown 45s linear infinite; }

.testimonials-column:hover .testimonials-track {
    animation-play-state: paused;
}

/* ---- Modal overlay ---- */
.t-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.t-modal-overlay.open {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ---- Modal card ---- */
.t-modal {
    background: #16213e;
    border: 1px solid rgba(255,152,0,0.25);
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    padding: 32px;
    position: relative;
    animation: slideUp 0.25s ease;
    max-height: 85vh;
    overflow-y: auto;
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.t-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
}

.t-modal-close:hover {
    background: rgba(255,152,0,0.1);
    color: #ff9800;
}

.t-modal-header {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    width: 100%;
}

#modalAvatar, 
#modalAvatar > div {
    flex-shrink: 0 !important; 
}

.t-modal-name {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
}

.t-modal-role {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin: 0;
}

.t-modal-stars {
    font-size: 16px;
    color: #ff9800;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.t-modal-body {
    position: relative;
}

.t-modal-quote {
    display: block;
    font-size: 48px;
    line-height: 0.6;
    color: #ff9800;
    font-family: Georgia, serif;
}

.t-modal-quote--close {
    text-align: right;
    margin-top: 8px;
}

.t-modal-body p {
    font-size: 15px;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    margin: 12px 0;
}

/* ---- Scrollbar in modal ---- */
.t-modal::-webkit-scrollbar       { width: 6px; }
.t-modal::-webkit-scrollbar-track { background: #1a1a2e; border-radius: 10px; }
.t-modal::-webkit-scrollbar-thumb { background: #ff9800; border-radius: 10px; }

/* ---- Responsive / Mobile Views ---- */
@media (max-width: 992px) {
    .testimonials-columns-wrap {
        height: 600px;
    }
}

@media (max-width: 768px) {
    .testimonials-columns-wrap {
        gap: 0;
        padding: 0 16px;
        height: 550px;
    }

    /* Keep only one vertical column active on mobile frames */
    .mobile-hidden-col {
        display: none !important;
    }

    .testimonials-column {
        width: 100%;
    }

    .scroll-up {
        animation-duration: 35s;
    }

    .t-modal {
        padding: 24px;
    }
}
