/* ===== BLOG ===== */
.blog-hero {
  background: linear-gradient(135deg, #e8f0fe 0%, #f5f9ff 100%);
  padding: 64px 24px 48px;
  text-align: center;
}
.blog-hero__inner { max-width: 640px; margin: 0 auto; }
.blog-hero__tag {
  display: inline-block; font-size: 0.82rem; font-weight: 700; color: #1565c0;
  background: #fff; border: 1px solid #c5d8f0; padding: 5px 16px;
  border-radius: 999px; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.06em;
}
.blog-hero h1 { font-size: 2.4rem; font-weight: 900; color: #1a1a2e; margin-bottom: 12px; }
.blog-hero h1 span { color: #1565c0; }
.blog-hero p { font-size: 0.97rem; color: #666; line-height: 1.8; }

/* List */
.blog-list { padding: 64px 24px; background: #fff; }
.blog-list__inner { max-width: 1100px; margin: 0 auto; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Card */
.blog-card {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  background: #fff;
  border: 1px solid #eef2f8;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { box-shadow: 0 10px 32px rgba(21,101,192,0.13); transform: translateY(-4px); }

.blog-card--featured {
  grid-column: 1 / -1;
  flex-direction: row;
}
.blog-card--featured .blog-card__img { flex: 0 0 45%; }
.blog-card--featured .blog-card__body { padding: 32px; }

.blog-card__img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #e8f0fe;
  display: block;
  text-decoration: none;
}
.blog-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.blog-card:hover .blog-card__img img { transform: scale(1.05); }

.blog-card__badge {
  position: absolute; top: 12px; left: 12px;
  background: #f59e0b; color: #fff;
  font-size: 0.72rem; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
}

.blog-card__body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.blog-card__meta { font-size: 0.78rem; color: #aaa; margin-bottom: 8px; }
.blog-card__title { font-size: 1rem; font-weight: 700; color: #1a1a2e; margin-bottom: 8px; line-height: 1.4; }
.blog-card__title a { text-decoration: none; color: inherit; }
.blog-card__title a:hover { color: #1565c0; }
.blog-card__desc { font-size: 0.87rem; color: #666; line-height: 1.7; margin-bottom: 16px; flex: 1; }
.blog-card__btn {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.85rem; font-weight: 700; color: #1565c0;
  text-decoration: none; margin-top: auto;
}
.blog-card__btn:hover { text-decoration: underline; }

/* Detail */
.blog-detail { padding: 56px 24px; }
.blog-detail__inner { max-width: 820px; margin: 0 auto; }
.blog-detail__meta { font-size: 0.82rem; color: #aaa; margin-bottom: 12px; display: flex; gap: 16px; }
.blog-detail__header h1 { font-size: 2rem; font-weight: 800; color: #1a1a2e; margin-bottom: 12px; line-height: 1.3; }
.blog-detail__desc { font-size: 1rem; color: #666; line-height: 1.8; margin-bottom: 24px; }
.blog-detail__thumb { margin-bottom: 32px; border-radius: 14px; overflow: hidden; }
.blog-detail__thumb img { width: 100%; height: auto; display: block; }
.blog-detail__content { font-size: 0.97rem; line-height: 1.9; color: #333; }
.blog-detail__content h2 { font-size: 1.4rem; font-weight: 700; color: #1a1a2e; margin: 28px 0 12px; }
.blog-detail__content h3 { font-size: 1.15rem; font-weight: 700; color: #1a1a2e; margin: 20px 0 10px; }
.blog-detail__content img { max-width: 100%; border-radius: 8px; margin: 16px 0; }
.blog-detail__content p { margin-bottom: 14px; }
.blog-detail__back { margin-top: 40px; padding-top: 24px; border-top: 1px solid #eef2f8; }
.blog-detail__back a { color: #1565c0; text-decoration: none; font-weight: 600; }

/* Admin blog extras */
.blog-row-actions { display: flex; gap: 12px; margin-top: 4px; }
.blog-action-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.78rem; font-weight: 600; color: #1565c0; text-decoration: none;
}
.blog-action-link--edit { color: #2e7d32; }
.blog-action-link svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Blog form layout */
.blog-form__layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
}
.blog-form__section {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}
.blog-form__section-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1565c0;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e8f0fe;
}

/* Slug input */
.blog-slug-wrap { display: flex; align-items: center; gap: 0; }
.blog-slug-prefix {
  background: #f5f7fa; border: 1px solid #ddd; border-right: none;
  padding: 10px 12px; border-radius: 8px 0 0 8px; font-size: 0.85rem; color: #888;
  white-space: nowrap;
}
.blog-slug-input { border-radius: 0 8px 8px 0 !important; flex: 1; }
.blog-slug-status { margin-left: 8px; font-size: 0.8rem; font-weight: 600; white-space: nowrap; }

/* SEO bar */
.seo-bar { height: 4px; background: #e0e0e0; border-radius: 2px; margin-top: 6px; }
.seo-bar__fill { height: 100%; border-radius: 2px; transition: width 0.2s, background 0.2s; width: 0; }
.seo-counter { font-weight: 700; color: #1565c0; }

/* SEO preview */
.seo-preview { background: #f9fbff; border-radius: 8px; padding: 14px; }
.seo-preview__title { font-size: 1rem; color: #1a0dab; font-weight: 600; margin-bottom: 4px; line-height: 1.3; }
.seo-preview__url { font-size: 0.78rem; color: #006621; margin-bottom: 4px; }
.seo-preview__desc { font-size: 0.82rem; color: #545454; line-height: 1.5; }

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-card--featured { flex-direction: column; grid-column: auto; }
  .blog-form__layout { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-hero h1 { font-size: 1.8rem; }
}

/* Giai doan 2: bai viet lien quan + tieu de Montserrat */
.blog-detail__header h1 { font-family: 'Montserrat', sans-serif; }
.blog-related { padding: 0 24px 72px; background: #fff; }
.blog-related__inner { max-width: 1100px; margin: 0 auto; }
.blog-related h2 { font-family: 'Montserrat', sans-serif; font-size: 1.6rem; font-weight: 800; color: #1a1a2e; margin-bottom: 28px; text-align: center; }
