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

:root {
    --color-bg: #fff;
}

body,
#main,
#wrapper {
    background-color: var(--color-bg);
}

* {
    font-family: "Roboto", sans-serif;
}

.pb-0 {
    padding-bottom: 0;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: 0;
}


.header-wrapper.stuck #masthead {
    max-width: 100%;
    border-radius: 0;
}

.header-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}


.logo a {
    position: relative;
    z-index: 2;
}

.clear:after,
.clearfix:after,
.container:after,
.row:after {
    clear: both;
    content: "";
    display: none;
}

#logo {
    overflow: hidden;
}

#masthead {
    border-bottom: 10px solid var(--primary-color);
    background-color: var(--color-bg);
    border-radius: 20px 20px 0 0;
    padding-left: 95px;
}

#masthead .header-inner,
#masthead {
    padding-right: 0;
}

#logo::before {
    background-image: url('./assets/images/Rectangle_104.png');
    content: '';
    width: 400px;
    -webkit-border-radius: 20px 0 0;
    -moz-border-radius: 20px 0 0;
    border-radius: 20px 0 0;
    position: absolute;
    left: 0;
    height: 100%;
    top: 50%;
    transform: translateY(-50%);
    background-position: top -16px right;
    transition: .5s all;
}

.header-content .topbar {
    background-color: #f2f2e8;
    margin-right: 0;
    height: 51px;
    transition: .5s all;
    border-radius: 12px;
}

.h-100 {
    height: 100%;
}

.w-100 {
    width: 100%;
}

.header-nav li a {
    color: #3f724d;
    text-transform: uppercase;
    font-size: 16px;
    margin-right: 30px;
    padding: 12px 0;
}

.topbar ul li a {
    position: relative;
}

.topbar ul li a:hover::before {
    display: block;
}

header#header {
    position: fixed;
}

.topbar ul li a::before {
    content: '';
    width: 100%;
    height: 6px;
    position: absolute;
    bottom: 0;
    display: none;
    background-color: var(--primary-color);
    z-index: 10;
}

.pll-parent-menu-item span {
    color: var(--primary-color);
}

.header-nav-main li.current-menu-item a,
.header-nav-main li a:hover {
    color: var(--fs-color-secondary);
}

.icon-zalo {
    filter: brightness(0) invert(1);

}

section.section.line {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--fs-color-secondary) 50%, var(--primary-color) 100%);
    transform: matrix(1, 0, 0, -1, 0, 0);
    height: 73px;
    margin-top: -32px;
    
}

.header-wrapper.stuck .topbar {
    display: none;
}

section.section.home_sec_2.css_bg.dark {
    background-image: url('./assets/images/Gioi-thieu-1.jpg');
}

.home_sec_2 {
    padding: 150px 0 !important;
    background-attachment: fixed;
}

.css_bg {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.tab-home .tab a {
    font-size: 30px;
    color: var(--fs-color-secondary);
}

.tab-home>ul>li>a:hover {
    color: var(--primary-color);
}

.tab-home .tab.active a {
    color: var(--primary-color);
}

.nav-line-bottom>li>a:before,
.nav-line-grow>li>a:before,
.nav-line>li>a:before {
    top: auto;
    bottom: 0;
    height: 5px;
    background-color: var(--fs-color-secondary);
}

.product-small.product.type-product.product_cat-uncategorized.product-type-simple>.col-inner,
.product-small.box {
    background-color: #FFF;
    border-radius: 12px;
    box-shadow: 2px 2px 10px #ebebeb;
/* 	border: 1px solid #ccc; */
	overflow: hidden;
}

.shop-page-title {
    color: var(--primary-color);
}

.box-text-products {
    padding: 15px;
}

.box-text-products .title-wrapper {
    font-size: 20px;
    color: var(--primary-color);
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.view-more-prods {
    text-align: left;
}


.woocommerce-loop-product__title {
    min-height: 84px;
}

.view-more-prods a {
    color: var(--fs-color-secondary);
    font-size: 14px;
    text-transform: uppercase;
}

.box-certificate {
    border-radius: 0 130px 12px 12px;
    background-color: var(--primary-color);
}

.box-certificate .box-image {
    width: 100%;
    text-align: center;
    background: #fff;
    height: 290px;
    border-radius: 0 125px;
}

.box-certificate .box-image img {
    transform: scale(0.6);
}

.certificate h4 {
    padding: 0 20px;
    font-weight: 700;
    color: #FFF;
}

.home_sec_5 .img_left img {
    border-radius: 0 200px;
    display: block;
}

.home_sec_5 .img_right img {
    border-radius: 200px 0;
    display: block;
}

.post-item .col-inner {
    background: rgb(244, 244, 244);
    box-shadow: 0px 0px 8px rgb(0 0 0 / 10%);
    border-radius: 12px;
    overflow: hidden;
    transition: all .2s ease;
    transition: .3s all;
}

.post-item:hover * {
    color: #FFF;
}

.first-blog .blog-post-inner {
    padding-left: 25px;
    padding-right: 25px;
}


.first-blog .box-image {
    border-radius: 0 0 0 100px;
    overflow: hidden;
    position: relative;
}

.d-flex {
    display: flex;
}

.footer-post-item {
    width: 100% !important;
    align-items: center;
    justify-content: space-between;
}

.footer-post-item a.button.col.secondary.is-link.is-small.mb-0 {
    margin-top: 0;
    border-radius: 40px;
    color: var(--fs-color-secondary);
    padding: 5px 10px;
    font-size: 12px;
    border: 1px solid currentColor !important;
    width: max-content;
}

.footer-post-item a.button.col.secondary.is-link.is-small.mb-0:hover {
    background-color: var(--fs-color-secondary) !important;
    border: none !important;
    color: #FFF;
}

.post-item .post-title {
    color: var(--primary-color);
}

.footer-post-item .post-meta {
    width: max-content !important;
}

.post-item .box-overlay .box-image {
    border-radius: 0;
}

.featured-video-plus.post-thumbnail.fvp-responsive.fvp-youtube.fvp-center{
	    position: absolute;
    width: 100%;
    top: 0;
}

.post-item:hover .col-inner {
    background: var(--primary-color);
    cursor: pointer;
}

.post-item p {
    color: #000;
}

.post-item .box:not(.box-overlay) .box-image {
    padding: 0;
    border-radius: 0 !important;
}

.other-blog .box-image {
    border-radius: 12px 12px 100px 0;
}

.absolute-footer {
    display: none;
}

.menu-footer a {
    font-size: 1.2em;
    border: none !important;
}

.white-img img {
    filter: brightness(0) invert(1);
}

#frm-pre-footer .wpcf7-form-control:first-child {
    width: 100%;
    border-radius: 0 50px;
    background: #fff;
    box-shadow: 0px 0px 8px rgba(0, 0, 0, .1);
    color: #e8ae30;
    font-size: 18px;
    height: 56px;
    padding: 0 60px;
    outline: none;
}

#frm-pre-footer {
    position: relative;
}

#frm-pre-footer>p {
    position: absolute;
    top: 25px;
    right: 190px;
}

#frm-pre-footer i {
    position: absolute;
    top: -10px;
    font-size: 30px;
    right: -84px;
    z-index: 1;
}

#frm-pre-footer input[type="submit"] {
    position: absolute;
    top: -16px;
    right: -145px;
    z-index: 2;
    box-shadow: none !important;
    border: none !important;
    color: transparent !important;
    background-color: transparent !important;
}

#frm-pre-footer input[type="submit"]:hover~i.fa-regular.fa-paper-plane {
    color: var(--fs-color-secondary);
}

aside#woocommerce_product_categories-2 {
    background: #fff;
    border-radius: 12px;
    display: inline-block;
    overflow: hidden;
    filter: drop-shadow(0px 0px 8px rgba(0, 0, 0, .1));
    width: 100%;
}

aside#woocommerce_product_categories-2 .is-divider {
    display: none;
}

aside#woocommerce_product_categories-2 span.widget-title.shop-sidebar,
.purchase-methods h3 {
    background-color: var(--primary-color);
    padding: 15px;
    color: #FFF;
    width: 100%;
    font-size: 18px;
    border-radius: 12px 12px 0 0;
    line-height: 1;
    display: block;
}

ul.product-categories li {
    padding: 0 15px;
}

header.header.has-sticky.sticky-jump {
    height: auto !important;
}

ul.product-categories li.active>a,
ul.product-categories li:hover>a {
    color: var(--fs-color-secondary);
}

ul.product-categories li a {
    font-weight: 700;
    font-size: 18px;
}

.menu-intro {
    background-color: var(--primary-color);
}

.menu-intro p {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    padding: 20px;
}

.col-menu-intro .col-inner {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0px 0px 8px rgba(0, 0, 0, .1);
    position: sticky;
    top: 150px;
}

.col-menu-intro .ux-menu--divider-solid {
    padding: 0 20px;
}

.col-menu-intro .ux-menu--divider-solid .menu-item:hover a {
    color: var(--primary-color);
}

.col-menu-intro .ux-menu--divider-solid .menu-item a {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    border-bottom-color: #000;
}

.col.large-4.post-item .box-image {
    border-radius: 0 0 0 100px;
    overflow: hidden;
    position: relative;
}

.col.large-4.post-item .box-text {
    padding: 15px;
}

.news_top {
    padding-top: 20px;
    padding-bottom: 60px;
    justify-content: center;
}

.grid-100 {
    clear: both;
    width: 100%;
}

.heading_h2 {
    color: #3f724d;
    font-size: 40px;
    text-align: center;
    margin-bottom: 35px;
    text-transform: uppercase;
}

.menu_custom ul {
    display: flex;
    justify-content: center;
}

.menu_custom ul a {
    height: 54px;
    display: inline-flex;
    border: 2px solid #8c8c8c;
    border-radius: 42px;
    align-items: center;
    padding: 10px !important;
    color: #3f724d;
    font-size: 20px;
    text-transform: uppercase;
    font-family: var(--font-bold);
    margin: 0 10px 10px;
}

.menu_custom li.current-menu-item a,
.menu_custom li a:hover {
    background: #3f724d;
    color: #e8ae30;
    border-color: #3f724d;
}



.search-hiring .search-field {
    background: #fff;
    border-radius: 12px;
    width: 730px;
    height: 98px;
    font-size: 18px;
    color: #8c8c8c;
    padding: 0 40px;
}

.search-hiring .ux-search-submit {
    position: absolute;
    top: 0;
    right: 40px;
    border-color: transparent;
    z-index: 9;
    height: 100%;
    background: 0 0;
    /* font-size: 0; */
}

.search-hiring .ux-search-submit .icon-search {
    color: #000;
    font-size: 30px;
}

.job-item {
    border-left: 8px solid var(--fs-color-secondary);
    border-radius: 12px;
    margin-right: 15px;
}

.product-small.box:hover .box_hover {
    opacity: 1;
}

.box_hover {
    padding: 60px 30px !important;
    position: absolute;
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(63 114 77 / 80%);
    padding: 0 40px;
    opacity: 0;
    transition: .3s all;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
}

.box_hover ul li {
    display: flex;
    justify-content: space-between;
    margin-left: 0;
}

.box_hover ul li:not(:last-child) {
    margin-bottom: 15px;
}

.box_hover ul {
    width: 100%;
}

.box_hover * {
    color: #fff;
}

.box_hover li span:first-child {
    text-align: left;
}

.box_hover li span:last-child {
    text-align: right;
}

.box_hover .text_center {
    display: flex;
    width: 100%;
}

.box_hover .text_center span {
    margin: auto;
}

.box_hover .text_center span svg {
    position: absolute;
}

.heading-contact {
    background-color: var(--primary-color);
    padding: 10px;
}

.row-contact {
    background-color: #fff;
    border-radius: 50px 12px;
    overflow: hidden;
    box-shadow: 2px 2px 10px;
}

.txt-info {
    padding: 30px 50px;
}

iframe {
    height: 100%;
}

.row-contact .col-inner p,
.row-contact .col-inner {
    height: 100%
}

.row-contact-2 {
    background: #fff;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 2px 2px 10px;
}

.menu-footer .ux-menu-link__link {
    padding: 0;
}

.thanh_phan {
    display: inline-block;
    background: #fff;
    box-shadow: 0px 0px 8px rgba(0, 0, 0, .1);
    border-radius: 12px;
    padding: 25px;
}

.thanh_phan h2 {
    color: #3f724d;
    text-transform: uppercase;
    margin: 0;
}

.thanh_phan h2 {
    font-size: 30px;
}

.thanh_phan li:not(:last-child) {
    border-bottom: 2px solid #dcdcdc;
}

.thanh_phan li {
    display: flex;
    padding: 12px 0;
    margin-left: 0 !important;
}

.thanh_phan li span {
    width: 300px;
}

.thanh_phan li * {
    font-size: 18px;
    color: #1f2b1a;
}

.text-in-banner-1 {
    background-color: #FFF;
    padding: 30px;
    border-radius: 30px;
}

.col-cam-nhan-1 .col-inner {
    border-radius: 12px;
    background-color: rgb(224, 224, 224);
    padding: 30px;
    height: 100%;
}

.row-cam-nhan {
    border-radius: 12px;
    box-shadow: 2px 2px 10px;
}

.other-blog .post-item.col {
    padding-bottom: 36px;
}

.banner-middle {
    border-radius: 30px;
    overflow: hidden;
}

.secondary.is-outline.btn-fill {
    background-color: var(--fs-color-secondary);
    border-color: var(--fs-color-secondary);
    color: #fff;
}

.secondary.is-outline.btn-fill:hover {
    background-color: white;
    border-color: var(--fs-color-secondary);
    color: var(--fs-color-secondary);
}

.tab-home .nav .tab {
    margin: 0 15px;
}

.col-cam-nhan-1 .col-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-wrapper.blog-single.page-wrapper>.row {
    margin-top: 200px;
}

.widget-title {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.vid-rad {
    border-radius: 12px;
}

.sub-menu li a {
    font-size: 14px;
    text-transform: none;
    font-weight: bold;
}

#header ul.sub-menu.nav-dropdown.nav-dropdown-default {
    padding: 0 15px;
}

.recent-posts-with-thumbnails .recent-post-item a {
    display: flex;
}

.recent-posts-with-thumbnails img {
    width: 80px;
}

.recent-posts-with-thumbnails .post-title {
    flex: 1;
    margin-left: 10px;
}

.entry-title {
    color: var(--primary-color);
}
.vid-full-height{
    height: 100%;
}


.recent-posts-with-thumbnails .post-title {
    flex: 1;
    margin-left: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* Giới hạn số dòng là 2 */
    -webkit-box-orient: vertical;
    /* Xoay các dòng văn bản theo chiều dọc */
    overflow: hidden;
    /* Ẩn phần văn bản bị cắt */
    text-overflow: ellipsis;
    /* Hiển thị dấu "..." khi văn bản bị cắt */
    font-size: 16px;
    color: var(--fs-color-secondary);
    /* Đảm bảo màu chữ */
    font-weight: 700;
    line-height: 1.5;
    /* Điều chỉnh chiều cao dòng, có thể tăng giảm tuỳ theo */
    height: 3em;
    /* Đảm bảo chiều cao đủ cho 2 dòng văn bản */
}


/* 3 cách mua hàng */
.purchase-methods {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin: 0 auto;
}

.purchase-methods ol {
    margin-top: 15px;
    list-style-type: decimal;
    /* Sử dụng danh sách có số thứ tự */
    padding-left: 15px;
    /* Khoảng cách lề trái */
}

.purchase-methods .purchase-method {
    background-color: var(--fs-color-secondary);
    /* Màu nền xám tối */
    color: white;
    /* Chữ màu trắng */
    padding: 10px;
    margin: 0;
    margin-bottom: 10px;
    border-radius: 6px;
    transition: background-color 0.3s;
}

.purchase-methods .purchase-method a {
    text-decoration: none;
    color: white;
    font-size: 16px;
}

.purchase-methods .purchase-method:hover {
    background-color: #555;
    /* Màu nền thay đổi khi hover */
}

.purchase-methods .purchase-method a:hover {
    color: #ddd;
    /* Thay đổi màu chữ khi hover */
}

.other-blog{
	flex-direction: column;
	justify-content: space-between;
}

.grid-container{
	width: inherit;
}

@media only screen and (max-width: 48em) {
    /*************** ADD MOBILE ONLY CSS HERE  ***************/
#logo::before{
	display: none;
}
	main#main > video{
	visibility: hidden;
        height: 0;
}

	
	.home_sec_2 {
    padding: 150px 0 !important;
    background-attachment: scroll; /* Fallback for Safari */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    position: relative; /* Ensure correct rendering in Safari */
}

section.section.home_sec_2.css_bg.dark {
    background-image: url(./assets/images/Gioi-thieu-1.jpg);
}

/* Safari-specific hack */
@supports (-webkit-touch-callout: none) {
    .home_sec_2 {
        background-attachment: scroll; /* Safari doesn’t fully support fixed */
        transform: translateZ(0); /* Helps Safari render smoother */
    }
}

	
	#masthead{
		padding: 0 15px;
	}
	
	#masthead .header-content.flex-grow{
		display: none;
	}
	
	.other-blog .box-text{
		padding: 15px;
	}
	
	section.section.line {
	height: 20px;
		padding: 0;
	}
	
	.home_sec_2 {
		padding: 30px 0 !important;
	}

	.tab-home .tab a{
		font-size:20px;
	}
	
	.box.box-vertical.box-text-bottom.box-blog-post.has-hover{
		display: flex;
		flex-direction: row !important;
	}
	
	.d-flex.footer-post-item{
		flex-direction: column;
		justify-content: flex-start;
		        align-items: flex-start;
	}
	
	.box_hover{
		display: none;
	}
	
	.woocommerce-loop-product__title{
		min-height: auto;
	}
	
	.box-text-products .title-wrapper{
		margin-bottom: 0;
	}
	
	#menu-menu-danh-muc-tin-tuc {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px;
    gap: 20px; /* Space between menu items */
}

#menu-menu-danh-muc-tin-tuc .menu-item {
    display: inline-block;
    flex-shrink: 0; /* Prevent items from shrinking */
}
	
	#menu-menu-danh-muc-tin-tuc {
    display: flex;
    white-space: nowrap;
    padding: 10px;
		overflow-y: hidden; 
  overflow-x: scroll !important; 
    gap: 20px;
    scrollbar-height: thin; /* For Firefox */
    scrollbar-color: var(--primary-color) #f5f5f5; /* Track and thumb colors */
}
	
	.container .section, .row .section{
		padding: 0;
	}

#menu-menu-danh-muc-tin-tuc::-webkit-scrollbar {
    height: 8px; /* Horizontal scrollbar height */
}

#menu-menu-danh-muc-tin-tuc::-webkit-scrollbar-thumb {
    background: #ff5722;
    border-radius: 4px;
}

#menu-menu-danh-muc-tin-tuc::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 4px;
}
	
	.menu_custom ul a{
		height: auto;
		padding: 5px !important;
		font-size: 14px;
	}
	
	.sec-pre-foot .col, .sec-pre-foot{
		padding-bottom: 0 !important;
	}
	
	.post-title a{
		-webkit-line-clamp: 1;
	}
	
	.footer-post-item a.button.col.secondary.is-link.is-small.mb-0 {
    margin-top: 0;
    border-radius: 40px;
    color: var(--fs-color-secondary);
    padding: 0;
    font-size: 12px;
    border: none !important;
    width: max-content;
}
	
}