/* ===== BLOG (מאמרים) — Figma 4952:3389 (desktop) / 4984:14713 (mobile) ===== */
:root {
  --gold-badge: #b58d41;
  --blk: #030a11;
  --gray: #6c6c6c;
  --blog-bg: #f6f6f6;
}

.blog-page { background: var(--blog-bg); }
.hdr.hdr--solid { background: #fff; box-shadow: 0 2px 18px rgba(0,0,0,.07); }

.blog {
  max-width: 1300px;
  margin: 0 auto;
  padding: calc(100vw * 150 / 1920) 20px 0;   /* clear the fixed header */
}

/* ---------- HERO ---------- */
.blog-hero {
  position: relative;
  padding: 52px 0 40px;
  text-align: center;
}
.blog-hero__crumb {
  display: flex;
  direction: rtl;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  font-size: 16px;
  color: #000;
  margin-bottom: 30px;
}
.blog-hero__crumb a { color: #000; display: inline-flex; align-items: center; }
.blog-hero__crumb-home { width: 16px; height: 16px; display: block; }
.blog-hero__crumb .sep { color: #000; }
.blog-hero__crumb b { font-weight: 700; }
.blog-hero__title {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 62px;
  line-height: 72px;
  color: #000;
  margin: 0;
}
.blog-hero__desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 22px;
  line-height: 28px;
  color: #000;
  max-width: 856px;
  margin: 18px auto 0;
  direction: rtl;
}

/* ---------- FEATURED WIDE ARTICLE ---------- */
.blog-featured {
  position: relative;
  display: flex;
  direction: rtl;            /* RTL: image (DOM 1st) RIGHT, text LEFT — per Figma */
  background: #fff;
  border-radius: var(--r-card);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  margin-top: 40px;
  min-height: 442px;
}
.blog-featured__media {
  flex: 0 0 650px;
  max-width: 650px;
  align-self: stretch;
  position: relative;
}
.blog-featured__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.blog-featured__body {
  flex: 1 1 auto;
  direction: rtl;
  text-align: right;
  padding: 42px 40px 34px;
  display: flex;
  flex-direction: column;
}
.blog-featured__badge {
  align-self: flex-start;
  background: var(--gold-badge);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 20px;
  line-height: 1;
  border-radius: 40px;
  padding: 6px 18px;
  margin-bottom: 22px;
}
.blog-featured__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 40px;
  line-height: 46px;
  color: #000;
  margin: 0;
}
.blog-featured__excerpt {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 22px;
  line-height: 30px;
  color: #000;
  margin: 18px 0 0;
}
.blog-featured__meta {
  display: flex;
  direction: rtl;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 26px;
}
.blog-featured__avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 50px;
  display: block;
}
.blog-featured__author-wrap { display: flex; flex-direction: column; gap: 4px; }
.blog-featured__author {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.1;
  color: #000;
}
.blog-featured__date {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.1;
  color: var(--gray);
}

/* ---------- 3-COLUMN CARD ROW ---------- */
.blog-cards {
  display: grid;
  direction: ltr;            /* DOM L→R matches Figma x: עריקות(left) · זכויות(mid) · ייצוג(right) */
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 40px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--r-card);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}
.blog-card__media {
  width: 100%;
  height: 200px;
  display: block;
}
.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.blog-card__body {
  direction: rtl;
  text-align: right;
  padding: 21px 21px 24px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
.blog-card__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 28px;
  line-height: 36px;
  color: var(--blk);
  margin: 0;
}
.blog-card__excerpt {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 20px;
  line-height: 26px;
  color: var(--blk);
  margin: 14px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Figma button-2: rectangular outlined, arrow segment on LEFT split by a divider line */
.blog-card__more {
  align-self: flex-start;
  display: flex;
  direction: ltr;
  align-items: stretch;
  width: 184px;
  height: 48px;
  border: 1px solid var(--green-900);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 24px;
  padding: 0;
}
.blog-card__more-label {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  color: var(--green-900);
}
.blog-card__more-circle {
  flex: 0 0 48px;
  width: 48px;
  height: 100%;
  border: 0;
  border-right: 1px solid rgba(13, 44, 33, 0.4);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-card__more-circle img { width: 24px; height: 24px; display: block; }

/* ================= MOBILE ================= */
@media (max-width: 1024px) {
  .blog { padding: 72px 16px 0; }   /* clear 72px mobile header */

  /* hero */
  .blog-hero { padding: 22px 0 6px; text-align: center; }
  .blog-hero__crumb { justify-content: flex-start; margin-bottom: 18px; font-size: 14px; }
  .blog-hero__title { font-size: 44px; line-height: 52px; text-align: center; }
  .blog-hero__desc {
    font-size: 17px;
    line-height: 25px;
    margin: 12px auto 0;
    max-width: 100%;
    text-align: center;
  }

  /* featured -> vertical stack */
  .blog-featured {
    flex-direction: column;
    direction: rtl;
    min-height: 0;
    margin-top: 26px;
  }
  .blog-featured__media {
    flex: 0 0 auto;
    max-width: 100%;
    height: 233px;
    position: relative;
  }
  .blog-featured__media img { position: relative; height: 233px; }
  .blog-featured__body { padding: 30px 22px 24px; }
  .blog-featured__badge { font-size: 16px; padding: 6px 16px; margin-bottom: 16px; }
  .blog-featured__title { font-size: 24px; line-height: 30px; }
  .blog-featured__excerpt { font-size: 16px; line-height: 24px; margin-top: 14px; }
  .blog-featured__meta { padding-top: 22px; }
  .blog-featured__avatar { width: 44px; height: 44px; flex-basis: 44px; }
  .blog-featured__author { font-size: 18px; }
  .blog-featured__date { font-size: 14px; }

  /* 3-col grid -> compact horizontal list rows */
  .blog-cards {
    display: flex;
    direction: rtl;
    flex-direction: column-reverse;   /* Figma mobile order: ייצוג, זכויות, עריקות (reverse of DOM) */
    gap: 12px;
    margin-top: 12px;
  }
  .blog-card {
    flex-direction: row-reverse;   /* thumbnail on visual LEFT, text right */
    align-items: stretch;
    height: 105px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  }
  .blog-card__media {
    flex: 0 0 104px;
    width: 104px;
    height: 105px;
  }
  .blog-card__body {
    justify-content: center;
    padding: 12px 16px;
  }
  .blog-card__title { font-size: 19px; line-height: 24px; }
  .blog-card__excerpt,
  .blog-card__more { display: none; }
}
