.testimonial {
    position: relative;
    width: 940px;
    height: 926px;
    left: calc(50% - 940px / 2);
    top: 60px;
    margin-bottom: 100px;
}

.testimonials {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    box-sizing: border-box;
    background: #000; /* optional: container bg */
}


.rectangle {
    position: absolute;
    width: 100%;
    height: 287px;
    bottom: 0; /* or top: 0; depending on design */
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #110f0f 81.89%);
    z-index: 3;
}




.main {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: auto; /* rows height auto */
    gap: 24px;
    max-width: 1200px;
    width: 100%;

    /* IMPORTANT: prevent stretching */
    align-items: start;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    padding: 16px;
    gap: 16px;
    background: #141414;
    border-radius: 12px;
    width: 100%;
    height: auto; /* dynamic height */
    box-sizing: border-box;

   
    /* prevent flex-grow stretching in grid */
    align-self: start;
}

.stars {
    display: flex;
    gap: 8px;
    color: #ffffff;
    font-size: 16px;
}

.kid_star {
    color: #ffffff; /* gold star */
    font-size: 16px;
}

.quote {
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.2;
    color: #ffffff;
    margin: 0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
    color: #ffffff;
    margin: 0;
}

.user-role {
    font-weight: 400;
    font-size: 14px;
    color: #808080;
    margin: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .main {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .main {
        grid-template-columns: 1fr;
    }
}

/* Make the testimonial container responsive */
@media (max-width: 992px) {
    .testimonial {
        width: 100%;
        left: 0;
        padding: 0 20px;
        height: auto;
    }
}

@media (max-width: 576px) {
    .testimonial {
        width: 100%;
        left: 0;
        padding: 0 16px;
        height: auto;
    }
}

@media (min-width: 1441px) {
    .testimonial {
        width: 100%;
        left: 0;
        padding: 0 12px;
        height: auto;
        display: flex;
        justify-content: center;
    }

    .main{
      max-width: 80%;
    }
}