/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

/* ---------- Top bar ---------- */
.docu-top {
	display: inline-block;
	margin-left: 18px;
	font-size: 13px;
}
.docu-top:first-child {
	margin-left: 0;
}
.docu-top a {
	color: inherit;
}
.docu-top a:hover {
	color: #ffeb03;
}

/* ---------- Header hotline block ---------- */
.docu-hotline {
	line-height: 1.25;
	text-align: right;
	padding-left: 12px;
}
.docu-hotline__label {
	display: block;
	font-size: 12px;
	color: #777;
	text-transform: uppercase;
	letter-spacing: .02em;
}
.docu-hotline__num {
	display: block;
	font-size: 22px;
	font-weight: 700;
	color: #ff0000;
}
.docu-hotline__num:hover {
	color: #d10000;
}

/* Give the header search form room to breathe. */
.header-main .header-search-form {
	width: 100%;
	max-width: 520px;
}

/* ---------- Main nav bar ---------- */
.header-bottom .nav > li > a {
	font-weight: 500;
}
/* Thin separators between top-level items, as on the reference site. */
.header-bottom-nav > li + li {
	border-left: 1px solid rgba(255, 255, 255, .35);
}
.header-bottom-nav > li > a {
	padding-left: 14px;
	padding-right: 14px;
}
.header:not(.transparent) .header-bottom-nav.nav > li > a {
	color: #ffffff;
}
/* Scoped to the header: `.nav` is also the class on the product tabs and the
   off-canvas menu, where yellow-on-white is unreadable. */
.header .nav > li > a:hover,
.header .nav > li.active > a,
.header .nav > li.current > a,
.header .nav > li > a.active,
.header .nav > li > a.current,
.header .nav-dropdown li.active > a,
.header .nav-column li.active > a {
	color: #ffeb03;
}
/* nav-box normally paints a filled box behind the active item, coloured from
   the nav hover-colour option. On the red bar the reference shows plain yellow
   text, so keep the box transparent and let the text colour carry the state. */
.header-bottom-nav.nav-box > li > a,
.header-bottom-nav.nav-box > li.active > a,
.header-bottom-nav.nav-box > li.current-menu-item > a,
.header-bottom-nav.nav-box > li > a:hover,
.header-bottom-nav.nav-box > li:hover > a {
	background-color: transparent !important;
}
/* Flatsome generates `.header:not(.transparent) .header-bottom-nav.nav > li > a`
   for the nav colour, so match that specificity to win the active/hover state. */
.header:not(.transparent) .header-bottom-nav.nav-box > li.active > a,
.header:not(.transparent) .header-bottom-nav.nav-box > li.current-menu-item > a,
.header:not(.transparent) .header-bottom-nav.nav > li.active > a,
.header:not(.transparent) .header-bottom-nav.nav > li.current-menu-item > a,
.header:not(.transparent) .header-bottom-nav.nav > li > a:hover {
	color: #ffeb03 !important;
}

/* ---------- Dropdown sub-menus (red, like the reference) ---------- */
.header-bottom .nav-dropdown,
ul.sub-menu.nav-dropdown-default {
	border: 0;
	padding: 4px 6px;
	background: #ff0000;
	border-radius: 5px;
	min-width: 300px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .22);
}
.header-bottom .nav-dropdown > li > a,
.header-bottom .nav-dropdown .nav-column li > a {
	color: #ffffff !important;
	background: transparent;
	border: 0;
	border-bottom: 0;
	margin: 0;
	position: relative;
	font-weight: 400;
	text-transform: capitalize;
}
.header-bottom .nav-dropdown > li + li,
ul.nav-dropdown.nav-dropdown-default li + li {
	border-top: 1px solid rgba(0, 0, 0, .25);
}
.header-bottom .nav-dropdown > li:hover > a,
.header-bottom .nav-dropdown > li.current-menu-item > a {
	color: #ffeb00 !important;
}
/* Underline that grows on hover. */
.header-bottom .nav-dropdown > li > a:after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 2px;
	width: 0;
	height: 2px;
	background: #ffeb00;
	transition: width 300ms;
}
.header-bottom .nav-dropdown > li:hover > a:after {
	width: 100%;
}

/* Vertical "Danh mục dịch vụ" fly-out. */
.nav-vertical-fly-out > li + li {
	border-top: 1px solid rgba(0, 0, 0, .08);
}

/* ---------- Homepage left sidebar (Danh mục dịch vụ / Hotline) ---------- */
.docu-side-title h3 {
	margin-bottom: 8px;
	padding-bottom: 8px;
	font-size: 17px;
	text-transform: uppercase;
	color: #1c1c1c;
	border-bottom: 2px solid #ff0000;
}
.docu-home-side .ux-menu {
	margin-bottom: 4px;
}
.docu-home-side .ux-menu-link__link {
	padding: 8px 0;
	font-size: 14.5px;
	color: #444;
	border-bottom: 1px solid #ececec;
	text-transform: none;
}
.docu-home-side .ux-menu-link__link:hover {
	color: #ff0000;
}
.docu-home-side .ux-menu-link__icon {
	color: #ff0000;
}

/* ---------- Service cards with overlay titles ----------
   Scoped to overlay/dark boxes only: the news cards use the same
   .post-title class on a white background. */
.box-overlay .blog-post-inner .post-title,
.box.dark .blog-post-inner .post-title,
.overlay .blog-post-inner .post-title {
	font-size: 1.05em;
	line-height: 1.35;
	color: #fff;
}
.box-overlay .box-text .is-divider,
.overlay .box-text .is-divider {
	background-color: rgba(255, 255, 255, .5);
}
/* News cards keep normal dark headings. */
.box-normal .blog-post-inner .post-title {
	font-size: 1.02em;
	line-height: 1.35;
}

/* ---------- Service / policy article sign-off ---------- */
.docu-cta {
	margin: 32px 0 0;
	padding: 20px 22px;
	background: #fff6f6;
	border: 1px solid #f0d3d3;
	border-left: 4px solid #ff0000;
	border-radius: 6px;
}
.docu-cta h4 {
	margin: 0 0 10px;
	color: #ff0000;
	text-transform: uppercase;
	font-size: 17px;
}
.docu-cta p {
	margin: 0 0 6px;
	font-size: 15px;
}
.docu-cta p:last-child {
	margin-bottom: 0;
}
.docu-cta a {
	font-weight: 700;
}

/* ---------- Article content ---------- */
.entry-content h2 {
	margin-top: 1.4em;
	font-size: 1.55em;
	color: #1c1c1c;
}
.entry-content h3 {
	margin-top: 1.2em;
	font-size: 1.25em;
}
.entry-content h4 {
	margin-top: 1em;
	font-size: 1.08em;
	color: #ff0000;
}
.entry-content ul,
.entry-content ol {
	margin-bottom: 1.2em;
}
.entry-content li {
	margin-bottom: .4em;
}
.entry-content table {
	width: 100%;
	margin-bottom: 1.4em;
}
.entry-content table th {
	background: #ff0000;
	color: #fff;
	text-align: left;
}
.entry-content table th,
.entry-content table td {
	padding: 10px 12px;
	border: 1px solid #e6e6e6;
}
.entry-content table tr:nth-child(even) td {
	background: #fafafa;
}
.entry-content img {
	border-radius: 6px;
}

/* Tables must scroll rather than push the page wide. */
.entry-content .wp-block-table,
.entry-content figure.wp-block-table {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

/* ---------- Product grid cards ----------
   One card style for every loop: category archive, the homepage product
   sections and the related-products row. Scoped to `.product-small.box` so
   the sidebar product widget (which reuses `.product-title` on a plain <li>)
   and the single-product <h1> are left alone. */
.product-small.box {
	height: 100%;
	padding: 10px;
	background: #fff;
	border: 1px solid #dcdcdc;
	border-radius: 4px;
	transition: border-color .25s, box-shadow .25s;
}
.product-small.box:hover {
	border-color: #ff0000;
	box-shadow: 0 3px 14px rgba(0, 0, 0, .12);
}
/* Centre the whole text block regardless of the customizer grid style. */
.product-small.box .box-text {
	padding: 12px 2px 2px;
	background: transparent;
	text-align: center;
}

.product-small.box .product-title {
	margin-bottom: 8px;
}
.product-small.box .product-title a {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	color: #003264;
}
.product-small.box .product-title a:hover {
	color: #ff0000;
}

.product-small.box .price-wrapper {
	margin: 0 0 10px;
	padding: 0;
}
.product-small.box .price {
	display: block;
	font-size: 16px;
}

/* "Xem chi tiết" — solid navy, centred, sized to its label like the
   reference. No `primary`/`is-outline` classes on the markup, so the theme's
   red button colours never apply here. */
.product-small.box .docu-details {
	margin: 0;
	padding: 0 18px;
	min-height: 0;
	line-height: 2.7em;
	font-size: 13px;
	font-weight: 500;
	text-transform: none;
	letter-spacing: 0;
	background-color: #003576;
	border: 1px solid #003576;
	color: #fff;
}
.product-small.box .docu-details:hover {
	background-color: #ff0000;
	border-color: #ff0000;
	box-shadow: none;
	color: #fff;
}
.product-small.box .docu-details i {
	font-size: 14px;
}

.docu-price-request {
	color: #ff0000;
	font-weight: 700;
}

/* ---------- Single product page ----------
   Framed gallery image, lighter heading and a two-button contact row, as on
   the reference. */
/* Flatsome 3.20 renders the gallery as a flickity slider rather than the
   <figure> the reference styles, so frame the slider itself — that keeps the
   border still while slides move and leaves the thumbnail row outside it. */
.woocommerce-product-gallery .product-gallery-slider {
	padding: 5px;
	background: #fff;
	border: 1px solid #ccc;
}
.product-info h1.product-title {
	margin-bottom: 10px;
	font-size: 26px;
	font-weight: 500;
	line-height: 1.3;
}
/* The reference drops the hairline between the title and the price. */
.product-info .is-divider.small {
	display: none;
}
.product-info .price-wrapper .price {
	margin-bottom: 14px;
	font-size: 22px;
}

.docu-quote-box {
	margin-top: 4px;
}
.docu-usp {
	margin: 0 0 14px;
	padding: 0;
	list-style: none;
}
.docu-usp li {
	margin-bottom: 4px;
	padding-left: 14px;
	position: relative;
	font-weight: 700;
	color: #1c1c1c;
}
.docu-usp li:before {
	content: '–';
	position: absolute;
	left: 0;
	color: #ff0000;
}
.docu-quote-box__lead {
	margin-bottom: 16px;
	color: #555;
}
.docu-quote-box__actions {
	display: flex;
	gap: 10px;
}
.docu-quote-box .button {
	flex: 1 1 0;
	margin: 0;
	min-height: 0;
	padding: 0 10px;
	line-height: 3em;
	font-size: 14px;
	font-weight: 700;
	border: 0;
	color: #fff;
}
.docu-quote-box .button:hover {
	box-shadow: inset 0 0 0 100px rgba(0, 0, 0, .18);
	color: #fff;
}
.docu-btn-call {
	background-color: #ff0000;
}
.docu-btn-zalo {
	background-color: #0000ff;
}

/* Product tabs: dark labels with a red underline on the active one. */
.product-footer .tabs.wc-tabs {
	border-bottom: 1px solid #ececec;
}
.product-footer .tabs.wc-tabs > li > a {
	padding: 10px;
	font-size: 17px;
	font-weight: 600;
	color: #111;
}
/* nav-line draws its underline with a pseudo element; the reference uses a
   plain border so the line hugs the label. */
.product-footer .tabs.wc-tabs > li > a:before {
	display: none;
}
.product-footer .tabs.wc-tabs > li.active > a,
.product-footer .tabs.wc-tabs > li:hover > a {
	color: #111;
	border-bottom: 2px solid #ff0000;
}

/* "Sản phẩm tương tự" heading. */
h3.product-section-title-related {
	position: relative;
	border-bottom: 1px solid #ddd;
}
h3.product-section-title-related:after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 225px;
	max-width: 60%;
	height: 2px;
	background: #ff0000;
}

/* ---------- "Sidebar sản phẩm" UX block ----------
   Layout, colours and the dashed frame come from the block's own column
   settings in UX Builder; only the list and hotline skin live here. */
.block_widget {
	margin-bottom: 24px;
}
.docu-why__head p {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	line-height: 1.3;
}
.docu-why__list ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.docu-why__list li {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 10px 0;
	font-size: 14px;
	line-height: 1.45;
	color: #333;
	border-bottom: 1px solid #dcdcdc;
}
.docu-why__list li:last-child {
	border-bottom: 0;
}
.docu-why__list li i {
	flex: 0 0 30px;
	font-size: 22px;
	text-align: center;
	color: #ff0000;
}
.docu-hotline-box p {
	margin: 0;
}
.docu-hotline-box__label {
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .02em;
}
.docu-hotline-box__num {
	margin-top: 4px !important;
}
.docu-hotline-box__num a {
	font-size: 23px;
	font-weight: 700;
	color: #fff;
}
.docu-hotline-box__num a:hover {
	color: #ffeb03;
}
.docu-hotline-box__num i {
	font-size: 19px;
}

/* ---------- Sidebar call-to-action ---------- */
.docu-side-cta {
	padding: 16px 18px;
	background: #fff6f6;
	border: 1px solid #f0d3d3;
	border-radius: 8px;
	text-align: center;
}
.docu-side-cta p {
	margin-bottom: 10px;
	font-size: 14px;
}
.docu-side-cta__num a {
	font-size: 24px;
	font-weight: 700;
	color: #ff0000;
}
.docu-side-cta__note {
	margin-bottom: 0 !important;
	font-size: 12.5px;
	color: #888;
}

/* =========================================================
   FOOTER  — rendered from the "Footer" UX Block, so the
   layout lives in the page builder and only skin lives here.
   ========================================================= */
.pd_bottom {
	padding-bottom: 0 !important;
}
.docu-footer-block {
	color: #fff;
}
.docu-footer-block a {
	color: #fff;
}
.docu-footer-block a:hover {
	color: #ffeb03;
}
.title_footer h4 {
	margin-bottom: 12px;
	text-transform: uppercase;
	font-size: 16px;
	color: #fff;
	letter-spacing: .01em;
}
.text_footer h3 {
	font-size: 20px;
	color: #fff;
	margin-bottom: 10px;
}
.text_footer p {
	margin-bottom: .5em;
	font-size: 14.5px;
	line-height: 1.65;
}
.docu-footer-block .ux-menu-link__link {
	text-transform: capitalize;
	padding: 5px 0;
	font-size: 14.5px;
}
.docu-footer-block .ux-menu-link__icon {
	opacity: .85;
}
.docu-footer-block .featured-box h3 a {
	font-size: 22px;
	font-weight: 700;
	color: rgb(255, 253, 0);
}

/* Newsletter form in the footer. */
.form_dangky .flex-col.ml-half {
	margin: 0;
}
/* Flatsome tints form fields inside `dark` sections, so force these back. */
.form_dangky input.wpcf7-form-control,
.docu-footer-block .form_dangky input[type="email"] {
	border-radius: 0;
	margin: 0;
	background-color: #fff !important;
	color: #333 !important;
	border: 1px solid #fff !important;
	box-shadow: none;
}
.docu-footer-block .form_dangky input::placeholder {
	color: #888;
	opacity: 1;
}
.form_dangky .wpcf7-submit.button {
	background: #111 !important;
	color: #fff !important;
	border-radius: 0;
	margin: 0;
	border: 0;
}
.form_dangky .wpcf7-submit.button:hover {
	background: #333 !important;
}
.docu-footer-block .wpcf7 form .wpcf7-response-output {
	margin: 10px 0 0;
	padding: 6px 10px;
	font-size: 13px;
	border-color: rgba(255, 255, 255, .5);
}

/* Absolute footer (copyright bar). */
.absolute-footer {
	background-color: #000;
}
.absolute-footer,
.absolute-footer a {
	color: rgba(255, 255, 255, .78);
}
.absolute-footer a:hover {
	color: #fff;
}

/* ---------- Floating call button ---------- */
.docu-float-call {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 99;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 18px 11px 14px;
	background: #ff0000;
	color: #fff !important;
	border-radius: 999px;
	font-weight: 700;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
.docu-float-call:hover {
	background: #d10000;
	color: #fff !important;
}
.docu-float-call__icon {
	font-size: 18px;
	line-height: 1;
}

/* ---------- Section titles ---------- */
.section-title b {
	background-color: #ff0000;
}
.section-title-normal span {
	border-bottom: 2px solid #ff0000;
}

@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/

	/* Mobile call icon in the header. */
	.docu-mobile-call {
		display: inline-block;
		font-size: 22px;
		line-height: 1;
		padding: 6px 4px;
		color: #ff0000;
	}

	/* Keep the floating button from covering the back-to-top control. */
	.docu-float-call {
		left: 12px;
		bottom: 12px;
		padding: 10px 16px 10px 12px;
		font-size: 14px;
	}

	/* Headings scale down so long Vietnamese titles do not overflow. */
	.entry-content h2 {
		font-size: 1.3em;
	}
	.entry-content h3 {
		font-size: 1.15em;
	}
	h1.entry-title,
	.page-title-inner h1 {
		font-size: 1.5em;
		line-height: 1.3;
	}

	/* Article sign-off. */
	.docu-cta {
		padding: 16px 16px;
	}
	.docu-cta h4 {
		font-size: 15px;
	}

	/* Footer columns need separation once they stack. */
	.docu-footer-block .col {
		padding-bottom: 18px;
	}
	.docu-footer-block .title_footer h4 {
		margin-top: 6px;
	}

	/* Testimonials read better left-aligned on small screens. */
	.testimonial-box.icon-box-left {
		text-align: left;
	}

	/* Product cards sit two per row on a phone, so tighten them up. */
	.product-small.box {
		padding: 7px;
	}
	.product-small.box .box-text {
		padding: 10px 0 0;
	}
	.product-small.box .product-title a {
		font-size: 13.5px;
	}
	.product-small.box .price {
		font-size: 14.5px;
	}
	.product-small.box .docu-details {
		display: block;
		padding: 0 8px;
		font-size: 12px;
		line-height: 2.6em;
	}

	/* Contact buttons stack full width. */
	.docu-quote-box__actions {
		display: block;
	}
	.docu-quote-box .button {
		display: block;
		width: 100%;
		margin: 0 0 10px;
	}

	/* Single product page. */
	.product-info h1.product-title {
		font-size: 21px;
	}
	.product-info .price-wrapper .price {
		font-size: 19px;
	}
	.product-footer .tabs.wc-tabs > li > a {
		font-size: 15px;
	}

	/* Header search: the category dropdown collapses to a bare arrow on a
	   narrow screen, so hide it and let the input use the full width. */
	.header-search-form .search_categories,
	.header-search-form .select-resize-ghost {
		display: none !important;
	}
	.header-search-form form.searchform > div {
		width: 100%;
	}
}
