/* ── Blog styles — VersaBold Innovations ── */

/* ── Layout ── */
.blog-main {
  min-height: 80vh;
  background: var(--c-bg, #F8FAFC);
}

.blog-hero {
  background: var(--c-primary, #0F172A);
  color: #fff;
  padding: 5rem 1.5rem 3.5rem;
  text-align: center;
}

.blog-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin: 0.25rem 0 0.75rem;
  color: #fff;
}

.blog-hero__sub {
  font-size: 1.1rem;
  opacity: 0.75;
  max-width: 540px;
  margin: 0 auto;
}

.blog-section {
  padding: 3.5rem 1.5rem 5rem;
}

/* ── Grid ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

/* ── Card ── */
.blog-card {
  background: var(--c-surface, #fff);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(15,23,42,.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(15,23,42,.12);
}

.blog-card__img-wrap img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.blog-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.blog-card__date {
  font-size: 0.78rem;
  color: var(--c-accent, #0369A1);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.blog-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

.blog-card__title a {
  color: var(--c-primary, #0F172A);
  text-decoration: none;
}

.blog-card__title a:hover {
  color: var(--c-accent, #0369A1);
}

.blog-card__excerpt {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.blog-card__cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-cta, #F97316);
  text-decoration: none;
  margin-top: 0.5rem;
}

.blog-card__cta:hover {
  text-decoration: underline;
}

/* ── States ── */
.blog-loader,
.blog-empty {
  text-align: center;
  padding: 3rem;
  color: #64748b;
  font-size: 1rem;
}

/* ── Single post ── */
.post-container-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.post-cover img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.post-header {
  margin-bottom: 2rem;
}

.post-date {
  font-size: 0.8rem;
  color: var(--c-accent, #0369A1);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.post-title {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--c-primary, #0F172A);
  line-height: 1.2;
  margin: 0.5rem 0 1rem;
}

.post-excerpt {
  font-size: 1.1rem;
  color: #475569;
  line-height: 1.7;
  border-left: 3px solid var(--c-cta, #F97316);
  padding-left: 1rem;
  margin: 0;
}

.post-body {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--c-text, #020617);
  margin-top: 2rem;
}

.post-body h2, .post-body h3 {
  color: var(--c-primary, #0F172A);
  margin-top: 2rem;
}

.post-body a {
  color: var(--c-accent, #0369A1);
}

.post-body img {
  max-width: 100%;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.post-body pre {
  background: #0F172A;
  color: #e2e8f0;
  padding: 1.25rem;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.88rem;
}

.post-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

.btn-back {
  font-weight: 600;
  color: var(--c-accent, #0369A1);
  text-decoration: none;
}

.btn-back:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}
