/* ==========================================================================
   BLOG / CẨM NANG & HƯỚNG DẪN TẠO THIỆP ONLINE
   ========================================================================== */

.blog-page .legal-main {
  padding-top: 40px;
  padding-bottom: 72px;
  padding-inline: 24px;
}

.blog-hero {
  max-width: 780px;
  margin-bottom: 36px;
}

.blog-eyebrow {
  margin: 0 0 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rose, #a44d58);
}

.blog-hero h1 {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink, #282724);
}

.blog-hero h1 em {
  font-style: italic;
  color: var(--rose, #a44d58);
}

.blog-hero p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted, #6f6c66);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  background: var(--surface, #fffdf9);
  border: 1px solid var(--line, rgba(40, 39, 36, .1));
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.blog-card:hover {
  transform: translateY(-2px);
  border-color: rgba(164, 77, 88, .35);
  box-shadow: 0 18px 36px -22px rgba(40, 39, 36, .28);
}

.blog-card-thumb {
  aspect-ratio: 16 / 10;
  width: 100%;
  overflow: hidden;
  background: #f5efe7;
  border-bottom: 1px solid var(--line, rgba(40, 39, 36, .08));
}

.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.blog-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 22px 24px 24px;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--muted, #6f6c66);
}

.blog-card-tag {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(164, 77, 88, .1);
  color: var(--rose, #a44d58);
  font-weight: 600;
}

.blog-card-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.28;
  color: var(--ink, #282724);
}

.blog-card-excerpt {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted, #6f6c66);
}

.blog-card-read {
  margin-top: auto;
  padding-top: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--rose, #a44d58);
}

/* Article Detail */
.blog-article {
  max-width: 820px;
  margin-inline: auto;
}

.blog-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 13.5px;
  color: var(--muted, #6f6c66);
}

.blog-breadcrumb a {
  color: var(--rose, #a44d58);
  text-decoration: none;
  font-weight: 500;
}

.blog-breadcrumb a:hover {
  text-decoration: underline;
}

.blog-article h1 {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink, #282724);
}

.blog-article-lead {
  margin: 0 0 24px;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--muted, #6f6c66);
}

.blog-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 12px 0;
  margin-bottom: 28px;
  border-top: 1px solid var(--line, rgba(40, 39, 36, .1));
  border-bottom: 1px solid var(--line, rgba(40, 39, 36, .1));
  font-size: 13.5px;
  color: var(--muted, #6f6c66);
}

.blog-figure {
  margin: 24px 0 28px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line, rgba(40, 39, 36, .12));
  background: var(--surface, #fffdf9);
}

.blog-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.blog-figure--mobile {
  max-width: 380px;
  margin-inline: auto;
  box-shadow: 0 18px 40px -24px rgba(40, 39, 36, .35);
}

.blog-figure--mobile figcaption {
  text-align: center;
}

.blog-figure figcaption {
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted, #6f6c66);
  border-top: 1px solid var(--line, rgba(40, 39, 36, .08));
}

.blog-article h2 {
  margin: 34px 0 12px;
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink, #282724);
}

.blog-article h3 {
  margin: 22px 0 8px;
  font-size: 17.5px;
  font-weight: 600;
  color: var(--ink, #282724);
}

.blog-article p,
.blog-article li {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink-soft, #3f3d38);
}

.blog-article ul,
.blog-article ol {
  padding-left: 22px;
  margin: 10px 0 18px;
  display: grid;
  gap: 8px;
}

.blog-sample-box {
  margin: 16px 0 22px;
  padding: 18px 20px;
  border-radius: 14px;
  border-left: 3px solid var(--rose, #a44d58);
  background: rgba(164, 77, 88, .05);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft, #3f3d38);
}

.blog-table-wrap {
  overflow-x: auto;
  margin: 20px 0 26px;
  border-radius: 14px;
  border: 1px solid var(--line, rgba(40, 39, 36, .12));
}

.blog-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.blog-table th,
.blog-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line, rgba(40, 39, 36, .08));
}

.blog-table th {
  font-weight: 600;
  background: rgba(164, 77, 88, .06);
  color: var(--ink, #282724);
}

.blog-table tr:last-child td {
  border-bottom: 0;
}

.blog-cta-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 36px;
  padding: 26px 28px;
  border-radius: 20px;
  background: #252522;
  color: #f9f5ef;
}

.blog-cta-box h3 {
  margin: 0 0 4px;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  color: #f9f5ef;
}

.blog-cta-box p {
  margin: 0;
  font-size: 14.5px;
  color: #c9c5bd;
}

.blog-cta-btn {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  background: #f0d2ae;
  color: #252522;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.blog-cta-btn:hover {
  background: #f6e3c4;
}

.blog-related {
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--line, rgba(40, 39, 36, .12));
}

.blog-related h2 {
  margin: 0 0 18px;
  font-size: 22px;
}

.blog-related-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.blog-related-link {
  display: block;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--line, rgba(40, 39, 36, .1));
  background: var(--surface, #fffdf9);
  color: var(--ink, #282724);
  font-weight: 500;
  font-size: 14.5px;
  line-height: 1.45;
  text-decoration: none;
}

.blog-related-link:hover {
  border-color: var(--rose, #a44d58);
  color: var(--rose, #a44d58);
}

/* Dark theme */
html[data-theme="dark"] .blog-hero h1,
html[data-theme="dark"] .blog-card-title,
html[data-theme="dark"] .blog-article h1,
html[data-theme="dark"] .blog-article h2,
html[data-theme="dark"] .blog-article h3,
html[data-theme="dark"] .blog-table th,
html[data-theme="dark"] .blog-related-link {
  color: var(--ms-ink);
}

html[data-theme="dark"] .blog-eyebrow,
html[data-theme="dark"] .blog-card-read,
html[data-theme="dark"] .blog-breadcrumb a {
  color: var(--ms-rose-glow);
}

html[data-theme="dark"] .blog-card,
html[data-theme="dark"] .blog-figure,
html[data-theme="dark"] .blog-related-link {
  background: var(--ms-panel);
  border-color: var(--ms-line);
}

html[data-theme="dark"] .blog-card-tag {
  background: rgba(229, 187, 192, .12);
  color: var(--ms-rose-glow);
}

html[data-theme="dark"] .blog-hero p,
html[data-theme="dark"] .blog-card-meta,
html[data-theme="dark"] .blog-card-excerpt,
html[data-theme="dark"] .blog-article-lead,
html[data-theme="dark"] .blog-article-meta,
html[data-theme="dark"] .blog-figure figcaption,
html[data-theme="dark"] .blog-breadcrumb {
  color: var(--ms-muted);
}

html[data-theme="dark"] .blog-article p,
html[data-theme="dark"] .blog-article li,
html[data-theme="dark"] .blog-table td,
html[data-theme="dark"] .blog-sample-box {
  color: var(--ms-ink-soft);
}

html[data-theme="dark"] .blog-sample-box {
  background: rgba(229, 187, 192, .08);
  border-left-color: var(--ms-rose-glow);
}

@media (max-width: 768px) {
  .blog-page .legal-main {
    padding-top: 28px;
    padding-bottom: 52px;
    padding-inline: 18px;
  }
  .blog-grid,
  .blog-related-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .blog-card-body {
    padding: 18px;
  }
  .blog-cta-box {
    padding: 22px 18px;
  }
}
