/* --- FINAL REFINED TESTIMONIALS SECTION --- */

.testimonials-container {
    padding: 110px 20px 80px; 
    width: 95%; 
    max-width: 1450px;
    margin: 60px auto 40px; 
    border-radius: 40px;
    background: #051411; 
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    border: 1px solid rgba(0, 168, 173, 0.1);
}

.header-box {
    text-align: center;
    margin-bottom: 50px;
    width: 100%;
}

.header-box .badge {
    display: inline-block;
    background: rgba(163, 255, 0, 0.1);
    color: #a3ff00; 
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    border: 1px solid rgba(163, 255, 0, 0.2);
}

.section-title {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 10px;
}

.gradient-text {
    background: linear-gradient(90deg, #00a8ad, #a3ff00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- SWIPER FIXES --- */
.testimonial-swiper {
    width: 100%;
    padding: 20px 20px 80px !important;
    overflow: hidden; 
}

.swiper-slide {
    height: auto !important; /* Cards ki height barabar karne ke liye */
    display: flex;
}

/* --- THE CARD FIX --- */
.t-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 30px; 
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    width: 100%;
    position: relative;
    min-height: 400px; /* Standard height for consistency */
    box-sizing: border-box;
}

.t-card:hover {
    transform: translateY(-10px);
    background: rgba(0, 168, 173, 0.04);
    border-color: #00a8ad;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.stars {
    color: #a3ff00;
    font-size: 0.75rem;
    letter-spacing: 3px;
}

.quote-icon {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.05);
}

/* --- TEXT BREAKING & CLAMPING --- */
.feedback-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 30px;
    flex-grow: 1;

    /* Ye 2 lines screenshot wala masla hal karengi */
    word-wrap: break-word;
    word-break: break-word; 
    overflow-wrap: break-word;

    /* Line limits */
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- FOOTER & BUTTON --- */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 25px;
    margin-top: auto;
}

.client-info strong {
    display: block;
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 5px;
}

.client-info span {
    font-size: 0.8rem;
    color: #00a8ad;
    display: flex;
    align-items: center;
    gap: 6px;
}

.upwork-verify {
    background: rgba(163, 255, 0, 0.05) !important;
    color: #a3ff00 !important;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px solid rgba(163, 255, 0, 0.2);
    transition: 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.upwork-verify:hover {
    background: #a3ff00 !important;
    color: #000 !important;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(163, 255, 0, 0.2);
}

/* --- SWIPER CONTROLS --- */
.swiper-button-next, .swiper-button-prev {
    color: #a3ff00 !important;
    transform: scale(0.7);
}

.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.2) !important;
}

.swiper-pagination-bullet-active {
    background: #a3ff00 !important;
}

/* --- MOBILE --- */
@media (max-width: 768px) {
    .t-card { min-height: 320px; padding: 25px; }
    .section-title { font-size: 1.8rem; }
    .testimonials-container { padding: 80px 15px 40px; }
}