/* ============================================================================
 * [2026-10-24] CSS BO SUNG khi dua bo HTML Credent len web that (nap SAU cac file css cua bo HTML).
 * Chi them cho nhung cho bo HTML tinh khong co: anh dong (kich thuoc tu do), noi dung soan
 * trong CKEditor, phan trang that, thong bao, o chong spam. KHONG sua file css goc cua bo HTML.
 * ========================================================================== */

/* O chong bot cua form (nguoi that khong thay) */
.cr-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* Slider doi ngu: anh luat su bat ky -> phu kin khung */
.member__img--auto { left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* Logo doi tac bat ky -> nam gon trong o */
.partner a { position: absolute; inset: 0; display: block; }
.partner__img--auto { left: 10px; top: 8px; width: calc(100% - 20px); height: calc(100% - 16px); object-fit: contain !important; }

/* Giay chung nhan: anh bat ky phu kin khung */
.cert-card__img img { left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* Anh chan dung o trang chi tiet luat su (anh jpg/png bat ky) */
.ld-hero__photo .cr-portrait { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* Phan trang that (link) */
.pager__item--dots { pointer-events: none; border-color: transparent !important; background: none !important; }
.pager__item--nav { font-size: 18px; }

/* Tab linh vuc dang la link */
a.cat-tab { display: inline-flex; align-items: center; text-decoration: none; white-space: nowrap; }

/* O danh muc tin dang xem */
.news-cat.is-active { outline: 2px solid #c9a35a; outline-offset: 2px; }

.cr-empty, .lv-empty { text-align: center; color: #6b7280; padding: 24px 0; }
.cr-search-note { margin: 0 0 24px; font-size: 15px; color: #374151; }
.cr-search-note a { color: #b8893b; text-decoration: underline; }
.cr-cate-desc { max-width: 1100px; margin: 0 auto 32px; padding: 0 16px; font-size: 16px; line-height: 1.7; color: #374151; }
.cr-cate-desc--top { margin-top: 40px; }

.cr-post-meta { margin-top: 12px; }

/* Noi dung bai viet soan bang CKEditor */
.cr-content { overflow-wrap: anywhere; }
.cr-content img { max-width: 100%; height: auto; }
.cr-content figure { margin: 16px 0; }
.cr-content table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.cr-content table td, .cr-content table th { border: 1px solid #e5e7eb; padding: 8px 10px; }
.cr-content iframe { max-width: 100%; }
.post__body.cr-content ul, .post__body.cr-content ol { padding-left: 22px; margin: 10px 0; }
.post__body.cr-content ul { list-style: disc; }
.post__body.cr-content ol { list-style: decimal; }
.post__body.cr-content h2 { font-size: 22px; line-height: 1.35; font-weight: 700; margin: 20px 0 10px; }
.post__body.cr-content a { color: #b8893b; text-decoration: underline; }

/* Trang chi tiet luat su: noi dung soan tu do, cr_toc() boc moi <h2> thanh .ld-sec.
   Danh sach <ul> thuong -> giong .ld-list cua ban HTML (dau tich tron). */
.cr-content--lawyer .ld-sec { scroll-margin-top: 110px; }
.cr-content--lawyer .ld-sec ul { display: flex; flex-direction: column; gap: 6px; list-style: none; padding: 0; margin: 0; }
.cr-content--lawyer .ld-sec ul li { position: relative; padding-left: 30px; font-size: 13px; line-height: 18px; color: var(--n-1200); }
.cr-content--lawyer .ld-sec ul li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 16px; height: 16px; border-radius: 50px;
  background: #fbf5f1 url("../images/chi-tiet-luat-su/icon-check.svg") center / 13px 13px no-repeat;
}
.cr-content--lawyer .ld-sec ul.cr-2cot { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; row-gap: 6px; }
@media (max-width: 767px) { .cr-content--lawyer .ld-sec ul.cr-2cot { grid-template-columns: 1fr; } }

/* Trang cu (gio hang, tai khoan...) dang chay ben trong khung Credent */
.cr-legacy { padding: 30px 0 60px; background: #fff; }

/* [2026-10-27] Footer: icon trang truoc Tong dai / Email / Website */
.footer__text .footer__line { display: flex; align-items: center; gap: 8px; }
.footer__text .footer__line + .footer__line { margin-top: 12px; } /* 2026-10-27: 6px -> 12px */
.footer__ic {
  flex: none; width: 16px; height: 16px; color: #fff;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}

/* [2026-10-27] Header: nut hotline luon mau vang dong (truoc: nen navy, hover moi ra vang - xem style.css .header__hotline) */
.header__hotline { background: var(--gold); }
.header__hotline:hover { background: var(--gold-13); }

/* [2026-10-27] Trang Gioi thieu: logo don vi ho tro ben trai the (thay so 01/02/03) */
.unit-card__logo { flex: none; width: 110px; display: flex; align-items: center; justify-content: center; }
.unit-card__logo img { display: block; max-width: 110px; max-height: 90px; width: auto; height: auto; object-fit: contain; }
@media (max-width: 767px) {
  .unit-card__logo { width: 72px; }
  .unit-card__logo img { max-width: 72px; max-height: 60px; }
}

/* [2026-10-27] Trang Lien he: nut "Goi <hotline>" o cot CALL US */
.ct-call-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  padding: 14px 32px; border-radius: 60px; border: 2px solid #8e99ab;
  background: var(--navy-12); color: var(--white) !important; text-decoration: none !important;
  font-size: 22px; font-weight: 600; line-height: 28px; white-space: nowrap;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.ct-call-btn:hover { background: var(--gold); border-color: var(--gold); transform: translateY(-2px); }
.ct-call-btn svg { flex: none; }
@media (max-width: 767px) {
  .ct-call-btn { gap: 10px; padding: 11px 24px; font-size: 18px; line-height: 24px; }
  .ct-call-btn svg { width: 22px; height: 22px; }
}

/* [2026-10-27] Trang chu - Linh vuc: mo ta lay tu o soan thao co the la danh sach gach dau dong */
.acc-item__desc--ds { height: auto; }
.acc-item__desc--ds ul, .acc-item__desc--ds ol { margin: 0; padding-left: 18px; }
.acc-item__desc--ds ul { list-style: disc; }
.acc-item__desc--ds ol { list-style: decimal; }
.acc-item__desc--ds li { margin: 0 0 4px; }
.acc-item__desc--ds p { margin: 0 0 6px; }

/* [2026-10-28] Link trong noi dung soan thao (bai viet, luat su, mo ta linh vuc): mau chu binh thuong, re chuot moi doi mau vang nhat (khong gach chan) */
.cr-content a:not([class]), .acc-item__desc a:not([class]), .cr-cate-desc a:not([class]) { color: inherit; text-decoration: none; cursor: pointer; transition: color .2s; }
.cr-content a:not([class]) *, .acc-item__desc a:not([class]) *, .cr-cate-desc a:not([class]) * { text-decoration: none; }
.cr-content a:not([class]):hover, .acc-item__desc a:not([class]):hover, .cr-cate-desc a:not([class]):hover { color: var(--gold-11, #ce9555); }

/* [2026-10-28] Chi tiet luat su: anh nam giua khung trang (chi-tiet-luat-su.css dat left:-24.27% / top:-9.35% cho anh mau -> anh that bi lech trai, du trang ben phai) */
.ld-hero__photo .cr-portrait { left: 0; top: 0; }

/* [2026-10-28] Muc luc trang chi tiet bai viet (dung lai .ld-toc cua trang luat su) */
.cr-post-toc { margin: 0 0 28px; padding: 22px 24px; }
.cr-post-toc .ld-toc__title { font-size: 18px; line-height: 24px; color: var(--navy-12); }
.cr-post-toc .ld-toc__body { margin-top: 16px; }
.cr-post-toc .ld-toc__list a { white-space: normal; font-size: 14px; line-height: 20px; color: #6b6b6b; padding: 5px 0; }
.cr-post-toc .ld-toc__list a::before { align-self: stretch; height: auto; }
.cr-post-toc .ld-toc__list a.is-active, .cr-post-toc .ld-toc__list a:hover { color: var(--navy-12); }
.cr-post-toc .cr-post-toc__cap2 { padding-left: 16px; }
.cr-post-toc .cr-post-toc__cap3 { padding-left: 32px; }
.post__body.cr-content h1[id], .post__body.cr-content h2[id], .post__body.cr-content h3[id] { scroll-margin-top: 110px; }

/* [2026-10-28] Trang chu / gioi thieu — slider luat su: anh nam giua khung tren may tinh bang + dien thoai.
   responsive.css dat "left:50%; translate:-50% 0; width:auto" cho anh mau -> anh that (.member__img--auto, rong 100%) bi doi trai nua khung */
@media (max-width: 1239px) {
  .member__img--auto { left: 0; top: 0; bottom: auto; width: 100%; height: calc(100% - 81px); translate: none; object-fit: cover; object-position: center top; }
}
@media (max-width: 767px) {
  .member__img--auto { height: calc(100% - 58px); }
}
