:root {
  --bimax-blog-red: #e60000;
  --bimax-blog-red-dark: #b90000;
  --bimax-blog-ink: #2f2f2f;
  --bimax-blog-text: #484848;
  --bimax-blog-muted: #767676;
  --bimax-blog-line: #d8d8d8;
  --bimax-blog-surface: #ffffff;
  --bimax-blog-soft: #f3f3f3;
  --bimax-blog-canvas: #fafafa;
}

.bimax-blog-breadcrumbs {
  margin-top: 20px;
  color: var(--bimax-blog-muted);
  font-size: 13px;
  line-height: 1.9;
}

.bimax-blog-breadcrumbs p {
  margin: 0;
  text-align: right !important;
}

.bimax-blog-breadcrumbs a {
  color: var(--bimax-blog-text);
  transition: color 180ms ease;
}

.bimax-blog-breadcrumbs a:hover {
  color: var(--bimax-blog-red);
}

.bimax-blog-breadcrumbs a:focus-visible,
.bimax-article-card a:focus-visible,
.bimax-section-heading a:focus-visible {
  outline: 2px solid var(--bimax-blog-red);
  outline-offset: 4px;
}

.bimax-article-card {
  min-width: 0;
  min-height: 100%;
  padding: 16px 20px 20px;
  background: var(--bimax-blog-surface);
  display: flex;
  flex-direction: column;
}

.bimax-article-card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #fff;
}

.bimax-article-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bimax-card-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #8a8a8a;
  font-size: 18px;
  font-weight: 700;
  background:
    linear-gradient(135deg, transparent 49.7%, rgba(230, 0, 0, 0.16) 50%, transparent 50.3%),
    #ededed;
}

.bimax-article-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 0;
}

/* Keep cached/older card markup visually aligned with the current compact card. */
.bimax-article-card-meta,
.bimax-article-card-excerpt {
  display: none;
}

.bimax-article-card-title {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  margin: 16px 0 12px;
  color: var(--bimax-blog-ink);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.65;
  text-align: center;
}

.bimax-article-card-title a {
  color: inherit;
  text-align: center;
}

.bimax-article-card-title a:hover {
  color: var(--bimax-blog-red);
}

.bimax-article-card-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 30px;
  color: #5c5c5c;
  font-size: 12px;
  font-weight: 500;
}

.bimax-article-card-stats time {
  font-variant-numeric: tabular-nums;
}

.bimax-article-card-stats span::before {
  display: inline-block;
  width: 3px;
  height: 3px;
  margin-left: 9px;
  border-radius: 50%;
  background: #a8a8a8;
  content: "";
  vertical-align: middle;
}

.bimax-article-card-link {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 5px;
  margin-top: auto;
  padding-top: 20px;
  color: var(--bimax-blog-red);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.bimax-article-card-link:hover {
  color: var(--bimax-blog-red-dark);
}

.bimax-article-card-footer {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 70px;
  margin-top: auto;
  color: #5c5c5c;
  font-size: 12px;
  font-weight: 500;
}

.bimax-article-card-footer time {
  font-variant-numeric: tabular-nums;
}

.bimax-article-card-footer .bimax-article-card-link {
  margin-top: 16px;
  padding-top: 0;
}

.bimax-article-card-footer .bimax-article-card-link span {
  display: none;
}

.bimax-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--bimax-blog-line);
}

.bimax-section-heading span {
  display: block;
  margin-bottom: 5px;
  color: var(--bimax-blog-red);
  font-size: 12px;
  font-weight: 600;
}

.bimax-section-heading h2 {
  margin: 0;
  color: var(--bimax-blog-ink);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.5;
}

.bimax-section-heading > a {
  color: var(--bimax-blog-text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #b8b8b8;
  text-underline-offset: 6px;
}

.bimax-section-heading > a:hover {
  color: var(--bimax-blog-red);
  text-decoration-color: var(--bimax-blog-red);
}

@media (prefers-reduced-motion: reduce) {
  .bimax-article-card a {
    transition: none;
  }
}

@media (max-width: 767.98px) {
  .bimax-blog-breadcrumbs {
    margin-top: 14px;
    font-size: 12px;
  }

  .bimax-article-card-body {
    padding: 0;
  }

  .bimax-article-card-title {
    min-height: 48px;
    margin-top: 12px;
    font-size: 15px;
  }

  .bimax-section-heading {
    align-items: center;
    margin-bottom: 20px;
  }
}
