/*
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.   ***************/

/***** GENERAL *****/
.marginRightImg{
	margin-right: -40%;
}

.nav-spacing-xlarge>li{
	margin: 0 25px;
}

.orange-underline{
	position: relative;
}
.orange-underline::after{
	background: url(/wp-content/uploads/underline_orange.png) 50% top no-repeat;
	background-size: 100% 9px;
	border-radius: 999px;
	content: "";
	height: 9px;
	image-rendering: -webkit-optimize-contrast;
	left: 0;
	position: absolute;
	right: 0;
	top: 100%;
}

.absolute-footer {
    display: none;
}

/***** TOP BAR *****/
.header-top{
	background-color: transparent !important;
	margin-bottom: -18px;
}
.header-main .nav > li > a{
	text-transform: uppercase;
	font-size: 0.8rem;
}
.box-image{
	padding: 0 0 0 12px;
}
h5.post-title.is-large {
    font-size: 0.9rem;
    font-weight: 700;
}
.box-text p{
	font-size: 0.85rem;
}
.box-text .button{
	text-transform: capitalize;
}

/***** HEADER TOP *****/
.headerTop {
	position: relative;
	width: 100%;
}
.headerTop::after {
	position: absolute;
	bottom: 0;
	right: 0;
	width: 140%;
	content: "";
	height: 2px;
	background: rgba(0, 0, 0, 0) linear-gradient(to right, rgba(0, 0, 0, 0), #fa4216, #fa4216);
}
.headerTop ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex; /* nằm trên một hàng */
	flex-wrap: nowrap; /* không xuống dòng */
	align-items: center;
	--gap: 50px;
	gap: var(--gap);
	white-space: nowrap; /* giữ nguyên dòng khi có text dài */
}
.headerTop ul li {
	display: inline-block;
	position: relative;
	margin-left: 0;
	padding: 10px 0;
	font-size: 12px;
	color: #fff;
}
.headerTop ul li a {
	color: #ffffff;
	text-decoration: none;
}
.headerTop ul li a:hover {
	color: orange;
}
.headerTop ul li:not(:first-child)::before {
	content: "";
	position: absolute;
	left: calc(-1 * (var(--gap) / 2)); /* dấu phân cách nằm giữa khoảng cách các li */
	top: 50%;
	transform: translateY(-50%);
	width: 1px;
	height: 14px;
	background: #ccc;
}
.headerTop ul li a i::before {
	content: "\f879";
	font-family: "Font Awesome 5 Free"; 
	font-weight: 900;
	margin-right: 5px;
}
/* 1. Khi Transparent Header (logo trắng, nền tối) */
header.transparent .headerTop,
header.transparent .headerTop a,
header.transparent .headerTop li,
header.transparent .headerTop i {
  color: #ffffff !important;
}
/* 2. Khi Header thường (logo màu, nền sáng) */
header:not(.transparent) .headerTop,
header:not(.transparent) .headerTop a,
header:not(.transparent) .headerTop li,
header:not(.transparent) .headerTop i {
  color: #0a3d62 !important;
}


/***** HEADER CTA BUTTON *****/
.headerCtaButton {
	display: flex;
	justify-content: right;
	align-items: center;
}
.headerCtaButton a {
	position: relative;
	display: inline-block;
	padding: 16px 45px;
	background-color: #fa4216;
	color: #fff;
	text-decoration: none;
	font-size: 14px;
	font-weight: bold;
}
.headerCtaButton a::before {
	content: "";
	position: absolute;
	top: 0;
	left: -40px;
	width: 0;
	height: 0;
	border-top: 54px solid #fa4216;
	border-left: 40px solid transparent;
}
.headerCtaButton a:hover {
	background-color: #e03e0d;
	color: #FF9500;
}
.headerCtaButton a:hover::before {
	border-top: 54px solid #e03e0d;
}
.header-wrapper.stuck .headerCtaButton a::before {
    display: none !important;
}


/***** BUTTON LOAD MORE *****/
.loadMoreButton {
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 40px 0;
}
.loadMoreButton a {
	display: inline-block;
	padding: 12px 30px;
	background-color: #e9e9e9;
	color: #0a3d62;
	text-decoration: none;
	font-size: 13px;
	font-weight: bold;
	border-radius: 4px;
	width: 100%;
	text-align: center;
	transition: background-color 0.3s ease;
}
.loadMoreButton a:hover {
	background-color: #e0a10d;
	color: #fff;
}


/***** NEWS *****/
.box-blog-post .is-divider{
	display: none;
}
.box-text.text-left {
	vertical-align: top;
	padding: 0 1.5em;
}
h5.post-title.is-large {
	margin-bottom: .6em;
}
p.from_the_blog_excerpt {
	line-height: 1.4;
}


/* MENU VERTICAL */
.verticalMenu2{
	padding: 0 15px;
	margin: 20px 0;
	border: 1px solid #ddd;
	border-radius: 4px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.verticalMenu2 h3{
	margin: 0;
	padding: 16px 0px;
	font-size: 0.85rem;
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
	position: relative;
}
.verticalMenu2 h3::before {
	content: "";
	position: absolute;
	left: -16px;
	top: 6px;
	bottom: 6px;
	width: 2px;
	background-color: #facc17;
	border-radius: 4px;
}
.verticalMenu2 ul{
	padding: 0;
	margin: 0;
}
li.itemMenu2 {
	font-size: 0.85rem;
	list-style: none;
	padding: 8px 0px;
	border-bottom: 1px solid #eee;
	cursor: pointer;
}
li.itemMenu2:hover {
	color: #facc17;
}
li.itemMenu2:last-child {
	border-bottom: none;
}
li.itemMenu2::before {
	content: "\f0da"; 
	font-family: 'Font Awesome 5 Free';
	font-weight: 900;
	font-size: 0.85rem;
	margin-right: 8px;
	color: #999;
}
li.itemMenu2 a{
	color: inherit;
	text-decoration: none;
}


/***** CONTACT US *****/
hr.underline{
	border-top: 1.5px solid #facc17;
	height: 0;
	margin: 0 0 20px;
	overflow: visible;
	opacity: 1; /* default:0.1 */
}
hr.underline::after{
	position: relative;
	content: "\f0d7";
	font-family: 'Font Awesome 5 Free';
	font-weight: 900;
	display: inline-block;
	font-size: 22px;
	top: -16px;
	left: 26px;
	color: #facc17;
	line-height: 35px;
}
.contactUs ul li {
	list-style: none;
	margin-left: 0;
	margin-bottom: 10px;
	font-size: 14px;
}
.contactUs ul li i {
	color: #facc17;
	margin-right: 10px;
}



/**** TRACK & TRACE *****/
.trackAndTrace {
	display: block;
	width: 100%;
	padding: 12px 16px;
	box-sizing: border-box;
}
.trackIntro {
	display: block;
	width: 100%;
	margin-bottom: 8px;
	font-size: 14px;
	color: #002a34;
}
.trackMsg {
	display: block;
	width: 100%;
	margin-top: 10px;
	font-size: 14px;
	color: #333;
}
/* error styles */
.input-error {
	border-color: #e03e0d !important;
	box-shadow: 0 0 0 3px rgba(224,62,13,0.08);
}
.msg-error {
	color: orange !important;
	font-weight: 500;
	font-style: italic;
	font-size: 13px;
}
.track {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	gap: 10px;
	margin-top: 20px;
	width: 100%;
	box-sizing: border-box;
	font-family: Poppins, sans-serif;
}
.track input[type="text"] {
	padding: 10px 15px;
	font-size: 14px;
	font-style: normal; /* input text should be normal (not italic) */
	font-weight: 700;   /* make input text bold */
	border: 1.5px solid #ccc;
	border-radius: 6px;
	width: 365px;
	max-width: 100%; /* không bao giờ tràn container */
	height: 52px;
	box-sizing: border-box;
}
/* placeholder should remain italic */
.track input[type="text"]::placeholder {
	font-style: italic;
	color: #999;
	opacity: 1; /* keep color consistent across browsers */
	font-weight: 400; /* placeholder should NOT be bold */
}
.track input[type="text"]::-webkit-input-placeholder { font-style: italic; }
.track input[type="text"]::-moz-placeholder { font-style: italic; opacity:1; font-weight:400; }
.track input[type="text"]:-ms-input-placeholder { font-style: italic; font-weight:400; }
.track input[type="text"]:-moz-placeholder { font-style: italic; font-weight:400; }

/* wrapper for input + clear button */
.track-input-wrap {
	position: relative;
	display: inline-block;
	width: 100%;
	max-width: 400px;
}
.track-input-wrap input[type="text"] {
	padding-right: 40px; /* space for clear button */
	width: 100%;
}
.clearBtn {
	position: absolute;
	right: 0;
	top: 41%;
	transform: translateY(-50%);
	border: none;
	background: transparent;
	color: #222; /* darker icon color */
	width: 28px;
	height: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 0; /* square/flat inside input */
	cursor: pointer;
	font-size: 16px;
	visibility: hidden; /* hidden by default */
	opacity: 0;
	transition: opacity 150ms ease, visibility 150ms;
}
.clearBtn i { display: block; line-height: 1; }
.clearBtn.visible {
	visibility: visible;
	opacity: 1;
}
.track .trackBtn {
	padding: 8px 15px;
	font-size: 14px;
	text-transform: capitalize;
	background-color: #ffffff;
	color: #002a34;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: background-color 0.3s ease;
	-webkit-transition: background-color 0.3s ease;
	border: 1px solid #ccc;
}
.track .trackBtn:hover {
	color: #fff;
	background-color: #e03e0d;
}
.iconArrow2{
	position: relative;
	width: 28px;
	height: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	vertical-align: middle; 
	margin-left: 8px;
	font-size: 12px;
	font-weight: bold;
	color: #002a34;
	background-color: #e1e1e1;
	border-radius: 50%;
	transition: transform 0.3s ease;
	-webkit-transition: transform 0.3s ease;
}
.iconArrow2:hover {
	background-color: #fff;
	transform: translateX(3px);
	-webkit-transform: translateX(3px);
}
.iconArrow2::before {
	content: "\f101";
	font-family: "Font Awesome 5 Free"; 
	font-weight: 900;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}
/* animate icon when button has .loading: translate horizontally only so it stays on the same axis */
.trackBtn.loading .iconArrow2 {
	animation: icon-slide 0.8s ease-in-out infinite;
}
@keyframes icon-slide {
	0% { transform: translateX(0); }
	50% { transform: translateX(6px); }
	100% { transform: translateX(0); }
}


/***** EXCHANGE RATE *****/
.blockExchangeRate {
    max-width: 800px;
    margin: 20px auto;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}
.exchangeRate {
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: rgb(252, 99, 33);
    padding: 20px;
}
.headerExRate {
    display: flex;
    justify-content: space-between; /* logo left, typeExchance right */
    align-items: center;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}
.exrBizLogo {
    height: 50px;
    display: block;
}
.typeExchance {
    display: flex;
    align-items: center; /* center icons vertically */
    gap: 12px;
    color: #fff;
}
.imgCurrency {
    height: 25px;
    display: block;
}
/* Make infoExRate full width and align with headerExRate */
.infoExRate {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    width: 100%;
    max-width: none;
    margin: 12px 0 0 0;
    font-family: Poppins, sans-serif;
    background-color: #f9f9f9;
    box-sizing: border-box;
    position: relative; /* required for watermark pseudo-element */
}
/* watermark background logo inside infoExRate */
.infoExRate::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -40%;
    transform: translate(-50%, 35%); /* lowered further */
    width: 380px; /* explicit width */
    height: 190px; /* explicit height so pseudo-element is visible */
    max-width: 85%;
    background-image: url('https://baobeivn.com/wp-content/uploads/lg_baobei_color-800x440-2.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center bottom;
    opacity: 0.06; /* user request */
    filter: saturate(0.7) brightness(1);
    pointer-events: none;
    z-index: 0;
}
/* make sure content sits above the watermark */
.infoExRate > * {
    position: relative;
    z-index: 1;
}
.infoTitle {
    display: flex;
    justify-content: space-between;    /* infoTitle: h2 left, exrUpdate right on same row */
    align-items: center;
    gap: 12px;
}
.infoTitle h2 {
    margin: 0;
    font-size: 20px;
    font-family: "Chakra Petch", sans-serif;
    font-weight: 900;
    color: rgb(251, 138, 0);
    position: relative;
	cursor: pointer;
}
.infoTitle h2::after{
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-left: 15px;
    font-size: 12px;
    color: #333;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}
.exrUpdate {
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    font-family: "Chakra Petch", sans-serif;
}
.infoRate {
    margin: 12px 0 0 0;
    font-size: 28px;
    font-weight: 700;
    color: #333;
    font-family: "Chakra Petch", sans-serif;
}
.infoRate i {
    font-size: 22px;
}
.numCNY, .numVND {
    font-weight: 800;
    font-family: "Chakra Petch", sans-serif;
}
.numCNY {
    font-size: 36px;
    margin-right: 20px;
}
.numVND {
    font-size: 72px;
    margin-left: 20px;
}
.noteExRate {
    margin: 12px 0 0 0;
    font-size: 8px;
	line-height: 1.1;
    font-style: italic;
    color: #ffffff;
    font-family: Quicksand, sans-serif;
    font-weight: 200;
}
.exrOptions {
    display: none;
    position: absolute;
    top: 22%; /* ngay dưới h2 */
    left: 0;
    margin: 8px 0 0 0;
    padding: 8px 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    list-style: none;
    min-width: 150px;
    z-index: 999;
}
.exrOptions li {
    padding: 6px 20px;
	margin: 0 !important;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    color: #333;
	border-bottom: 1px solid #eee;
}
.exrOptions li:hover {
    background: #f5f5f5;
    cursor: pointer;
}

/***** TABS *****/
.tabbed-content .nav-center {
	justify-content: space-evenly;
}
.nav-line > li > a:before,
.nav-line-bottom > li > a:before{
	background-color: #fa4216;
	border-radius: 3px;
}
.nav>li.active>a{
	color: #ff9500;
}
.tab-panels .entry-content {
	padding: 3% 15%;
	border-radius: 10px;
	box-shadow: 0 3px 6px -4px rgb(0 0 0 / .16), 0 3px 6px rgb(0 0 0 / .23);
}


@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/
	
	.marginRightImg{
		margin-right: 0%;
	}
	
	/**** TRACK & TRACE *****/
	.trackIntro{
		font-size: 13px;
	}
	.track {
		flex-direction: column;
		align-items: stretch;
	}
	.track input[type="text"] {
		width: 100%;
		height: 46px;
		margin-right: 0;
		margin-bottom: 10px;
		font-size: 13px;
	}
	/* make the input wrapper full width on mobile */
	.track-input-wrap {
		max-width: none;
		width: 100%;
	}
	/* ensure clear button stays vertically centred on mobile */
	.track-input-wrap .clearBtn {
		top: 40%;
		transform: translateY(-50%);
		/* keep fixed size */
		width: 28px;
		height: 28px;
	}
	.track .trackBtn {
		width: 100%;
		padding: 6px 25px;
		font-size: 13px;
	}
	
	
	/**** EXCHANGE RATE *****/
	.infoExRate{
		padding: 10px;
	}
	.infoExRate::before{
		top: -75%;
	}
	.infoTitle h2{
		font-size: 18px;
	}
	.infoTitle h2::after{
		margin-left: 8px;
	}
	.exrUpdate{
		gap: 5px;
	}
	.numCNY{
		margin-right: 0;
	}
	.numVND{
		font-size: 60px;
		margin-left: 10px;
	}
	
	/***** TABS *****/
		.tab-panels .entry-content{
		padding: 3% 5%;
	}
	
}