/* Kế toán Hà Thành – giao diện chính.
   Màu thương hiệu từ logo: xanh #2665a6, đỏ; nền tối navy, điểm nhấn vàng trên nền tối.
   Chữ: tiêu đề Montserrat, nội dung Roboto (cả hai hỗ trợ đầy đủ tiếng Việt). */
:root {
  --brand: #2665a6; --brand-600: #1f5a99; --brand-50: #eef5fc; --brand-100: #d6e6f7;
  --navy: #0a2a52; --navy-2: #123f75;
  --red: #e01020; --red-700: #b80d1a; --red-50: #fdecee; --gold: #ffc233;
  --text: #1d2939; --text-2: #3b495d; --muted: #5f6c7f; --line: #e3e9f1; --tint: #f2f7fd;
  --ok: #137a3a; --ok-50: #e9f7ef; --ok-line: #bfe5cd;
  --warn: #8a5a07; --warn-50: #fdf5e4; --warn-line: #f2dcac;
  --bad: #b4232c; --bad-50: #fdeeef; --bad-line: #f5c9cc;
  --radius: 10px; --radius-lg: 16px;
  --shadow-sm: 0 2px 6px rgba(10, 42, 82, .06);
  --shadow: 0 10px 30px rgba(10, 42, 82, .12);
  --head: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --body: "Roboto", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ---------- Nền tảng ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 16px; line-height: 1.65; color: var(--text); background: #fff;
       -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-600); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--head); color: var(--navy); margin: 0 0 .5em; line-height: 1.3; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 3.8vw, 2.7rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.15rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 28px; } }
.icon { width: 20px; height: 20px; flex: none; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid rgba(38, 101, 166, .45); outline-offset: 2px; }
.clamp-2, .clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-2 { -webkit-line-clamp: 2; }
.clamp-3 { -webkit-line-clamp: 3; }

/* ---------- Thanh trên cùng ---------- */
.topbar { background: var(--brand); color: #e4eefa; font-size: .84rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar .item { display: inline-flex; align-items: center; gap: 6px; }
.topbar .icon { width: 15px; height: 15px; color: #fff; opacity: .85; }
.topbar .group { display: flex; gap: 22px; flex-wrap: wrap; }
@media (max-width: 860px) { .topbar .addr { display: none; } .topbar .container { justify-content: center; } }
@media (max-width: 480px) { .topbar .mst { display: none; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 2px 12px rgba(10, 42, 82, .08); }
.site-header .container { display: flex; align-items: center; gap: 20px; min-height: 78px; position: relative; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; min-width: 0; }
.brand img { height: 52px; width: auto; }
.brand-name { display: block; font-family: var(--head); font-weight: 800; color: var(--red); font-size: 1.2rem; letter-spacing: .01em; line-height: 1.1; white-space: nowrap; }
.brand-tag { display: block; font-family: var(--head); font-size: .66rem; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .06em; margin-top: 5px; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav .link { font-family: var(--head); font-size: .88rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: var(--navy); text-decoration: none;
             padding: 10px 12px; border-radius: 6px; background: none; border: 0; cursor: pointer; position: relative; }
.nav .link:hover, .nav .link.active { color: var(--brand); }
.nav .link.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 3px; background: var(--red); border-radius: 2px; }
.nav form { margin: 0; }
.nav .sep { width: 1px; height: 22px; background: var(--line); margin: 0 6px; }
.nav .btn { margin-left: 8px; }
.menu-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; }
@media (max-width: 1020px) {
  .menu-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px;
         background: #fff; border-top: 1px solid var(--line); padding: 8px 16px 16px; box-shadow: 0 16px 24px rgba(10, 42, 82, .1); }
  .site-header.open .nav { display: flex; }
  .nav .link { padding: 13px 12px; text-align: left; width: 100%; }
  .nav .link.active::after { display: none; }
  .nav .sep { width: auto; height: 1px; margin: 6px 0; }
  .nav .btn { margin: 8px 0 0; }
}
@media (max-width: 400px) { .brand img { height: 42px; } .brand-name { font-size: 1.02rem; } .brand-tag { font-size: .56rem; } }

/* ---------- Nút ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--head); font-weight: 700; font-size: .92rem; line-height: 1.2;
       text-decoration: none; padding: 13px 24px; border-radius: 6px; border: 2px solid transparent; cursor: pointer;
       transition: background-color .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s; }
.btn .icon { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-600); color: #fff; }
.btn-accent { background: var(--red); color: #fff; box-shadow: 0 6px 16px rgba(224, 16, 32, .28); }
.btn-accent:hover { background: var(--red-700); color: #fff; }
.btn-outline { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--brand-50); color: var(--navy); }
.btn-ghost, .btn-glass { color: #fff; border-color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .08); }
.btn-ghost:hover, .btn-glass:hover { background: #fff; color: var(--navy); }
.btn-sm { padding: 10px 18px; font-size: .85rem; }
.btn-lg { padding: 16px 30px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- Banner ---------- */
.hero { position: relative; color: #fff; padding: 110px 0 150px;
        background: linear-gradient(90deg, rgba(8, 32, 66, .94) 0%, rgba(8, 32, 66, .82) 42%, rgba(8, 32, 66, .35) 100%), var(--hero-img) center / cover no-repeat; }
.hero-content { max-width: 640px; }
.hero-badge { display: inline-block; font-family: var(--head); font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
              background: var(--red); color: #fff; padding: 7px 14px; border-radius: 4px; margin-bottom: 22px; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.15; margin-bottom: 16px; }
.hero h1 .gold { color: var(--gold); }
.hero-sub { font-size: 1.18rem; color: #dbe6f3; margin-bottom: 22px; }
.hero-checks { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 10px; }
.hero-checks li { display: flex; gap: 10px; align-items: center; font-size: 1.02rem; color: #fff; }
.hero-checks .icon { color: var(--gold); width: 22px; height: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 700px) {
  .hero { padding: 64px 0 96px; background: linear-gradient(180deg, rgba(8, 32, 66, .9), rgba(8, 32, 66, .82)), var(--hero-img) center / cover no-repeat; }
  .hero-actions .btn { width: 100%; }
}

.features { position: relative; z-index: 2; margin-top: -80px; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.feature-box { padding: 30px 26px; text-align: center; border-top: 4px solid transparent; transition: border-color .2s, background-color .2s; }
.feature-box + .feature-box { border-left: 1px solid var(--line); }
.feature-box:hover { border-top-color: var(--red); background: var(--tint); }
.f-ico { width: 60px; height: 60px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; margin: 0 auto 14px; }
.f-ico .icon { width: 28px; height: 28px; }
.feature-box h3 { margin-bottom: 6px; font-size: 1.06rem; }
.feature-box p { color: var(--muted); font-size: .93rem; margin: 0; line-height: 1.5; }
@media (max-width: 960px) { .features-grid { grid-template-columns: 1fr 1fr; } .feature-box:nth-child(3) { border-left: 0; } .feature-box:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 520px) { .features { margin-top: -56px; } .feature-box { padding: 22px 14px; } .f-ico { width: 50px; height: 50px; } }

/* ---------- Section chung ---------- */
.section { padding: 90px 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { margin-bottom: 14px; }
.kicker, .section-head .kicker { display: block; font-family: var(--head); font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin: 0 0 10px; }
.title-bar { display: block; width: 64px; height: 4px; background: var(--red); border-radius: 2px; margin: 0 auto; }
.section-head.on-dark h2 { color: #fff; }
.section-head.on-dark .kicker { color: var(--gold); }
.center-btn { text-align: center; margin-top: 40px; }
@media (max-width: 700px) { .section { padding: 60px 0; } .section-head { margin-bottom: 32px; } }

/* Về chúng tôi */
.about { padding-top: 110px; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; align-items: center; }
.about-media { position: relative; padding: 0 0 28px 28px; }
.about-media::before { content: ""; position: absolute; left: 0; bottom: 0; width: 70%; height: 75%; background: var(--brand); border-radius: var(--radius-lg); }
.about-media img { position: relative; border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; height: auto; }
.about-tag { position: absolute; right: -14px; bottom: 54px; background: var(--red); color: #fff; padding: 16px 22px; border-radius: var(--radius); box-shadow: 0 10px 24px rgba(224, 16, 32, .3); }
.about-tag strong { display: block; font-family: var(--head); font-size: 1.1rem; }
.about-tag span { font-size: .88rem; opacity: .9; }
.about h2 { margin-bottom: 18px; }
.about-text { color: var(--text-2); font-size: 1.04rem; }
.about-text strong { color: var(--navy); }
.about-list { list-style: none; padding: 0; margin: 24px 0 30px; display: grid; gap: 16px; }
.about-list li { display: flex; gap: 14px; align-items: flex-start; }
.a-ico { width: 46px; height: 46px; border-radius: 10px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; flex: none; }
.a-ico .icon { width: 23px; height: 23px; }
.about-list strong { display: block; font-family: var(--head); color: var(--navy); font-size: 1rem; }
.about-list li span:last-child { color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .about { padding-top: 70px; } .about-grid { grid-template-columns: 1fr; gap: 40px; } .about-tag { right: 8px; } }

/* Dịch vụ */
.services-grid { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }
.service-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-lg); padding: 32px 28px; text-decoration: none; color: var(--text);
                box-shadow: var(--shadow-sm); border-bottom: 4px solid transparent; transition: transform .2s, box-shadow .2s, border-color .2s, background-color .2s; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-bottom-color: var(--red); color: var(--text); }
.s-ico { width: 64px; height: 64px; border-radius: 16px; background: linear-gradient(135deg, var(--brand), var(--navy-2)); color: #fff; display: grid; place-items: center; margin-bottom: 20px;
         box-shadow: 0 8px 18px rgba(38, 101, 166, .3); }
.s-ico .icon { width: 30px; height: 30px; }
.service-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.service-card p { color: var(--muted); flex: 1; font-size: .96rem; margin-bottom: 18px; }
.more { display: inline-flex; align-items: center; gap: 6px; font-family: var(--head); font-weight: 700; color: var(--red); font-size: .88rem; }
.more .icon { width: 16px; height: 16px; transition: transform .15s; }
.service-card:hover .more .icon, .news-card:hover .more .icon, .article-row:hover .more .icon { transform: translateX(4px); }

/* Quy trình (nền ảnh) */
.process { position: relative; padding: 90px 0; color: #fff;
           background: linear-gradient(rgba(8, 32, 66, .9), rgba(8, 32, 66, .9)), var(--bg-img) center / cover no-repeat; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.step { background: var(--tint); border-radius: var(--radius); padding: 24px 22px; }
.step-num { display: block; font-family: var(--head); font-size: 2rem; font-weight: 800; color: var(--red); line-height: 1; margin-bottom: 12px; }
.step h3 { font-size: 1.05rem; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }
.process .steps { gap: 28px; }
.process .step { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius-lg); padding: 32px 28px; }
.process .step-num { font-size: 2.6rem; color: var(--gold); margin-bottom: 14px; }
.process .step h3 { color: #fff; font-size: 1.15rem; }
.process .step p { color: #c9d6e6; font-size: 1rem; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } .process { padding: 60px 0; } }

/* Tin bài trang chủ */
.news-cards { display: grid; gap: 26px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .news-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .news-cards { grid-template-columns: 1fr; } }
.news-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: var(--text);
             box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); color: var(--text); }
.news-card .cover-wrap { border-radius: 0; position: relative; }
.date-badge { position: absolute; right: 14px; top: 14px; background: var(--red); color: #fff; border-radius: 6px; padding: 6px 10px; text-align: center;
              font-family: var(--head); font-size: .72rem; font-weight: 600; line-height: 1.1; }
.date-badge b { display: block; font-size: 1.3rem; font-weight: 800; }
.news-card .body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.news-card h3 { font-size: 1.08rem; line-height: 1.45; margin: 10px 0 8px; }
.news-card:hover h3 { color: var(--brand); }
.news-card p { color: var(--muted); font-size: .94rem; flex: 1; }

/* Kêu gọi liên hệ (nền ảnh) */
.cta-band { color: #fff; padding: 80px 0;
            background: linear-gradient(90deg, rgba(31, 90, 153, .95), rgba(10, 42, 82, .92)), var(--bg-img) center / cover no-repeat; }
.cta-band-inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #dbe6f3; font-size: 1.06rem; }
.cta-contacts { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.cta-contacts li { display: flex; gap: 10px; align-items: center; }
.cta-contacts .icon { color: var(--gold); width: 19px; height: 19px; }
.cta-contacts a { color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.cta-contacts a:hover { text-decoration: underline; }
.cta-box { background: #fff; border-radius: var(--radius-lg); padding: 32px; text-align: center; box-shadow: 0 20px 40px rgba(0, 0, 0, .2); }
.cta-label { display: block; font-family: var(--head); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.cta-phone { display: inline-flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.2rem); color: var(--red);
             text-decoration: none; margin: 6px 0 20px; }
.cta-phone .icon { width: 30px; height: 30px; }
.cta-phone:hover { color: var(--red-700); }
@media (max-width: 860px) { .cta-band-inner { grid-template-columns: 1fr; gap: 32px; } .cta-band { padding: 60px 0; } }

/* Thẻ CTA nhỏ (trang con) */
.cta { background: linear-gradient(135deg, var(--brand), var(--navy)); color: #dbe6f3; border-radius: var(--radius-lg); padding: 30px 32px;
       display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin: 0 0 4px; }
.cta p { margin: 0; }
.cta .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #b0c1d6; padding: 64px 0 0; font-size: .94rem; border-top: 4px solid var(--red); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr; gap: 48px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.site-footer h4 { color: #fff; font-size: .95rem; font-weight: 700; text-transform: uppercase; margin: 0 0 18px; padding-bottom: 10px; position: relative; }
.site-footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; background: var(--red); }
.site-footer a { color: #dbe5f1; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.logo-tile { background: #fff; border-radius: 10px; padding: 7px 9px; display: grid; place-items: center; flex: none; }
.logo-tile img { height: 46px; width: auto; }
.footer-brand strong { color: #fff; display: block; font-family: var(--head); line-height: 1.35; font-weight: 700; text-wrap: balance; }
.footer-brand small { color: var(--gold); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.f-item { display: flex; gap: 10px; align-items: flex-start; }
.f-item .icon { width: 17px; height: 17px; color: var(--gold); margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 48px; padding: 20px 0; font-size: .84rem; color: #8299b3;
                 display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fab-call { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: none; align-items: center; gap: 8px; background: var(--red); color: #fff;
            padding: 12px 18px; border-radius: 999px; text-decoration: none; font-family: var(--head); font-weight: 700; box-shadow: 0 10px 24px rgba(224, 16, 32, .35); }
.fab-call:hover { color: #fff; background: var(--red-700); }
.fab-call .icon { width: 18px; height: 18px; }
@media (max-width: 700px) { .fab-call { display: inline-flex; } .site-footer { padding-bottom: 64px; } }

/* ---------- Trang con: đầu trang nền ảnh ---------- */
.page-head { color: #fff; padding: 56px 0 52px;
             background: linear-gradient(90deg, rgba(8, 32, 66, .95), rgba(18, 63, 117, .85)), url("img/photos/process.5d5c69c65ebd.webp") center / cover no-repeat; }
.page-head .row { display: flex; align-items: center; gap: 18px; }
.page-head .ico-box { margin: 0; background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .25); }
.page-head h1 { color: #fff; font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin: 0; }
.page-head .sub { color: #d3e0ef; margin: 10px 0 0; max-width: 760px; font-size: 1.04rem; }
.crumbs { font-size: .86rem; color: #b9cbe0; margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: #e4edf7; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.article-page .crumbs { color: var(--muted); }
.article-page .crumbs a { color: var(--muted); }
.article-page .crumbs a:hover { color: var(--brand); }
.page { padding: 44px 0 90px; background: var(--tint); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 32px; align-items: start; }
.layout > .stack, .layout > aside { display: grid; gap: 24px; min-width: 0; }
@media (max-width: 960px) { .layout { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.card > :last-child { margin-bottom: 0; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.card-title h2 { font-size: 1.2rem; margin: 0; }
@media (max-width: 600px) { .card { padding: 20px; } }
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.ico-box { width: 48px; height: 48px; border-radius: 12px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; margin-bottom: 18px; flex: none; }
.ico-box .icon { width: 24px; height: 24px; }
.ico-box.red { background: var(--red-50); color: var(--red); }
aside .card h3 { font-size: 1.05rem; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--brand-50); position: relative; }
aside .card h3::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 40px; height: 2px; background: var(--red); }
.steps-mini { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }

/* ---------- Đăng ký / đăng nhập ---------- */
.auth-wrap { padding: 48px 0 90px; background: var(--tint); }
.auth { display: grid; grid-template-columns: 400px minmax(0, 1fr); background: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); max-width: 1080px; margin: 0 auto; }
.auth.narrow { max-width: 900px; grid-template-columns: 370px minmax(0, 1fr); }
.auth-side { color: #d3e0ef; padding: 40px 36px;
             background: linear-gradient(160deg, rgba(8, 32, 66, .95), rgba(31, 90, 153, .92)), url("img/photos/hero.211d4b5ad51b.webp") center / cover no-repeat; }
.auth-side .logo-tile { margin-bottom: 26px; display: inline-grid; }
.auth-side .logo-tile img { height: 56px; }
.auth-side h2 { color: #fff; font-size: 1.5rem; }
.auth-side ol, .auth-side ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 16px; }
.auth-side li { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; }
.auth-side .n { width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: var(--navy); font-family: var(--head); font-weight: 800; font-size: .85rem; display: grid; place-items: center; flex: none; }
.auth-side li strong { color: #fff; display: block; font-family: var(--head); }
.auth-side li > .icon { color: var(--gold); margin-top: 3px; }
.auth-side .contact { margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .18); font-size: .92rem; display: grid; gap: 8px; }
.auth-side .contact a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.auth-side .contact .icon { width: 16px; height: 16px; color: var(--gold); }
.auth-main { padding: 40px; }
.auth-main h1 { font-size: 1.8rem; margin-bottom: 6px; }
.auth-main > .muted { margin-bottom: 26px; }
@media (max-width: 880px) {
  .auth, .auth.narrow { grid-template-columns: 1fr; }
  .auth-side { padding: 28px 22px; }
  .auth-side .hide-sm { display: none; }
  .auth-main { padding: 28px 20px; }
}

/* ---------- Form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.form-section { font-family: var(--head); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); margin: 6px 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--brand-50); grid-column: 1 / -1; }
.field { margin-bottom: 18px; min-width: 0; }
.field .lbl { display: block; font-weight: 500; font-size: .92rem; margin-bottom: 7px; color: var(--navy); }
.field .req { color: var(--red); }
.field input[type=text], .field input[type=email], .field input[type=password], .field input[type=tel], .field textarea {
  width: 100%; font: inherit; font-size: .98rem; padding: 12px 14px; border: 1.5px solid #d3dce8; border-radius: 8px; background: #fff; color: var(--text);
  transition: border-color .15s, box-shadow .15s; }
.field input::placeholder, .field textarea::placeholder { color: #9aa8ba; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(38, 101, 166, .12); }
.field.has-error input, .field.has-error textarea { border-color: var(--bad); }
.help { font-size: .84rem; color: var(--muted); margin-top: 6px; }
.errorlist { list-style: none; padding: 0; margin: 6px 0 0; color: var(--bad); font-size: .87rem; font-weight: 500; }
.errorlist.nonfield { background: var(--bad-50); border: 1px solid var(--bad-line); padding: 10px 14px; border-radius: 8px; margin: 0 0 18px; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.check-card { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px solid #d3dce8; border-radius: 8px; cursor: pointer;
              font-weight: 500; font-size: .94rem; background: #fff; transition: border-color .15s, background-color .15s; }
.check-card:hover { border-color: var(--brand-100); background: var(--brand-50); }
.check-card:has(input:checked) { border-color: var(--brand); background: var(--brand-50); color: var(--navy); }
.check-card input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand); flex: none; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.form-foot p { margin: 0; color: var(--muted); font-size: .93rem; }

/* ---------- Thông báo, nhãn, bảng ---------- */
.messages { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 10px; border: 1px solid; font-size: .96rem; }
.alert .icon { margin-top: 2px; }
.alert strong { display: block; }
.alert p { margin: 2px 0 0; }
.alert-success { background: var(--ok-50); border-color: var(--ok-line); color: #0e5c2c; }
.alert-warning { background: var(--warn-50); border-color: var(--warn-line); color: #6f4805; }
.alert-error { background: var(--bad-50); border-color: var(--bad-line); color: #8e1b22; }
.alert-info { background: var(--brand-50); border-color: var(--brand-100); color: var(--navy); }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 500; padding: 4px 11px; border-radius: 999px; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.pending { background: var(--warn-50); color: var(--warn); }
.badge.approved { background: var(--ok-50); color: var(--ok); }
.badge.rejected { background: var(--bad-50); color: var(--bad); }
.table-wrap { overflow-x: auto; margin: 0 -28px -28px; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th { font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 500; text-align: left; padding: 12px 28px; background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 15px 28px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
@media (max-width: 600px) { .table-wrap { margin: 0 -20px -20px; } th, td { padding-left: 20px; padding-right: 20px; } }
.info-list { margin: 0; display: grid; gap: 14px; }
.info-list div { display: grid; gap: 2px; }
.info-list dt { font-size: .8rem; color: var(--muted); }
.info-list dd { margin: 0; font-weight: 500; color: var(--navy); overflow-wrap: anywhere; }
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.tile-link { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1.5px solid var(--brand-100); border-radius: 10px; text-decoration: none;
             color: var(--navy); background: var(--brand-50); font-family: var(--head); font-weight: 700; transition: border-color .15s, box-shadow .15s; }
.tile-link:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); color: var(--navy); }
.tile-link .ico-box { margin: 0; width: 44px; height: 44px; border-radius: 10px; background: #fff; }
.tile-link .ico-box .icon { width: 22px; height: 22px; }
.tile-link small { display: block; color: var(--brand); font-family: var(--body); font-weight: 500; font-size: .82rem; }
.tile-link > .icon { margin-left: auto; color: var(--brand); width: 18px; height: 18px; }
.empty { text-align: center; color: var(--muted); padding: 28px 16px; }
.empty .ico-box { margin: 0 auto 14px; }
.side-contact { display: grid; gap: 10px; }
.side-contact a { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; color: var(--navy); font-size: .96rem; }
.side-contact a:hover { color: var(--brand); }
.side-contact a span { min-width: 0; }
.side-contact .icon { color: var(--red); width: 18px; height: 18px; }

/* ---------- Kiến thức / bài viết ---------- */
.chip { display: inline-block; align-self: flex-start; font-family: var(--head); font-size: .7rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
        color: var(--brand); background: var(--brand-50); padding: 4px 10px; border-radius: 4px; white-space: nowrap; }
.meta { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.meta > * + *:not(.chip)::before { content: "·"; margin-right: 12px; color: #a3b0c0; }
.meta .chip + *::before { content: none; }
.article-heading { font-family: var(--head); font-weight: 700; color: var(--navy); line-height: 1.4; }
.excerpt { color: var(--muted); font-size: .96rem; line-height: 1.6; margin: 0; }
.cover-wrap { aspect-ratio: 16 / 9; overflow: hidden; background: var(--brand-50); border-radius: var(--radius); }
.cover { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-card:hover .cover, .article-row:hover .cover, .article-card:hover .cover { transform: scale(1.05); }
.cover-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--brand); font-weight: 700; font-size: .9rem;
            background: radial-gradient(circle at 30% 20%, #fff, var(--brand-50) 60%, var(--brand-100)); text-align: center; padding: 12px; }
.cover-ph img { height: 44px; width: auto; opacity: .9; }

.article-rows { display: grid; gap: 20px; }
.article-row { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 28px; align-items: center; padding: 20px; background: #fff; border-radius: var(--radius-lg);
               box-shadow: var(--shadow-sm); border: 1px solid var(--line); text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s; }
.article-row:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }
.article-row .article-heading { font-size: 1.25rem; margin: 0 0 10px; }
.article-row:hover .article-heading { color: var(--brand); }
.article-row .excerpt { margin-bottom: 14px; }
@media (max-width: 760px) { .article-row { grid-template-columns: 1fr; gap: 16px; padding: 16px; } .article-row .article-heading { font-size: 1.12rem; } }

.article-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s; }
.article-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); color: inherit; }
.article-card .cover-wrap { border-radius: 0; }
.article-card .body { padding: 18px 20px 20px; }
.article-card .article-heading { font-size: 1rem; margin: 0; }
.article-card:hover .article-heading { color: var(--brand); }

.search { display: flex; gap: 8px; margin-top: 24px; max-width: 580px; }
.search input { flex: 1; min-width: 0; font: inherit; font-size: .98rem; padding: 12px 16px; border: 0; border-radius: 6px; background: #fff; }
.search input:focus { outline: 3px solid rgba(255, 194, 51, .6); }
.search .btn { background: var(--red); }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 24px; scrollbar-width: thin; }
.tab { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 9px 16px; border-radius: 6px; border: 1px solid var(--line); background: #fff;
       color: var(--navy); text-decoration: none; font-family: var(--head); font-weight: 600; font-size: .86rem; }
.tab:hover { border-color: var(--brand); color: var(--brand); }
.tab.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.count { font-size: .72rem; font-weight: 700; background: rgba(10, 42, 82, .08); padding: 1px 8px; border-radius: 999px; }
.tab.active .count { background: rgba(255, 255, 255, .25); }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 36px; }

.article-page { padding-top: 36px; }
.article-page > .container > .stack { background: #fff; border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
@media (max-width: 600px) { .article-page > .container > .stack { padding: 20px; } }
.article-title { font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.3; margin: 0 0 16px; }
.article-meta { font-size: .88rem; }
.article-summary { font-size: 1.12rem; font-weight: 500; color: var(--text-2); line-height: 1.7; margin: 8px 0 0; padding: 14px 18px; background: var(--tint); border-left: 4px solid var(--red); border-radius: 0 8px 8px 0; }
.legal-box { display: flex; flex-wrap: wrap; gap: 14px 40px; background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: var(--radius); padding: 16px 20px; }
.legal-box small { display: block; color: var(--muted); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-family: var(--head); }
.legal-box strong { color: var(--navy); font-weight: 500; }
.article-cover { width: 100%; border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; }

.prose { font-size: 1.06rem; line-height: 1.8; color: var(--text); overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 1.35rem; margin: 1.9em 0 .7em; padding-left: 14px; border-left: 4px solid var(--brand); line-height: 1.35; }
.prose h3 { font-size: 1.15rem; margin: 1.6em 0 .5em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.15em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--red); }
.prose strong { color: var(--navy); font-weight: 700; }
.prose a { color: var(--brand); }
.prose img { height: auto; border-radius: 10px; margin: 0 auto; box-shadow: var(--shadow-sm); }
.prose figure { margin: 1.8em 0; text-align: center; }
.prose figcaption { color: var(--muted); font-size: .9rem; margin-top: 10px; font-style: italic; }
.prose blockquote { margin: 1.6em 0; padding: 18px 22px; background: #fff8e6; border-left: 4px solid var(--gold); border-radius: 0 10px 10px 0; color: var(--text); font-size: 1rem; }
.prose blockquote > :last-child { margin-bottom: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .96rem; line-height: 1.55; }
.prose th, .prose td { border: 1px solid #d3dce8; padding: 10px 14px; vertical-align: top; text-transform: none; letter-spacing: 0; font-size: inherit; white-space: normal; }
.prose th { background: var(--brand); color: #fff; font-weight: 500; }
.prose tbody tr:nth-child(even) td { background: var(--tint); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0 1.2em; }
.prose hr + p em { font-size: .9rem; color: var(--muted); line-height: 1.6; display: block; }
@media (max-width: 700px) { .prose { font-size: 1.02rem; } .prose table { display: block; overflow-x: auto; } }
.article-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--line); font-size: .92rem; }
.share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cat-list, .side-news { list-style: none; padding: 0; margin: 0; }
.cat-list li + li { border-top: 1px solid var(--line); }
.cat-list a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 0; text-decoration: none; color: var(--text-2); font-size: .96rem; }
.cat-list a:hover { color: var(--brand); }
.side-news li { padding: 12px 0; }
.side-news li:first-child { padding-top: 0; }
.side-news li + li { border-top: 1px solid var(--line); }
.side-news a { display: block; text-decoration: none; color: var(--navy); font-family: var(--head); font-weight: 600; line-height: 1.45; font-size: .93rem; }
.side-news a:hover { color: var(--brand); }
.side-news time { font-size: .8rem; color: var(--muted); }
