/* ===== Công ty Luật Hợp danh Minh Bạch — Website Marketing ===== */
:root {
  --navy: #0f2a4a;
  --navy-2: #14375f;
  --gold: #f2b705;
  --gold-2: #d9a400;
  --text: #22303f;
  --muted: #5b6b7b;
  --bg: #f7f9fb;
  --white: #ffffff;
  --line: #e3e8ee;
  --danger: #b3261e;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(15, 42, 74, .10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.75;
  font-size: 17px;
  background: var(--bg);
}
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold-2); }
img { max-width: 100%; display: block; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  background: var(--navy);
  color: var(--white);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 20px; max-width: 1120px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); }
.brand-logo-img {
  height: 28px; width: auto; max-width: 110px;
  border-radius: 6px; background: #fff; padding: 2px;
  object-fit: contain; display: block;
}
.brand-name { font-weight: 700; font-size: 17px; line-height: 1.3; }
.brand-sub { font-size: 13px; opacity: .8; }
.nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.nav a { color: #dbe4ee; font-size: 16px; font-weight: 500; }
.nav a:hover { color: var(--gold); }
.nav .cta {
  background: var(--gold); color: var(--navy);
  padding: 9px 18px; border-radius: 999px; font-weight: 700;
}
.nav .cta:hover { background: var(--gold-2); color: var(--navy); }
.nav-toggle {
  display: none; background: none; border: 0; color: var(--white); font-size: 24px; cursor: pointer;
}
.nav-close { display: none; }
.nav-overlay { display: none; }
.nav-lock { overflow: hidden; }

/* Hero */
.hero {
  background: linear-gradient(135deg, rgba(15,42,74,.88) 0%, rgba(20,55,95,.78) 55%, rgba(43,74,120,.68) 100%), url(/assets/hero-luat-su.jpg) center/cover no-repeat;
  color: var(--white);
  padding: 72px 0 64px;
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(32px, 4.5vw, 48px); line-height: 1.22; margin-bottom: 18px; }
.hero h1 .hl { color: var(--gold); }
.hero p { font-size: 18px; opacity: .92; margin-bottom: 14px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px;
  font-weight: 700; font-size: 16px; transition: .2s; border: 0; cursor: pointer;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-2); color: var(--navy); }
.btn-ghost { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.5); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-2); }
.hero-card {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius); padding: 24px; backdrop-filter: blur(4px);
}
.hero-card h3 { color: var(--gold); margin-bottom: 10px; font-size: 18px; }
.hero-card li { list-style: none; padding: 6px 0; border-bottom: 1px dashed rgba(255,255,255,.15); font-size: 15.5px; }
.hero-card li:last-child { border-bottom: 0; }
.hero-card .phone { font-size: 24px; font-weight: 800; color: var(--white); display: block; margin-top: 8px; }

/* Sections */
.section { padding: 60px 0; }
.section-alt { background: var(--white); }
.section-title { font-size: clamp(26px, 3.2vw, 34px); color: var(--navy); margin-bottom: 8px; }
.section-sub { color: var(--muted); margin-bottom: 34px; font-size: 17px; }
.center { text-align: center; }

/* Page banner (ảnh nền + gradient navy, kiểu landing luật sư) */
.page-banner {
  background: linear-gradient(135deg, rgba(15,42,74,.88) 0%, rgba(20,55,95,.78) 55%, rgba(43,74,120,.68) 100%), var(--banner-img, url(/assets/hero-luat-su.jpg)) center/cover no-repeat;
  color: var(--white);
  padding: 56px 0 48px;
  text-align: center;
}
.page-banner h1 { font-size: clamp(28px, 3.8vw, 38px); margin-bottom: 6px; color: var(--white); }
.page-banner p { color: #e2e8f0; margin: 0; font-size: 17px; }

/* Service grid */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); transition: .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(15,42,74,.16); }
.card .icon { font-size: 30px; margin-bottom: 10px; }
.card h3 { font-size: 18px; color: var(--navy); margin-bottom: 6px; }
.card p { font-size: 15.5px; color: var(--muted); line-height: 1.65; }

/* Process */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.step { text-align: center; padding: 20px 12px; }
.step .num {
  counter-increment: step; width: 44px; height: 44px; line-height: 44px;
  margin: 0 auto 10px; border-radius: 50%; background: var(--navy); color: var(--gold);
  font-weight: 800; font-size: 18px; display: block;
}
.step .num::before { content: counter(step); }
.step h4 { font-size: 16px; margin-bottom: 4px; }
.step p { font-size: 14.5px; color: var(--muted); line-height: 1.6; }

/* FAQ */
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.faq-q { padding: 16px 20px; font-weight: 700; font-size: 17px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-q::after { content: "+"; font-size: 22px; color: var(--gold-2); }
.faq-a { display: none; padding: 0 20px 16px; color: var(--muted); font-size: 16px; line-height: 1.7; }
details[open] .faq-a { display: block; }
details[open] .faq-q::after { content: "–"; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: var(--navy); padding: 44px 0; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font-size: 28px; }
.cta-band p { font-size: 17px; margin-top: 4px; }

/* Article */
.article { max-width: 820px; margin: 0 auto; background: var(--white); padding: 40px 44px; border-radius: var(--radius); box-shadow: var(--shadow); }
.article h1 { font-size: clamp(28px, 3.5vw, 36px); color: var(--navy); line-height: 1.3; margin-bottom: 12px; }
.article .meta { color: var(--muted); font-size: 15px; margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.article h2 { font-size: 24px; color: var(--navy); margin: 28px 0 10px; }
.article h3 { font-size: 20px; color: var(--navy-2); margin: 20px 0 8px; }
.article p { margin-bottom: 14px; font-size: 17px; line-height: 1.75; text-align: justify; }
.article ul, .article ol { margin: 0 0 16px 24px; }
.article li { margin-bottom: 6px; font-size: 16.5px; line-height: 1.7; }
.article blockquote { border-left: 4px solid var(--gold); background: #fdf8e8; padding: 12px 18px; margin: 16px 0; border-radius: 0 8px 8px 0; }
.article table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15.5px; }
.article th, .article td { border: 1px solid var(--line); padding: 10px 13px; text-align: left; }
.article th { background: var(--navy); color: var(--white); }
.notice { background: #fdf3f2; border-left: 4px solid var(--danger); padding: 12px 16px; border-radius: 0 8px 8px 0; font-size: 15.5px; margin: 18px 0; line-height: 1.7; }
.toc { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 18px 0; font-size: 16px; }
.toc b { color: var(--navy); }
.toc ol { margin: 8px 0 0 20px; }

/* Footer */
.site-footer { background: var(--navy); color: #b9c6d4; padding: 44px 0 20px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 30px; margin-bottom: 26px; }
.footer-grid h4 { color: var(--white); margin-bottom: 12px; font-size: 16px; }
.footer-grid a { color: #b9c6d4; display: block; margin-bottom: 7px; }
.footer-grid a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px; text-align: center; font-size: 13.5px; color: #8fa0b0; }

/* Responsive */



/* Nhóm dịch vụ (kiểu SBLAW) */
.service-group {
  font-size: 24px; color: var(--navy); margin: 40px 0 6px;
  padding-bottom: 10px; border-bottom: 2px solid var(--gold);
  display: flex; align-items: center; gap: 10px;
  text-transform: uppercase; font-weight: 800; letter-spacing: .4px;
}
.service-item {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow); transition: .2s;
  display: flex; flex-direction: column;
}
.service-item:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(15,42,74,.16); border-color: var(--gold); }
.service-item .icon { font-size: 26px; margin-bottom: 8px; }
.service-item h3 { font-size: 17px; color: var(--navy); margin-bottom: 6px; }
.service-item p { font-size: 15px; color: var(--muted); line-height: 1.65; margin-bottom: 12px; flex: 1; }
.service-link {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  color: var(--navy); font-weight: 700; font-size: 14.5px;
}
.service-link:hover { color: var(--gold-2); }
@media (max-width: 600px) {
  .service-group { font-size: 21px; margin: 30px 0 4px; }
  .service-item h3 { font-size: 16.5px; }
  .service-item p { font-size: 15.5px; }
}



/* Dropdown menu Dịch vụ */
.dropdown { position: relative; }
.dropbtn { cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
/* Nút mũi tên riêng (giống luatminhbach.vn): hiện ở cả desktop lẫn mobile — submenu chỉ mở khi click (desktop) hoặc tap (mobile) */
.dropdown-caret {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; flex: 0 0 auto;
  background: none; border: 0; color: var(--gold);
  font-size: 13px; cursor: pointer; border-radius: 6px;
  transition: transform .2s;
}
.dropdown-caret:hover { background: rgba(15,42,74,.06); }
.dropdown.open .dropdown-caret { transform: rotate(180deg); }
.dropdown-content {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: 0 12px 32px rgba(15,42,74,.18);
  padding: 10px 12px; z-index: 100; min-width: 260px;
  grid-template-columns: 1fr; gap: 0;
}
.dropdown.open .dropdown-content { display: grid; }
.dropdown-content a { color: var(--navy); font-size: 15.5px; font-weight: 600; padding: 6px 10px; line-height: 1.5; display: block; border-radius: 6px; }
.dropdown-content a:hover { background: rgba(15,42,74,.06); color: var(--navy); }
.drop-col { display: flex; flex-direction: column; gap: 14px; }
.drop-group { display: flex; flex-direction: column; }
.drop-group a { color: var(--text); font-size: 14px; padding: 2px 0; line-height: 1.5; }
.drop-head { font-weight: 700; color: var(--navy) !important; font-size: 14.5px !important; margin-bottom: 2px; border-bottom: 1px solid var(--line); }
.drop-group a:hover { color: var(--gold-2) !important; }
@media (max-width: 900px) {
  .dropdown { width: 100%; display: flex; align-items: center; justify-content: space-between; }
  .dropdown .dropbtn { flex: 1; }
  .dropdown-caret {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; flex: 0 0 auto;
    background: none; border: 0; color: var(--gold);
    font-size: 14px; cursor: pointer; border-radius: 8px;
    transition: transform .2s;
  }
  .dropdown-caret:hover { background: rgba(255,255,255,.08); }
  .dropdown.open .dropdown-caret { transform: rotate(180deg); }
  .dropdown-content {
    position: static; display: none; grid-template-columns: 1fr;
    min-width: 0; box-shadow: none; border: 0; padding: 0; margin: 2px 0 6px;
    background: rgba(15,42,74,.06); border-radius: 10px;
  }
  .dropdown.open .dropdown-content { display: grid; }
  .dropdown-content a { padding: 12px 14px; font-size: 16px; font-weight: 600; border-radius: 8px; }
  .dropdown-content a:hover { background: rgba(15,42,74,.10); }
  .dropbtn { font-size: 16px; }
}

/* Breadcrumb */
.breadcrumb { background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 0; font-size: 14.5px; color: var(--muted); }
.breadcrumb a { color: var(--navy); }
.breadcrumb a:hover { color: var(--gold-2); }
.breadcrumb span { color: var(--muted); }

/* CTA inline trong bài viết */
.cta-inline {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: var(--white); border-radius: var(--radius); padding: 24px 26px;
  margin-top: 30px; text-align: center;
}
.cta-inline h3 { color: var(--gold); font-size: 20px; margin-bottom: 6px; }
.cta-inline p { color: #dbe4ee; margin: 0 0 4px; }

/* Nút nổi gọi điện / Zalo */
.phone-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  display: flex; flex-direction: column; gap: 10px;
}
.phone-float a {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  color: white; font-size: 24px; text-decoration: none;
  box-shadow: 0 6px 20px rgba(0,0,0,.18); transition: transform .2s;
}
.phone-float a:hover { transform: scale(1.08); }
.phone-float .btn-call { background: #22c55e; }
.phone-float .btn-zalo { background: #0068ff; }
.phone-float .btn-wa { background: #25d366; }
.phone-float .btn-wa img { width: 28px; height: 28px; }
@media (max-width: 600px) {
  .phone-float { bottom: 16px; right: 16px; }
  .phone-float a { width: 50px; height: 50px; font-size: 22px; }
}

@media (max-width: 600px) {
  body { font-size: 16.5px; }
  .hero { padding: 48px 0 44px; }
  .hero p { font-size: 16.5px; }
  .page-banner { padding: 44px 0 38px; }
  .card p { font-size: 16px; }
  .article p { font-size: 16.5px; }
  .article li { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .hero-card .phone { font-size: 22px; }
}

@media (max-width: 900px) {
  .hero-inner, .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  /* Offcanvas mobile menu — slide-in từ phải + overlay (giống ElementsKit) */
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(320px, 85vw);
    background: var(--navy);
    flex-direction: column; align-items: stretch;
    gap: 0; padding: 72px 20px 24px;
    transform: translateX(100%);
    transition: transform .3s ease;
    overflow-y: auto;
    box-shadow: -8px 0 24px rgba(0,0,0,.25);
    z-index: 1001;
    display: flex;
  }
  .nav.open { transform: translateX(0); }
  .nav a { padding: 14px 12px; font-size: 16px; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,.08); display: block; }
  .nav a:hover { color: var(--gold); }
  .nav .cta { margin-top: 12px; text-align: center; }
  .nav-close {
    display: block; position: absolute; top: 14px; right: 16px;
    background: none; border: 0; color: var(--white);
    font-size: 26px; line-height: 1; cursor: pointer; z-index: 1002;
  }
  .nav-overlay {
    display: block; position: fixed; inset: 0;
    background: rgba(15,42,74,.55);
    opacity: 0; visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
    z-index: 1000;
  }
  .nav-overlay.show { opacity: 1; visibility: visible; }
  .nav-toggle { display: block; }
  .article { padding: 28px 22px; }
}

/* Language switcher — nút chọn ngôn ngữ trên thanh menu */
.lang-switch .dropbtn {
  display: inline-flex; align-items: center; gap: 5px;
  font-weight: 600; color: var(--navy);
}
.lang-switch .dropdown-content { min-width: 150px; }
.lang-switch .dropdown-content a { display: flex; align-items: center; gap: 8px; }
.lang-switch .lang-current { color: var(--gold-2); font-weight: 700; }
@media (max-width: 900px) {
  .lang-switch .dropbtn { color: var(--white); }
  .lang-switch .dropdown-content {
    background: rgba(255,255,255,.06);
  }
  .lang-switch .dropdown-content a { color: var(--white); }
  .lang-switch .dropdown-content a:hover { background: rgba(255,255,255,.10); }
}

/* ===== Bài viết có liên quan ===== */
.related-posts { background: var(--white); padding: 28px 0; border-top: 1px solid #eef2f6; }
.related-posts h2 { color: var(--navy); font-size: 20px; margin-bottom: 12px; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.related-card {
  display: block; background: var(--bg); border: 1px solid #e4ebf2; border-radius: 8px;
  padding: 10px 14px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.related-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(15,42,74,.12); border-color: var(--gold); }
.related-card h3 { font-size: 14px; color: var(--navy); line-height: 1.35; margin: 0; font-weight: 600; }
.related-card h3::before { content: "● "; color: #d32f2f; font-size: 13px; line-height: 1; display: inline-block; vertical-align: middle; margin-right: 4px; transform: translateY(-1px); }
.related-card:hover h3 { color: var(--gold-2); }
@media (max-width: 900px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .related-grid { grid-template-columns: 1fr; } }

/* ===== Hình minh họa mở đầu bài Kiến thức ===== */
.article-hero {
  display: block; width: 100%; height: auto; border-radius: 12px;
  margin: 18px 0 6px; box-shadow: 0 4px 16px rgba(15,42,74,.14);
}

/* ===== Nút Xem tất cả (trang Kiến thức) ===== */
.view-all {
  display: inline-block; margin: 14px 0 6px; padding: 10px 18px;
  background: var(--navy); color: var(--white); border-radius: 8px;
  font-size: 14.5px; font-weight: 600; transition: background .2s;
}
.view-all:hover { background: var(--navy-2); color: var(--gold); }


@media (max-width: 900px) {
  .search-wrap { flex: 1 1 100%; margin: 8px 4px; order: 20; }
  .search-box { left: 0; right: 0; }
}

/* ===== Tìm kiếm header — icon kính lúp ===== */
.search-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; font-size: 16px;
  color: var(--white); text-decoration: none; margin: 0 4px;
  border: 1px solid rgba(255,255,255,.35); transition: border-color .2s, background .2s;
}
.search-link:hover { border-color: var(--gold); background: rgba(255,255,255,.15); }
@media (max-width: 900px) {
  .search-link { width: 40px; height: 40px; font-size: 18px; }
}

/* ===== Định dạng toàn văn văn bản pháp luật (dễ đọc, kiểu luatvietnam.vn) ===== */
.vb-fulltext { line-height: 1.75; color: #333; text-align: justify; }
.vb-fulltext p { margin: 8px 0; }
/* Header văn bản pháp luật: 2 cột trái-phải */
.vb-header-table { width: 100%; border-collapse: collapse; margin: 0 auto 12px; font-size: 14px; text-align: center; }
.vb-header-table td { padding: 4px 8px; vertical-align: top; text-align: center; }
.vb-header-table .vb-cq { font-weight: 700; text-transform: uppercase; }
.vb-header-table .vb-qh { font-weight: 700; text-transform: uppercase; }
.vb-header-table .vb-dltp { font-style: italic; }
.vb-header-table .vb-so { font-weight: 700; }
.vb-header-table .vb-dd { font-style: italic; }
.vb-header-table .vb-sep { border-bottom: 1px solid #ccc; height: 8px; }
.vb-fulltext .vb-title {
  font-weight: 700; font-size: 1.1em; color: var(--navy); text-align: center;
  margin: 6px 0; text-transform: uppercase; letter-spacing: .02em;
}
.vb-fulltext .vb-head {
  font-weight: 700; font-size: 1.05em; color: var(--navy); text-align: center;
  margin: 24px 0 4px; text-transform: uppercase; letter-spacing: .02em;
}
.vb-fulltext .vb-head-title {
  font-weight: 700; font-size: 1.02em; color: var(--navy); text-align: center;
  margin: 0 0 16px; text-transform: uppercase;
}
.vb-fulltext .vb-muc {
  font-weight: 700; font-size: 1em; color: var(--navy); text-align: center;
  margin: 20px 0 6px;
}
.vb-fulltext .vb-dieu {
  font-weight: 700; font-size: 1em; color: #1a1a1a;
  margin: 16px 0 6px;
}
.vb-fulltext .vb-khoan { margin: 6px 0; }
.vb-fulltext .vb-diem { margin: 4px 0; }
.vb-fulltext .vb-cancu { font-style: italic; margin: 6px 0; color: #444; }
