/* Slide banner dịch vụ dưới menu trang chủ (29/11/2026) — markup: inc/hero-c.php cvm_banner_slide_html(); JS: assets/js/banner-slide.js */
.cvm-bs {
	--bs-r: 24px;
	position: relative; box-sizing: border-box; width: 100%; max-width: none !important; margin: 20px 0 8px !important; aspect-ratio: 2060 / 763;
	border-radius: var(--bs-r); overflow: hidden; background: #EAF2FF;
	box-shadow: 0 0 0 1px rgba(1, 36, 111, .06), 0 30px 60px -36px rgba(1, 36, 111, .45);
}
.cvm-bs__track {
	display: flex; height: 100%; margin: 0; padding: 0; list-style: none;
	overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain;
}
.cvm-bs__track::-webkit-scrollbar { display: none; }
.cvm-bs__slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.cvm-bs__slide a { display: block; height: 100%; }
.cvm-bs__slide :is(picture, img) { display: block; width: 100%; height: 100%; }
.cvm-bs__slide img { object-fit: cover; }
.cvm-bs__slide a:focus-visible { outline: 3px solid #0A84FF; outline-offset: -3px; }

/* nút trước / sau: kính trắng tròn, hiện rõ khi rê vào slide */
.cvm-bs__nav {
	position: absolute; top: 50%; z-index: 2; width: 48px; height: 48px; margin-top: -24px; padding: 0; border: 0; border-radius: 50%;
	background: rgba(255, 255, 255, .86); box-shadow: 0 8px 20px -8px rgba(1, 36, 111, .5); cursor: pointer;
	opacity: .0; transition: opacity .25s ease, transform .2s ease, background-color .2s ease;
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.cvm-bs__nav::before {
	content: ""; position: absolute; inset: 0; margin: auto; width: 20px; height: 20px; background: #01246F;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 6-6 6 6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 6-6 6 6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.cvm-bs__nav--prev { left: 16px; }
.cvm-bs__nav--next { right: 16px; }
.cvm-bs__nav--next::before { transform: scaleX(-1); }
.cvm-bs:hover .cvm-bs__nav,
.cvm-bs__nav:focus-visible { opacity: 1; }
.cvm-bs__nav:hover { background: #fff; transform: scale(1.06); }
.cvm-bs__nav:focus-visible { outline: 3px solid #0A84FF; outline-offset: 2px; }
@media (hover: none) { .cvm-bs__nav { display: none; } }

/* chấm vị trí: viên thuốc trên nền kính mờ, chấm đang xem dài ra */
.cvm-bs__dots {
	position: absolute; left: 50%; bottom: 14px; z-index: 2; display: flex; gap: 0; padding: 2px 6px; transform: translateX(-50%);
	border-radius: 999px; background: rgba(1, 36, 111, .28); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.cvm-bs__dot { position: relative; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.cvm-bs__dot::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .6); transition: width .3s ease, background-color .3s ease; }
.cvm-bs__dot[aria-current="true"] { width: 32px; }
.cvm-bs__dot[aria-current="true"]::before { width: 24px; background: #fff; }
.cvm-bs__dot:focus-visible { outline: 2px solid #fff; outline-offset: -2px; border-radius: 999px; }

@media (max-width: 719px) {
	.cvm-bs { --bs-r: 16px; margin-top: 14px !important; }
	.cvm-bs__dots { left: auto; right: 4px; bottom: 2px; gap: 0; padding: 0; transform: none; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
	.cvm-bs__dot::before { box-shadow: 0 0 0 1px rgba(1, 36, 111, .35), 0 1px 3px rgba(1, 36, 111, .5); }
	.cvm-bs__dot::before { width: 6px; height: 6px; }
	.cvm-bs__dot[aria-current="true"] { width: 24px; }
	.cvm-bs__dot[aria-current="true"]::before { width: 16px; }
}
@media (prefers-reduced-motion: reduce) {
	.cvm-bs__track { scroll-behavior: auto; }
	.cvm-bs__dot::before, .cvm-bs__nav { transition: none; }
}

/* 29/11 chủ site: "rê chuột vào phát sáng chói quá, bỏ hiệu ứng hover" — chặn quy tắc chung a:hover (brightness/saturate) */
.cvm-bs .cvm-bs__slide a,
.cvm-bs .cvm-bs__slide a:hover,
.cvm-bs .cvm-bs__slide a:focus { filter: none !important; opacity: 1 !important; transform: none !important; transition: none !important; }
