/* =====================================================================
   TRAVELCAR - CSS HOÀN THIỆN GIAO DIỆN (wp/travelcar-polish.css)
   Nạp SAU cùng (include/product_category.php in thẻ <link>, số phiên bản tự lấy theo ngày sửa file),
   nên ghi đè được moz-*.css, travelcar-layout.css, travelcar-ui.css mà không phải sửa các file đó.

   Quy ước chung toàn site:
   - Nút gọi điện: nền SÁNG dùng cam #e8590c, nền TỐI (ảnh, khối xanh) dùng vàng #ffd262.
   - Nút Zalo: xanh #0068ff.  Nút sang trang khác: viền (btn-secondary).
   - Bo góc nút 8px, thẻ 12px. Nút cao tối thiểu 44px (dễ bấm trên điện thoại).
   - Tiêu đề mục: Roboto Slab, chữ đậm màu #1d2b33 (dễ đọc hơn xám nhạt cũ).
   - Đoạn mô tả dưới tiêu đề mục: rộng tối đa 760px để dòng chữ không quá dài.

   Mục lục: 1. Biến  2. Nút  3. Tiêu đề, chữ  4. Banner trang trong  5. Bảng trên điện thoại
            6. Chân trang  7. Trang chủ (lớp th-*)  8. Điện thoại
   ===================================================================== */

/* ----- 1. Biến ----- */
:root {
    --tc-ink: #1d2b33;        /* chữ tiêu đề */
    --tc-text: #3f4a4f;       /* chữ thường */
    --tc-muted: #5d6769;      /* chữ phụ */
    --tc-line: #dde6e8;       /* đường viền */
    --tc-tint: #f2f8f8;       /* nền mục xen kẽ */
    --tc-teal: #0a7a64;       /* màu thương hiệu */
    --tc-link: #0b7daa;
    --tc-orange: #e8590c;
    --tc-orange-d: #c94d0a;
    --tc-yellow: #ffd262;
    --tc-zalo: #0068ff;
    --tc-radius: 12px;
    --tc-shadow: 0 1px 2px rgba(16,40,48,.06), 0 4px 14px rgba(16,40,48,.06);
    --tc-shadow-h: 0 2px 4px rgba(16,40,48,.08), 0 10px 26px rgba(16,40,48,.12);
}

/* ----- 2. Nút ----- */
.btn { border-radius: 8px; min-height: 44px; line-height: 1.25; font-weight: 700; gap: 8px;
       transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .1s }
.btn:not(.btn-block) { display: inline-flex; align-items: center; justify-content: center }
.btn:active { transform: translateY(1px) }
.btn-lg { min-height: 52px; padding: 12px 28px; font-size: 18px }
.btn .tc-ico { width: 1.15em; height: 1.15em }
.btn-yellow { background: var(--tc-yellow); border-color: var(--tc-yellow); color: #4a3200 !important; box-shadow: 0 3px 0 #d9a93a }
.btn-yellow:hover, .btn-yellow:focus { background: #ffc93d; border-color: #ffc93d }
.btn-secondary { background: #fff; border: 1.5px solid #a9bcc1; color: #1f3b45 !important }
.btn-secondary:hover, .btn-secondary:focus { background: #f0f9f7; border-color: var(--tc-teal); color: var(--tc-teal) !important }
.tch-cta { border-radius: 8px }
a:focus-visible, button:focus-visible, .btn:focus-visible, summary:focus-visible {
    outline: 3px solid rgba(11,125,170,.55); outline-offset: 2px }

/* ----- 3. Tiêu đề, chữ ----- */
.page-section-title { color: var(--tc-ink); line-height: 1.3 }
.page-section-headline p, .page-section-subtitle { max-width: 760px; margin-left: auto; margin-right: auto }
.noidung { overflow-wrap: anywhere }
.noidung img { height: auto; max-width: 100% }
.breadcrumb { font-size: 14px }

/* Nhãn "Mới" ở banner trang dịch vụ, blog: thay ảnh GIF nhấp nháy bằng nhãn tĩnh */
.jumbotron img[src*="moi.gif"] { display: none }
.jumbotron p strong:has(+ img[src*="moi.gif"]) {
    display: inline-block; padding: 1px 8px; border-radius: 10px; background: var(--tc-yellow); color: #4a3200;
    font-size: 12px; letter-spacing: .04em; text-transform: uppercase; vertical-align: 1px }

/* ----- 4. Banner trang dịch vụ, danh mục, blog: thấp gọn, nội dung lên sớm hơn ----- */
.jumbotron:not(.th-hero):not(.page-section-hero) { padding-top: 44px; padding-bottom: 40px }
.jumbotron:not(.th-hero) .jumbotron-title, .jumbotron:not(.th-hero) h1 { margin-bottom: 12px }
.jumbotron .jumbotron-subtitle { max-width: 820px; margin: 0 auto }
.jumbotron .jumbotron-subtitle p:last-child, .jumbotron .col > p:last-of-type { margin-bottom: 0 }
.jumbotron .sharethis-inline-share-buttons { margin-top: 12px }
.card-deck.mt-5:first-child { margin-top: 0 !important }

/* ----- 5. Bảng trong bài trên điện thoại -----
   Bảng 2-3 cột: giữ dạng bảng gọn (đọc nhanh, đỡ cuộn).  Bảng 4 cột trở lên: mỗi hàng 1 khối,
   tên cột bên trái - giá trị bên phải trên cùng 1 dòng (thấp hơn ~40% so với trước). */
@media (max-width: 767.98px) {
    .table-stack:not(:has(tr > :nth-child(4))) table { display: table; width: 100% !important; border: 1px solid #dbe3e3 !important; font-size: 14px }
    .table-stack:not(:has(tr > :nth-child(4))) thead { display: table-header-group }
    .table-stack:not(:has(tr > :nth-child(4))) tbody { display: table-row-group }
    .table-stack:not(:has(tr > :nth-child(4))) tr { display: table-row; margin: 0; border: 0 }
    .table-stack:not(:has(tr > :nth-child(4))) tr.tbl-head { display: table-row }
    .table-stack:not(:has(tr > :nth-child(4))) td,
    .table-stack:not(:has(tr > :nth-child(4))) th { display: table-cell; width: auto !important; padding: 8px 10px;
        border: 0 !important; border-bottom: 1px solid #eef3f3 !important; background: none }
    .table-stack:not(:has(tr > :nth-child(4))) tr.tbl-head > *,
    .table-stack:not(:has(tr > :nth-child(4))) thead th { background: #f0f7f7 !important; font-size: 13px }
    .table-stack:not(:has(tr > :nth-child(4))) td[data-label]::before { content: none; display: none }

    .table-stack:has(tr > :nth-child(4)) td[data-label] { display: grid; grid-template-columns: minmax(96px, 40%) 1fr; gap: 10px; align-items: baseline }
    .table-stack:has(tr > :nth-child(4)) td[data-label]::before { margin: 0 }
}

/* ----- 6. Chân trang ----- */
@media (max-width: 767.98px) {
    .mgn-footer-fat .ft-cols { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 20px; margin-left: 0 !important; margin-right: 0 !important }
    .mgn-footer-fat .ft-cols > .mgn-col { width: auto !important; max-width: none !important; padding: 0 !important; margin: 0 0 12px !important; border: 0 !important }
    .mgn-footer-fat .ft-cols > .mgn-col:last-child { grid-column: 1 / -1 }
    .mgn-footer-fat .mgn-links a { display: inline-block; padding: 5px 0; line-height: 1.35 }
}

/* =====================================================================
   7. TRANG CHỦ (include/home.php, lớp th-*)
   ===================================================================== */
.th-home { color: var(--tc-text) }
.th-section { padding: 64px 0 }
.th-tint { background: var(--tc-tint) }
.th-head { max-width: 780px; margin: 0 auto 32px; text-align: center }
.th-head .page-section-title { margin-bottom: 12px }
.th-head p { margin: 0; font-size: 17px; line-height: 1.6 }
.th-h2 { margin: 0 0 12px; color: var(--tc-ink); font-family: "Roboto Slab", Museo, "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 500; font-size: 26px; line-height: 1.3 }
.th-subhead { margin: 48px 0 20px; color: var(--tc-ink); font-size: 20px; font-weight: 700; text-align: center }
.th-center { margin: 28px 0 0; text-align: center }
.th-muted { color: var(--tc-muted); font-size: 15px }
.th-note { margin: 24px auto 0; max-width: 820px; color: var(--tc-muted); font-size: 15px; text-align: center }
.th-kicker { margin: 0 0 10px; color: var(--tc-orange-d); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase }

/* Lưới */
.th-grid { display: grid; gap: 24px }
.th-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) }
.th-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) }
.th-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) }

/* Thẻ */
.th-card { display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--tc-line);
           border-radius: var(--tc-radius); box-shadow: var(--tc-shadow); overflow: hidden; text-align: left }
.th-card-pad { padding: 22px }
.th-card-body { padding: 18px 20px 4px; flex: 1 }
.th-card p { margin: 0 0 12px; font-size: 15px; line-height: 1.55 }
.th-card-title { margin: 0 0 8px; color: var(--tc-ink); font-family: Lato, "Helvetica Neue", Arial, sans-serif; font-size: 18px; font-weight: 700; line-height: 1.35 }
.th-card-title a { color: var(--tc-ink); text-decoration: none }
.th-card-title a:hover { color: var(--tc-link); text-decoration: underline }
a.th-card:hover, .th-vcard:hover, .th-post:hover, .th-scard:hover { box-shadow: var(--tc-shadow-h) }

/* Thẻ xe */
.th-vcard-img, .th-post-img { display: block; aspect-ratio: 40 / 21; overflow: hidden; background: #e9eff0 }
.th-vcard-img img, .th-post-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s }
.th-vcard:hover .th-vcard-img img, .th-post:hover .th-post-img img { transform: scale(1.03) }
.th-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none }
.th-tags li { padding: 3px 10px; border-radius: 20px; background: #eef5f5; color: #35545c; font-size: 13px }
.th-card-btn { margin: 0 20px 20px; align-self: stretch }

/* Hàng "Cỡ xe khác" */
.th-chiprow { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 28px }
.th-chiprow-label { margin-right: 4px; color: var(--tc-muted); font-weight: 700 }
.th-chip { display: inline-flex; align-items: center; min-height: 38px; padding: 6px 14px; border: 1px solid var(--tc-line); border-radius: 20px;
           background: #fff; color: #1f3b45 !important; font-size: 15px; text-decoration: none !important }
.th-chip:hover { border-color: var(--tc-teal); color: var(--tc-teal) !important; background: #f0f9f7 }
.th-chip-more { font-weight: 700; color: var(--tc-link) !important }

/* Danh sách */
.th-list, .th-checks { margin: 0 0 12px; padding: 0; list-style: none }
.th-list li, .th-checks li { position: relative; margin: 0 0 8px; padding-left: 22px; font-size: 15px; line-height: 1.5 }
.th-list li::before { content: ""; position: absolute; left: 6px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: #9fb6bb }
.th-checks li::before { content: ""; position: absolute; left: 2px; top: .35em; width: 12px; height: 7px; border-left: 2px solid #1ca37f; border-bottom: 2px solid #1ca37f; transform: rotate(-45deg) }

/* Thẻ dịch vụ */
.th-scard .th-card-title { font-size: 17px }
.th-scard p { color: var(--tc-muted); flex: 1 }
.th-more { margin-top: auto; font-size: 14px; font-weight: 700 }

/* Tuyến đường */
.th-routes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none }
.th-routes a { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 14px; border: 1px solid var(--tc-line); border-radius: 10px;
               background: #fff; color: var(--tc-ink) !important; font-weight: 700; text-decoration: none !important; transition: border-color .15s, background-color .15s }
.th-routes a::before { content: ""; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--tc-teal) }
.th-routes a:hover { border-color: var(--tc-teal); background: #f0f9f7; color: var(--tc-teal) !important }

/* Lý do + con số */
.th-reason { text-align: center; padding: 8px 6px }
.th-reason img { width: 64px; height: 64px; margin: 0 auto 14px; display: block }
.th-reason p { margin: 0; font-size: 15px; line-height: 1.55 }
.th-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 40px 0 0; padding: 0; list-style: none;
            border-radius: var(--tc-radius); overflow: hidden; background: #1d6b87; color: #fff }
.th-stats li { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 12px; text-align: center }
.th-stats li + li { border-left: 1px solid rgba(255,255,255,.18) }
.th-stats strong { font-family: "Roboto Slab", Museo, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 34px; line-height: 1.1; color: #9fe3ff }
.th-stats span { font-size: 15px; opacity: .92 }

/* Quy trình */
.th-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; counter-reset: none }
.th-step { position: relative; padding: 22px; background: #fff; border: 1px solid var(--tc-line); border-radius: var(--tc-radius); box-shadow: var(--tc-shadow) }
.th-step p { margin: 0; font-size: 15px; line-height: 1.55 }
.th-step-no { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-bottom: 12px; border-radius: 50%;
              background: var(--tc-teal); color: #fff; font-weight: 700; font-size: 17px }

/* Ưu đãi */
.th-offers { margin: 0 0 14px; padding: 0; list-style: none; border: 1px solid var(--tc-line); border-radius: 10px; overflow: hidden }
.th-offers li { display: flex; align-items: center; gap: 14px; padding: 10px 14px; font-size: 15px }
.th-offers li + li { border-top: 1px solid var(--tc-line) }
.th-offers strong { flex: 0 0 54px; padding: 4px 0; border-radius: 6px; background: #fff1e8; color: var(--tc-orange-d); text-align: center; font-size: 16px }

/* Nút trang chủ */
.th-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px }
.th-actions-center { justify-content: center }
.th-btn-call { background: var(--tc-orange); border: 0; color: #fff !important; box-shadow: 0 3px 0 #b5470a }
.th-btn-call:hover, .th-btn-call:focus { background: #d14f0a; color: #fff !important }
.th-btn-zalo { background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.8); color: #fff !important }
.th-btn-zalo:hover, .th-btn-zalo:focus { background: var(--tc-zalo); border-color: var(--tc-zalo); color: #fff !important }

/* Banner trang chủ */
.th-hero { padding: 84px 0 72px; text-align: center }
.th-hero .jumbotron-title { max-width: 900px; margin: 0 auto 18px }
.th-hero-lead { max-width: 780px; margin: 0 auto; color: rgba(255,255,255,.92); font-size: 18px; line-height: 1.6 }
.th-hero-lead strong { color: #fff }
.th-hero .th-actions { margin-top: 28px }
.th-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 26px 0 0; padding: 0; list-style: none; color: rgba(255,255,255,.88); font-size: 15px }
.th-facts li { display: flex; align-items: center; gap: 7px }
.th-facts li::before { content: ""; width: 10px; height: 6px; border-left: 2px solid #7fe0c4; border-bottom: 2px solid #7fe0c4; transform: rotate(-45deg) translateY(-2px) }

/* Xe cưới */
.th-wedding { padding: 72px 0; background-position: center; background-size: cover; background-color: #3a2a2a }
.th-wedding-card { max-width: 480px; padding: 28px; border-radius: var(--tc-radius); background: rgba(255,255,255,.96); box-shadow: 0 10px 30px rgba(0,0,0,.2) }
.th-wedding-card p { margin: 0; font-size: 16px; line-height: 1.6 }

/* Văn phòng */
.th-office { align-items: start; gap: 40px }
.th-office p { font-size: 16px; line-height: 1.6 }
.th-contact dl { margin: 0 0 6px; display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; font-size: 15px }
.th-contact dt { color: var(--tc-muted); font-weight: 400 }
.th-contact dd { margin: 0; color: var(--tc-ink) }

/* Blog */
.th-post .th-card-title { font-size: 17px }
.th-post p { color: var(--tc-muted); font-size: 14px }

/* Khối gọi đặt xe cuối trang */
.th-section-cta { padding: 8px 0 56px }
.th-section-cta .tc-cta { margin: 0 }

/* Máy tính bảng */
@media (max-width: 991.98px) {
    .th-grid-4, .th-steps { grid-template-columns: repeat(2, minmax(0, 1fr)) }
    .th-routes { grid-template-columns: repeat(3, minmax(0, 1fr)) }
    .th-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)) }
}

/* ----- 8. Điện thoại ----- */
@media (max-width: 767.98px) {
    .th-section { padding: 40px 0 }
    .th-head { margin-bottom: 22px }
    .th-head p { font-size: 16px }
    .th-h2 { font-size: 22px }
    .th-subhead { margin-top: 36px }
    .th-grid { gap: 14px }
    .th-grid-2 { grid-template-columns: 1fr }
    .th-routes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px }
    .th-routes a { min-height: 44px; padding: 8px 10px; font-size: 14px }

    /* Thẻ xe, bài blog: vuốt ngang thay vì xếp dọc 6 thẻ dài */
    .th-scroll-sm { display: flex; gap: 14px; margin: 0 -15px; padding: 2px 15px 12px; overflow-x: auto; scroll-snap-type: x mandatory;
                    -webkit-overflow-scrolling: touch; scrollbar-width: none }
    .th-scroll-sm::-webkit-scrollbar { display: none }
    .th-scroll-sm > * { flex: 0 0 82%; scroll-snap-align: start }

    .th-card-pad { padding: 18px }
    .th-chiprow { flex-wrap: nowrap; justify-content: flex-start; margin: 20px -15px 0; padding: 2px 15px 6px; overflow-x: auto; scrollbar-width: none }
    .th-chiprow::-webkit-scrollbar { display: none }
    .th-chip, .th-chiprow-label { flex: 0 0 auto; white-space: nowrap }
    .th-reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px }
    .th-reason img { width: 52px; height: 52px; margin-bottom: 10px }
    .th-reason .th-card-title { font-size: 16px }
    .th-reason p { font-size: 14px }
    .th-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 28px }
    .th-stats li { padding: 16px 8px }
    .th-stats li:nth-child(3) { border-left: 0 }
    .th-stats li:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.18) }
    .th-stats strong { font-size: 28px }
    .th-steps { grid-template-columns: 1fr; gap: 12px }
    .th-step { display: grid; grid-template-columns: 36px 1fr; column-gap: 14px; padding: 16px }
    .th-step-no { grid-row: 1 / 3; margin: 0 }
    .th-step .th-card-title { margin-bottom: 4px }

    .th-hero { padding: 44px 0 40px }
    .th-hero-lead { font-size: 16px }
    .th-hero .th-actions { flex-direction: column; align-items: stretch; max-width: 340px; margin-left: auto; margin-right: auto }
    .th-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; max-width: 340px; margin: 22px auto 0; font-size: 14px; text-align: left }

    .th-wedding { padding: 40px 0; background-position: 70% center }
    .th-wedding-card { padding: 20px }
    .th-actions .btn { flex: 1 1 auto }
    .th-contact dl { grid-template-columns: 92px 1fr }
    .th-section-cta { padding-bottom: 32px }
}
@media (max-width: 400px) {
    .th-grid-4:not(.th-reasons):not(.th-svc) { grid-template-columns: 1fr }
}
@media (max-width: 767.98px) {
    .th-svc { gap: 10px }
    .th-svc .th-card-pad { padding: 14px }
    .th-svc .th-card-title { font-size: 15px }
    .th-svc p { font-size: 13.5px; margin-bottom: 8px }
    .th-svc .th-more { font-size: 13px }
}
@media (prefers-reduced-motion: reduce) {
    .th-vcard-img img, .th-post-img img { transition: none }
}

/* =====================================================================
   9. TRANG DANH MỤC (include/tbl_product_category.php, lớp tcat-*)
   Dùng cho: /blog/, /xe-du-lich/, /cho-thue-xe-du-lich/, /cho-thue-xe-di-tinh/, /cho-thue-xe-le-hoi/,
   /thue-xe-cuoi/, /xe-dua-don-hoc-sinh/, /xe-dua-don-cong-nhan-vien/, /huong-dan/, /gioi-thieu/, /tuyen-dung/
   ===================================================================== */
.tcat-hero { padding: 36px 0 34px !important; text-align: center }
.tcat-hero .jumbotron-title { margin: 6px auto 10px; max-width: 900px; font-size: 40px; line-height: 1.2 }
.tcat-hero .jumbotron-title small { font-size: .55em; opacity: .8 }
.tcat-hero .jumbotron-subtitle { max-width: 760px; margin: 0 auto; color: rgba(255,255,255,.92); font-size: 17px; line-height: 1.6 }
.tcat-hero .jumbotron-subtitle p { margin: 0 0 6px }
.tcat-hero .th-actions { margin-top: 18px }
.tcat-crumb { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; font-size: 14px; color: rgba(255,255,255,.75) }
.tcat-crumb a { color: #9fe3ff !important; text-decoration: none }
.tcat-crumb a:hover { text-decoration: underline }
.tcat-meta { margin: 12px 0 0; color: rgba(255,255,255,.7); font-size: 14px }

/* Hàng nút chuyển danh mục (dính dưới menu khi cuộn) */
.tcat-nav { position: sticky; top: 72px; z-index: 20; background: #fff; border-bottom: 1px solid var(--tc-line); box-shadow: 0 2px 8px rgba(16,40,48,.04) }
.tcat-tabs, .tcat-subs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch }
.tcat-tabs::-webkit-scrollbar, .tcat-subs::-webkit-scrollbar { display: none }
.tcat-tabs { padding: 12px 0 }
.tcat-tab { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border: 1px solid var(--tc-line); border-radius: 22px;
            background: #fff; color: #1f3b45 !important; font-size: 15px; font-weight: 700; white-space: nowrap; text-decoration: none !important; transition: border-color .15s, background-color .15s }
.tcat-tab:hover { border-color: var(--tc-teal); color: var(--tc-teal) !important; background: #f0f9f7 }
.tcat-tab.is-current { background: var(--tc-teal); border-color: var(--tc-teal); color: #fff !important }
.tcat-subs { align-items: center; padding: 0 0 12px }
.tcat-subs .th-chip { flex: 0 0 auto; min-height: 34px; padding: 4px 12px; font-size: 14px; white-space: nowrap }
.tcat-subs-label { flex: 0 0 auto; color: var(--tc-muted); font-size: 14px; font-weight: 700 }

/* Lưới thẻ */
.tcat-main { padding: 36px 0 48px; background: var(--tc-tint) }
.tcat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px }
.tcat-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--tc-line);
             border-radius: var(--tc-radius); box-shadow: var(--tc-shadow); transition: box-shadow .2s, transform .2s }
.tcat-card:hover { box-shadow: var(--tc-shadow-h); transform: translateY(-2px) }
.tcat-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #e9eff0 }
.tcat-img picture, .tcat-img img { display: block; width: 100%; height: 100% }
.tcat-img img { object-fit: cover; transition: transform .3s }
.tcat-card:hover .tcat-img img { transform: scale(1.03) }
.tcat-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px }
.tcat-title { margin: 0 0 8px; font-family: Lato, "Helvetica Neue", Arial, sans-serif; font-size: 17px; font-weight: 700; line-height: 1.4 }
.tcat-title a { color: var(--tc-ink) !important; text-decoration: none }
.tcat-title a:hover { color: var(--tc-link) !important; text-decoration: underline }
.tcat-desc { margin: 0 0 12px; color: var(--tc-muted); font-size: 14.5px; line-height: 1.55;
             display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden }
.tcat-more { margin-top: auto; color: var(--tc-link) !important; font-size: 14px; font-weight: 700; text-decoration: none !important }
.tcat-empty { max-width: 640px; margin: 0 auto; padding: 32px; text-align: center; background: #fff; border: 1px solid var(--tc-line); border-radius: var(--tc-radius) }

/* Phân trang */
.tcat-pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin: 36px 0 8px }
.tcat-pg { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--tc-line);
           border-radius: 10px; background: #fff; color: #1f3b45 !important; font-weight: 700; text-decoration: none !important }
a.tcat-pg:hover { border-color: var(--tc-teal); color: var(--tc-teal) !important; background: #f0f9f7 }
.tcat-pg.is-current { background: var(--tc-teal); border-color: var(--tc-teal); color: #fff !important }
.tcat-pg.is-off { opacity: .4 }
.tcat-pg-gap { padding: 0 4px; color: var(--tc-muted) }
.tcat-main .tc-cta { margin: 40px 0 0 }

@media (min-width: 768px) {
    .tcat-tabs, .tcat-subs { flex-wrap: wrap; overflow: visible }
}
@media (max-width: 991.98px) {
    .tcat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px }
}
@media (max-width: 767.98px) {
    .tcat-hero { padding: 26px 0 24px !important }
    .tcat-hero .jumbotron-title { font-size: 28px }
    .tcat-hero .jumbotron-subtitle { font-size: 15px }
    .tcat-hero .th-actions { flex-direction: row; max-width: none }
    .tcat-hero .th-actions .btn { flex: 1 1 0; min-height: 44px; padding: 8px 10px; font-size: 15px }
    .tcat-nav { top: 56px }
    .tcat-tabs, .tcat-subs { margin: 0 -15px; padding-left: 15px; padding-right: 15px }
    .tcat-tabs { padding-top: 10px; padding-bottom: 10px }
    .tcat-tab { min-height: 36px; padding: 6px 13px; font-size: 14px }
    .tcat-main { padding: 18px 0 32px }
    /* Điện thoại: thẻ ngang - ảnh trái, chữ phải (xem nhanh được nhiều bài) */
    .tcat-grid { grid-template-columns: 1fr; gap: 10px }
    .tcat-card { flex-direction: row; align-items: stretch }
    .tcat-card:hover { transform: none }
    .tcat-img { flex: 0 0 112px; width: 112px; aspect-ratio: auto; min-height: 100px }
    .tcat-body { padding: 10px 12px }
    .tcat-title { margin-bottom: 4px; font-size: 15px; line-height: 1.35 }
    .tcat-desc { margin-bottom: 6px; font-size: 13px; -webkit-line-clamp: 2 }
    .tcat-more { font-size: 13px }
    .tcat-pager { gap: 4px; margin-top: 24px }
    .tcat-pg { min-width: 40px; height: 40px; padding: 0 8px }
    .tcat-pg-nav { padding: 0 10px }
}
@media (prefers-reduced-motion: reduce) { .tcat-card, .tcat-img img { transition: none } }

/* =====================================================================
   10. LIÊN KẾT NỘI BỘ THEO CHỦ ĐỀ
   .tc-posts      : "Bài viết hữu ích" cuối trang dịch vụ (blog cùng chủ đề)
   .tc-svc-links  : "Dịch vụ TRAVELCAR liên quan" trong bài blog (trang dịch vụ được nhắc tới)
   ===================================================================== */
.tc-posts { margin: 28px 0 0 }
.tc-posts ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none }
.tc-posts a { display: flex; align-items: center; gap: 12px; height: 100%; padding: 10px; border: 1px solid var(--tc-line); border-radius: 10px;
              background: #fff; color: var(--tc-ink) !important; text-decoration: none !important; transition: border-color .15s, box-shadow .15s }
.tc-posts a:hover { border-color: var(--tc-teal); box-shadow: var(--tc-shadow) }
.tc-posts img, .tc-posts picture { flex: 0 0 72px; width: 72px; height: 54px; border-radius: 6px; object-fit: cover }
.tc-posts span { font-size: 14.5px; font-weight: 700; line-height: 1.35 }
.tc-svc-links { margin: 28px 0 8px; padding: 16px 18px; border: 1px solid #cfe9e2; border-left: 4px solid var(--tc-teal); border-radius: 10px; background: #f3fbf8 }
.tc-svc-links-title { margin: 0 0 10px; color: var(--tc-ink); font-weight: 700 }
.tc-svc-links ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none }
.tc-svc-links a { display: inline-flex; align-items: center; min-height: 38px; padding: 6px 14px; border: 1px solid #bfe2d8; border-radius: 20px;
                  background: #fff; color: var(--tc-teal) !important; font-weight: 700; font-size: 15px; text-decoration: none !important }
.tc-svc-links a:hover { background: var(--tc-teal); border-color: var(--tc-teal); color: #fff !important }
@media (max-width: 767.98px) {
    .tc-posts ul { grid-template-columns: 1fr; gap: 8px }
    .tc-svc-links { padding: 14px }
}

/* Khối nội dung dưới danh sách bài của trang danh mục (phần sau <!--more--> trong mô tả) */
.tcat-about { max-width: 860px; margin: 40px auto 8px; padding: 24px 0 0; border-top: 1px solid #e5e9ec; color: var(--tc-ink, #1f2a30); line-height: 1.7 }
.tcat-about h2 { font-size: 1.45rem; margin: 28px 0 12px; line-height: 1.35 }
.tcat-about h3 { font-size: 1.15rem; margin: 22px 0 8px }
.tcat-about p, .tcat-about ul { margin: 0 0 14px }
.tcat-about table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: .95rem }
.tcat-about th, .tcat-about td { border: 1px solid #e1e6ea; padding: 8px 10px; text-align: left; vertical-align: top }
.tcat-about th { background: #f3f6f8 }
@media (max-width: 767px) { .tcat-about { margin-top: 28px; padding-top: 18px } .tcat-about h2 { font-size: 1.25rem } }
