/* ============================================================
   COMPONENT: Blog Cards + Section Heading
   Used on: homepage, blog listing page, blog post pages
   ============================================================ */

@layer components {

.blog-section { margin: 0 auto 32px; }

.section-heading-lg {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  font-family: var(--font-body);
  text-transform: uppercase;
  color: var(--color-body);
  text-align: left;
  padding: 12px 0;
  margin-bottom: 48px;
  border-bottom: none;
}

/* The homepage's Dew Arabia heading uses the book rows' .section-tabs / .tab-link look (product-card.css);
   it keeps the old heading's gap above the cards. It is not a link, so no pointer. */
.blog-section > .blog-section__tabs { margin-bottom: 48px; }
.blog-section__tabs .tab-link { cursor: default; }

.blog-grid { display: flex; gap: 0; }
/* View More's six more articles, two rows under the first three; then the buttons (owner, 21 Nov 2026:
   "change all", the book rows' View More / Show Less / Show All) */
.dew-more .blog-grid { margin-top: 56px; }
.blog-section .show-more-prods, .blog-section .show-after { margin-top: 40px; }
.blog-section .show-after .show-more-prods { margin: 0; }

.blog-card {
  flex: 1;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
}
.blog-card:first-child { padding-left: 0; }
.blog-card:last-child  { padding-right: 0; }

.blog-card__img-wrap {
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  overflow: hidden;
  margin-bottom: 24px;
}
.blog-img { width: 100%; height: 100%; object-fit: cover; display: block; }

.blog-title {
  font-size: 16px;
  font-weight: 700;
  color: rgb(94, 94, 94);
  font-family: var(--font-body);
  margin-bottom: 16px;
  line-height: 1.25;
}
.blog-excerpt {
  font-size: var(--font-size-base);
  color: var(--color-body);
  line-height: var(--line-height-base);
  /* owner, 21 Nov 2026: "the space is too big between the article above them and the button" (it was 44px) */
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Read more lines up across the cards whatever the length of the text above it. */
.blog-card .read-more { margin-top: auto; }

.read-more {
  display: inline-block;
  align-self: center;
  border: 0.8px solid rgb(156, 156, 156);
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 400;
  color: rgb(94, 94, 94);
  letter-spacing: 0.5px;
  background: transparent;
  text-decoration: none;
  font-family: var(--font-body);
}
.read-more:hover { background: rgb(245, 245, 245); }

/* Read more on the cards (owner, 21 Nov 2026: option 5, "the arrow should be horizontal towards right"): READ MORE
   in small capitals on the left, with the phones' round button holding an arrow beside it */
.blog-card .read-more {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  padding: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: rgb(62, 62, 62);
  background: none;
}
.blog-card .read-more::after {
  content: '';
  flex: none;
  width: 32px;
  height: 32px;
  box-sizing: border-box;
  border: 1px solid rgb(62, 62, 62);
  border-radius: 50%;
  background: no-repeat center / 12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1.5 6h9M7 2.5 10.5 6 7 9.5' fill='none' stroke='%233e3e3e' stroke-width='1.3'/%3E%3C/svg%3E");
  transition: background-color .2s ease;
}
.blog-card .read-more:hover { background: none; }
.blog-card .read-more:hover::after { background-color: rgb(242, 241, 239); }

}
