/* =========================================================
   blog.styles.css — Blog page specific rules
   ========================================================= */

/* ---- Featured post ---- */
.blog-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 32px;
}
.blog-featured__img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  display: block;
}
.blog-featured__body {
  padding: 28px;
}
.blog-featured__title {
  font-size: 22px;
  margin: 12px 0 10px;
  line-height: 1.3;
}
.blog-featured__excerpt {
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 18px;
}

/* ---- Post grid ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .35);
  border-color: var(--orange);
}
.blog-card__img {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.blog-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.blog-card__body {
  padding: 16px 16px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card__body h3 {
  font-size: 15px;
  margin: 10px 0 8px;
  line-height: 1.3;
}
.blog-card__body h3 a {
  color: inherit;
  text-decoration: none;
}
.blog-card__body h3 a:hover {
  color: var(--orange);
}
.blog-card__body p {
  font-size: 13px;
  color: var(--text-2);
  flex: 1;
  line-height: 1.6;
}
.blog-card__more {
  margin-top: 12px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.blog-card__more:hover {
  text-decoration: underline;
}

/* ---- Category pill ---- */
.blog-cat {
  display: inline-flex;
  align-items: center;
  background: rgba(245, 158, 11, .14);
  color: var(--orange);
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .5px;
  padding: 4px 9px;
  border-radius: 6px;
}

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured__img { min-height: 200px; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .blog-grid { grid-template-columns: 1fr; }
}
