.testi_section {
    margin: 8rem auto 0rem auto;
    padding: 0 1rem;
    max-width: 1260px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    left: 0px;
    right: 0px;
}

.testi_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3.5rem;
}

.testi_title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0d1117;
    margin: 0;
}

.testi_nav {
    display: flex;
    gap: 1rem;
}

.testi_nav_btn {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #475569;
}

.testi_nav_btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0d1117;
}

.testi_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 7rem;
    align-items: stretch; /* Cards will stretch to match the tallest one */
}

.testi_card {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    min-height: 350px;
    width: 100%;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.03);
    transition: transform 0.3s, box-shadow 0.3s;
}

.testi_card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.08);
}

.testi_stars {
    color: #fbbf24;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    display: flex;
    gap: 2px;
}

.testi_quote_icon {
    margin-bottom: 1.5rem;
}

.testi_text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #475569;
    margin: 0;
}

.testi_footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid #f1f5f9;
    padding-top: 1.5rem;
    margin-top: auto;
}

.testi_avatar {
    width: 3rem;
    height: 3rem;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.testi_info {
    overflow: hidden;
}

.testi_name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.testi_role {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

.testi_dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.testi_dot {
    width: 2.5rem;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s;
}

.testi_dot--active {
    background: #2563eb;
}

@media (max-width: 1200px) {
    .testi_grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .testi_header { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
    .testi_grid { grid-template-columns: 1fr; }
    .testi_title { font-size: 1.75rem; }
    .testi_card { max-width: 280px; margin-left: auto; margin-right: auto; }
}

.testi_card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.testi_card--visible {
    opacity: 1;
    transform: translateY(0);
}
