/* =====================================================================================================================
   hccong.css — CỔNG THÔNG TIN (_LayoutCong · HcCong.js), 08/10/2026. Trang web kiểu truyền thống; tiền tố lớp cg-.
   Bố cục chốt theo mockup _Ngoai/_NodeWeb/CongThongTin-Mau.html.
   ===================================================================================================================== */
:root { --cg-xanh: #03045e; --cg-xanh2: #1d4ed8; --cg-cam: #ea5929; --cg-nen: #f4f6f9; --cg-chu: #1f2937; --cg-mo: #667085; --cg-vien: #e2e7ee; }
* { box-sizing: border-box; }
html, body.cg { margin: 0; height: 100%; }
body.cg { background: var(--cg-nen); color: var(--cg-chu); font: 15px/1.6 "Segoe UI", system-ui, -apple-system, sans-serif; display: flex; flex-direction: column; }
.cg a { color: inherit; text-decoration: none; }
.cg-trong { max-width: 1200px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 14px; }
.cg-khung { max-width: 1200px; margin: 0 auto; padding: 20px 16px 40px; width: 100%; }
.cg-moitruong { background: #b45309; color: #fff; text-align: center; font-size: 13px; padding: 3px; flex: none; }

/* thanh trên · đầu trang · menu ngang */
.cg-tren { background: var(--cg-xanh); color: #cfd6ff; font-size: 13px; flex: none; }
.cg-tren .cg-trong { padding-top: 5px; padding-bottom: 5px; }
.cg-tren-phai { margin-left: auto; display: flex; gap: 16px; align-items: center; }
.cg-tren a:hover { color: #fff; }
.cg-dau { background: #fff; border-bottom: 3px solid var(--cg-cam); flex: none; }
.cg-dau .cg-trong { padding-top: 10px; padding-bottom: 10px; }
.cg-thuonghieu { display: flex; align-items: center; gap: 12px; }
.cg-logo { width: 38px; height: 46px; flex: none; }
.cg-ten { line-height: 1.25; }
.cg-ten b { display: block; color: var(--cg-xanh); font-size: 20px; letter-spacing: .5px; }
.cg-ten span { color: var(--cg-mo); font-size: 13px; }
.cg-nut { margin-left: auto; background: var(--cg-cam); color: #fff !important; border-radius: 8px; padding: 8px 14px; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.cg-nut:hover { background: #d44a1d; }
.cg-nutmenu { display: none; border: 1px solid var(--cg-vien); background: #fff; border-radius: 8px; width: 38px; height: 36px; font-size: 20px; cursor: pointer; }
.cg-nav { background: #fff; border-bottom: 1px solid var(--cg-vien); flex: none; }
.cg-nav .cg-trong { gap: 2px; overflow-x: auto; }
.cg-nav a { padding: 11px 14px; font-weight: 600; color: #334155; border-bottom: 3px solid transparent; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.cg-nav a:hover { color: var(--cg-xanh2); }
.cg-nav a.on { color: var(--cg-xanh); border-bottom-color: var(--cg-xanh); }
.cg-khoa { font-size: 12px; color: #9aa3b2; }

.cg-than { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; }
.cg-than > .cg-khung { flex: 1 0 auto; }
.cg-chan { background: var(--cg-xanh); color: #c3cbe8; font-size: 13px; flex: none; }
.cg-chan .cg-khung { padding: 22px 16px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 20px; }
.cg-chan b { color: #fff; }
.cg-chan a:hover { color: #fff; }
.cg-sanpham { opacity: .6; }

/* khối dùng chung */
.cg-anh { border-radius: 10px; background: linear-gradient(135deg, #1e3a8a, #3b82f6); display: grid; place-items: center; color: rgba(255,255,255,.85); overflow: hidden; }
.cg-anh i { font-size: 40px; opacity: .75; }
.cg-anh.co-anh { background: #e2e8f0; display: block; }
.cg-anh.co-anh img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cg-anh.m1 { background: linear-gradient(135deg, #c2410c, #fb923c); }
.cg-anh.m2 { background: linear-gradient(135deg, #065f46, #34d399); }
.cg-anh.m3 { background: linear-gradient(135deg, #5b21b6, #a78bfa); }
.cg-cm { display: inline-block; font-size: 12px; font-weight: 600; color: var(--cg-xanh2); background: #eff5ff; border-radius: 4px; padding: 1px 8px; }
.cg-cm.noibo { color: #b45309; background: #fff4e5; }
.cg-cm.nhap { color: #9a6b00; background: #fff2cc; }
.cg-ngay { font-size: 12.5px; color: var(--cg-mo); }
.cg-muc { font-size: 18px; color: var(--cg-xanh); margin: 0 0 12px; padding-bottom: 6px; border-bottom: 2px solid var(--cg-vien); display: flex; align-items: center; gap: 8px; }
.cg-muc a { margin-left: auto; font-size: 13px; font-weight: 400; color: var(--cg-xanh2); }
.cg-the { background: #fff; border: 1px solid var(--cg-vien); border-radius: 12px; padding: 16px; }
.cg-trong-tin { color: var(--cg-mo); padding: 18px; text-align: center; background: #fff; border: 1px dashed var(--cg-vien); border-radius: 12px; }
.cg-loi { padding: 12px 16px; border-left: 4px solid #b91c1c; background: #fef2f2; border-radius: 6px; }

/* trang chủ */
.cg-chu { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; }
.cg-noibat { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-bottom: 22px; }
.cg-lon .cg-anh { height: 280px; }
.cg-lon h3 { font-size: 22px; margin: 10px 0 4px; line-height: 1.3; }
.cg-lon p { color: var(--cg-mo); margin: 0; }
.cg-phu { display: grid; gap: 12px; align-content: start; }
.cg-tinnho { display: grid; grid-template-columns: 110px 1fr; gap: 10px; align-items: start; }
.cg-tinnho .cg-anh { height: 72px; } .cg-tinnho .cg-anh i { font-size: 24px; }
.cg-tinnho h4 { margin: 0 0 2px; font-size: 14.5px; line-height: 1.35; }
.cg-luoi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cg-tinthe { background: #fff; border: 1px solid var(--cg-vien); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.cg-tinthe .cg-anh { height: 130px; border-radius: 0; }
.cg-tinthe .cg-nd { padding: 10px 12px 14px; }
.cg-tinthe h4 { margin: 6px 0 4px; font-size: 15px; line-height: 1.35; }
.cg-tinthe p { margin: 0; color: var(--cg-mo); font-size: 13.5px; }
.cg-tinthe:hover h4, .cg-tinnho:hover h4, .cg-lon:hover h3, .cg-tlmot:hover h3 { color: var(--cg-xanh2); }
.cg-cotphai { display: grid; gap: 16px; align-content: start; }
.cg-dsngan a { display: block; padding: 8px 0; border-bottom: 1px dashed var(--cg-vien); font-size: 14px; }
.cg-dsngan a:last-child { border-bottom: 0; }
.cg-dsngan a:hover { color: var(--cg-xanh2); }
.cg-khoahop { text-align: center; padding: 14px 10px; }
.cg-khoahop i.ti-lock { font-size: 34px; color: #94a3b8; }
.cg-khoahop .cg-nut { margin: 4px auto 0; }
.cg-viec { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cg-viec a { background: var(--cg-nen); border-radius: 10px; padding: 10px 12px; display: block; }
.cg-viec a:hover { background: #eff5ff; }
.cg-viec .so { font-size: 28px; font-weight: 700; color: var(--cg-cam); line-height: 1.1; }
.cg-viec .so.do { color: #b91c1c; } .cg-viec .so.xanh { color: var(--cg-xanh2); }

/* danh sách tin */
.cg-loc { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.cg-loc a { border: 1px solid var(--cg-vien); background: #fff; border-radius: 18px; padding: 4px 14px; font-size: 14px; }
.cg-loc a.on { background: var(--cg-xanh); color: #fff; border-color: var(--cg-xanh); }
.cg-ds { display: grid; gap: 14px; }
.cg-tlmot { display: grid; grid-template-columns: 220px 1fr; gap: 16px; background: #fff; border: 1px solid var(--cg-vien); border-radius: 12px; overflow: hidden; }
.cg-tlmot .cg-anh { height: 140px; border-radius: 0; }
.cg-tlmot .cg-nd { padding: 12px 14px 12px 0; }
.cg-tlmot h3 { margin: 4px 0; font-size: 17px; line-height: 1.35; }
.cg-tlmot p { margin: 0; color: var(--cg-mo); font-size: 14px; }
.cg-trangsau { text-align: center; margin-top: 18px; }
.cg-trangsau a { border: 1px solid var(--cg-vien); background: #fff; border-radius: 8px; padding: 6px 16px; }

/* bài tin */
.cg-bai { max-width: 820px; margin: 0 auto; }
.cg-bai h1 { font-size: 30px; line-height: 1.25; margin: 8px 0; color: #0f172a; }
.cg-bai .cg-anh { height: 340px; margin: 16px 0; }
.cg-bai .cg-tomtat { font-size: 17px; font-weight: 600; color: #334155; }
.cg-bai .hcbv-noidung { font-size: 16.5px; line-height: 1.75; }

/* ===== HƯỚNG DẪN trong layout cổng: mục lục THAY menu trái, hai phần CUỘN ĐỘC LẬP ===== */
body.cg-manday .cg-than { overflow: hidden; }
body.cg-manday .hcbv-hd { flex: 1; min-height: 0; height: auto; border: 0; border-radius: 0; grid-template-columns: 300px minmax(0, 1fr); }
body.cg-manday .hcbv-trai { position: static; max-height: none; min-height: 0; overflow: hidden; }
body.cg-manday .hcbv-bai { max-width: none; overflow-y: auto; min-height: 0; padding: 20px max(28px, calc((100% - 900px) / 2)) 60px; background: var(--cg-nen); }

/* ===== điện thoại ===== */
@media (max-width: 800px) {
    .cg-an-dt, .cg-ten span { display: none; }
    .cg-nutmenu { display: inline-block; }
    .cg-nut { padding: 7px 12px; }
    .cg-nav { display: none; }
    body.cg-monav .cg-nav { display: block; }
    .cg-nav .cg-trong { flex-direction: column; align-items: stretch; }
    .cg-chu, .cg-noibat, .cg-chan .cg-khung { grid-template-columns: 1fr; }
    .cg-luoi { grid-template-columns: 1fr; }
    .cg-tlmot { grid-template-columns: 1fr; }
    .cg-tlmot .cg-nd { padding: 0 14px 14px; }
    .cg-lon .cg-anh, .cg-bai .cg-anh { height: 190px; }
    .cg-bai h1 { font-size: 23px; }
    body.cg-manday .cg-than { overflow-y: auto; }
    body.cg-manday .hcbv-hd { display: block; }
    body.cg-manday .hcbv-bai { overflow: visible; padding: 12px 12px 40px; }
}

/* ô tìm + ô chọn trên mục lục hướng dẫn: lớp hc-input thuộc CSS của PHẦN MỀM, layout cổng không nạp -> khai lại ở đây */
.cg .hcbv-tim .hc-input { height: 36px; border: 1px solid var(--cg-vien); border-radius: 8px; padding: 0 10px; font: inherit; font-size: 14px; background: #fff; color: var(--cg-chu); }
.cg .hcbv-tim .hc-input:focus { outline: 2px solid #bfd3ff; border-color: var(--cg-xanh2); }
.cg .hcbv-loc select.hc-input { height: 32px; }
.cg .hc-btn { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--cg-vien); background: #fff; border-radius: 8px; padding: 5px 12px; font: inherit; font-size: 14px; cursor: pointer; color: var(--cg-chu); }
.cg .hc-btn:hover { background: #eff5ff; }

/* Lùi / Tiến cạnh dòng đăng nhập — chỉ trên điện thoại và khi chạy từ biểu tượng màn hình (HcTab, 08/10/2026). */
.cg-luitien { display: none; align-items: center; justify-content: center; width: 30px; height: 26px; margin-right: 4px; border-radius: 6px; font-size: 18px; color: #fff; }
.cg-luitien:active { background: rgba(255, 255, 255, .15); }
html.hc-doclap .cg-luitien { display: inline-flex; }
@media (max-width: 640px) { .cg-luitien { display: inline-flex; } }

/* Nút "Làm việc" ở dòng trên cùng (08/10/2026) — vào phần mềm; cùng chỗ với "Đăng nhập" khi chưa đăng nhập. */
.cg-tren .cg-lamviec { background: var(--cg-cam); color: #fff; border-radius: 14px; padding: 2px 12px; font-weight: 600; display: inline-flex; gap: 5px; align-items: center; }
.cg-tren .cg-lamviec:hover { background: #d44a1d; color: #fff; }
.cg-tren .cg-ten-nd { display: inline-flex; gap: 4px; align-items: center; }
@media (max-width: 640px) { .cg-tren-phai { gap: 12px; } }

/* Hotline (08/10/2026) — góc phải phần đầu trang */
.cg-hotline { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; color: var(--cg-xanh) !important; text-decoration: none; }
.cg-hotline .ti { width: 40px; height: 40px; border-radius: 50%; background: #fff1eb; color: var(--cg-cam); display: flex; align-items: center; justify-content: center; font-size: 21px; }
.cg-hotline small { display: block; color: var(--cg-mo); font-size: 12px; line-height: 1.1; }
.cg-hotline b { display: block; font-size: 20px; line-height: 1.15; letter-spacing: .02em; color: var(--cg-cam); }
.cg-hotline b, .cg-ten b { white-space: nowrap; }
@media (max-width: 640px) {
    .cg-hotline .ti { width: 30px; height: 30px; font-size: 16px; } .cg-hotline b { font-size: 14.5px; } .cg-hotline small { font-size: 11px; } .cg-hotline { gap: 5px; }
    .cg-ten b { font-size: 15px; }
    .cg-hotline { display: none; }
    .cg-tren a.cg-hotline-dt { display: inline-flex; }
}
.cg-tren .cg-hotline-dt { display: none; align-items: center; gap: 4px; color: #fff; font-weight: 700; letter-spacing: .02em; }

/* Tiêu đề tin được phép XUỐNG DÒNG chủ ý (tin giá xăng: "…áp dụng từ:" / "15h ngày …") — 08/10/2026 */
.cg h1, .cg h3, .cg h4, .cg-dsngan a { white-space: pre-line; }
