/* ================================================================
   TAGS / CATEGORY PAGE — /tags/:slug
   Extends public/style.css.
================================================================ */

/* ── Filter bar (re-used from listing.css) ────────────────────── */
.news-filter-bar {
  padding-top: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e5e5;
  margin-bottom: 0;
}

/* ── Tag card grid ────────────────────────────────────────────── */
.tag-card {
  display: flex;
  flex-direction: column;
}

/* Image wrapper: lock to 16:9 so every card image is the same height */
.tag-card .img-holder {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.tag-card .img-holder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}

.tag-card:hover .img-holder img {
  transform: scale(1.03);
}

/* Text block */
.tag-card .tag-card-body {
  padding-top: 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tag-card .tag-card-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 4px;
}

.tag-card h3 {
  font-family: Starling, serif !important;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 10px;
}

.tag-card h3 a {
  color: var(--text);
}

.tag-card h3 a:hover {
  color: var(--red);
}

.tag-card .tag-card-excerpt {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin: 0 0 6px;
  flex: 1;
}

.tag-card time {
  font-size: 12px;
  color: #999;
  display: block;
}

/* ── Page heading ─────────────────────────────────────────────── */
.tag-page-heading h1 {
  font-family: Starling, serif !important;
  font-size: 28px;
  font-weight: 800;
}

/* ── Pagination — V1 style ────────────────────────────────────── */
.atl-pagination {
  display: flex;
  align-items: center;
  padding: 20px 0;
  font-size: 18px;
  font-family: Starling, serif;
  font-style: italic;
  color: var(--text);
}

.atl-pagination ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  padding-left: 20px;
  margin: 0;
}

.atl-pagination ul li {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 6px;
}

.atl-pagination ul li a {
  height: 30px;
  width: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: acumin-pro-wide, sans-serif;
  font-size: 14px;
  font-style: normal;
  border-radius: 50%;
  color: var(--text);
  text-decoration: none;
}

.atl-pagination ul li a:hover {
  background: #d8dddf;
  text-decoration: none;
}

.atl-pagination ul li.current {
  height: 30px;
  width: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: acumin-pro-wide, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  border-bottom: 1px solid #e36764;
  color: var(--text);
}

/* Prev / Next arrows — no circular background */
.atl-pagination ul li.atl-pg-arrow a {
  width: auto;
  border-radius: 0;
  font-size: 12px;
  color: var(--red);
}

.atl-pagination ul li.atl-pg-arrow a:hover {
  background: none;
  opacity: .7;
}

.atl-pagination ul li.atl-pg-ellipsis {
  font-family: acumin-pro-wide, sans-serif;
  font-size: 14px;
  font-style: normal;
  color: #aaa;
  pointer-events: none;
  width: 20px;
  justify-content: center;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 575px) {
  .tag-card h3 {
    font-size: 18px;
  }

  .atl-pagination {
    font-size: 15px;
  }

  .atl-pagination ul li {
    padding: 3px 4px;
  }
}
