/* ===== Category Hero ===== */
.category-hero {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}
@media (min-width: 640px) {
  .category-hero { flex-direction: row; align-items: center; justify-content: space-between; }
}
.category-hero__title { font-size: 2rem; font-weight: 700; color: var(--ink); text-transform: capitalize; }
@media (min-width: 640px) { .category-hero__title { font-size: 2.5rem; } }
.category-hero__desc { font-size: 0.8rem; color: var(--ink-soft); margin-top: 0.5rem; max-width: 36rem; }
.category-hero__back { flex-shrink: 0; align-self: flex-start; }

.category-archive { padding-top: 1.5rem; padding-bottom: 3rem; }
.category-archive__footer { padding-top: 2rem; border-top: 1px solid var(--border); display: flex; justify-content: center; margin-top: 2.5rem; }

/* ===== Bento Grid ===== */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: stretch;
}
@media (min-width: 768px) { .bento-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .bento-grid { grid-template-columns: 1fr 1fr 1fr; } }

/* ===== Article Card ===== */
.article-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
  transition: box-shadow .3s ease;
  background: var(--dark-2);
}
.article-card:hover { box-shadow: 0 20px 40px rgba(0,0,0,.18); }
@media (min-width: 768px) { .article-card.card--span2 { grid-column: span 2; } }

.card--h-vertical { min-height: 320px; }
.card--h-horizontal { min-height: 360px; }
.card--h-compact { min-height: 260px; }
.card--h-small { min-height: 175px; }
@media (min-width: 640px) {
  .card--h-vertical { min-height: 360px; }
  .card--h-horizontal { min-height: 420px; }
  .card--h-compact { min-height: 290px; }
  .card--h-small { min-height: 195px; }
}

/* Selector is intentionally doubled up. Elementor's frontend.css ships
   `.elementor img { height: auto; border-radius: 0; border: none }` at the same
   specificity as a single class, and loads after the theme - so inside an
   Elementor widget it wins and collapses these fill images to zero height. */
.article-card .article-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}
.article-card:hover .article-card__img { transform: scale(1.05); }

.article-card__scrim {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 1.25rem;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.95), rgba(0,0,0,.5) 55%, rgba(0,0,0,.08));
}
/* The badge is a child of a column flex container, so it would stretch to the
   full card width without this. It must hug its own text. */
.article-card__scrim .badge,
.recent-news-widget__body .badge { align-self: flex-start; }

.article-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  transition: color .2s ease;
}
.card--span2 .article-card__title { font-size: 1.4rem; }
@media (min-width: 1024px) { .card--span2 .article-card__title { font-size: 1.7rem; } }
.article-card:hover .article-card__title { color: #F4CAD3; }
.article-card__excerpt {
  font-size: 0.72rem;
  color: var(--border);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card__footer {
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255,255,255,.2);
  display: flex;
  justify-content: flex-end;
}
.article-card__footer span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
}
.article-card:hover .article-card__footer span { color: #F4CAD3; }

/* ===== Recent News Widget (lifestyle category slot) ===== */
.recent-news-widget {
  grid-column: span 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.4rem;
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(4px);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0,0,0,.08);
}
@media (min-width: 1024px) { .recent-news-widget { grid-column: span 2; } }
.recent-news-widget__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0,0,0,.08);
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
}
.recent-news-widget__head h2 { font-family: var(--font-body); font-size: 1.3rem; font-weight: 700; color: var(--ink); }
.recent-news-widget__head a { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.recent-news-widget__head a:hover { color: var(--accent); }
.recent-news-widget__list { display: flex; flex-direction: column; }
.recent-news-widget__item { display: flex; align-items: center; gap: 1rem; padding: 0.5rem; border-radius: var(--radius-sm); transition: background .2s ease; }
.recent-news-widget__item:hover { background: rgba(0,0,0,.04); }
.recent-news-widget__thumb { width: 80px; height: 80px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; background: var(--border); }
.recent-news-widget__thumb img { width: 100%; height: 100%; object-fit: cover; }
.recent-news-widget__body { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.recent-news-widget__title { font-size: 0.9rem; font-weight: 700; color: #111827; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.recent-news-widget__item:hover .recent-news-widget__title { color: var(--accent); }

/* ===== Small article card (compact fill slots) ===== */
.article-card-small {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0,0,0,.08);
  color: #fff;
  min-height: 175px;
}
