/* public/assets/css/testimonials.css */

/* Make both columns the same height on desktop */
@media (min-width: 900px) {
    .testimonials-grid {
        align-items: stretch;
        /* key */
    }

    .testimonials-grid>.card {
        height: 100%;
        display: flex;
        flex-direction: column;
    }
}

/* Keep the submit button/footer pinned to bottom if extra space exists */
.t-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.t-form .form-actions {
    margin-top: auto;
}

.testimonials-head .sub {
    margin-top: 8px;
    opacity: .85;
    max-width: 70ch;
}

.testimonials-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr;
}

@media (min-width: 900px) {
    .testimonials-grid {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

    /* Optional: keep the form card visible while scrolling the list */
    .testimonials-grid>.card:first-child {
        position: sticky;
        top: 18px;
        align-self: start;
    }
}

/* Honeypot */
.t-form .hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ✅ Published list scroll container (about 3 cards visible) */
.t-list {
    display: grid;
    gap: 12px;
    margin-top: 10px;

    /* scroll */
    max-height: 520px;
    /* ~3 items; adjust if needed */
    overflow: auto;
    padding-right: 10px;
    scroll-behavior: smooth;
}

/* ✅ Testimonial item card */
.t-item {
    padding: 14px;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 14px;
    background: rgba(255, 255, 255, .6);
}

/* Header row */
.t-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.t-name {
    font-weight: 800;
}

.t-stars {
    font-weight: 900;
    letter-spacing: .08em;
}

/* Message */
.t-msg {
    margin-top: 8px;
    opacity: .92;
    line-height: 1.55;
}

.t-meta {
    margin-top: 10px;
    font-size: .92rem;
    opacity: .7;
}

.t-google {
    margin-top: 12px;
}

.admin-actions {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Optional: nicer scrollbar (Chrome/Edge) */
.t-list::-webkit-scrollbar {
    width: 10px;
}

.t-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.18);
    border-radius: 999px;
}