/* Bổ sung cho giao diện mockup (Layout/) - KHÔNG sửa các file CSS của mockup. Chỉ chứa phần mockup không có:
 *  1. Icon menu: mũi tên xuống (v) thay cho dấu + / - của mockup (chủ dự án yêu cầu)
 *  2. Menu xổ tự đóng sau khi bấm chọn (class .is-closing do vn-site.js gắn)
 *  3. Nút Chatbot AI màu đỏ trong bộ nút liên hệ nổi + khung chat
 *  4. Thông báo của form, nội dung bài từ "Trang nội dung" (ul/li/strong) dựng đúng giao diện hộp liên hệ / footer */

/* 1. mũi tên xuống thay + / - ------------------------------------------------ */
.mainmenu li.has-droupdown > a::before { content: "\f078" !important; font-weight: 900 !important; font-size: 10px !important; right: -16px !important; transition: transform .25s ease, color .25s ease !important; }
.mainmenu li.has-droupdown > a:hover::before { content: "\f078" !important; transform: translateY(-50%) rotate(180deg); }
.rts-sidebar-menu-desktop .body-mobile .mainmenu li.has-droupdown > a::before { content: "\f078" !important; font-weight: 900 !important; font-size: 12px !important; right: 12px !important; }
.rts-sidebar-menu-desktop .body-mobile .mainmenu li.has-droupdown > a.open::before { content: "\f078" !important; transform: translateY(-50%) rotate(180deg); }

/* 2. đóng menu xổ ngay sau khi bấm (chuột còn nằm trên menu nên :hover vẫn đúng) ---------- */
.header-main-one .mainmenu li.has-droupdown.is-closing > .submenu,
.header-main-one .mainmenu li.has-droupdown.is-closing:focus-within > .submenu { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
.header-main-one .mainmenu li.has-droupdown.is-closing > a::before { transform: translateY(-50%) !important; }

/* điện thoại: ngăn kéo cuộn được khi menu dài, không kẹt nền */
.side-bar { overflow-y: auto; overscroll-behavior: contain; }

/* 3. Chatbot AI ------------------------------------------------------------- */
.vn-float-btn.is-bot { background: var(--vn-red); }
.vn-float-btn.is-bot i { font-size: 19px; }
.vn-float.is-open .vn-float-btn:nth-child(5) { transition-delay: 0s; }
.vn-float.is-open .vn-float-btn:nth-child(4) { transition-delay: .04s; }
.vn-float.is-open .vn-float-btn:nth-child(3) { transition-delay: .08s; }
.vn-float.is-open .vn-float-btn:nth-child(2) { transition-delay: .12s; }
.vn-float.is-open .vn-float-btn:nth-child(1) { transition-delay: .16s; }
.vn-chat { position: fixed; right: 20px; bottom: 90px; z-index: 120; width: min(380px, calc(100vw - 24px)); max-height: min(560px, calc(100dvh - 110px)); display: none; flex-direction: column; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px rgba(11, 37, 64, .32); }
.vn-chat.is-open { display: flex; }
.vn-chat-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--vn-red); color: #fff; }
.vn-chat-head strong { flex: 1; font-size: 15px; }
.vn-chat-head button { border: 0; background: transparent; color: #fff; font-size: 18px; cursor: pointer; line-height: 1; }
.vn-chat-body { flex: 1; overflow-y: auto; padding: 14px; background: #f6f8fb; display: flex; flex-direction: column; gap: 10px; min-height: 180px; }
.vn-chat-msg { max-width: 86%; padding: 9px 12px; border-radius: 12px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.vn-chat-msg.bot { align-self: flex-start; background: #fff; color: #1c2539; border: 1px solid #e3e8ef; }
.vn-chat-msg.me { align-self: flex-end; background: var(--vn-red); color: #fff; }
.vn-chat-refs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.vn-chat-refs a { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: #fdeceb; color: var(--vn-red); }
.vn-chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #e3e8ef; background: #fff; }
.vn-chat-form input { flex: 1; min-width: 0; border: 1px solid #d5dbe5; border-radius: 10px; padding: 9px 12px; font-size: 14px; }
.vn-chat-form button { border: 0; border-radius: 10px; padding: 0 14px; background: var(--vn-red); color: #fff; font-weight: 700; cursor: pointer; }
.vn-chat-form button:disabled { opacity: .55; cursor: default; }
.vn-chat-lead { display: flex; gap: 6px; padding: 8px 10px; background: #fff7e6; border-top: 1px solid #f3dfb2; }
.vn-chat-lead input { flex: 1; min-width: 0; border: 1px solid #e6cf94; border-radius: 8px; padding: 7px 10px; font-size: 13px; }
.vn-chat-lead button { border: 0; border-radius: 8px; padding: 0 12px; background: var(--vn-navy, #0b2540); color: #fff; font-size: 13px; cursor: pointer; }

/* 4. form + nội dung từ Trang nội dung ------------------------------------------- */
.vn-form-note { grid-column: 1 / -1; margin: 0; padding: 10px 14px; border-radius: 10px; font-size: 14px; }
.vn-form-note.ok { background: #e8f7ee; color: #146c3a; }
.vn-form-note.err { background: #fdecea; color: #a3200f; }
.vn-form .is-invalid { border-color: #d92d20 !important; }
.vn-recaptcha-note { grid-column: 1 / -1; margin: 0; font-size: 11px; color: #7a8594; }
.vn-recaptcha-note a { color: inherit; text-decoration: underline; }
.grecaptcha-badge { visibility: hidden; }
/* hộp liên hệ viết bằng ul/li/strong ở Trang nội dung -> cùng dáng danh sách chấm đỏ của mockup */
.vn-cms-list ul { list-style: none; margin: 0; padding: 0; }
.vn-contact-info .vn-cms-list > p { margin: 0 0 22px; color: #fff; opacity: 1; }
.vn-contact-info .vn-cms-list ul li { position: relative; padding: 0 0 18px 30px; line-height: 1.55; color: #fff; }
.vn-contact-info .vn-cms-list ul li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--vn-red); box-shadow: 0 0 0 5px rgba(225, 29, 46, .22); }
.vn-contact-info .vn-cms-list ul li strong { display: block; color: #fff; }
.vn-contact-info .vn-cms-list ul li a { color: inherit; font-weight: 700; }
.vn-cms-footer ul { list-style: none; margin: 0 0 30px; padding: 0; }
.vn-cms-footer ul li { display: flex; justify-content: space-between; gap: 12px; padding: 0 0 18px; color: #fff; }
.vn-cms-footer ul li strong { font-weight: 400; }
.vn-cms-footer a { color: inherit; }
.vn-cms-footer-about p { margin: 0; color: #fff; font-size: 16px; line-height: 1.7; }
/* chữ mô tả + mã số thuế dưới logo footer: trắng rõ trên nền xanh đậm (thẻ <p> bên trong khối CMS không ăn luật p.disc của thiết kế nên bị xám) */
.vn-footer .footer-two-single-wized.left .disc, .vn-footer .footer-two-single-wized.left .disc a { color: #fff; }

/* 5. đổi ngôn ngữ VI | EN (components/site/LangSwitch.tsx) --------------------------- */
.vn-lang { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border-radius: 999px; background: rgba(255, 255, 255, .14); margin-right: 0; vertical-align: middle; }
.vn-lang a, .vn-lang span { display: inline-block; padding: 3px 14px; white-space: nowrap; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .04em; line-height: 1.4; text-align: center; color: #fff; text-decoration: none; }
.vn-lang button { display: inline-block; padding: 3px 14px; white-space: nowrap; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font-family: inherit; font-size: 12px; font-weight: 700; letter-spacing: .04em; line-height: 1.4; text-align: center; color: #fff; }
.vn-lang a:hover, .vn-lang button:hover { background: rgba(255, 255, 255, .22); }
.vn-lang .is-active { background: #fff; color: var(--vn-red, #e11d2e); }
/* Google Dịch: ẩn thanh Google ở đầu trang, hộp gợi ý và tô sáng chữ; Google tự đẩy body xuống 40px nên trả về 0 */
.skiptranslate iframe, iframe.skiptranslate, .goog-te-banner-frame, #goog-gt-tt, .goog-te-balloon-frame, .VIpgJd-ZVi9od-ORHb-OEVmcd, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf, .VIpgJd-ZVi9od-aZ2wEe-OiiCO { display: none !important; }
body { top: 0 !important; }
.goog-text-highlight { box-shadow: none !important; background: transparent !important; }
.header-top-one .right { display: flex; align-items: center; justify-content: flex-end; height: 100%; }
.vn-lang-drawer { display: flex; justify-content: center; margin: 18px 0 0; background: #eef1f5; }
.vn-lang-drawer a, .vn-lang-drawer span, .vn-lang-drawer button { color: #0b2540; }
.vn-lang-drawer a:hover, .vn-lang-drawer button:hover { background: #dde3ec; }
.vn-lang-drawer .is-active { background: var(--vn-red, #e11d2e); color: #fff; }

/* 6. thanh trượt Tin tức ở trang chủ: mọi ảnh cùng khung 16:11, cắt vừa khung (luật gốc của thiết kế để height:auto nên ảnh giữ tỷ lệ riêng, các card lệch nhau) */
.single-blog-one-wrapper .thumbnail.vn-blog-thumb { aspect-ratio: 16 / 11; overflow: hidden; background: #0f2a47; }
.single-blog-one-wrapper .thumbnail.vn-blog-thumb img { display: block; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
/* slide của thanh trượt tin là flex: thẻ con co theo độ dài tiêu đề nên rộng/cao lệch nhau -> ép thẻ rộng đúng bằng slide */
.mySwiperh1_blog .swiper-slide > .single-blog-one-wrapper { width: 100%; min-width: 0; }
/* tiêu đề tin nhỏ lại và luôn chiếm đúng 2 dòng (dài hơn thì "..."), dòng loại tin luôn 1 dòng -> nút "Đọc tiếp" của mọi thẻ thẳng hàng (chủ dự án 2026-11-26) */
.mySwiperh1_blog .blog-content p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mySwiperh1_blog .blog-content a .title {
  font-size: 18px; line-height: 1.4; min-height: 2.8em; margin-bottom: 24px; padding-right: 0;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
