/* =========================================================
   44-benefit-rows.css
   Alternating image + text benefit rows
   (template-parts/benefit-rows.php).
   Replaces stacked block-editor content with a designed,
   two-column layout that alternates left/right per row.
   ========================================================= */

.benefit-rows__header{
  text-align:center;
  max-width:none;
  margin:0 auto var(--space-16);
}

/* The shared .section-subheading caps at 56ch for short one-line intros.
   This intro carries full paragraphs, so widen it, centre it as a block,
   and left-align the prose — centred text is hard to read past one line. */
.benefit-rows__header .section-subheading{
  max-width:none;
  margin-inline:auto;
  text-align:left;
}

/* Short intros (a single line) still look better centred. */
.benefit-rows__header .section-subheading--short{text-align:center;max-width:56ch;}

.benefit-rows__list{
  display:flex;
  flex-direction:column;
  gap:var(--space-12);
}

.benefit-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:var(--space-10);
  align-items:center;
}

/* Every second row flips so image and text alternate sides. */
.benefit-row--reverse .benefit-row__media{order:2;}
.benefit-row--reverse .benefit-row__content{order:1;}

.benefit-row__media{
  border-radius:var(--radius-lg);
  overflow:hidden;
  box-shadow:var(--shadow-md);
  line-height:0;
}

.benefit-row__img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  aspect-ratio:4/3;
  transition:transform var(--duration-slow) var(--ease-out);
}

.benefit-row:hover .benefit-row__img{transform:scale(1.03);}

.benefit-row__content--full{grid-column:1 / -1;max-width:60ch;margin-inline:auto;text-align:center;}

.benefit-row__title{
  font-family:var(--font-heading);
  font-size:var(--text-2xl);
  font-weight:var(--weight-bold);
  line-height:var(--leading-tight);
  color:var(--color-text-primary);
  margin:0 0 var(--space-4);
}

/* Accent rule under each title, echoing the section-heading treatment. */
.benefit-row__title::after{
  content:"";
  display:block;
  width:48px;
  height:3px;
  margin-top:var(--space-3);
  background:var(--color-action);
  border-radius:2px;
}

.benefit-row__content--full .benefit-row__title::after{margin-inline:auto;}

.benefit-row__body{
  font-size:var(--text-base);
  line-height:var(--leading-loose);
  color:var(--color-text-body);
}

.benefit-row__body p{margin:0 0 var(--space-4);}
.benefit-row__body p:last-child{margin-bottom:0;}

@media(max-width:991px){
  .benefit-rows__list{gap:var(--space-10);}
  .benefit-row{grid-template-columns:1fr;gap:var(--space-5);}
  /* On one column the image always leads, so reset the flip. */
  .benefit-row--reverse .benefit-row__media,
  .benefit-row--reverse .benefit-row__content{order:initial;}
  .benefit-row__img{aspect-ratio:16/9;}
}

@media(max-width:767px){
  .benefit-rows__header{margin-bottom:var(--space-10);}
  .benefit-row__title{font-size:var(--text-xl);}
}

/* ── Partner logo band ─────────────────────────────────
   Reuses the .certs-carousel marquee but sits on the base
   background so it reads as a distinct band when stacked
   under the (tinted) certifications carousel. A slightly
   slower scroll keeps the two from looking synchronised. */
.certs-carousel--partners{background:var(--color-bg-base);}
.certs-carousel--partners .certs-carousel__track{animation-duration:38s;}

/* Paragraph spacing inside the intro block. */
.benefit-rows__header .section-subheading p{margin:0 0 var(--space-4);}
.benefit-rows__header .section-subheading p:last-child{margin-bottom:0;}