/* === MELA BLOG — blog.css ===
   Extends css/style.css. Uses the same variables, fonts, colors. */

.active-link { color: var(--yellow) !important; }

/* ── BLOG HERO (listing page) ── */
.blog-hero {
  background: var(--dark);
  color: var(--white);
  padding: 160px 0 64px;
  text-align: center;
}
.blog-hero h1 {
  font-family: var(--ff-display);
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 14px;
}
.blog-hero p {
  color: rgba(255,255,255,0.65);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ── BLOG LISTING GRID ── */
.blog-listing { background: var(--cream); }
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.post-card {
  display: block;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform var(--ease), box-shadow var(--ease);
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 10px 32px rgba(0,0,0,0.1); }
.post-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.post-card.featured .post-img { height: 100%; min-height: 320px; }
.post-card .post-img { height: 200px; overflow: hidden; }
.post-card .post-img img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.post-card.featured .post-card-body { justify-content: center; padding: 36px; }
.post-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 4px;
}
.post-card h2 {
  font-family: var(--ff-display);
  font-size: 1.8rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--dark);
}
.post-card h3 {
  font-family: var(--ff-display);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: var(--dark);
}
.post-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.55; }
.post-meta { font-size: 0.78rem; color: var(--muted); opacity: 0.7; margin-top: 4px; }

/* ── SINGLE POST ── */
.post-header {
  background: var(--dark);
  color: var(--white);
  padding: 150px 0 50px;
}
.post-header-inner { max-width: 760px; margin: 0 auto; }
.back-link {
  display: inline-block;
  color: var(--yellow);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}
.back-link:hover { text-decoration: underline; }
.post-header .post-tag { color: var(--yellow); margin-bottom: 12px; }
.post-header h1 {
  font-family: var(--ff-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 16px;
}
.post-byline { color: rgba(255,255,255,0.55); font-size: 0.88rem; }

.post-hero-img {
  max-width: 920px;
  margin: -28px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}
.post-hero-img img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.25);
}

.post-body {
  max-width: 720px;
  margin: 0 auto;
  padding-top: 64px;
  padding-bottom: 24px;
}
.post-lead {
  font-family: var(--ff);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--dark);
  line-height: 1.6;
  margin-bottom: 28px;
}
.post-body h2 {
  font-family: var(--ff-display);
  font-size: 1.9rem;
  letter-spacing: 0.02em;
  margin: 40px 0 16px;
  color: var(--dark);
}
.post-body h3 {
  font-family: var(--ff-display);
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  margin: 32px 0 12px;
}
.post-body p {
  font-size: 1.02rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 20px;
}
.post-quote {
  border-left: 4px solid var(--red);
  padding: 6px 0 6px 24px;
  margin: 32px 0;
  font-family: var(--ff-display);
  font-size: 1.4rem;
  letter-spacing: 0.01em;
  color: var(--dark);
  font-style: normal;
}
.post-img-block { margin: 32px 0; }
.post-img-block img { width: 100%; border-radius: 10px; height: 360px; object-fit: cover; }
.img-caption { display: block; font-size: 0.8rem; color: var(--muted); margin-top: 8px; text-align: center; }
.post-list {
  margin: 0 0 24px 0;
  padding-left: 0;
  list-style: none;
}
.post-list li {
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
  color: var(--text);
  position: relative;
}
.post-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}
.post-cta-block {
  margin: 36px 0 28px;
}
.post-cta-block .btn-primary {
  font-size: 1rem;
  padding: 15px 34px;
}

/* ── REWARDS CALLOUT ── */
.rewards-callout {
  background: #fdf5ec;
  border: 1.5px solid var(--yellow);
  border-radius: 12px;
  padding: 28px 30px;
  margin: 32px 0 64px;
  text-align: center;
}
.rewards-callout p {
  font-size: 1.05rem;
  margin-bottom: 18px;
  color: var(--dark);
}
.rewards-callout strong { color: var(--red); }
.rewards-callout .btn-primary {
  font-size: 1rem;
  padding: 15px 34px;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .post-card.featured { grid-column: 1 / -1; grid-template-columns: 1fr; }
  .post-card.featured .post-img { height: 240px; }
}
@media (max-width: 640px) {
  .post-grid { grid-template-columns: 1fr; }
  .blog-hero { padding: 130px 0 48px; }
  .post-header { padding: 120px 0 40px; }
  .post-hero-img img { height: 240px; }
  .post-hero-img { margin-top: -16px; }
}
