/* Shared styles cho Blog PB (index + bài viết). Tách riêng, không đụng styles.css */
:root {
  --rose: #e11d48; --pink: #ec4899; --ink: #15131c; --muted: #6b7280;
  --line: #f1e6ea; --soft: #fff1f4;
  --grad: linear-gradient(135deg, #f43f5e 0%, #ec4899 100%);
  --shadow: 0 20px 50px -20px rgba(225, 29, 72, 0.35);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink); background: #fff; line-height: 1.7; -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }

/* NAV */
header.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.85); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 18px; height: 70px; }
.logo { font-weight: 900; font-size: 28px; letter-spacing: -0.5px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-menu { display: flex; flex: 1; align-items: center; gap: 26px; margin-left: 26px; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { font-weight: 600; font-size: 15px; color: #3b3744; }
.nav-links a:hover, .nav-links a.active { color: var(--rose); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 15px; border-radius: 999px; padding: 11px 22px; cursor: pointer; border: none; transition: transform 0.15s, box-shadow 0.2s; white-space: nowrap; }
.btn-ghost { background: transparent; color: var(--rose); border: 1.5px solid #f6c9d4; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-white { background: #fff; color: var(--rose); }
.btn-white:hover { transform: translateY(-2px); }
.menu-toggle { display: none; background: none; border: none; font-size: 26px; color: var(--rose); cursor: pointer; }

/* BLOG INDEX */
.blog-head { background: linear-gradient(180deg, #fff6f8 0%, #fff 100%); padding: 54px 0 40px; border-bottom: 1px solid var(--line); text-align: center; }
.blog-head h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; letter-spacing: -0.5px; }
.blog-head p { color: var(--muted); font-size: 17px; margin-top: 12px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding: 44px 0 60px; }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: transform 0.15s, box-shadow 0.2s; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgba(225, 29, 72, 0.3); }
.post-cover { height: 150px; display: grid; place-items: center; font-size: 56px; }
.post-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-tag { align-self: flex-start; background: var(--soft); color: var(--rose); font-weight: 700; font-size: 12px; padding: 5px 12px; border-radius: 999px; margin-bottom: 12px; }
.post-body h2 { font-size: 19px; font-weight: 800; line-height: 1.3; letter-spacing: -0.3px; }
.post-body p { font-size: 14.5px; color: var(--muted); margin-top: 10px; flex: 1; }
.post-more { color: var(--rose); font-weight: 700; font-size: 14px; margin-top: 16px; }

/* ARTICLE */
.art-hero { background: linear-gradient(180deg, #fff6f8 0%, #fff 100%); padding: 50px 0 30px; border-bottom: 1px solid var(--line); }
.art-hero .wrap { max-width: 800px; }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumb a:hover { color: var(--rose); }
.art-tag { display: inline-block; background: var(--soft); color: var(--rose); font-weight: 700; font-size: 13px; padding: 6px 14px; border-radius: 999px; margin-bottom: 16px; }
h1.art-title { font-size: clamp(28px, 4.4vw, 44px); line-height: 1.15; font-weight: 800; letter-spacing: -0.5px; }
.art-meta { color: var(--muted); font-size: 14px; margin-top: 14px; }
article.body { max-width: 800px; margin: 0 auto; padding: 36px 22px 20px; }
article.body p { font-size: 17px; color: #34313c; margin: 0 0 18px; }
article.body h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.3px; margin: 38px 0 14px; }
article.body h3 { font-size: 19px; font-weight: 700; margin: 24px 0 10px; }
article.body b { color: var(--ink); }
article.body ul { margin: 0 0 18px; padding-left: 4px; list-style: none; }
article.body ul li { position: relative; padding-left: 28px; margin-bottom: 12px; font-size: 16.5px; color: #34313c; }
article.body ul li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--rose); font-weight: 800; }
.lede { font-size: 19px !important; color: #4b4753 !important; }
.callout { background: var(--soft); border: 1px solid #fbd6df; border-radius: 16px; padding: 18px 22px; margin: 24px 0; }
.callout p { margin: 0; font-size: 16px; }
.callout b { color: var(--rose); }
.steps { display: grid; gap: 16px; margin: 22px 0 8px; }
.step { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; }
.step .num { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; background: var(--grad); color: #fff; font-weight: 900; font-size: 17px; display: grid; place-items: center; }
.step h3 { margin: 0 0 4px; font-size: 17px; }
.step p { margin: 0; font-size: 15px; color: var(--muted); }
.faq { border-top: 1px solid var(--line); margin-top: 14px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 2px; }
.faq summary { font-weight: 700; font-size: 16.5px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--rose); font-weight: 800; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 2px; font-size: 16px; color: #4b4753; }

/* CTA */
.cta-band { margin: 40px 0 70px; }
.cta-inner { background: var(--grad); border-radius: 24px; padding: 44px 30px; text-align: center; color: #fff; box-shadow: var(--shadow); }
.cta-inner h2 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; }
.cta-inner p { opacity: 0.94; margin: 12px auto 24px; max-width: 480px; }
.badges-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.store-badge { display: inline-flex; align-items: center; gap: 12px; min-width: 200px; background: rgba(0,0,0,0.28); border: 1px solid rgba(255,255,255,0.2); color: #fff; border-radius: 14px; padding: 12px 22px; transition: transform 0.15s; }
.store-badge:hover { transform: translateY(-2px); }
.store-badge svg { width: 26px; height: 26px; flex-shrink: 0; }
.store-badge .android-ic { color: #3ddc84; }
.store-badge .tt { display: flex; flex-direction: column; line-height: 1.15; }
.store-badge .tt small { font-size: 10px; opacity: 0.85; }
.store-badge .tt strong { font-size: 17px; }

/* FOOTER */
footer { background: #15131c; color: #c9c6d1; padding: 50px 0 26px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.foot-brand .logo { font-size: 26px; }
.foot-brand p { font-size: 13.5px; color: #9a96a6; margin-top: 12px; max-width: 320px; }
.foot-col h4 { color: #fff; font-size: 14px; margin-bottom: 14px; }
.foot-col a { display: block; font-size: 13.5px; color: #9a96a6; margin-bottom: 9px; }
.foot-col a:hover { color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; border-top: 1px solid #2a2733; margin-top: 36px; padding-top: 20px; font-size: 13px; color: #7d7a88; flex-wrap: wrap; gap: 8px; }

@media (max-width: 960px) {
  .menu-toggle { display: block; margin-left: auto; }
  .nav-menu { display: none; }
  .nav-menu.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 14px;
    position: absolute; top: 70px; left: 0; right: 0; margin-left: 0;
    background: #fff; padding: 18px 22px; border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -18px rgba(0, 0, 0, 0.25);
  }
  .nav-menu.open .nav-links { flex-direction: column; gap: 14px; }
  .nav-menu.open .nav-cta { margin-left: 0; flex-direction: column; gap: 10px; }
  .nav-menu.open .nav-cta .btn { width: 100%; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .post-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
.post-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.post-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}
