/* Sept 2026 client feedback round — industry.
   Note on specificity: Elementor's frontend reset styles img and figure at 0,1,1
   (".elementor img", ".elementor figure"), so the rules below either qualify the
   class twice or use !important — a plain single class is silently overridden. */

/* ── Our Valued Partners: term-driven logo row (rows 85/93/101/109/117/125) ──
   Logos come from Products → Industries → edit → Industry Page Content → Partners.
   Every logo is fitted to the same box so mixed artwork lines up; 3-then-2 on phones. */

.kayem-partner-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px 56px;
  width: 100%;
  margin: 8px 0 0;
}

.kayem-partner-logos__item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  height: 64px;
}

.kayem-partner-logos .kayem-partner-logos__img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-height: 64px !important;
  max-width: 190px !important;
  object-fit: contain;
}

/* When an industry has no logos the shortcode prints nothing, so the whole
   "Our Valued Partners" band (eyebrow + heading + row) collapses with it. */
body.tax-industry .elementor-element.elementor-element-8908168:not(:has(.kayem-partner-logos)) {
  display: none !important;
}

@media (max-width: 767px) {
  /* 3 across, then the remainder centred underneath. */
  .kayem-partner-logos {
    gap: 22px 22px;
  }

  .kayem-partner-logos__item {
    height: 46px;
  }

  .kayem-partner-logos .kayem-partner-logos__img {
    max-height: 46px !important;
    max-width: 26vw !important;
  }
}

/* ── Testimonial: the quoted person's photo (rows 89/97/105/113/121/129) ──────
   A circle that overlaps the top edge of the blue quote band.                   */

body.tax-industry .elementor-element.elementor-element-a97c5e7 {
  width: 100% !important;
  align-self: center;
}

.kayem-quote-photo-wrap .elementor-shortcode {
  display: block;
  text-align: center;
}

.kayem-quote-photo-wrap .kayem-quote-photo {
  display: block;
  width: 140px;
  height: 140px;
  margin: -174px auto 26px !important;
  padding: 0;
  border-radius: 50%;
  overflow: hidden;
  background: #fdf8ef;
  box-shadow: 0 0 0 6px #fff, 0 10px 26px rgba(13, 46, 110, .22);
}

.kayem-quote-photo .kayem-quote-photo__img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  border-radius: 50%;
}

/* The band has to let the circle hang out of its top edge. */
body.tax-industry .elementor-element.elementor-element-db74d94 {
  overflow: visible;
}

@media (max-width: 767px) {
  .kayem-quote-photo-wrap .kayem-quote-photo {
    width: 104px;
    height: 104px;
    margin: -104px auto 18px !important;
    box-shadow: 0 0 0 5px #fff, 0 8px 18px rgba(13, 46, 110, .22);
  }
}

/* ── Ready to Serve keeps the copy, loses the photo column (same rows) ──────── */
body.tax-industry .elementor-element.elementor-element-e956203 {
  --width: 100%;
}
