/* ==========================================================
   THPT Tuần Giáo - Giao diện trang trong (module)
   Hệ thống thành phần dùng chung: khung trang, thẻ, bảng, biểu mẫu,
   nút, phân trang, danh sách, khối cột phải, nội dung bài viết...
   ========================================================== */

/* ---------- Khung trang ---------- */
#body.tg-wrap { background: transparent; box-shadow: none; padding: 0; }
.section-body { padding-top: 16px; }
.tg-main { background: #fff; border-radius: 20px; box-shadow: 0 4px 20px rgba(20, 80, 181, .09); padding: 24px 26px; margin-bottom: 18px; min-height: 260px; }
.tg-main > .panel:first-child, .tg-main > .page:first-child { margin-top: 0; }
.tg-side > div, .tg-side .panel { margin-bottom: 16px; }

/* Đầu trang: tiêu đề + đường dẫn */
.third-nav { margin-bottom: 16px; }
.third-nav .row { border: 0; margin: 0; }
.third-nav .bg { position: relative; display: block; background: linear-gradient(135deg, #fff 0%, #eef4ff 100%); border: 1px solid #e3ebf8; border-left: 5px solid #e5252f; border-radius: 18px; padding: 14px 24px; box-shadow: 0 4px 16px rgba(20, 80, 181, .08); }
.third-nav .bg > .clearfix { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.third-nav .bg > .clearfix > div { float: none; width: auto; padding: 0; }
.third-nav .headerSearch { display: none !important; }
.third-nav .current-time { display: block; margin: 0 !important; float: none !important; font-size: 12.5px; color: #6b7690; line-height: 1.4; white-space: nowrap; }
.third-nav ul + .current-time { float: none; margin-top: 0; }
h1.tg-pt { margin: 0 0 4px; font-size: 26px; line-height: 1.25; font-weight: 800; color: #12306b; }
.third-nav .breadcrumbs-wrap { padding: 0; }
.breadcrumbs-wrap .display { padding: 0; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0; margin: 0; padding: 0; }
.breadcrumbs li { display: flex; align-items: center; margin: 0; padding: 0; background: none !important; font-size: 13px; }
.breadcrumbs li + li::before { content: "\203A"; margin: 0 8px; color: #9aa7c4; font-size: 16px; line-height: 1; }
.breadcrumbs a, .breadcrumbs a:hover, .breadcrumbs li:last-child a { display: inline-flex; align-items: center; height: auto; padding: 0; margin: 0; background: none !important; border: 0; color: #1450b5; font-weight: 500; line-height: 1.4; }
.breadcrumbs a:before, .breadcrumbs a:after, .show-subs-breadcrumbs:after { display: none !important; content: none !important; }
.breadcrumbs li:first-child a::before { display: none !important; content: none !important; }
.breadcrumbs li:last-child a { color: #e5252f; font-weight: 700; }
.breadcrumbs a:hover { color: #e5252f; }
.show-subs-breadcrumbs { display: none !important; }

/* ---------- Chữ & liên kết ---------- */
.tg-main { color: #27385f; }
.tg-main h1, .tg-main h2, .tg-main h3, .tg-main h4 { color: #12306b; }
.tg-main a { color: #1450b5; }
.tg-main a:hover { color: #e5252f; }
.text-muted { color: #7a869f !important; }
hr { border-top-color: #e6edf8; }

/* ---------- Thẻ (panel) trong nội dung ---------- */
.tg-main .panel, .tg-main .panel-default { box-shadow: none; border: 1px solid #e6edf8; border-radius: 16px; margin-bottom: 18px; overflow: hidden; }
.tg-main .panel-body { padding: 18px 20px; }
.tg-main .panel-heading { padding: 13px 20px; }
.well, .alert-info.clearfix { border-radius: 14px; }
.well { background: #f6f9ff; border: 1px solid #e3ebf8; box-shadow: none; }

/* ---------- Nút ---------- */
.btn { border-radius: 999px; font-weight: 600; padding: 7px 18px; border-width: 1px; transition: transform .15s, box-shadow .2s, background .2s, color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-xs { padding: 2px 10px; } .btn-sm { padding: 5px 14px; } .btn-lg { padding: 11px 28px; }
.btn-primary, .btn-info, .btn-success { background: linear-gradient(180deg, #2a6be0, #1450b5); border-color: #1450b5; color: #fff; box-shadow: 0 4px 10px rgba(20, 80, 181, .25); }
.btn-primary:hover, .btn-info:hover, .btn-primary:focus, .btn-info:focus, .btn-primary:active, .btn-info:active { background: linear-gradient(180deg, #ee3640, #c8102e); border-color: #c8102e; color: #fff; box-shadow: 0 6px 14px rgba(200, 16, 46, .3); }
.btn-success { background: linear-gradient(180deg, #19b777, #0e9a60); border-color: #0e9a60; box-shadow: 0 4px 10px rgba(14, 154, 96, .25); }
.btn-danger { background: linear-gradient(180deg, #ee3640, #c8102e); border-color: #c8102e; color: #fff; }
.btn-warning { background: linear-gradient(180deg, #ffc83d, #f5a300); border-color: #f5a300; color: #4a3200; }
.btn-default { background: #fff; border-color: #d3deef; color: #27385f; }
.btn-default:hover, .btn-default:focus { background: #eef4ff; border-color: #1450b5; color: #1450b5; }
.btn-link { box-shadow: none; }

/* ---------- Biểu mẫu ---------- */
.form-control { height: 40px; border: 1px solid #d3deef; border-radius: 12px; box-shadow: none; padding: 8px 14px; color: #27385f; background: #fff; transition: border-color .2s, box-shadow .2s; }
textarea.form-control { height: auto; }
.form-control:focus { border-color: #2a6be0; box-shadow: 0 0 0 4px rgba(42, 107, 224, .14); }
.form-control::placeholder { color: #9aa7c4; }
.input-group-addon { background: #eef4ff; border: 1px solid #d3deef; color: #1450b5; border-radius: 12px 0 0 12px; }
.input-group .form-control:last-child { border-radius: 0 12px 12px 0; }
.input-group .form-control:first-child { border-radius: 12px 0 0 12px; }
.input-group .form-control:not(:first-child):not(:last-child) { border-radius: 0; }
.input-group-btn .btn { border-radius: 0 12px 12px 0; height: 40px; }
select.form-control { padding-right: 30px; }
label { font-weight: 600; color: #27385f; }
.has-error .form-control, .form-control.error { border-color: #e5252f; }
.checkbox label, .radio label { font-weight: 500; }
input[type=checkbox], input[type=radio] { accent-color: #1450b5; }
.form-group { margin-bottom: 14px; }
.help-block { color: #7a869f; font-size: 12.5px; }

/* ---------- Bảng ---------- */
.tg-main .table-responsive { border: 1px solid #e3ebf8; border-radius: 14px; overflow: auto; margin-bottom: 18px; }
.tg-main table.table { margin: 0; border: 0; border-collapse: separate; border-spacing: 0; width: 100%; }
.tg-main table.table > thead > tr > th { background: linear-gradient(180deg, #1a5fd0, #0f4aad); color: #fff; border: 0 !important; padding: 12px 14px; font-size: 13.5px; font-weight: 700; vertical-align: middle; white-space: nowrap; }
.tg-main table.table > tbody > tr > td { padding: 12px 14px; border: 0; border-top: 1px solid #edf1f9; vertical-align: middle; font-size: 14.5px; }
.tg-main table.table-striped > tbody > tr:nth-of-type(odd) > td { background: #f8fbff; }
.tg-main table.table > tbody > tr:hover > td { background: #eef4ff; }
.tg-main table.table > tbody > tr:first-child > td { border-top: 0; }
.table-bordered, .table-bordered > thead > tr > th, .table-bordered > tbody > tr > td { border-color: #edf1f9; }

/* ---------- Phân trang ---------- */
.pagination { display: inline-flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 6px; padding: 0; }
.pagination > li > a, .pagination > li > span { float: none; display: block; min-width: 38px; height: 38px; line-height: 36px; padding: 0 12px; text-align: center; border: 1px solid #d9e3f3 !important; border-radius: 12px !important; background: #fff; color: #27385f; font-weight: 600; margin: 0 !important; }
.pagination > li > a:hover { background: #eef4ff; color: #1450b5; border-color: #1450b5 !important; }
.pagination > .active > a, .pagination > .active > span, .pagination > .active > a:hover { background: linear-gradient(180deg, #ee3640, #c8102e); border-color: #c8102e !important; color: #fff; box-shadow: 0 4px 10px rgba(200, 16, 46, .3); }
.pagination > .disabled > a { opacity: .5; }
.generate_page, .tg-main .text-center > .pagination { text-align: center; }

/* ---------- Thông báo, nhãn ---------- */
.alert { border: 0; border-radius: 14px; padding: 14px 18px; border-left: 4px solid; }
.alert-info { background: #eaf3ff; border-left-color: #1a73e8; color: #0b3d91; }
.alert-success { background: #e6f7ee; border-left-color: #0e9a60; color: #0a6b43; }
.alert-warning { background: #fff6e0; border-left-color: #f5a300; color: #7a5200; }
.alert-danger { background: #fdecee; border-left-color: #e5252f; color: #a40d1f; }
.label { border-radius: 999px; padding: .35em .8em; font-weight: 600; }
.label-default { background: #e3ebf8; color: #27385f; }
.label-primary { background: #1450b5; } .label-danger { background: #e5252f; } .label-success { background: #0e9a60; } .label-warning { background: #f5a300; }
.badge { border-radius: 999px; background: #1450b5; }
.icon_new { display: inline-block; vertical-align: middle; }

/* ---------- Tab ---------- */
.nav-tabs { border-bottom: 2px solid #e6edf8; display: flex; flex-wrap: wrap; gap: 4px; }
.nav-tabs > li { float: none; margin: 0 0 -2px; }
.nav-tabs > li > a { border: 0; border-radius: 12px 12px 0 0; color: #5a6a8a; font-weight: 600; padding: 10px 18px; margin: 0; }
.nav-tabs > li > a:hover { background: #eef4ff; color: #1450b5; border: 0; }
.nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus { background: #fff; color: #e5252f; border: 0; border-bottom: 3px solid #e5252f; }
.nav-pills > li > a { border-radius: 999px; font-weight: 600; }
.nav-pills > li.active > a, .nav-pills > li.active > a:hover { background: #1450b5; }

/* ---------- Danh sách ---------- */
.list-group { border-radius: 14px; overflow: hidden; border: 1px solid #e6edf8; }
.list-group-item { border: 0; border-top: 1px solid #edf1f9; padding: 12px 16px; background: #fff; transition: background .15s; }
.list-group-item:first-child { border-top: 0; }
a.list-group-item:hover { background: #eef4ff; color: #1450b5; }
.list-items, ul.nv-list-item, ul.related { list-style: none; padding: 0; margin: 0; }
ul.related li, ul.nv-list-item li { padding: 8px 0 8px 4px; border-bottom: 1px dashed #e1e8f5; }
ul.related li:last-child { border-bottom: 0; }
ul.related em.fa, ul.nv-list-item .fa { color: #e5252f; margin-right: 6px; }
.img-thumbnail { padding: 0; border: 1px solid #e3ebf8; border-radius: 12px; background: #fff; box-shadow: 0 2px 8px rgba(20, 80, 181, .08); }
.thumbnail { border-radius: 14px; border: 1px solid #e6edf8; box-shadow: none; transition: transform .2s, box-shadow .2s; }
.thumbnail:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(20, 80, 181, .16); }

/* ---------- Khối cột phải ---------- */
.tg-side .panel { border: 0; border-radius: 18px; box-shadow: 0 4px 18px rgba(20, 80, 181, .1); overflow: hidden; }
.tg-side .panel-heading { padding: 14px 18px; font-size: 16px; }
.tg-side .panel-body { padding: 14px 16px 16px; }
.tg-side .panel-red .panel-heading, .tg-side .panel-orance .panel-heading { background: #fff !important; }
/* Văn bản mới */
.tg-side .block-law, .tg-side .block-law.marquee { height: auto !important; overflow: visible !important; }
.tg-side .block-law .item { margin: 0 0 10px; padding: 12px 14px; border-radius: 14px; background: #f6f9ff; border: 1px solid #e3ebf8; }
.tg-side .block-law .item:last-child { margin-bottom: 0; }
.tg-side .block-law .law-code { margin: 0 0 4px; font-size: 14px; font-weight: 800; line-height: 1.3; }
.tg-side .block-law .law-code a { color: #e5252f; }
.tg-side .block-law .law-title { margin: 0 0 6px; font-size: 13.5px; line-height: 1.45; color: #27385f; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tg-side .block-law .law-view { margin: 0; font-size: 12px; font-style: normal; }
.tg-side .block-law .item > * + .law-view { display: inline-block; margin-right: 8px; }
/* Đăng nhập */
.tg-side .panel-body .alert, .tg-side .well { font-size: 13px; }
.tg-side .input-group { margin-bottom: 10px; }
.tg-side .form-control, .tg-side .input-group-btn .btn { height: 38px; }

/* ---------- Nội dung bài viết ---------- */
.bodytext, #news-bodyhtml, #page-bodyhtml { font-size: 16.5px; line-height: 1.85; color: #27385f; word-wrap: break-word; }
.bodytext p { margin: 0 0 14px; }
.bodytext img { max-width: 100%; height: auto !important; border-radius: 12px; }
.bodytext a { color: #1450b5; text-decoration: underline; text-decoration-color: rgba(20, 80, 181, .35); }
.bodytext h2, .bodytext h3, .bodytext h4 { margin: 22px 0 10px; color: #12306b; font-weight: 700; }
.bodytext blockquote { margin: 16px 0; padding: 12px 18px; border-left: 4px solid #e5252f; background: #f6f9ff; border-radius: 0 12px 12px 0; font-size: inherit; }
.bodytext table { max-width: 100%; border-collapse: collapse; }
.bodytext table td, .bodytext table th { border-color: #dbe5f5; padding: 8px 10px; }
.bodytext ul, .bodytext ol { padding-left: 24px; margin-bottom: 14px; }
figure.article { margin: 16px auto; text-align: center; }
figure.article figcaption, figcaption { color: #6b7690; font-size: 13.5px; font-style: italic; margin-top: 6px; }

/* ---------- Bình luận ---------- */
#idcomment, .comment { margin-top: 20px; }
.comment .panel-heading, #idcomment .panel-heading { font-size: 16px; }

/* ---------- Mục lục/ghi chú nhỏ ---------- */
.news_column { margin-bottom: 8px; }
.adminlink, .text-right.adminlink { font-size: 12.5px; }

@media (max-width: 767px) {
    .tg-main { padding: 16px 14px; border-radius: 16px; }
    .third-nav .bg { padding: 12px 16px; }
    .third-nav .bg > .clearfix { flex-direction: column; align-items: flex-start; gap: 4px; }
    h1.tg-pt { font-size: 21px; }
    .tg-main table.table > tbody > tr > td, .tg-main table.table > thead > tr > th { padding: 9px 10px; }
}

/* ==========================================================
   TIN TỨC - danh sách
   ========================================================== */
.tgn-hide { display: none; }
.tgn-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 8px; }
.tgn-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e6edf8; border-radius: 18px; overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; }
.tgn-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(20, 80, 181, .16); border-color: #cfdcf3; }
.tgn-thumb { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, #e8f0fc, #f6f9ff) url("../images/tg/logo.jpg?v=2") center / 74px no-repeat; }
.tgn-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; margin: 0; border: 0; border-radius: 0; box-shadow: none; background: #fff; transition: transform .5s; }
.tgn-card:hover .tgn-thumb img { transform: scale(1.06); }
.tgn-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.tgn-title { margin: 0 0 8px; font-size: 17px; line-height: 1.4; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tgn-title a { color: #12306b !important; }
.tgn-title a:hover { color: #e5252f !important; }
.tgn-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 8px; font-size: 12.5px; color: #7a869f; }
.tgn-meta .fa { margin-right: 5px; color: #9aa7c4; }
.tgn-ex { font-size: 14px; line-height: 1.6; color: #5d6a85; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tgn-ex p { margin: 0; }
.tgn-more { margin-top: 12px; font-size: 13.5px; font-weight: 700; color: #e5252f !important; }
.tgn-more .fa { margin-left: 4px; transition: transform .2s; }
.tgn-card:hover .tgn-more .fa { transform: translateX(4px); }
/* thẻ nổi bật: trải ngang */
.tgn-feat { grid-column: 1 / -1; flex-direction: row; }
.tgn-feat .tgn-thumb { flex: 0 0 52%; aspect-ratio: auto; min-height: 300px; }
.tgn-feat .tgn-body { padding: 24px 26px; justify-content: center; }
.tgn-feat .tgn-title { font-size: 24px; -webkit-line-clamp: 4; }
.tgn-feat .tgn-ex { font-size: 15px; -webkit-line-clamp: 5; }
/* danh sách dòng */
.tgn-rows { display: flex; flex-direction: column; border: 1px solid #e6edf8; border-radius: 16px; overflow: hidden; }
.tgn-row { display: flex; align-items: center; gap: 14px; padding: 13px 18px; background: #fff; border-top: 1px solid #edf1f9; color: #27385f !important; transition: background .15s, padding .15s; }
.tgn-row:first-child { border-top: 0; }
.tgn-row:hover { background: #eef4ff; padding-left: 24px; color: #1450b5 !important; }
.tgn-no { flex: 0 0 32px; height: 32px; border-radius: 10px; background: #e8f0fc; color: #1450b5; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.tgn-rt { flex: 1; font-weight: 600; font-size: 15px; line-height: 1.45; }
.tgn-dt { flex: 0 0 auto; font-size: 12.5px; color: #7a869f; white-space: nowrap; }
.tgn-dt .fa { margin-right: 5px; }
.tgn-row > .fa-angle-right { color: #9aa7c4; font-size: 20px; }
.tgn-row:hover > .fa-angle-right { color: #e5252f; }
.tgn-related { margin-top: 22px; padding: 16px 20px; background: #f6f9ff; border-radius: 16px; }
.tgn-related h4 { margin: 0 0 8px; font-size: 16px; font-weight: 700; color: #1450b5; }
.tgn-related h4 .fa { color: #e5252f; margin-right: 6px; }
/* lưới thẻ (viewcat_grid) */
.tgn-gridwrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tgn-gitem .tgn-card { height: 100%; }
@media (max-width: 991px) { .tgn-feat { flex-direction: column; } .tgn-feat .tgn-thumb { flex: none; min-height: 0; aspect-ratio: 16 / 9; } .tgn-gridwrap { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .tgn-list, .tgn-gridwrap { grid-template-columns: 1fr; } .tgn-feat .tgn-title { font-size: 20px; } .tgn-dt { display: none; } }

/* sửa: breadcrumb cần có chiều rộng để script của theme dựng danh sách; bỏ viền khung cũ */
#body.tg-wrap { border: 0 !important; }
.third-nav .bg > .clearfix > div:first-child { flex: 1 1 auto; width: 100%; min-width: 240px; }
.third-nav .breadcrumbs-wrap, .third-nav .breadcrumbs-wrap .display { width: 100%; }

/* ==========================================================
   TIN TỨC - bài chi tiết
   ========================================================== */
.tgn-detail { margin-bottom: 18px; }
.tgn-h1 { margin: 0 0 14px !important; font-size: 30px; line-height: 1.3; font-weight: 800; color: #12306b; }
.tgn-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0 14px; margin-bottom: 18px; border-bottom: 2px solid #e6edf8; position: relative; }
.tgn-bar::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 90px; height: 3px; background: #e5252f; border-radius: 3px; }
.tgn-bar .tgn-meta { margin: 0; font-size: 13.5px; }
.tgn-bar ul { margin: 0; }
.tgn-bar a.dimgray, .tgn-bar .fa { color: #6b7690; }
.tgn-bar li a { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 50%; background: #eef4ff; transition: background .2s, transform .2s; }
.tgn-bar li a:hover { background: #e5252f; transform: translateY(-2px); }
.tgn-bar li a:hover .fa { color: #fff; }
.tgn-detail .hometext { font-size: 17px; line-height: 1.75; font-weight: 500; color: #1c2f58; padding: 14px 20px; margin-bottom: 18px !important; border-left: 4px solid #e5252f; background: #f6f9ff; border-radius: 0 14px 14px 0; }
.tgn-detail figure.article.left { float: left; margin: 4px 20px 12px 0; }
.tgn-detail #news-bodyhtml { margin-top: 10px; }
.tgn-detail #news-bodyhtml img { display: block; margin: 16px auto; box-shadow: 0 6px 20px rgba(20, 80, 181, .14); }
.tgn-detail #news-bodyhtml [style*="text-align:center"] img, .tgn-detail #news-bodyhtml [style*="text-align: center"] img { margin-left: auto; margin-right: auto; }
.tgn-detail .panel { margin-top: 20px; }
.news-download-file .list-group-item { display: flex; align-items: center; gap: 10px; }
.news-download-file .badge { order: 2; margin-left: auto; background: #e8f0fc; color: #1450b5; }
.news_column.panel, .news_column > .panel { margin-top: 18px; }
.other-news .h3, .other-news p.h3 { font-size: 18px; margin: 0 0 10px; color: #1450b5; position: relative; padding-left: 14px; }
.other-news .h3::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; border-radius: 4px; background: #e5252f; }
.detail-related li { display: flex; align-items: baseline; gap: 6px; padding: 9px 4px; border-bottom: 1px dashed #e1e8f5; }
.detail-related li h4 { display: inline; margin: 0; font-size: 15px; font-weight: 600; line-height: 1.5; }
.detail-related li em { color: #7a869f; font-size: 12.5px; white-space: nowrap; }
.detail-related li:last-child { border-bottom: 0; }
.h5 .fa-tags { color: #e5252f; }
.h5 a em { display: inline-block; padding: 2px 12px; margin: 2px 4px 2px 0; border-radius: 999px; background: #eef4ff; font-style: normal; font-size: 13px; }
.h5 a:hover em { background: #1450b5; color: #fff; }
@media (max-width: 767px) { .tgn-h1 { font-size: 22px; } .tgn-detail figure.article.left { float: none; margin: 0 auto 12px; } .tgn-bar { flex-wrap: wrap; } }

/* ---------- Danh sách tin trong khối cột phải ---------- */
.block_tophits, .block_news { margin: 0; padding: 0; }
.block_tophits li, .block_news li { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; border-bottom: 1px dashed #e1e8f5; }
.block_tophits li:first-child, .block_news li:first-child { padding-top: 2px; }
.block_tophits li:last-child, .block_news li:last-child { border-bottom: 0; padding-bottom: 0; }
.block_tophits li > a:first-child:not(.show), .block_news li > a:first-child:not(.show) { flex: 0 0 84px; }
.block_tophits li img, .block_news li img { float: none !important; width: 84px !important; height: 60px; object-fit: cover; margin: 0 !important; border-radius: 10px; }
.block_tophits li a.show, .block_news li a.show { flex: 1; text-align: left !important; font-size: 14px; font-weight: 600; line-height: 1.4; color: #27385f; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.block_tophits li a.show:hover, .block_news li a.show:hover { color: #e5252f; }
.tgn-detail figure.article.left, .tgn-detail #imgpreview { display: none; }
.tg-side .text-justify { text-align: left; }

/* ==========================================================
   THƯ VIỆN ẢNH
   ========================================================== */
[id^="photo-"] .page-header, #photo-main .page-header { border: 0; margin: 0 0 14px; padding: 0 0 10px; border-bottom: 2px solid #e6edf8; position: relative; }
[id^="photo-"] .page-header::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 80px; height: 3px; background: #e5252f; border-radius: 3px; }
[id^="photo-"] .page-header h1, [id^="photo-"] .page-header h3 { margin: 0; font-size: 22px; font-weight: 800; }
[id^="photo-"] .page-header a { color: #12306b; }
[id^="photo-"] .row, [id^="photo-"] .panel-body { margin: 0; padding: 0; }
.album-album { padding: 0 9px 18px !important; }
.album-album .panel { height: 100%; margin: 0; border-radius: 18px; overflow: hidden; border: 1px solid #e6edf8; transition: transform .25s, box-shadow .25s; }
.album-album .panel:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(20, 80, 181, .18); }
.album-album .album-image { padding: 0 !important; background: #eef3fb; aspect-ratio: 4 / 3; overflow: hidden; }
.album-album .album-image img { width: 100%; height: 100%; object-fit: cover; margin: 0; transition: transform .5s; }
.album-album .panel:hover .album-image img { transform: scale(1.07); }
.album-album .panel-footer { background: #fff; border: 0; padding: 14px 16px !important; }
.album-album .album-name h3 { margin: 0 0 4px; font-size: 16px; font-weight: 700; line-height: 1.4; }
.album-album .album-name h3 a { color: #12306b; }
.album-album .album-name h4 { margin: 0 0 10px; font-size: 12.5px; color: #7a869f; font-weight: 500; }
.album-album .btn { padding: 5px 14px; font-size: 13px; }
.album-album .text-muted { float: right; margin-top: 6px; font-size: 12.5px; }
.album-album .view_detail { overflow: hidden; }
#photo-detail_album img, .photo-detail img { border-radius: 14px; }

/* ==========================================================
   VĂN BẢN (laws)
   ========================================================== */
.tg-main .table-responsive table td a { font-weight: 600; }
.tg-main .generate_page { text-align: center; }
.tg-main .law-detail, .tg-main .detail-law { margin-top: 6px; }
.tg-main table.table-info, .tg-main .table-bordered.table-striped { border-radius: 14px; overflow: hidden; }
.tg-main .law-detail .table td:first-child, .tg-main .detail td:first-child { color: #6b7690; font-weight: 600; width: 160px; }
.flex-table-laws { border: 1px solid #e3ebf8; border-radius: 14px; overflow: hidden; }
.flex-table-laws .table-rows { padding: 12px 14px; border-top: 1px solid #edf1f9; }
.flex-table-laws .table-head { background: linear-gradient(180deg, #1a5fd0, #0f4aad); color: #fff; font-weight: 700; border: 0; }

/* ==========================================================
   TÀI LIỆU (download)
   ========================================================== */
.viewcat_list .panel, .viewcat_table .panel { border-radius: 14px; }
.viewcat_list .list-title { background: linear-gradient(180deg, #1a5fd0, #0f4aad); color: #fff; margin: 0; padding: 11px 6px; }
.viewcat_list .list-content { margin: 0; padding: 11px 6px; border-top: 1px solid #edf1f9; }
.viewcat_list .list-content:nth-child(even) { background: #f8fbff; }
.viewcat_list .list-content:hover { background: #eef4ff; }
.tg-main .panel-heading .panel-title { font-size: 17px; }
.tg-main .panel-heading .panel-title a { font-weight: 700; }
.tg-main .panel-heading .text-danger { color: #e5252f !important; font-weight: 600; font-size: 14px; }
.tg-main .panel-body .thumbnail { margin-bottom: 8px; }
.tg-main .panel-body ul.list-inline { margin: 2px 0 10px; color: #7a869f; font-size: 13px; }
.tg-main .panel-body ul.list-inline .fa { color: #9aa7c4; }
.tg-main .panel-body h3 { margin: 4px 0 6px; font-size: 18px; font-weight: 700; }
.tg-main .panel-body > div > h3 a strong { font-weight: 700; }
.download-file .btn, .tg-main a.btn-download { border-radius: 999px; }

/* ==========================================================
   VIDEO
   ========================================================== */
.tg-main .viewgrid-videos, .tg-main .video-item { border-radius: 16px; overflow: hidden; }
.tg-main:empty::after, .tg-main:not(:has(*))::after { content: "Nội dung đang được cập nhật"; display: block; padding: 60px 0; text-align: center; color: #7a869f; font-size: 16px; }

/* ==========================================================
   LIÊN HỆ
   ========================================================== */
.tg-main .panel-heading { background: #fff !important; border-bottom: 2px solid #e6edf8; }
.tg-main .panel-heading::after { display: block; }
.tg-main .panel-heading, .tg-main .panel-heading * { color: #1450b5 !important; }
.tg-main .panel-heading h3, .tg-main .panel-heading h4, .tg-main .panel-title { margin: 0; font-size: 17px; font-weight: 700; }
.tg-main .text-justify, .tg-main .well p { line-height: 1.7; }
.tg-main .contact-info li, .tg-main .list-unstyled li { padding: 3px 0; }
.tg-main .captcha, .tg-main img.captcha { border-radius: 10px; }

/* ==========================================================
   THÀNH VIÊN (users)
   ========================================================== */
.tg-main .panel-body .well { margin-bottom: 14px; }
.tg-main .nv-info, .tg-main .users-box { padding: 6px 0; }
.tg-main .panel.panel-primary { border-color: #1450b5; }
.tg-main .panel-primary > .panel-heading { background: linear-gradient(135deg, #1a5fd0, #0f4aad) !important; }
.tg-main .panel-primary > .panel-heading, .tg-main .panel-primary > .panel-heading * { color: #fff !important; }
.tg-main .panel-body .form-horizontal .control-label { font-weight: 600; text-align: left; }
.tg-main .nv-recaptcha-default, .tg-main .g-recaptcha { margin: 10px 0; }
.tg-main .text-center .btn { min-width: 110px; }

/* ==========================================================
   TÌM KIẾM
   ========================================================== */
.tg-main .search-form, .tg-main form.form-inline { padding: 4px 0 14px; }
.tg-main .result-search, .tg-main .seek-result { margin-top: 8px; }
.tg-main mark, .tg-main .highlight, .tg-main .highlight_word { background: #fff1a8; color: #4a3200; padding: 0 3px; border-radius: 4px; }
.tg-main .tab-content { padding-top: 14px; }
.tg-main .tab-content h4, .tg-main .tab-content .h4 { font-size: 16px; font-weight: 700; margin-top: 16px; }
.tg-main .tab-content h4 a { color: #12306b; }
.tg-main .tab-content h4 a:hover { color: #e5252f; }
.tg-main .tab-content .badge { background: #e8f0fc; color: #1450b5; }

/* ==========================================================
   THỐNG KÊ
   ========================================================== */
.tg-main canvas { max-width: 100%; }
.tg-main .panel-heading .fa { margin-right: 6px; }

/* ==========================================================
   BÌNH LUẬN, BÌNH CHỌN
   ========================================================== */
.comment-list .media, #comment .media { padding: 14px 0; border-bottom: 1px dashed #e1e8f5; }
.media-heading { font-weight: 700; color: #12306b; }
.voting .progress { height: 12px; border-radius: 999px; background: #e6edf8; box-shadow: none; }
.progress-bar { background: linear-gradient(90deg, #2a6be0, #1450b5); }

/* modal */
.modal-content { border: 0; border-radius: 20px; box-shadow: 0 24px 60px rgba(8, 44, 108, .35); overflow: hidden; }
.modal-header { background: #f6f9ff; border-bottom: 1px solid #e6edf8; }
.modal-footer { border-top: 1px solid #e6edf8; }

/* nút dạng liên kết giữ chữ trắng */
.tg-main a.btn-primary, .tg-main a.btn-info, .tg-main a.btn-success, .tg-main a.btn-danger, .tg-main a.btn-primary:hover, .tg-main a.btn-info:hover, .tg-main a.btn-danger:hover { color: #fff !important; }
.tg-main a.btn-default { color: #27385f; }
.tg-main a.btn-warning { color: #4a3200 !important; }

.tgn-thumb img, .tg-feat-img img, .tg-item-img img { image-rendering: auto; }
.block_tophits li img, .block_news li img { image-rendering: auto; }

/* Ảnh gốc quá nhỏ: không phóng to lấp khung (tránh mờ), hiển thị vừa khung trên nền dịu */
.tgn-thumb img.tg-smallimg, .tg-item-img img.tg-smallimg, .tg-feat-img img.tg-smallimg { object-fit: contain; padding: 10px; background: linear-gradient(135deg, #eef4ff, #f8fbff); }
.tgn-thumb img.tg-smallimg { filter: none; }

/* ==========================================================
   THỜI KHÓA BIỂU (module tkb)
   ========================================================== */
.tkb-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.tkb-title { display: flex; align-items: center; gap: 14px; }
.tkb-ic { flex: 0 0 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 26px; color: #fff; background: linear-gradient(135deg, #2a6be0, #0f4aad); box-shadow: 0 8px 18px rgba(20, 80, 181, .3); }
.tkb-title h2 { margin: 0; font-size: 24px; font-weight: 800; color: #12306b; line-height: 1.25; }
.tkb-title p { margin: 3px 0 0; font-size: 13.5px; color: #6b7690; }
.tkb-title p b { color: #e5252f; }
.tkb-actions { display: flex; gap: 8px; }
.tkb-tabs { display: inline-flex; padding: 5px; gap: 4px; background: #eef3fb; border-radius: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.tkb-tabs button { border: 0; background: transparent; padding: 10px 20px; border-radius: 12px; font-weight: 700; font-size: 14.5px; color: #4a5878; transition: background .2s, color .2s, box-shadow .2s; }
.tkb-tabs button:hover { color: #1450b5; }
.tkb-tabs button.active { background: #fff; color: #e5252f; box-shadow: 0 4px 12px rgba(20, 80, 181, .15); }
.tkb-tabs .fa { margin-right: 6px; }
.tkb-pane { display: none; }
.tkb-pane.active { display: block; animation: tkbIn .3s ease; }
@keyframes tkbIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tkb-tools { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.tkb-pick { min-width: 200px; }
.tkb-pick label { display: block; margin-bottom: 4px; font-size: 12.5px; color: #6b7690; }
.tkb-grow { flex: 1; min-width: 240px; }
.tkb-search { position: relative; }
.tkb-search .fa { position: absolute; left: 14px; top: 13px; color: #9aa7c4; }
.tkb-search input { padding-left: 38px; }
.tkb-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.tkb-chips button { border: 1px solid #d3deef; background: #fff; padding: 7px 16px; border-radius: 999px; font-weight: 600; font-size: 13.5px; color: #27385f; transition: all .15s; }
.tkb-chips button:hover { border-color: #1450b5; color: #1450b5; }
.tkb-chips button.on { background: linear-gradient(180deg, #2a6be0, #1450b5); border-color: #1450b5; color: #fff; box-shadow: 0 4px 10px rgba(20, 80, 181, .25); }
.tkb-classes { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; max-height: 150px; overflow-y: auto; padding: 2px; }
.tkb-classes button { border: 1px solid #e3ebf8; background: #f6f9ff; padding: 6px 13px; border-radius: 10px; font-weight: 600; font-size: 13px; color: #27385f; transition: all .15s; }
.tkb-classes button:hover { background: #eef4ff; border-color: #1450b5; }
.tkb-classes button.on { background: #e5252f; border-color: #e5252f; color: #fff; box-shadow: 0 4px 10px rgba(229, 37, 47, .3); }
.tkb-card { border: 1px solid #e3ebf8; border-radius: 18px; overflow: hidden; background: #fff; }
.tkb-card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; background: linear-gradient(135deg, #f6f9ff, #eaf2ff); border-bottom: 1px solid #e3ebf8; }
.tkb-big { font-size: 22px; font-weight: 800; color: #12306b; }
.tkb-ses { margin-left: 12px; padding: 3px 12px; border-radius: 999px; background: #fff; border: 1px solid #d3deef; font-size: 12.5px; font-weight: 600; color: #1450b5; }
.tkb-note { font-size: 13.5px; color: #6b7690; }
.tkb-note b { color: #e5252f; font-size: 17px; }
.tkb-scroll { overflow-x: auto; }
.tkb-t { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; min-width: 720px; }
.tkb-t th, .tkb-t td { border-right: 1px solid #edf1f9; border-bottom: 1px solid #edf1f9; text-align: center; vertical-align: middle; padding: 6px; }
.tkb-t thead th { background: linear-gradient(180deg, #1a5fd0, #0f4aad); color: #fff; padding: 12px 8px; font-size: 14px; border-color: rgba(255, 255, 255, .15); position: relative; }
.tkb-t thead th em { display: block; font-style: normal; font-size: 10.5px; font-weight: 600; color: #ffd666; }
.tkb-t thead th.today { background: linear-gradient(180deg, #ee3640, #c8102e); }
.tkb-t .tkb-p { width: 64px; background: #f6f9ff; color: #1450b5; font-weight: 800; font-size: 15px; }
.tkb-t thead .tkb-p { color: #fff; background: #0b3d91; }
.tkb-t td.today { background: #fff8f8; }
.tkb-t tr:last-child td, .tkb-t tr:last-child th { border-bottom: 0; }
.tkb-cell { --h: 210; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 62px; padding: 8px 6px; border-radius: 12px; background: hsl(var(--h), 85%, 94%); border-left: 4px solid hsl(var(--h), 70%, 48%); text-align: left; align-items: flex-start; transition: transform .15s, box-shadow .15s; }
.tkb-cell:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(20, 80, 181, .16); }
.tkb-cell b { font-size: 14px; color: hsl(var(--h), 70%, 26%); line-height: 1.25; }
.tkb-gv { font-size: 12.5px; color: #5d6a85; line-height: 1.25; }
.tkb-gv[data-gv], .tkb-gv[data-lop] { cursor: pointer; text-decoration: underline dotted; }
.tkb-gv[data-gv]:hover, .tkb-gv[data-lop]:hover { color: #e5252f; }
.tkb-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 14px 20px; background: #fafcff; border-top: 1px solid #edf1f9; }
.tkb-lg { --h: 210; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #27385f; }
.tkb-lg i { width: 12px; height: 12px; border-radius: 4px; background: hsl(var(--h), 70%, 48%); }
.tkb-lg small { color: #8a96ad; }
.tkb-lg2 { font-size: 13px; color: #5d6a85; }
.tkb-lg2 b { color: #12306b; }
.tkb-all { min-width: 1200px; table-layout: auto; }
.tkb-all thead th a { color: #fff; }
.tkb-all .tkb-cell { min-height: 48px; padding: 4px 5px; border-left-width: 3px; }
.tkb-all .tkb-cell b { font-size: 12.5px; }
.tkb-all .tkb-gv { font-size: 11px; }
.tkb-all td { padding: 3px; min-width: 76px; }
.tkb-empty { text-align: center; padding: 50px 20px; color: #7a869f; }
.tkb-empty .fa { font-size: 46px; color: #c8d3ea; margin-bottom: 10px; }
.tkb-admin { margin-top: 26px; padding: 18px 20px; border-radius: 16px; background: #f6f9ff; border: 1px dashed #b8c9e8; }
.tkb-admin h4 { margin: 0 0 10px; font-size: 16px; color: #1450b5; }
.tkb-admin h4 small { color: #9aa7c4; font-size: 12px; font-weight: 500; }
.tkb-up { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.tkb-up input[type=file] { flex: 1; min-width: 240px; height: auto; padding: 8px 12px; }
@media (max-width: 767px) { .tkb-title h2 { font-size: 19px; } .tkb-tabs button { padding: 9px 12px; font-size: 13px; } .tkb-pick { min-width: 100%; } .tkb-actions { width: 100%; } }
@media print {
    .tg-topbar, .tg-hero, .section-nav, .third-nav, #footer, .section-footer-bottom, .tkb-tabs, .tkb-tools, .tkb-classes, .tkb-actions, .tkb-admin, .bttop, .fix_banner_left, .fix_banner_right { display: none !important; }
    .tg-main { box-shadow: none; padding: 0; } .tkb-pane { display: none !important; } .tkb-pane.active { display: block !important; }
    .tkb-t thead th { background: #0f4aad !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; } .tkb-cell { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

.tkb-week { width: auto; min-width: 180px; height: 38px; border-radius: 999px; padding: 4px 14px; }
.tkb-oldbn { margin-bottom: 14px; } .tkb-oldbn a { font-weight: 700; text-decoration: underline; }

.tkb-arch { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-top: 6px; }
.tkb-arch-i { display: flex; flex-direction: column; gap: 4px; padding: 18px; border: 1px solid #e3ebf8; border-radius: 16px; background: linear-gradient(135deg, #fff, #f3f8ff); color: #27385f !important; transition: transform .2s, box-shadow .2s; }
.tkb-arch-i:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(20, 80, 181, .16); }
.tkb-arch-i > .fa { font-size: 24px; color: #1450b5; }
.tkb-arch-i b { font-size: 16px; color: #12306b; }
.tkb-arch-i span { font-size: 12.5px; color: #7a869f; }
.tkb-arch-i em { margin-top: 6px; font-style: normal; font-weight: 700; color: #e5252f; font-size: 13px; }
.tkb-old { margin-top: 18px; color: #6b7690; font-size: 13.5px; }

.tkb-old a { font-weight: 700; color: #e5252f; text-decoration: underline; }

/* ==========================================================
   TỆP ĐÍNH KÈM & TRÌNH XEM PDF
   ========================================================== */
.tgpdf-item { display: flex !important; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 16px !important; }
.tgpdf-info { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 220px; }
.tgpdf-ic { flex: 0 0 46px; height: 46px; border-radius: 12px; background: #fdecee; color: #e5252f; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.tgpdf-nm { display: flex; flex-direction: column; min-width: 0; }
.tgpdf-nm b { font-size: 14.5px; color: #12306b; line-height: 1.35; word-break: break-word; }
.tgpdf-nm small { color: #7a869f; font-size: 12px; }
.tgpdf-act { order: 3; display: flex; gap: 8px; }
.tgpdf-btn, .tgpdf-dl { display: inline-flex; align-items: center; gap: 7px; padding: 8px 18px; border-radius: 999px; font-weight: 700; font-size: 13.5px; border: 1px solid transparent; transition: transform .15s, box-shadow .2s, background .2s; cursor: pointer; }
.tgpdf-btn { background: linear-gradient(180deg, #ee3640, #c8102e); color: #fff; box-shadow: 0 6px 14px rgba(200, 16, 46, .3); }
.tgpdf-btn:hover { transform: translateY(-1px); box-shadow: 0 9px 18px rgba(200, 16, 46, .38); }
.tgpdf-dl { background: #fff; border-color: #d3deef; color: #1450b5 !important; }
.tgpdf-dl:hover { background: #eef4ff; border-color: #1450b5; }
a.tgpdf-link { text-decoration: underline; text-decoration-color: #e5252f !important; }
a.tgpdf-link::after { content: "\f1c1"; font: normal 13px/1 FontAwesome; color: #e5252f; margin-left: 6px; }

html.tgpv-lock, html.tgpv-lock body { overflow: hidden; }
.tgpv { position: fixed; inset: 0; z-index: 10000; display: none; flex-direction: column; background: rgba(14, 22, 44, .94); backdrop-filter: blur(6px); }
.tgpv.on { display: flex; animation: tgpvIn .22s ease; }
@keyframes tgpvIn { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
.tgpv-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: linear-gradient(180deg, #14306e, #0d2557); color: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); flex-wrap: wrap; }
.tgpv-name { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; font-weight: 700; font-size: 14.5px; }
.tgpv-name .fa { color: #ff6b73; font-size: 20px; }
.tgpv-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tgpv-tools { display: flex; align-items: center; gap: 4px; }
.tgpv-tools button, .tgpv-tools .tgpv-dl { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent; color: #e8efff; font-size: 17px; transition: background .15s; cursor: pointer; }
.tgpv-tools button:hover, .tgpv-tools .tgpv-dl:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.tgpv-tools .tgpv-x { background: #e5252f; margin-left: 6px; }
.tgpv-tools .tgpv-x:hover { background: #c8102e; }
.tgpv-sep { width: 1px; height: 22px; background: rgba(255, 255, 255, .25); margin: 0 6px; }
.tgpv-pg { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #cfdcff; }
.tgpv-cur { width: 46px; height: 32px; border: 0; border-radius: 8px; text-align: center; background: rgba(255, 255, 255, .15); color: #fff; font-weight: 700; }
.tgpv-zoom { min-width: 48px; text-align: center; font-size: 13px; color: #cfdcff; }
.tgpv-prog { height: 3px; background: rgba(255, 255, 255, .1); }
.tgpv-prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ffc83d, #ff6b73); transition: width .25s, opacity .4s; }
.tgpv-body { position: relative; flex: 1; overflow: auto; padding: 22px 0 40px; -webkit-overflow-scrolling: touch; }
.tgpv-pages { display: flex; flex-direction: column; align-items: center; gap: 16px; min-width: min-content; padding: 0 20px; }
.tgpv-page { position: relative; flex: 0 0 auto; background: #fff url("../images/tg/logo.jpg?v=2") center / 56px no-repeat; box-shadow: 0 8px 30px rgba(0, 0, 0, .45); border-radius: 3px; }
.tgpv-page.done { background-image: none; }
.tgpv-page canvas { display: block; border-radius: 3px; }
.tgpv-no { position: absolute; right: -2px; top: -2px; transform: translate(100%, 0); color: #8fa3d4; font-size: 12px; padding: 2px 8px; }
.tgpv-msg { position: absolute; top: 40%; left: 0; right: 0; text-align: center; color: #cfdcff; font-size: 16px; }
.tgpv-msg a { color: #ffc83d; text-decoration: underline; }
@media (max-width: 767px) {
    .tgpv-bar { padding: 8px 10px; }
    .tgpv-name { flex-basis: 100%; }
    .tgpv-tools { width: 100%; justify-content: space-between; }
    .tgpv-tools button, .tgpv-tools .tgpv-dl { width: 34px; height: 34px; font-size: 15px; }
    .tgpv-sep, .tgpv-no { display: none; }
    .tgpv-pages { padding: 0 8px; }
    .tgpdf-act { width: 100%; } .tgpdf-btn, .tgpdf-dl { flex: 1; justify-content: center; }
}

/* ---------- Trang Liên hệ ---------- */
.ct-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 20px; align-items: start; }
.ct-card { background: #fff; border: 1px solid #e3ebf8; border-radius: 18px; padding: 22px 24px; box-shadow: 0 4px 16px rgba(20, 80, 181, .06); }
.ct-info .ct-card { background: linear-gradient(160deg, #f3f7ff 0%, #fff 70%); }
.ct-h { margin: 0 0 14px; font-size: 19px; font-weight: 800; color: #12306b; display: flex; align-items: center; gap: 10px; }
.ct-h em { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; background: #e5252f; color: #fff; font-size: 16px; }
.ct-welcome { color: #3b4a6b; line-height: 1.65; margin-bottom: 8px; }
.ct-welcome p { margin: 0 0 8px; }
.ct-list { list-style: none; margin: 14px 0 0; padding: 0; }
.ct-list li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px dashed #d6e1f5; }
.ct-list li > div { flex: 1; min-width: 0; line-height: 1.55; color: #27385f; }
.ct-list b { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; color: #6b7690; margin-bottom: 1px; }
.ct-ico { flex: 0 0 38px; height: 38px; border-radius: 12px; background: #e4edff; color: #1450b5; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.ct-val { display: block; }
.ct-val a, .ct-link { color: #1450b5; font-weight: 600; }
.ct-link { font-size: 13px; }
.ct-note { margin: -6px 0 16px; color: #6b7690; }
.ct-form .ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.ct-form .form-group { margin-bottom: 14px; }
.ct-label { display: block; margin: 0 0 5px; font-weight: 700; font-size: 13.5px; color: #12306b; }
.ct-label small { font-weight: 400; color: #8a95ad; }
.ct-req { color: #e5252f; font-style: normal; }
.ct-form .form-control { height: 44px; border: 1px solid #cfdcf3; border-radius: 12px; background: #fbfdff; box-shadow: none; padding: 8px 14px; transition: border-color .15s, box-shadow .15s; }
.ct-form textarea.form-control { height: auto; min-height: 140px; resize: vertical; line-height: 1.55; }
.ct-form .form-control:focus { border-color: #1450b5; background: #fff; box-shadow: 0 0 0 3px rgba(20, 80, 181, .14); }
.ct-form .form-control.disabled, .ct-form .form-control[disabled] { background: #eef3fb; color: #5a6a8c; }
.ct-form .has-error .form-control { border-color: #e5252f; box-shadow: 0 0 0 3px rgba(229, 37, 47, .12); }
.ct-check { display: flex; gap: 8px; align-items: center; font-weight: 400; cursor: pointer; margin: 0; }
.ct-captcha { display: flex; align-items: center; gap: 10px; }
.ct-captcha .fcode { width: 130px; flex: 0 0 130px; }
.ct-captcha .captchaImg { border-radius: 8px; border: 1px solid #cfdcf3; }
.ct-refresh { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #cfdcf3; background: #fff; color: #1450b5; cursor: pointer; }
.ct-refresh:hover { background: #e4edff; }
.ct-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.ct-send { padding: 11px 26px; border-radius: 999px; font-weight: 700; }
.ct-actions .btn-default { border-radius: 999px; padding: 11px 20px; }
.ct-form .contact-result { display: none; margin: 16px 0 0; border-radius: 12px; }
@media (max-width: 991px) {
    .ct-grid { grid-template-columns: 1fr; }
    .ct-info { order: 2; }
}
@media (max-width: 575px) {
    .ct-form .ct-row { grid-template-columns: 1fr; }
    .ct-card { padding: 18px 16px; }
}
.ct-form .form-control.required, .ct-form input.required { background-image: none !important; }
