/*
 * Thành phần do tầng shortcode sinh ra: ảnh, băng chuyền, nút, banner, tiêu đề.
 *
 * Màu và cỡ chữ lấy từ token khai báo trong style.css, đo lại từ giao diện
 * đang chạy của site.
 */

/* ---------- [ux_image] ---------- */

.img {
	position: relative;
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.img .img-inner {
	position: relative;
	overflow: hidden;
	line-height: 0;
}

.img img {
	display: block;
	width: 100%;
	height: auto;
}

.img a {
	display: block;
	text-decoration: none;
}

/* Hiệu ứng phóng nhẹ khi rê chuột, chỉ bật ở thiết bị có con trỏ */
@media (hover: hover) {
	.img.has-hover .img-inner img {
		transition: transform 0.3s ease;
	}

	.img.has-hover:hover .img-inner img {
		transform: scale(1.04);
	}
}

@media (prefers-reduced-motion: reduce) {
	.img.has-hover .img-inner img,
	.img.has-hover:hover .img-inner img {
		transition: none;
		transform: none;
	}
}

/* ---------- [ux_slider] — dựng trên slick.js ---------- */

.slider-wrapper {
	position: relative;
	width: 100%;
}

/* Trước khi slick khởi tạo, chỉ hiện slide đầu để tránh nhảy bố cục */
.xmn-slider:not(.slick-initialized) > *:not(:first-child) {
	display: none;
}

.xmn-slider:not(.slick-initialized) > *:first-child {
	display: block;
}

.slider .slick-slide {
	outline: none;
}

.slider .slick-slide > div {
	line-height: 0;
}

/* Nút chuyển slide */
.slider .slick-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	cursor: pointer;
	background-color: rgba(255, 255, 255, 0.8);
	color: var(--xmn-text);
	font-size: 18px;
	line-height: 1;
	opacity: 0;
	transition: opacity 0.25s ease, background-color 0.25s ease;
}

.slider-wrapper:hover .slick-arrow,
.slider .slick-arrow:focus-visible {
	opacity: 1;
}

.slider .slick-arrow:hover {
	background-color: #fff;
}

.slider .slick-prev { left: 10px; }
.slider .slick-next { right: 10px; }

.slider-nav-circle .slick-arrow {
	border-radius: 50%;
}

.slider-nav-large .slick-arrow {
	width: 50px;
	height: 50px;
	font-size: 22px;
}

.slider-nav-dark .slick-arrow {
	background-color: rgba(0, 0, 0, 0.6);
	color: #fff;
}

.slider-nav-dark .slick-arrow:hover {
	background-color: rgba(0, 0, 0, 0.85);
}

/* Chấm chỉ vị trí: đè lên mép dưới ảnh như theme cũ, không đẩy nội dung */
.slider .slick-dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 12px;
	z-index: 2;
	display: flex;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	line-height: 0;
	list-style: none;
}

.slider .slick-dots li {
	margin: 0;
	line-height: 0;
}

.slider .slick-dots li button {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.6);
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
	font-size: 0;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.slider .slick-dots li.slick-active button {
	background-color: var(--xmn-primary);
}

/* Băng chuyền tràn viền: bỏ khoảng đệm mặc định của slick */
.slider-wrapper .slick-list {
	overflow: hidden;
}

/* ---------- [title] ---------- */

.section-title {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
	width: 100%;
}

.section-title b {
	flex: 1 1 auto;
	height: 2px;
	background-color: var(--xmn-border);
	display: block;
}

.section-title-main {
	flex: 0 0 auto;
}

.section-title h1,
.section-title h2,
.section-title h3,
.section-title h4 {
	margin: 0;
	font-family: var(--xmn-font-heading);
	font-weight: 700;
	color: var(--xmn-heading);
}

.section-title-link {
	flex: 0 0 auto;
	font-size: 0.85em;
	color: var(--xmn-link);
}

/* Kiểu chỉ có gạch bên phải */
.section-title-normal b:first-child {
	display: none;
}

/* ---------- [divider] ---------- */

.xmn-divider {
	height: 2px;
	width: 100%;
	background-color: var(--xmn-border);
	margin: 1em 0;
}

.divider-center {
	margin-left: auto;
	margin-right: auto;
}

.divider-right {
	margin-left: auto;
}

/* ---------- [button] ----------
   Kiểu nút dùng hệ nút chung trong style.css (.button, .is-outline, .is-small,
   .is-large…); ở đây chỉ thêm biến thể giãn hết bề ngang và viền khi dùng
   bàn phím. */

.button.is-expand {
	display: block;
	width: 100%;
}

.button:focus-visible {
	outline: 2px solid var(--primary-color, #446084);
	outline-offset: 2px;
}

/* ---------- [ux_banner] ---------- */

.banner {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.banner-inner {
	position: relative;
	display: flex;
	align-items: center;
	min-height: inherit;
}

.banner-bg {
	z-index: 0;
}

.banner-bg .overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}

.banner-layers {
	position: relative;
	z-index: 1;
	width: 100%;
	padding-top: 30px;
	padding-bottom: 30px;
}

.banner-link-wrap {
	display: block;
	text-decoration: none;
	color: inherit;
}

/* ---------- Vùng widget do [ux_sidebar] in ra ---------- */

ul.ul-reset {
	margin: 0;
	padding: 0;
}

ul.ul-reset > li {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* ---------- Contact Form 7 ----------
   Form đăng ký nhận tin ở chân trang và form liên hệ. Theme cũ có sẵn nhóm
   quy tắc này; thiếu nó thì biểu tượng "đang gửi" bị đẩy xuống dòng dưới nút
   và các dòng của form giãn cách theo nhịp đoạn văn. */

.wpcf7 {
	position: relative;
	color: #333;
}

.dark .wpcf7 {
	color: #fff;
}

.wpcf7 p {
	margin: 0;
	padding: 0;
}

.wpcf7 br {
	display: none;
}

.wpcf7 label {
	display: inline-block;
	width: 100%;
}

.wpcf7 .wpcf7-form-control-wrap {
	display: block;
}

.wpcf7 span.wpcf7-list-item {
	margin-left: 0;
	margin-right: 1.2em;
}

.wpcf7 .ajax-loader {
	display: none !important;
}

.wpcf7 .wpcf7-validation-errors {
	display: none !important;
}

.wpcf7 .wpcf7-not-valid-tip {
	position: relative;
	margin-top: -10px;
	padding: 5px 8px;
	border-radius: 3px;
	background-color: #f1f1f1;
	color: #b20000;
	line-height: 1.2em;
	opacity: 0.8;
}

.wpcf7 .wpcf7-response-output {
	margin: 5px 0 0;
	border-radius: 10px;
}

input.wpcf7-not-valid {
	border-color: #b20000;
	color: #b20000;
}

.wpcf7-form .processing * {
	opacity: 0.8;
}

