/* ═══════════════════════════════════════════
   BLOG / TIN TỨC — ICC Hà Nội
   Dùng chung biến màu với css/styles.css
   ═══════════════════════════════════════════ */

/* ── Breadcrumb ── */
.crumb{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:13.5px;color:var(--muted);padding:22px 0 4px}
.crumb a{color:var(--muted);text-decoration:none;transition:color .2s ease}
.crumb a:hover{color:var(--green)}
.crumb span{opacity:.5}
.crumb em{font-style:normal;color:var(--ink);font-weight:600}

/* ══ TRANG DANH SÁCH ══ */
.blog{background:#F7F9FB;min-height:70vh}
.blog-wrap{padding-bottom:80px}
.blog .head-center{padding-top:16px;margin-bottom:8px}
.blog-tools{margin:28px 0 34px;display:flex;flex-direction:column;gap:16px}
.blog-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:24px}

.blog-card{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 2px 8px -4px rgba(20,32,46,.12);transition:transform .28s cubic-bezier(.22,.61,.36,1),box-shadow .28s ease}
.blog-card:hover{transform:translateY(-4px);box-shadow:0 20px 40px -22px rgba(15,38,71,.4)}
.bc-img{display:block;aspect-ratio:3/2;overflow:hidden;background:radial-gradient(120% 120% at 50% 22%,#fff 0%,#EDF1F5 100%)}
.bc-img img{width:100%;height:100%;object-fit:cover;object-position:center;display:block;transition:transform .45s ease}
.blog-card:hover .bc-img img{transform:scale(1.05)}
.bc-body{padding:20px 20px 22px;display:flex;flex-direction:column;flex:1}
.bc-cat{display:inline-block;align-self:flex-start;background:var(--bg-green);color:var(--green);font-size:11.5px;font-weight:700;padding:4px 11px;border-radius:100px;margin-bottom:11px}
.bc-body h2{font-size:17px;font-weight:700;line-height:1.4;margin-bottom:9px}
.bc-body h2 a{color:var(--navy);text-decoration:none;transition:color .2s ease}
.bc-body h2 a:hover{color:var(--green)}
.bc-body p{font-size:13.5px;line-height:1.6;color:var(--muted);margin-bottom:16px}
.bc-foot{display:flex;align-items:center;justify-content:space-between;margin-top:auto;padding-top:14px;border-top:1px solid var(--line)}
.bc-foot time{font-size:12.5px;color:var(--muted)}
.bc-more{font-size:13.5px;font-weight:700;color:var(--green);text-decoration:none;transition:gap .2s ease}
.bc-more:hover{color:var(--green);opacity:.8}
.blog-empty{text-align:center;padding:50px 20px;font-size:15px;color:var(--muted);line-height:1.7}

/* ══ TRANG BÀI VIẾT ══ */
.post{background:#fff}
.post-wrap{max-width:820px;padding-bottom:70px}
.post-head{margin:14px 0 26px}
.post-cat{display:inline-block;background:var(--bg-green);color:var(--green);font-size:12px;font-weight:700;padding:5px 13px;border-radius:100px;margin-bottom:16px}
.post-head h1{font-size:34px;font-weight:800;line-height:1.25;color:var(--navy);letter-spacing:-.01em;margin-bottom:14px}
.post-meta{display:flex;align-items:center;gap:9px;font-size:13.5px;color:var(--muted)}
.post-meta .dot{opacity:.5}
.post-hero{margin:0 0 32px;border-radius:16px;overflow:hidden;background:radial-gradient(120% 120% at 50% 22%,#fff 0%,#EDF1F5 100%);border:1px solid var(--line)}
.post-hero img{width:100%;height:auto;max-height:440px;object-fit:contain;display:block}

.post-body{font-size:16px;line-height:1.8;color:var(--ink)}
.post-body .lede{font-size:17.5px;line-height:1.75;color:var(--ink);font-weight:600;padding:20px 22px;background:#F7F9FB;border-left:4px solid var(--green);border-radius:0 10px 10px 0;margin-bottom:30px}
.post-body h2{font-size:23px;font-weight:800;color:var(--navy);line-height:1.35;margin:38px 0 15px;padding-top:6px;scroll-margin-top:90px}
.post-body p{margin-bottom:15px;color:#2B3A4D}

/* Mục lục */
.toc{background:#F7F9FB;border:1px solid var(--line);border-radius:12px;padding:20px 24px;margin-bottom:34px}
.toc b{display:block;font-size:14px;color:var(--navy);margin-bottom:12px;font-weight:800;letter-spacing:.02em}
.toc ol{margin:0;padding-left:20px}
.toc li{margin-bottom:8px;font-size:14.5px;line-height:1.5}
.toc a{color:var(--muted);text-decoration:none;transition:color .2s ease}
.toc a:hover{color:var(--green);text-decoration:underline}

/* Ghi chú nội bộ cho ICC */
.icc-note{background:#FFF8E6;border:1px dashed #E5B44A;border-radius:12px;padding:18px 22px;margin:34px 0}
.icc-note b{display:block;font-size:13.5px;color:#8A6410;margin-bottom:8px;line-height:1.5}
.icc-note p{font-size:14px;line-height:1.65;color:#6B4F0C;margin:0}

/* CTA trong bài */
.post-cta{background:linear-gradient(135deg,var(--bg-green) 0%,#F2F8EE 100%);border:1px solid rgba(78,159,46,.2);border-radius:16px;padding:28px 26px;margin:36px 0;text-align:center}
.post-cta h3{font-size:20px;font-weight:800;color:var(--navy);margin-bottom:9px}
.post-cta p{font-size:14.5px;color:var(--muted);margin-bottom:20px;line-height:1.6}
.post-cta-btns{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.post-cta-btns .btn{padding:12px 24px;font-size:14.5px}

/* Bài liên quan */
.related{margin-top:52px;padding-top:38px;border-top:1px solid var(--line)}
.related h2{font-size:22px;font-weight:800;color:var(--navy);margin-bottom:22px}
.rel-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:18px}
.rel-card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden;text-decoration:none;transition:transform .25s ease,box-shadow .25s ease}
.rel-card:hover{transform:translateY(-3px);box-shadow:0 16px 32px -20px rgba(15,38,71,.4)}
.rel-img{aspect-ratio:3/2;overflow:hidden;background:radial-gradient(120% 120% at 50% 22%,#fff 0%,#EDF1F5 100%)}
.rel-img img{width:100%;height:100%;object-fit:cover;display:block}
.rel-body{padding:14px 15px 16px}
.rel-cat{display:inline-block;font-size:11px;font-weight:700;color:var(--green);margin-bottom:7px}
.rel-body h3{font-size:14px;font-weight:700;line-height:1.45;color:var(--navy)}

/* ══ RESPONSIVE ══ */
@media(max-width:820px){
  .post-head h1{font-size:27px}
  .post-body{font-size:15.5px}
  .post-body h2{font-size:20px;margin:30px 0 12px}
  .post-body .lede{font-size:16px;padding:16px 18px}
  .blog-grid{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:18px}
  .post-hero img{max-height:300px}
}
@media(max-width:640px){
  .post-head h1{font-size:23px}
  .blog-grid{grid-template-columns:1fr}
  .rel-grid{grid-template-columns:1fr 1fr;gap:12px}
  .rel-body h3{font-size:13px}
  .post-cta{padding:22px 18px}
  .post-cta-btns{flex-direction:column}
  .post-cta-btns .btn{width:100%}
  .toc{padding:16px 18px}
}
