/* =========================================
   TAG PAGE – OASIS THEME
   ========================================= */


.tag-page {
  background: var(--oasis-bg);
}

/* =========================================
   HERO
   ========================================= */

.tag-hero {
  width: 100%;
  margin: 0 auto 3rem;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
  text-align: center;
  padding-top: 4rem;
  padding-bottom: 3.5rem;
}

.tag-hero-cover {
  display: none; /* hide background bar */
}

.tag-hero-inner {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tag-label {
  display: none;
}

/* BIG CENTER TITLE */
.tag-title {
  font-size: clamp(2.6rem, 4vw, 3.2rem);
  line-height: 1.15;
  font-weight: 800;
  color: var(--oasis-text);
  text-align: center;
  margin: 0 auto;
}

.tag-description {
  margin-top: 1rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--oasis-text-muted);
  max-width: 650px;
  text-align: center;
}

/* POST COUNTER */
.tag-stat-chip {
  margin: 1.4rem auto 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--oasis-surface-soft);
  color: var(--oasis-text-muted);
}

/* =========================================
   POSTS GRID
   ========================================= */

.tag-posts {
  max-width: 1200px;
  margin: 0 auto;
}

.tag-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

/* Card */

.tag-post-card {
  background: var(--oasis-surface);
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tag-post-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.tag-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.12);
  border-color: rgba(148, 163, 184, 0.4);
}

/* MEDIA */

.tag-post-media {
  position: relative;
  padding-top: 60%;
}

.tag-post-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* BODY */

.tag-post-body {
  padding: 1.2rem 1.25rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.tag-post-title {
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--oasis-text);
}

.tag-post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--oasis-text-muted);
}

.tag-post-tag {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--color-accent-1);
  color: var(--color-text-light);
}

.tag-post-excerpt {
  margin-top: 0.25rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--oasis-text-muted);
}

.tag-post-cta {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--oasis-accent);
}

/* =========================================
   Pagination
   ========================================= */

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.pagination a,
.pagination span {
  min-width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  text-decoration: none;
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: var(--oasis-text-muted);
  background: #ffffff;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.pagination a:hover {
  border-color: var(--oasis-accent-soft);
  color: var(--oasis-accent);
}

.pagination .page-number.current {
  border-color: var(--oasis-accent);
  background: var(--oasis-accent);
  color: #ffffff;
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 960px) {
  .tag-posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .tag-page {
    padding: 3rem 1.25rem 4rem;
  }

  .tag-posts-grid {
    grid-template-columns: 1fr;
  }

  .tag-post-body {
    padding: 1.05rem 1.1rem 1rem;
  }
}
