/* FARAZ REFERENCE ARTICLE CARDS – 1.2.0
 * Matched to the user-provided card screenshot, with COLOR photographs.
 * Independent from the fzra plugin; scoped to .fzrb-section.
 */
.fzrb-section {
  --fzrb-accent: #a76950;
  --fzrb-ink: #262322;
  --fzrb-muted: #8e8b89;
  --fzrb-border: #eee6e1;
  --fzrb-gap: 23px;
  direction: rtl !important;
  text-align: right;
  box-sizing: border-box;
  position: relative;
  width: 100%;
  min-width: 0;
  padding: clamp(55px, 6vw, 92px) 23px;
  margin: 0;
  background-color: #fff;
  background-image: linear-gradient(90deg, rgba(141,113,98,.032) 1px, transparent 1px),
                    linear-gradient(rgba(141,113,98,.032) 1px, transparent 1px);
  background-size: 48px 48px;
  color: var(--fzrb-ink);
}
.fzrb-section *, .fzrb-section *::before, .fzrb-section *::after { box-sizing: border-box; }
.fzrb-section .fzrb-container { width: 100%; max-width: 1510px; margin-inline: auto; }
.fzrb-section .fzrb-header { margin: 0 0 33px; text-align: right; }
.fzrb-section .fzrb-header-copy { max-width: 760px; }
.fzrb-section .fzrb-eyebrow { display: inline-block; color: var(--fzrb-accent); font-size: 13px; font-weight: 700; margin: 0 0 8px; }
.fzrb-section .fzrb-title { margin: 0 0 7px !important; padding: 0 !important; color: var(--fzrb-ink) !important; font-size: clamp(27px, 3vw, 42px) !important; font-weight: 900 !important; line-height: 1.5 !important; text-align: right !important; }
.fzrb-section .fzrb-intro { margin: 0 !important; padding: 0 !important; color: #807a76; font-size: 14px; line-height: 2; text-align: right !important; }

/* Flex wraps and centers incomplete rows; four equal-width cards on desktop. */
.fzrb-section .fzrb-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: stretch;
  gap: var(--fzrb-gap);
  direction: rtl;
  width: 100%;
  margin: 0 auto;
}
.fzrb-section .fzrb-card {
  flex: 0 0 calc((100% - (3 * var(--fzrb-gap))) / 4);
  width: calc((100% - (3 * var(--fzrb-gap))) / 4);
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  overflow: hidden;
  margin: 0;
  padding: 0;
  text-align: right;
  background: #fff;
  border: 1px solid var(--fzrb-border);
  border-radius: 0;
  box-shadow: none;
  transition: box-shadow .3s ease, transform .3s ease;
}
.fzrb-section .fzrb-media {
  display: block;
  flex: 0 0 auto;
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 10 / 7;
  background: #e9e3df;
  text-decoration: none !important;
  filter: none !important;
  -webkit-filter: none !important;
}
.fzrb-section .fzrb-card .fzrb-media img.fzrb-image {
  position: absolute;
  display: block;
  inset: 0;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  object-fit: cover !important;
  object-position: center;
  filter: none !important;
  -webkit-filter: none !important;
  mix-blend-mode: normal !important;
  opacity: 1 !important;
  transform: scale(1);
  transition: transform .6s ease;
}
.fzrb-section .fzrb-no-image { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 17px; font-weight: 700; background: linear-gradient(135deg,#4b3930,#9c654a); }
.fzrb-section .fzrb-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 270px;
  padding: 21px 24px 24px;
  background: #fff;
  filter: none !important;
  -webkit-filter: none !important;
}
.fzrb-section .fzrb-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
  margin: 0 0 19px;
  font-size: 12px;
  line-height: 1.8;
}
.fzrb-section .fzrb-date { color: #aaa6a3; font-weight: 500; white-space: nowrap; }
.fzrb-section .fzrb-reading { color: var(--fzrb-accent); font-weight: 650; white-space: nowrap; }
.fzrb-section .fzrb-card-title {
  color: var(--fzrb-ink) !important;
  font-size: clamp(18px, 1.5vw, 22px) !important;
  font-weight: 800 !important;
  line-height: 1.7 !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
  min-height: 3.4em;
  text-align: right !important;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.fzrb-section .fzrb-card-title a { color: inherit !important; text-decoration: none !important; }
.fzrb-section .fzrb-excerpt {
  color: #91908e !important;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 2.05;
  text-align: right !important;
  margin: 0 0 20px !important;
  padding: 0 !important;
  min-height: 4.1em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.fzrb-section .fzrb-read-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
  margin: auto 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--fzrb-border);
  color: var(--fzrb-accent) !important;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none !important;
}
.fzrb-section .fzrb-read-label { color: var(--fzrb-accent) !important; }
.fzrb-section .fzrb-arrow {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  padding: 0 0 3px;
  line-height: 1;
  border: 1px solid #e9d9d0;
  color: var(--fzrb-accent);
  background: white;
  font-size: 22px;
  font-weight: 400;
  transition: color .25s ease, background-color .25s ease;
}
.fzrb-section a:focus-visible { outline: 2px solid var(--fzrb-accent); outline-offset: 2px; }
.fzrb-section .fzrb-empty { text-align: center; margin: 0; background: #fff; color: #88766a; border: 1px dashed #e3cec0; padding: 24px 16px; font-size: 14px; }

@media (hover:hover) and (pointer:fine) {
  .fzrb-section .fzrb-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(57,38,27,.07); }
  .fzrb-section .fzrb-card:hover .fzrb-image { transform: scale(1.035); }
  .fzrb-section .fzrb-read-more:hover .fzrb-arrow { background: var(--fzrb-accent); color: white; }
}
@media (max-width: 1120px) {
  .fzrb-section .fzrb-card { flex-basis: calc((100% - var(--fzrb-gap)) / 2); width: calc((100% - var(--fzrb-gap)) / 2); }
}
@media (max-width: 650px) {
  .fzrb-section { padding: 52px 16px 64px; }
  .fzrb-section .fzrb-header { margin-bottom: 23px; }
  .fzrb-section .fzrb-grid { --fzrb-gap: 16px; }
  .fzrb-section .fzrb-card { flex-basis: 100%; width: 100%; }
  .fzrb-section .fzrb-media { aspect-ratio: 10 / 7; }
  .fzrb-section .fzrb-body { min-height: 257px; padding: 19px 19px 21px; }
  .fzrb-section .fzrb-meta { margin-bottom: 15px; }
  .fzrb-section .fzrb-card-title { font-size: 20px !important; }
  .fzrb-section .fzrb-read-more { padding-top: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .fzrb-section *, .fzrb-section *::before, .fzrb-section *::after { transition: none !important; animation: none !important; }
}
