/* ═══════════════════════════════════════════════
   Rise-N-Shine Services — Category / Tag Page Styles
   Loaded only by category-template.html and tag pages.
   ═══════════════════════════════════════════════ */

/* ── TAXONOMY BANNER ── */
.taxonomy-banner {
  background: linear-gradient(135deg, #1A4D32 0%, #2D7A4F 55%, #3a9460 100%);
  padding: 4rem 2rem; text-align: center; position: relative; overflow: hidden;
}
.taxonomy-banner::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Ccircle cx='40' cy='40' r='1' fill='rgba(255,255,255,0.04)'/%3E%3C/g%3E%3C/svg%3E") repeat;
  pointer-events: none;
}
.taxonomy-banner-inner { max-width: var(--max-w); margin: 0 auto; position: relative; }
.taxonomy-type {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 0.75rem;
}
.taxonomy-banner h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700; color: #fff; line-height: 1.2; margin-bottom: 1rem;
}
.taxonomy-banner p {
  color: rgba(255,255,255,0.75); font-size: 1.05rem;
  max-width: 560px; margin: 0 auto 1.75rem; line-height: 1.7;
}
.taxonomy-count {
  display: inline-block;
  background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.8);
  font-size: 0.82rem; font-weight: 600; padding: 0.35rem 1rem;
  border-radius: 2rem; border: 1px solid rgba(255,255,255,0.2);
}

/* ── TAXONOMY FILTER BAR ── */
.taxonomy-nav {
  background: #fff; border-bottom: 1px solid rgba(0,0,0,0.07);
  padding: 1rem 2rem;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem; flex-wrap: wrap;
}
.taxonomy-nav-label {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--warm-gray); margin-right: 0.5rem;
}
.tax-pill {
  font-size: 0.82rem; font-weight: 600; padding: 0.3rem 0.9rem; border-radius: 2rem;
  border: 1.5px solid rgba(45,122,79,0.25); color: var(--green-text);
  text-decoration: none; transition: background 0.2s, border-color 0.2s;
}
.tax-pill:hover, .tax-pill.active { background: var(--green); color: #fff; border-color: var(--green); }

/* ── POSTS SECTION ── */
.posts-section { padding: 4rem 2rem 5rem; background: var(--cream); }
.posts-inner { max-width: var(--max-w); margin: 0 auto; }

/* Featured post (first card, full-width 2-col) */
.featured-post {
  background: #fff; border-radius: 1.5rem; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  margin-bottom: 2.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.featured-post:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.1); }
.featured-post-img {
  aspect-ratio: 4/3; background: var(--green-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; position: relative; overflow: hidden;
}
.featured-post-img img { width: 100%; height: 100%; object-fit: cover; }
.featured-label {
  position: absolute; top: 1rem; left: 1rem;
  background: var(--gold); color: var(--charcoal);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 0.3rem 0.85rem; border-radius: 2rem;
}
.featured-post-body {
  padding: 2.5rem; display: flex; flex-direction: column; justify-content: center;
}
.featured-category {
  display: inline-block; background: var(--green); color: #fff;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 0.3rem 0.85rem; border-radius: 2rem;
  text-decoration: none; margin-bottom: 1rem; align-self: flex-start;
}
.featured-post-body h2 {
  font-family: 'Playfair Display', serif; font-size: 1.55rem; font-weight: 700;
  line-height: 1.3; color: var(--charcoal); margin-bottom: 1rem;
}
.featured-post-body p { font-size: 0.95rem; line-height: 1.75; color: var(--warm-gray); margin-bottom: 1.5rem; flex: 1; }
.featured-meta {
  font-size: 0.8rem; color: var(--warm-gray); margin-bottom: 1rem;
  display: flex; gap: 0.75rem; align-items: center;
}
.featured-meta span::before { content: '·'; margin-right: 0.75rem; }
.featured-meta span:first-child::before { content: none; }

/* ── CATEGORY RESPONSIVE ── */
@media (max-width: 768px) {
  .featured-post { grid-template-columns: 1fr; }
  .featured-post-img { aspect-ratio: 16/9; }
}
