/* --- Testimonials (itx_testimonials in any Grid Layout) ---
   Styles every testimonial the same way, whichever Grid Layout or page shows
   it: ITX Yellow (--color-itx-yellow, as on the home page testimonial) with its larger
   bottom-right corner; a small orange quote mark; the quote at body size, as
   quotes are often long; the author styled like the eyebrow.
   Keyed to the post type's class, so no Grid Layout needs editing.
   !important beats the layouts' own generated rules. */

/* ITX Yellow, the Theme Options custom colour the home page card uses. */
.w-grid-item.type-itx_testimonials {
    --itx-testimonial-bg: var(--color-itx-yellow, #ffe066);
}

/* The panel. Skipped on a column that already has a background colour (the
   yellow cards on the home and Technology Centre pages), as that is the panel. */
.w-grid-item.type-itx_testimonials:not(.has_bg_color *) > .w-grid-item-h {
    height: 100%;
    padding: 2rem 2.25rem 2.25rem;
    border-radius: 16px 16px 64px 16px;
    background-color: var(--itx-testimonial-bg);
}

.w-grid-item.type-itx_testimonials .w-html {
    font-size: 1.5rem !important;
    line-height: 1;
    color: var(--color-content-primary, #f27a21);
}

.w-grid-item.type-itx_testimonials .itx_testimonial_quote {
    margin: 0;
    font-size: 1.0625rem !important;
    font-weight: 400 !important;
    line-height: 1.65 !important;
    color: var(--color-content-heading, #303030);
}

.w-grid-item.type-itx_testimonials .itx_testimonial_author {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-content-heading, #303030);
}

.w-grid-item.type-itx_testimonials .itx_testimonial_author::before {
    content: "";
    flex-shrink: 0;
    width: 1.75rem;
    height: 2px;
    border-radius: 2px;
    background-color: var(--color-content-primary, #f27a21);
}
