/* home-tender.css — khung "THÔNG BÁO ĐẤU THẦU" trang chủ, mẫu B (Includes/HomeTender.ascx; docs/module-news/69 §19, §20).
   Trái: khối màu giới thiệu + nút; phải: 5 thông báo mới nhất có vạch màu theo loại.
   Tông xanh bệnh viện #139cd0; vàng #f2a31b = báo giá, xanh lá #26a65b = kết quả, tím #5b6bd6 = quyết định. Tiền tố html body để thắng portal.css.
   Cỡ chữ + hiệu ứng hover lấy theo khối TIN TỨC (home-news.css): tiêu đề bài 15px thường, hover đổi #139cd0 + nhích phải 4px, đường kẻ đổi #b9def0. */
html body .ht-sec { --ht-ease: cubic-bezier(.22, .61, .36, 1); background: #fff; padding: 14px 0 48px; font-family: var(--bv-font, 'Roboto Condensed', Tahoma, Arial, sans-serif); color: #1e3a4c; }
html body .ht-sec a { text-decoration: none; color: inherit; }

/* ---- Tiêu đề lớn của khung (giống TIN TỨC: chữ xanh 23px + gạch ngắn hai bên + 3 chấm tròn) ---- */
html body .ht-sec h2.ht-title { margin: 0 0 9px; padding: 0; border: 0; background: none; text-align: center; color: #139cd0; font-size: 23px; font-weight: 700; line-height: 1.1; letter-spacing: .5px; text-transform: uppercase; }
html body .ht-sec .ht-head { display: flex; align-items: center; justify-content: center; gap: 10px; max-width: 150px; margin: 0 auto 22px; }
html body .ht-sec .ht-line { flex: 1 1 0; height: 2px; background: #139cd0; border-radius: 2px; }
html body .ht-sec .ht-dots { flex: none; display: inline-flex; gap: 5px; }
html body .ht-sec .ht-dots i { width: 6px; height: 6px; border-radius: 50%; background: #139cd0; display: block; }

html body .ht-sec .ht-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.5fr); gap: 26px; align-items: stretch; }

/* ---- Khối trái ---- */
/* Nội dung căn giữa cả ngang lẫn dọc (icon → giới thiệu → ngày cập nhật → nút) để không còn khoảng trống lệch */
/* Đầu khối = ảnh mặc định bệnh viện (/Portals/_default/Skins/bvyhct/Images/mac-dinh-benh-vien.jpg, 16:9, đã có logo + tên) hiện TRỌN; phía dưới là nền xanh có chữ + nút */
html body .ht-sec .ht-l { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; text-align: center; border-radius: 18px; padding: 0; color: #fff; background: #0e5f7c; isolation: isolate; }
/* Cả khối là ảnh: lớp mờ = chính ảnh mặc định phóng to + làm mờ phủ kín khối; ảnh gốc hiện trọn ở đầu khối; lớp tối nhẹ phía dưới cho chữ trắng dễ đọc */
html body .ht-sec .ht-l:before { content: ""; position: absolute; inset: -24px; z-index: 0; background: url("/Portals/_default/Skins/bvyhct/Images/mac-dinh-benh-vien.jpg") center / cover no-repeat; filter: blur(16px) saturate(1.1); }
html body .ht-sec .ht-l:after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; top: 40%; z-index: 0; background: linear-gradient(180deg, rgba(6, 44, 62, 0), rgba(6, 44, 62, .72) 45%, rgba(6, 44, 62, .84)); }
html body .ht-sec .ht-l > * { position: relative; z-index: 1; }
/* Logo tròn bệnh viện (thay biểu tượng tài liệu): vòng trắng mờ + bóng, như ảnh mặc định của bệnh viện */
html body .ht-sec .ht-cover { display: block; flex: none; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
html body .ht-sec .ht-lb { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 22px 28px 26px; }
html body .ht-sec .ht-p { max-width: 340px; margin: 0 0 22px; font-size: 16px; line-height: 1.55; color: #fff; opacity: .97; }
html body .ht-sec a.ht-btn { align-self: center; display: inline-block; padding: 9px 22px; border-radius: 999px; background: #fff; color: #0f86b4; font-size: 14px; font-weight: 600; line-height: 1.3; transition: background-color .35s var(--ht-ease), color .35s var(--ht-ease), box-shadow .35s var(--ht-ease), transform .35s var(--ht-ease); }
html body .ht-sec a.ht-btn:hover, html body .ht-sec a.ht-btn:focus-visible { box-shadow: 0 6px 16px rgba(4, 50, 58, .28); transform: translateY(-2px); }
html body .ht-sec a.ht-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* ---- Danh sách phải ---- */
/* 10 bài, cao tối đa 520px (~4,5 dòng: lộ dở dòng cuối để biết còn cuộn được) rồi cuộn riêng; khối trái tự giãn cao bằng. Thanh cuộn mảnh #8fcbe6 như khối TIN TỨC. */
html body .ht-sec .ht-r { border: 1px solid #e3eef4; border-radius: 18px; padding: 6px 12px 6px 20px; background: #fff; max-height: 520px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #8fcbe6 transparent; }
html body .ht-sec .ht-r::-webkit-scrollbar { width: 6px; }
html body .ht-sec .ht-r::-webkit-scrollbar-thumb { background: #8fcbe6; border-radius: 6px; }
html body .ht-sec .ht-r::-webkit-scrollbar-track { background: transparent; margin: 10px 0; }
html body .ht-sec a.ht-i { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid #e3eef4; transition: border-color .35s var(--ht-ease); }
html body .ht-sec a.ht-i:first-child { border-top: 0; }
html body .ht-sec a.ht-i:hover { border-top-color: #b9def0; }
html body .ht-sec .ht-dt { flex: none; width: 6px; border-radius: 6px; background: #139cd0; }
html body .ht-sec a.ht-i.mo .ht-dt { background: #f2a31b; }
html body .ht-sec a.ht-i.kq .ht-dt { background: #26a65b; }
html body .ht-sec a.ht-i.qd .ht-dt { background: #5b6bd6; }
html body .ht-sec .ht-bx { display: block; min-width: 0; }
html body .ht-sec .ht-bd { display: inline-block; padding: 5px 9px; border-radius: 6px; background: #dff1f9; color: #0f86b4; font-size: 12px; font-weight: 700; line-height: 1; text-transform: uppercase; white-space: nowrap; }
html body .ht-sec .ht-bd.mo { background: #fff1d6; color: #9a5b00; }
html body .ht-sec .ht-bd.kq { background: #dcf5e5; color: #17703a; }
html body .ht-sec .ht-bd.qd { background: #e5e9fb; color: #3a45a8; }
html body .ht-sec .ht-it { display: block; margin: 6px 0 4px; font-size: 15px; font-weight: 400; line-height: 1.45; color: #1e3a4c; transition: color .35s var(--ht-ease), transform .45s var(--ht-ease); }
html body .ht-sec a.ht-i:hover .ht-it, html body .ht-sec a.ht-i:focus-visible .ht-it { color: #139cd0; transform: translateX(4px); }
/* Ngày giờ + lượt xem có biểu tượng: lấy đúng giá trị của .hn-meta / .hn-mi / .hn-i (home-news.css) */
html body .ht-sec .ht-d { display: block; }
html body .ht-sec .ht-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; color: #8aa3b2; font-size: 12.5px; font-weight: 400; line-height: 1.3; }
html body .ht-sec .ht-mi { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
html body .ht-sec .ht-ico { flex: none; opacity: .9; }
html body .ht-sec a.ht-i:focus-visible { outline: 2px solid #0f86b4; outline-offset: 2px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  html body .ht-sec .ht-it, html body .ht-sec a.ht-i, html body .ht-sec a.ht-btn { transition: none; }
  html body .ht-sec a.ht-i:hover .ht-it, html body .ht-sec a.ht-btn:hover { transform: none; }
}

/* ---- Điện thoại / máy tính bảng dọc ---- */
@media (max-width: 820px) {
  html body .ht-sec { padding: 8px 0 38px; }
  html body .ht-sec .ht-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  html body .ht-sec .ht-lb { padding: 18px 20px 22px; }
  html body .ht-sec .ht-p { font-size: 15px; margin-bottom: 14px; }  html body .ht-sec h2.ht-title { margin: 0 0 8px; }
  html body .ht-sec .ht-head { max-width: 130px; margin-bottom: 14px; }
  html body .ht-sec .ht-r { padding: 4px 14px; max-height: none; overflow: visible; }
  html body .ht-sec a.ht-i:nth-child(n+7) { display: none; }   /* điện thoại không cuộn riêng (như khối TIN TỨC): chỉ 6 dòng, còn lại xem ở nút Xem tất cả */
  html body .ht-sec a.ht-i:hover .ht-it, html body .ht-sec a.ht-i:focus-visible .ht-it { transform: none; }
}
/* Máy tính bảng dọc (561–820px): khối trái rộng cả hàng -> ảnh 16:9 sẽ rất cao; giữ ảnh rộng 480px, bo góc, căn giữa */
@media (min-width: 561px) and (max-width: 820px) {
  html body .ht-sec .ht-cover { width: 480px; max-width: calc(100% - 40px); margin: 20px auto 0; border-radius: 12px; }
}
