/* Reviews area enhancements — loaded AFTER site.css */

/* In-body article figures that break up long review text */
.article-figure{
  margin: clamp(34px, 5vw, 56px) 0;
}
.article-figure img,
.article-figure .article-fig-media{
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  display: block;
}
/* Decorative background-image variant */
.article-figure .article-fig-media{
  position: relative;
  background-size: cover;
  background-position: center;
}
.article-figure figcaption{
  margin-top: 12px;
  font-style: italic;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

/* Placeholder figure (no real photo available) — mirrors .hero-placeholder look */
.article-figure .article-fig-media.hero-placeholder{
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px;
  overflow: hidden;
  background: radial-gradient(130% 130% at 50% 12%, #1f4631 0%, #143126 54%, #0e2018 100%);
}
.article-figure .article-fig-media.hero-placeholder::before{
  content: "";
  position: absolute;
  inset: 0;
  background: url('/assets/img/logo-256.png') no-repeat center;
  background-size: min(40%, 220px);
  opacity: .12;
}
.article-figure .article-fig-media.hero-placeholder::after{
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(201, 161, 90, .28);
}
.article-figure .article-fig-media.hero-placeholder span{
  position: relative;
  z-index: 1;
  color: #fff !important;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .4);
}

/* Category hero image (course-reviews landing) */
.cat-hero-media{
  margin-top: clamp(22px, 3vw, 34px);
}
.cat-hero-media img{
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  display: block;
}

/* Visual review list cards — reuse .card / .card__media / .card__bg from site.css.
   Placeholder bg blocks render at the right ratio inside cards. */
.review-card .card__bg.hero-placeholder{
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 22px;
  background: radial-gradient(130% 130% at 50% 12%, #1f4631 0%, #143126 54%, #0e2018 100%);
}
.review-card .card__bg.hero-placeholder::before{
  content: "";
  position: absolute;
  inset: 0;
  background: url('/assets/img/logo-256.png') no-repeat center;
  background-size: min(48%, 180px);
  opacity: .12;
}
.review-card .card__bg.hero-placeholder span{
  position: relative;
  z-index: 1;
  color: #fff !important;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .4);
}
