/* BigBossLaw Single Post – Native Template Stylesheet */
/* Native PHP parity layer for Elementor template #1941 */

@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;500;600;700;800&display=swap');

:root {
  --bbl-red: #C62127;
  --bbl-red-dark: #B01D22;
  --bbl-ink: #333333;
  --bbl-muted: #7a7a7a;
  --bbl-line: #ddd;
  --bbl-soft-line: #c5c5c5;
  --bbl-cream: #faf8f5;
  --bbl-card: #fff;
  --bbl-sidebar-bg: #f6f6f6;
  --bbl-shadow: 0 4px 18px rgba(31, 18, 12, .06);
  --bbl-body-font: 'BigBosss', sans-serif;
  --bbl-brand-font: 'BigBosss', sans-serif;
  --bbl-number-font: 'Exo 2', sans-serif;
}

.bbl-single-post {
  font-family: var(--bbl-body-font);
  color: var(--bbl-ink);
}

.bbl-container {
  width: min(1440px, calc(100% - 32px));
  margin-inline: auto;
}

/* ─── Hero ─── */
.bbl-post-hero {
  min-height: 310px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 18% 20%, rgba(213, 166, 74, .22), transparent 28%),
    linear-gradient(135deg, rgba(85, 5, 12, .96), rgba(181, 18, 27, .93)),
    #8f0d16;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.bbl-post-hero::after {
  content: "§";
  position: absolute;
  right: clamp(20px, 8vw, 120px);
  bottom: -88px;
  font-family: Georgia, serif;
  font-size: clamp(180px, 28vw, 360px);
  color: rgba(255, 255, 255, .06);
  line-height: 1;
}

.bbl-hero-card {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding-block: 52px;
}

.bbl-hero-card h1 {
  margin: 18px 0 0;
  color: #fff;
  font-family: var(--bbl-brand-font);
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -.03em;
  font-weight: 800;
  text-wrap: balance;
}

.bbl-breadcrumb,
.rank-math-breadcrumb {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-family: var(--bbl-body-font);
}

.bbl-breadcrumb a,
.rank-math-breadcrumb a { color: #fff; }

/* ─── Two-Column Shell ─── */
.bbl-post-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30%;
  gap: 20px;
  align-items: start;
  padding-block: 30px;
}

.bbl-post-article,
.bbl-post-sidebar { min-width: 0; }

/* ─── Post Meta ─── */
.bbl-post-meta-wrap {
  margin-bottom: 20px;
  border-top: 3px solid var(--bbl-red);
  padding-top: 12px;
}

.bbl-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  color: var(--bbl-muted);
  font-family: var(--bbl-body-font);
  font-size: 14px;
  line-height: 1.4;
}

.bbl-post-meta strong {
  color: var(--bbl-ink);
  font-weight: 600;
}

.bbl-post-meta a {
  color: var(--bbl-ink);
  text-decoration: none;
}
.bbl-post-meta a:hover {
  color: var(--bbl-red);
}

/* ─── Shared Panels ─── */
.bbl-panel,
.bbl-warning-box,
.bbl-share-box {
  margin-bottom: 26px;
}

.bbl-panel {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* ─── Expert Grid: Elementor listing #1979 ─── */
.bbl-expert-panel {
  width: fit-content;
  max-width: 100%;
  margin-bottom: 22px;
  padding: 15px 5px 5px;
  background: #fcf3f4;
  border-radius: 0;
  box-shadow: 0 0 10px rgba(0, 0, 0, .08);
}

.bbl-expert-heading {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 20px 10px;
}
.bbl-expert-heading span {
  width: 38px;
  height: 3px;
  background: var(--bbl-red);
  flex: 0 0 38px;
}
.bbl-expert-heading h2 {
  margin: 0;
  color: #010212;
  font-family: var(--bbl-body-font);
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
}

.bbl-expert-grid {
  display: grid;
  grid-template-columns: minmax(0, 380px);
  gap: 20px;
}

.bbl-expert-card {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 120px;
  padding: 15px;
  background: #fff;
  color: #010212;
  border-radius: 0;
  box-shadow: 0 0 10px rgba(0, 0, 0, .15);
}

.bbl-expert-avatar,
.bbl-expert-card img {
  width: 65px;
  height: 65px;
  flex: 0 0 65px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  outline: 2px solid #666;
  box-shadow: none;
}

.bbl-expert-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.bbl-expert-name-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.bbl-expert-card strong {
  display: inline-flex;
  align-items: center;
  color: #010212;
  font-family: var(--bbl-brand-font);
  font-size: 15px;
  line-height: 1.35;
  font-weight: 600;
}

.bbl-expert-separator {
  display: inline-block;
  margin: 0 2px;
  font-weight: 400;
  color: #010212;
}
.bbl-expert-separator::after {
  content: '|';
}

.bbl-expert-card em {
  display: block;
  margin: 0;
  color: #010212;
  font-family: var(--bbl-brand-font);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 500;
  font-style: normal;
}
.bbl-expert-link {
  display: inline-block;
  margin: 0;
  color: var(--bbl-red);
  font-family: var(--bbl-brand-font);
  font-size: 16px;
  line-height: 1.25;
  font-weight: 600;
  text-decoration: none;
}
.bbl-expert-link:hover { text-decoration: underline; }

/* ─── Post Excerpt ─── */
.bbl-post-excerpt {
  margin: 0 0 20px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--bbl-ink);
  font-family: var(--bbl-body-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  text-align: justify;
}

.bbl-post-excerpt p { margin: 0 0 16px; }

/* ─── TOC (Collapsible Box) ─── */
.bbl-toc {
  width: 100%;
  max-width: 640px;
  margin: 0 0 28px;
  border: 1px solid #e8e0d8;
  border-left: 4px solid var(--bbl-red);
  border-radius: 8px;
  background: linear-gradient(135deg, #fdf8f4 0%, #fff 100%);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
  overflow: hidden;
}

.bbl-toc-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 20px;
  border: none;
  background: transparent;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.bbl-toc-toggle:hover {
  background: rgba(236, 40, 28, .03);
}

.bbl-toc h2 {
  margin: 0;
  color: var(--bbl-red-dark);
  font-family: var(--bbl-body-font);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

.bbl-toc-chevron {
  flex-shrink: 0;
  color: var(--bbl-red);
  transition: transform .25s ease;
}

.bbl-toc.is-collapsed .bbl-toc-chevron {
  transform: rotate(-180deg);
}

/* ── TOC Body wrapper (replaces old ol#bbl-toc-list) ── */
.bbl-toc-body {
  border-top: 1px solid #e8e0d8;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease, opacity .25s ease;
  max-height: 2000px;
  opacity: 1;
  padding: 4px 20px 18px;
}

.bbl-toc.is-collapsed .bbl-toc-body {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  border-top-color: transparent;
}

/* ── Top-level numbered list (H2 items) ── */
.bbl-toc-ol {
  margin: 0;
  padding: 0 0 0 22px;
  list-style: decimal;
  counter-reset: toc-h2;
}

.bbl-toc-ol > li {
  margin: 0;
  padding: 0;
  font-family: var(--bbl-body-font);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--bbl-ink);
}

.bbl-toc-ol > li::marker {
  color: var(--bbl-red);
  font-weight: 600;
}

/* H2 item — flex row with optional expand button */
.bbl-toc-h2 {
  position: relative;
  border-bottom: 1px solid rgba(0, 0, 0, .05);
}

.bbl-toc-h2:last-child {
  border-bottom: none;
}

.bbl-toc-h2 > a {
  display: block;
  padding: 9px 0;
  padding-right: 32px;
  color: var(--bbl-ink);
  text-decoration: none;
  transition: color .15s;
}

.bbl-toc-h2 > a:hover {
  color: var(--bbl-red);
  text-decoration: underline;
}

/* ── Sub-toggle button (expand H3 children) ── */
.bbl-toc-sub-toggle {
  position: absolute;
  right: 0;
  top: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid #e0d8d0;
  border-radius: 50%;
  background: #faf6f2;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
  appearance: none;
  -webkit-appearance: none;
  padding: 0;
}

.bbl-toc-sub-toggle:hover {
  background: #f0e8e0;
  border-color: var(--bbl-red);
}

.bbl-toc-sub-toggle svg {
  color: var(--bbl-red);
  transition: transform .25s ease;
  transform: rotate(-90deg);
}

.bbl-toc-h2.is-sub-open > .bbl-toc-sub-toggle svg {
  transform: rotate(0deg);
}

/* ── H3 sub-list (hidden by default) ── */
.bbl-toc-sub {
  margin: 0;
  padding: 0 0 0 18px;
  list-style: disc;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .3s ease, opacity .25s ease, padding .3s ease;
}

.bbl-toc-h2.is-sub-open > .bbl-toc-sub {
  max-height: 1200px;
  opacity: 1;
  padding-bottom: 6px;
}

.bbl-toc-sub li {
  margin: 0;
  padding: 5px 0;
  font-size: 14px;
  line-height: 1.5;
  color: #555;
  border-bottom: 1px dashed rgba(0, 0, 0, .04);
}

.bbl-toc-sub li:last-child {
  border-bottom: none;
}

.bbl-toc-sub li::marker {
  color: #bbb;
}

.bbl-toc-sub a {
  color: #555;
  text-decoration: none;
  transition: color .15s;
}

.bbl-toc-sub a:hover {
  color: var(--bbl-red);
  text-decoration: underline;
}

/* Legacy compat — keep general .bbl-toc a styles */
.bbl-toc a { color: var(--bbl-ink); text-decoration: none; transition: color .15s; }
.bbl-toc a:hover { color: var(--bbl-red); text-decoration: underline; }

/* ─── Post Content (also .contentt for TOC compat) ─── */
.bbl-post-content {
  color: var(--bbl-ink);
  font-family: var(--bbl-body-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  text-align: justify;
}

.bbl-post-content h2,
.bbl-post-content h3 {
  font-family: var(--bbl-brand-font);
  scroll-margin-top: 110px;
}

.bbl-post-content h1 {
  margin: 28px 0 18px;
  font-size: 22px;
  color: #003366;
  font-family: var(--bbl-brand-font);
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  text-align: center;
}

.bbl-post-content h2 {
  margin: 32px 0 16px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--bbl-red);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--bbl-red);
}
.bbl-post-content h2:has(img) {
  border-bottom: none;
  padding-bottom: 0;
}
.bbl-post-content h2 img {
  display: block;
  margin: 0 auto;
}

.bbl-post-content h3,
.bbl-post-content h3.wp-block-heading {
  margin: 24px 0 12px;
  font-size: 21.6px;
  font-weight: 600;
  line-height: 1.4;
  color: #2C3E50;
  padding-left: 12px;
  border-left: 3px solid var(--bbl-red);
}
.bbl-post-content p { margin: 0 0 18px; }
.bbl-post-content a { color: var(--bbl-red); font-weight: 700; }
.bbl-post-content img { max-width: 100%; height: auto; border-radius: 0; }

/* Lists */
.bbl-post-content ol,
.bbl-post-content ul {
  margin: 0 0 20px;
  padding-left: 28px;
  list-style-position: outside;
}
.bbl-post-content ol { list-style-type: decimal; }
.bbl-post-content ul { list-style-type: disc; }
.bbl-post-content li {
  margin-bottom: 10px;
  line-height: 1.65;
}
.bbl-post-content li:last-child { margin-bottom: 0; }
.bbl-post-content li ol,
.bbl-post-content li ul {
  margin-top: 8px;
  margin-bottom: 0;
  padding-left: 22px;
}
.bbl-post-content li p { margin-bottom: 6px; }
.bbl-post-content table {
  width: 100% !important;
  border-collapse: collapse;
  table-layout: fixed;
  margin: 24px 0;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 8px rgba(0, 0, 0, .08);
  overflow: hidden;
}
.bbl-post-content th,
.bbl-post-content td {
  border: 1px solid #E8E8E8;
  padding: 10px 14px;
  vertical-align: top;
  word-break: break-word;
  font-size: 14.4px;
}
.bbl-post-content th {
  font-size: 15.2px;
}
.bbl-post-content tr:first-child td,
.bbl-post-content tr:first-child th,
.bbl-post-content thead td,
.bbl-post-content thead th {
  background: var(--bbl-red);
  color: #fff;
  font-weight: 700;
  font-size: 15.2px;
  text-align: center;
  border-color: var(--bbl-red-dark);
  padding: 12px 15px;
}
.bbl-post-content tr:first-child p {
  color: #fff;
  text-align: center;
  margin-bottom: 0;
}
.bbl-post-content tbody tr:nth-child(odd) {
  background: #FAFAFA;
}
.bbl-post-content td[rowspan] {
  background: #f8f9fa;
  font-weight: 500;
  text-align: center;
  vertical-align: middle;
  width: 180px;
}
.bbl-post-content table span[style*="line-through"] {
  color: #666;
  text-decoration: line-through;
}

/* ─── Table Swipe Wrapper (Mobile) ─── */
.bbl-table-swipe {
  position: relative;
  margin: 24px 0;
}

.bbl-table-swipe table {
  margin: 0 !important;
  min-width: 700px;   /* force overflow → enables swipe + hint */
}

.bbl-table-swipe .bbl-swipe-track {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;           /* Firefox */
  -ms-overflow-style: none;        /* Edge */
}
.bbl-table-swipe .bbl-swipe-track::-webkit-scrollbar {
  display: none;                   /* Chrome/Safari */
}

/* Swipe Hint Overlay */
.bbl-swipe-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-radius: 6px;
  z-index: 5;
  pointer-events: none;
  opacity: 1;
  transition: opacity .5s ease;
}
.bbl-swipe-hint.is-hidden {
  opacity: 0;
}

.bbl-swipe-hint-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--bbl-body-font);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .03em;
  text-shadow: 0 2px 6px rgba(0,0,0,.5);
  padding: 18px 28px;
  background: rgba(255,255,255,.12);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.2);
}

.bbl-swipe-hand {
  font-size: 42px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.3));
  animation: bbl-swipe-anim 1.4s ease-in-out infinite;
}

@keyframes bbl-swipe-anim {
  0%, 100% { transform: translateX(14px); opacity: .7; }
  50%      { transform: translateX(-14px); opacity: 1; }
}

/* ─── Khuyến cáo ─── */
.bbl-warning-box {
  margin: 32px 0 24px;
  padding: 28px 32px;
  background: #f9f9f9 !important;
  border: 1px solid #d5d5d5 !important;
  border-left: 4px solid #bbb !important;
  border-radius: 10px !important;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.15) !important;
}
.bbl-warning-box h2 {
  margin: 0 0 16px;
  color: var(--bbl-red) !important;
  font-family: var(--bbl-brand-font) !important;
  font-size: 19px !important;
  font-weight: 600 !important;
  line-height: 1.3;
  font-style: italic !important;
}
.bbl-warning-box p {
  margin: 0 0 14px;
  color: #010212 !important;
  font-family: var(--bbl-body-font) !important;
  font-size: 15px !important;
  line-height: 1.7;
  font-style: italic !important;
  text-align: justify;
  font-weight: 500 !important;
}
.bbl-warning-box p:last-child { margin-bottom: 0; }
.bbl-warning-box a {
  color: var(--bbl-red) !important;
  font-weight: 600 !important;
  font-style: italic !important;
  text-decoration: none;
}
.bbl-warning-box a:hover {
  text-decoration: underline;
}

/* ─── Share Box ─── */
.bbl-share-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.bbl-share-box span {
  font-family: var(--bbl-body-font);
  font-size: 16px;
  font-weight: 500;
  color: var(--bbl-ink);
}
.bbl-share-box a {
  display: inline-flex;
  min-height: auto;
  align-items: center;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #356cf7;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.bbl-share-box a + a::before { content: "|"; margin-right: 8px; color: #999; font-weight: 400; }

/* ─── Sidebar ─── */
.bbl-post-sidebar {
  position: sticky;
  top: 92px;
}

.bbl-sidebar-card {
  padding: 24px;
  margin-bottom: 20px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: box-shadow .25s ease;
}
.bbl-sidebar-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.09);
}

.bbl-sidebar-card h2 {
  margin: 0 0 18px;
  padding-bottom: 12px;
  padding-left: 14px;
  border-left: 4px solid var(--bbl-red);
  border-bottom: 1px solid #f0f0f0;
  color: var(--bbl-red);
  font-family: var(--bbl-brand-font);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .01em;
}

/* ─── Recent Posts ─── */
.bbl-recent-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.bbl-recent-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
  color: var(--bbl-ink);
  transition: color .2s ease, transform .2s ease;
}

.bbl-recent-item:first-child { padding-top: 0; }
.bbl-recent-item:last-child { border-bottom: 0; padding-bottom: 0; }
.bbl-recent-item:hover { color: var(--bbl-red); transform: translateX(3px); }

.bbl-recent-thumb {
  width: 100px;
  min-width: 100px;
  height: auto;
  aspect-ratio: 4 / 3;
  flex: 0 0 100px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bbl-cream);
}

.bbl-recent-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.bbl-recent-item:hover .bbl-recent-thumb img {
  transform: scale(1.06);
}

.bbl-recent-title {
  flex: 1;
  font-family: var(--bbl-body-font);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.55;
  color: #1a1a3e;
  text-transform: uppercase;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bbl-recent-item:hover .bbl-recent-title {
  color: var(--bbl-red);
}

/* ─── Service / Category Lists ─── */
.bbl-service-list,
.bbl-related-services-list,
.bbl-category-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.bbl-service-list,
.bbl-related-services-list {
  padding: 0;
}
.bbl-service-list li,
.bbl-related-services-list li {
  border-bottom: 1px solid #f0f0f0;
}
.bbl-service-list li:last-child,
.bbl-related-services-list li:last-child { border-bottom: 0; }
.bbl-service-list a,
.bbl-related-services-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 10px 13px 0;
  color: var(--bbl-ink);
  text-decoration: none;
  font-family: var(--bbl-body-font);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.45;
  transition: color .2s ease, transform .15s ease;
}
.bbl-service-list a::before,
.bbl-related-services-list a::before {
  content: "»";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--bbl-red), var(--bbl-red-dark));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  transition: transform .2s ease;
}
.bbl-service-list a:hover,
.bbl-related-services-list a:hover {
  color: var(--bbl-red);
  transform: translateX(4px);
}
.bbl-service-list a:hover::before,
.bbl-related-services-list a:hover::before {
  transform: scale(1.1);
}

/* Danh mục bài viết — distinct grey background */
.bbl-sidebar-card:has(.bbl-category-list) {
  background: linear-gradient(135deg, #f8f8fa, #f1f1f5);
}

.bbl-category-list {
  padding: 0;
}
.bbl-category-list > li:first-child { display: none; }
.bbl-category-list li { margin-bottom: 8px; }
.bbl-category-list li:last-child { margin-bottom: 0; }
.bbl-category-list a {
  display: block;
  padding: 11px 14px;
  border-radius: 8px;
  background: #fff;
  color: var(--bbl-ink);
  text-decoration: none;
  font-family: var(--bbl-body-font);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.38;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
  transition: all .2s ease;
}
.bbl-category-list a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--bbl-red), var(--bbl-red-dark));
  box-shadow: 0 4px 14px rgba(236,40,28,.18);
  transform: translateY(-1px);
}

/* ─── Hotline Card ─── */
.bbl-hotline-card {
  position: relative;
  margin: 20px 0;
  padding: 38px 22px 34px;
  text-align: center;
  color: #fff;
  background:
    url('https://bigbosslaw.com/wp-content/uploads/2025/01/taihinh.com-business-male-lawyer-judge-consult-having-team-meeting-with-client-law-legal-services-conceptcustomer-service-good-cooperation-officexa-scaled.jpg') center / cover no-repeat;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(181,18,27,.18);
  overflow: hidden;
  z-index: 0;
}

.bbl-hotline-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(180, 18, 27, .78) 0%, rgba(120, 8, 14, .82) 100%);
  z-index: -1;
}

.bbl-hotline-label {
  display: block;
  font-family: var(--bbl-brand-font);
  letter-spacing: .06em;
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.bbl-hotline-number {
  display: block;
  margin: 10px 0 8px;
  font-family: var(--bbl-number-font);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 4px;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.bbl-hotline-number a {
  color: #fff;
  text-decoration: none;
}
.bbl-hotline-hours {
  display: block;
  font-family: var(--bbl-body-font);
  font-size: 13px;
  letter-spacing: .03em;
  opacity: .92;
  margin-bottom: 18px;
  text-shadow: 0 1px 4px rgba(0,0,0,.2);
}

.bbl-hotline-cta {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-top: 4px;
  padding: 0 28px;
  border: 2px solid #fff;
  border-radius: 6px;
  background: transparent;
  color: #fff;
  font-family: var(--bbl-brand-font);
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: .04em;
  transition: all .25s ease;
}
.bbl-hotline-cta:hover {
  background: #fff;
  color: var(--bbl-red);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}

/* ─── Social Links Card ─── */
.bbl-social-links {
  display: flex;
  gap: 10px;
}
.bbl-social-links p {
  margin: 0;
}
.bbl-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  font-size: 0;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.bbl-social-link svg {
  font-size: initial;
  flex-shrink: 0;
}
.bbl-social-link .bbl-social-icon {
  font-size: 13px;
  font-weight: 800;
}
.bbl-social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,.15);
}
.bbl-social-facebook { background: #1877f2; }
.bbl-social-youtube { background: #ff0000; }
.bbl-social-zalo { background: #0068ff; }

/* ─── Related Posts ─── */
.bbl-related-posts {
  padding: 40px 0 60px;
}
.bbl-related-posts h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  font-family: var(--bbl-brand-font);
  font-size: 24px;
  font-weight: 700 !important;
  margin-bottom: 32px;
  color: var(--bbl-red);
  text-transform: uppercase;
}
.bbl-related-posts h2 .bbl-related-icon {
  width: 22px;
  height: 22px;
  display: inline-block;
  flex-shrink: 0;
}
.bbl-related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.bbl-related-card {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.bbl-related-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(31,18,12,.12);
}
.bbl-related-card a { color: var(--bbl-ink); text-decoration: none; display: block; }
.bbl-related-thumb {
  display: block;
  aspect-ratio: 16/10;
  background: var(--bbl-cream);
  overflow: hidden;
  position: relative;
}
.bbl-related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.bbl-related-card:hover .bbl-related-thumb img {
  transform: scale(1.06);
}
.bbl-related-card strong {
  display: block;
  padding: 14px 16px 16px;
  font-family: var(--bbl-body-font);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  color: #1a1a3e;
  transition: color .2s ease;
}
.bbl-related-card:hover strong {
  color: var(--bbl-red);
}

/* ─── Contract iframe: single border only (remove inline double-border) ─── */
.category-hop-dong-mau .bbl-post-content iframe {
  border: 1px solid #ddd !important;
  border-radius: 6px;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .bbl-post-shell { grid-template-columns: 1fr; }
  .bbl-post-sidebar { position: static; }
  .bbl-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bbl-expert-panel { padding: 15px 5px 5px; }
  .bbl-expert-card { padding: 15px; }
  .bbl-expert-card strong { font-size: 15px; }
  .bbl-hotline-card { margin-top: 24px; }
}

@media (max-width: 640px) {
  .bbl-container { width: min(100% - 22px, 1440px); }
  .bbl-post-hero { min-height: 245px; }
  .bbl-hero-card { padding-block: 36px; }
  .bbl-post-shell { padding-block: 20px; gap: 24px; }
  .bbl-post-meta { font-size: 14px; }
  .bbl-sidebar-card h2 { font-size: 18px; }
  .bbl-related-posts h2 { font-size: 20px; }
  .bbl-toc { width: 100%; max-width: 100%; }
  .bbl-post-excerpt,
  .bbl-post-content { font-size: 15px; line-height: 1.6; text-align: left; }
  .bbl-post-content ol,
  .bbl-post-content ul { padding-left: 22px; }
  .bbl-post-content li ol,
  .bbl-post-content li ul { padding-left: 18px; }
  .bbl-post-content h2 { font-size: 18px; }
  .bbl-post-content h3,
  .bbl-post-content h3.wp-block-heading { font-size: 16px; }
  /* Tables handled by .bbl-table-swipe JS wrapper */
  .bbl-post-content > table {
    table-layout: auto !important;
  }
  .bbl-warning-box p { font-size: 14px; }

  /* ─── Hợp đồng mẫu: scale-down tables to fit mobile ─── */
  .category-hop-dong-mau .bbl-post-content > table,
  .category-hop-dong-mau .bbl-table-swipe {
    display: block;
    overflow: visible;
    width: 100% !important;
  }
  .category-hop-dong-mau .bbl-table-swipe .bbl-swipe-track {
    overflow: visible;
  }
  .category-hop-dong-mau .bbl-post-content table {
    transform-origin: top left;
    width: max-content !important;
    table-layout: auto !important;
    box-shadow: none;
    border-radius: 0;
    margin: 0 !important;
  }

  /* ─── Iframe zoom-to-fit on mobile (no scrollbars) ─── */
  .bbl-iframe-wrap {
    position: relative;
    margin: 24px 0;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f9f9f9;
  }
  .bbl-iframe-scalebox {
    position: relative;
    overflow: hidden;
  }
  .bbl-iframe-scalebox iframe {
    display: block;
    border: none;
  }
  .bbl-iframe-expand-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 12px;
    margin-top: -1px;
    background: var(--bbl-red);
    color: #fff;
    border: none;
    border-radius: 0 0 6px 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--bbl-body-font);
  }
  .bbl-iframe-expand-btn:active {
    background: var(--bbl-red-dark);
  }
  .bbl-iframe-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #fff;
    display: none;
    flex-direction: column;
  }
  .bbl-iframe-modal.is-open {
    display: flex;
  }
  .bbl-iframe-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: var(--bbl-red);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    flex-shrink: 0;
  }
  .bbl-iframe-modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
  }
  .bbl-iframe-modal iframe {
    flex: 1;
    width: 100%;
    border: none;
  }

  /* Related posts: 2 columns, 4 items on mobile */
  .bbl-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .bbl-related-card:nth-child(n+5) { display: none; }
  .bbl-related-card strong { padding: 10px 12px 12px; font-size: 12px; line-height: 1.4; }
  .bbl-recent-thumb { flex-basis: 30%; width: 30%; }
}
