/* Bổ sung riêng cho bản WordPress — phần còn lại là CSS gốc của mẫu, không sửa. */

/* menu WordPress: ul do wp_nav_menu sinh ra */
.menu-section .menu > li.active > a,
.menu-section .menu > li > a:hover { color: var(--color-highlight); }
.menu-section .sub-menu { list-style: none; }

/* menu footer dùng lại kiểu của mẫu */
.w1-footer-menu li { margin-bottom: 1.5rem; }
.w1-footer-menu a { color: #a3a3a3; }
.w1-footer-menu a:hover { color: var(--color-highlight); }

/* nền đặt bằng style inline thay cho lazy-load của web4s */
.service-category, .testimonial-section, .partners-section, .fun-fact-section,
.pagehding-sec, .background-about, .background__1cta, .background__2cta { background-repeat: repeat; }
.fun-fact-section, .pagehding-sec { background-size: cover; background-position: center; }

/* ô bẫy chống spam của form liên hệ */
.w1-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.w1-zalo { font-weight: 700; font-size: 12px; }

/* nút sửa của MyTree Core nằm cạnh nội dung, không đẩy lệch bố cục mẫu */
.w1-edit-row { margin-top: 1rem; display: flex; gap: .5rem; justify-content: center; }
/* nút của slider nằm trong hàng riêng (khung chữ slide là position:absolute, không gắn
   mtc-editable lên nó được) → hiện khi rê vào cả slide, đứng thành hàng chứ không bay góc */
html.mtc-show-all .w1-edit-row > .mtc-edit-btn { display: inline-block; position: static; }
.w1-social { display: inline-flex; align-items: center; }
/* các li bên trong float → section cao 0, không rê chuột vào được */
.contact-info.mtc-editable { display: flow-root; }

/* phân trang trang danh sách */
.w1-pagination .nav-links { display: flex; justify-content: center; gap: .6rem; margin-top: 2rem; }
.w1-pagination .page-numbers { min-width: 40px; height: 40px; line-height: 40px; text-align: center;
	border: 1px solid #e1e1e1; color: var(--color-main); padding: 0 .8rem; }
.w1-pagination .page-numbers.current, .w1-pagination .page-numbers:hover {
	background: var(--color-highlight); border-color: var(--color-highlight); color: #fff; }

/* nội dung bài */
.article-content img { max-width: 100%; height: auto; }
.article-content blockquote { background: var(--color-highlight); color: #fff; padding: 3rem 3rem 3rem 9rem; margin: 3rem 0; font-size: 1.8rem; }

/* form bình luận mặc định của WordPress theo kiểu ô nhập của mẫu */
.comment-respond { margin-top: 3rem; }
.comment-respond .comment-reply-title { font-size: 2.2rem; margin-bottom: 1rem; }
.comment-form p { margin-bottom: 1.5rem; }
.comment-form label { display: block; margin-bottom: .5rem; font-size: 1.4rem; color: var(--color-main); }
.comment-form-cookies-consent label { display: inline; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea {
	width: 100%; border: 1px solid #e1e1e1; padding: 1rem 1.5rem; font-size: 1.4rem; background: #fff; }
.comment-form textarea { height: 150px; }
.comment-form .submit { background: var(--color-main); color: #fff; border: 0; padding: 1.2rem 2.5rem;
	text-transform: uppercase; font-weight: 600; letter-spacing: 1px; cursor: pointer; }
.comment-form .submit:hover { background: var(--color-highlight); }

/* ---------------- mobile: gọn đầu trang (bản gốc của mẫu chia thanh trên 2 màu, mạng xã hội
   rớt dòng, logo + nút menu + nút "Gửi yêu cầu" chiếm 3 tầng) ---------------- */
.w1-menu-cta { display: none; }
@media (max-width: 767px) {
	.topbar { background: var(--color-main); border-bottom: 0; }
	.topbar > .container > .row > div { flex-wrap: nowrap; }
	.topbar .contact-info ul { display: flex; align-items: center; }
	.topbar .contact-info li { float: none !important; padding: .9rem 0 !important; }
	.topbar .contact-info li + li { order: -1; padding-right: 1.8rem !important; }   /* điện thoại lên trước */
	.topbar .contact-info li a { font-size: 1.4rem; }
	.topbar .contact-info li:first-child a { font-size: 0; }                          /* email: chỉ giữ icon */
	.topbar .contact-info li:first-child a i { font-size: 1.7rem; padding-right: 0; }
	.topbar .contact-info li i { color: var(--color-highlight); }
	.topbar .topbar-section { padding: 0 !important; }
	.topbar .topbar-section li { padding: 0 .8rem !important; }
	.topbar .topbar-section li:last-child { padding-right: 0 !important; }
	.topbar .topbar-section a, .topbar .w1-zalo { font-size: 1.4rem; }

	.menu-setting { padding-top: 1rem !important; padding-bottom: 1rem !important; }
	.menu-setting > .container > .row { flex-wrap: nowrap; align-items: center; }
	.menu-setting > .container > .row > [class*="col-"] { flex: 0 0 auto; width: auto; max-width: none; }
	.menu-setting > .container > .row > :first-child { flex: 1 1 auto; }
	.menu-setting > .container > .row > :last-child { display: none; }               /* nút "Gửi yêu cầu" → vào menu */
	.menu-setting .logo-section { text-align: left; justify-content: flex-start; margin: 0; }
	.menu-setting .logo-section img { height: 4.4rem; }
	.btn-menu-mobile { width: 44px; height: 44px; padding: 0 !important; font-size: 2.4rem !important; }
	.w1-menu-cta { display: block; padding: 2rem 1.5rem; }
	.w1-menu-cta .theme-btn { display: block; text-align: center; }
}

/* thanh sửa slide: góc trên bên phải của slide, nút có nhãn (trước đây là 3 nút ✎ bé dính dưới
   nút "Bắt đầu", chồng lên dãy số 01/02/03 nên không ai thấy) */
.swiper-slide > .w1-slide-tools { position: absolute; top: 24px; right: 24px; z-index: 30; margin: 0; flex-direction: column; align-items: flex-end; gap: 8px; }
.swiper-slide > .w1-slide-tools > .mtc-edit-btn { position: static; width: auto; height: auto; padding: 8px 16px; border-radius: 20px; font-size: 13px; line-height: 1.2; white-space: nowrap; }
.swiper-slide > .w1-slide-tools > .mtc-edit-btn::after { content: ' ' attr(data-label); font-family: Roboto, sans-serif; font-weight: 500; }

/* tiêu đề dải đối tác */
.partners-section .w1-partners-title { color: #fff; font-size: 2.8rem; font-weight: 700; margin: 0 0 3rem; position: relative; }
@media (max-width: 767px) { .partners-section .w1-partners-title { font-size: 2.2rem; margin-bottom: 2rem; } }

/* nhiều nút sửa liền nhau trên cùng một vùng: xếp lệch sang trái, không đè nhau */
.mtc-editable > .mtc-edit-btn ~ .mtc-edit-btn { right: 24px; }
.mtc-editable > .mtc-edit-btn ~ .mtc-edit-btn ~ .mtc-edit-btn { right: 58px; }

/* ---------------- ô tìm kiếm ở đầu trang: nút kính lúp mở khung nhập (desktop: hộp thả dưới nút;
   mobile: khung rộng hết khổ ngay dưới hàng logo/nút menu) ---------------- */
.cart-contact { display: flex; justify-content: flex-end; align-items: stretch; flex-wrap: nowrap; gap: 1rem; }
.cart-contact > div { float: none; }
.cart-contact > .contact-btn { flex: 0 0 auto; }
.cart-contact .theme-btn { white-space: nowrap; display: block; }
.cart-contact > .w1-search { position: relative; flex: 0 0 auto; display: flex; }
.w1-search-tools { width: 46px; }
.w1-search-toggle { display: flex; align-items: center; justify-content: center; width: 46px; height: 100%; min-height: 40px; padding: 0;
	border: .1rem solid var(--color-highlight); background: #fff; color: var(--color-highlight); font-size: 1.8rem; cursor: pointer;
	transition: background .25s, color .25s; }
.w1-search-toggle:hover, .w1-search.is-open .w1-search-toggle { background: var(--color-highlight); color: #fff; }
.w1-search-toggle i { color: inherit; pointer-events: none; }
.w1-search-tools > .mtc-edit-btn { right: auto; left: -1rem; }
.w1-search-form { display: none; position: absolute; right: 0; top: calc(100% + 2rem); z-index: 100; width: 36rem; max-width: 90vw; margin: 0;
	padding: 1.2rem; background: #fff; border-top: .3rem solid var(--color-highlight); box-shadow: 0 1rem 3rem rgba(0, 0, 0, .18); }
.w1-search.is-open .w1-search-form { display: flex; }
.w1-search-input { flex: 1 1 auto; min-width: 0; height: 4.6rem; padding: 0 1.5rem; border: .1rem solid #e1e1e1; border-right: 0; border-radius: 0;
	font-size: 1.6rem; color: var(--color-main); background: #fff; outline: 0; -webkit-appearance: none; appearance: none; }
.w1-search-input:focus { border-color: var(--color-highlight); }
.w1-search-submit { flex: 0 0 4.6rem; width: 4.6rem; height: 4.6rem; padding: 0; border: 0; background: var(--color-highlight); color: #fff; font-size: 1.8rem; cursor: pointer; }
.w1-search-submit:hover { background: var(--color-main); }

/* trang kết quả tìm kiếm */
.w1-search-summary { margin: 0 0 3rem; font-size: 1.6rem; text-align: center; }
.w1-search-empty { max-width: 56rem; margin: 0 auto; text-align: center; padding: 3rem 0; }
.w1-search-empty p { margin-bottom: 2rem; }
.w1-search-empty .w1-search-input { border-right: 0; }

@media (max-width: 767px) {
	/* cột nút "Gửi yêu cầu" trước đây ẩn hẳn → giữ lại chỉ cho nút kính lúp, đứng cạnh nút menu (kính lúp bên trái) */
	.menu-setting > .container > .row > div.col-md-2:last-child { display: block; order: 1; flex: 0 0 auto; width: auto; max-width: none; padding-left: 0; padding-right: 0; }
	.menu-setting > .container > .row > div.col-md-6:nth-child(2) { order: 2; flex: 0 0 auto; width: auto; max-width: none; }
	.menu-setting > .container > .row > div { position: static; min-width: 0; }
	.menu-setting > .container > .row > div.col-md-4:first-child { order: 0; flex: 1 1 0; max-width: none; }
	.menu-setting .logo-section img { max-width: 100%; width: auto; object-fit: contain; object-position: left center; }
	.menu-setting .contact-btn { display: none; }
	.menu-setting .cart-contact { gap: 0; }
	.menu-setting .cart-contact > .w1-search { position: static; margin-right: 8px; }
	.w1-search-input, .w1-search-submit { height: 44px; }
	.w1-search-submit { flex-basis: 44px; width: 44px; }
	.w1-search-toggle, .w1-search-tools { width: 44px; height: 44px; }
	.w1-search-form { right: 0; left: 0; top: 100%; width: auto; max-width: none; padding: 1.2rem 1.5rem 1.5rem; border-top: .1rem solid #eee; box-shadow: 0 1rem 2rem rgba(0, 0, 0, .15); }
}

/* Menu con (WordPress sinh <ul class="sub-menu">; CSS gốc chỉ có kiểu .entry-menu của web4s nên menu con bị xếp tràn ngang hàng).
   Máy tính: thả xuống khi rê chuột / Tab vào; điện thoại: hiện lồng ngay trong ngăn menu trượt. */
.menu-section .sub-menu a span { display: none; }
@media (min-width: 992px) {
	.menu-section > ul > li { position: relative; }
	.menu-section > ul > li > .sub-menu { position: absolute; top: 100%; left: 0; min-width: 24rem; margin: 0; padding: 1rem 0; background: #fff;
		border-top: .3rem solid var(--color-highlight); box-shadow: 0 1rem 3rem rgba(0, 0, 0, .15); z-index: 30;
		opacity: 0; visibility: hidden; transform: translateY(1rem); transition: opacity .18s ease, transform .18s ease, visibility .18s; }
	.menu-section > ul > li:hover > .sub-menu, .menu-section > ul > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
	.menu-section .sub-menu li { display: block; margin: 0; }
	.menu-section .sub-menu li a { display: block; height: auto; padding: .9rem 2.2rem; line-height: 1.5; color: var(--color-main); font-size: 1.4rem; font-weight: 500; text-align: left; white-space: nowrap; }
	.menu-section .sub-menu li a:hover { color: var(--color-highlight); background: #f5f5f5; }
}
@media (max-width: 991px) {
	.menu-section .sub-menu { position: static; display: block; margin: 0; padding: 0 0 .5rem 2rem; opacity: 1; visibility: visible; box-shadow: none; }
	.menu-section .sub-menu li { display: block; margin: 0; }
	.menu-section .sub-menu li a { display: block; padding: .9rem 0; font-size: 1.4rem; font-weight: 500; color: var(--color-main); }
	.menu-section .sub-menu li a:hover { color: var(--color-highlight); }
}

/* thanh trên cùng: giờ làm việc ở khối tối bên phải; không có gì để đặt ở đó thì cả thanh là một dải màu nhấn */
.topbar .w1-hours { font-size: 1.4rem; padding-right: 2rem; white-space: nowrap; }
.topbar--solo { background: var(--color-highlight) !important; }
@media (max-width: 991px) { .topbar .w1-hours { display: none; } }
