/* ==========================================================================
   Home — "Tips, Trends & Brand Inspiration" article cards
   Added 2026-07-28.

   Styling layer only. The Bricks loop card is

       a.article-wrapper > [image div] + [info div > ... > h3 + svg, excerpt]

   and none of that structure was changed — delete this file (and its
   wp_enqueue_style call in functions.php) and the section returns to exactly
   how it looked before.

   Selectors are structural (:first-child / :last-child) rather than tied to
   Bricks' generated .brxe-* ids, so they survive the elements being edited in
   the builder. Bricks emits `.brxe-gruokb .brxe-mwvlmc.brxe-div` (specificity
   0,3,0) for the image, which outranks these selectors, so the few properties
   that have to beat it are marked !important — and only those.

   This lives in its own file rather than in style.css on purpose: LiteSpeed
   combines the theme CSS into /wp-content/litespeed/css/<hash>.css and serves
   it with max-age=31557600. That hash follows the list of source files, so
   editing an existing file leaves returning visitors on a year-old cached
   copy, while adding one changes the hash and busts it for everyone.
   ========================================================================== */

a.article-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  row-gap: 0;
  background: #fff;
  border: 1px solid #e1e6f0;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .2s ease;
}

/* Hover stays deliberately still — no lift, no zoom, no sliding arrow. Just
   the border picking up the brand blue, so the card still reads as clickable
   without anything moving on the page. */
a.article-wrapper:hover {
  border-color: #0416ff;
}

/* Image — a fixed 16:10 crop instead of a fixed 240px height, and centred:
   Bricks leaves background-position at 0% 0% on desktop, which was slicing
   the subject off the top-left corner of every photo. */
a.article-wrapper > div:first-child {
  height: auto !important;
  aspect-ratio: 16 / 10;
  width: 100%;
  border-radius: 0;
  background-position: center center !important;
}

/* Body fills the remaining height so all three cards end on the same line */
a.article-wrapper > div:last-child {
  flex: 1;
  display: flex;
  flex-direction: column;
  row-gap: 10px;
  padding: 22px 22px 24px;
}

/* Title — capped at two lines, with that height reserved so the excerpts
   below always start on the same baseline across the row */
a.article-wrapper h3 {
  font-size: 18px;
  line-height: 1.35;
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Arrow — level with the first line of the title */
a.article-wrapper svg {
  margin-top: 3px !important;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  a.article-wrapper > div:last-child {
    padding: 18px 18px 20px;
  }

  a.article-wrapper h3 {
    font-size: 16px;
  }
}
