/*
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.   ***************/
@import url(css/font-awesome.css);
@import url(css/flaticon.css);
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

:root {
    --primary-color: #363883;
    --secondary-color: #0093dd;
    --alert-color: #da251c;
}

.top_bar_content {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    column-gap: 15px;
    color: #fff;
}

.top_bar_content li {
    list-style: none !important;
    margin: 0;
    padding: 0;
    font-size: 13px;
    color: #fff;
}

.top_bar_content a {
    font-size: 13px;
    color: #fff;
}

.top_bar_content li i {
    margin-right: 5px;
}

.blog-archive {
    padding-top: 0px;
}

.header-nav-main li.ttm-sepline {
    position: absolute !important;
    top: -27px !important;
    left: 0px;
    width: 46px;
    right: auto;
    text-align: center;
    height: 25px !important;
    margin: 0 0px 0 0;
    display: block;
    margin: 0 auto;
    overflow: hidden;
}
.header-wrapper.stuck .header-nav-main li.ttm-sepline {
    top: -18px !important;
}

.header-nav-main .sep-img {
    display: inline-block;
    position: absolute;
    content: "";
    top: 0px;
    margin: 0 auto;
    margin-left: auto;
    left: 50%;
    background-repeat: no-repeat;
    background-position: 0px -6px;
    width: 22px;
    height: 18px;
    text-align: center;
    background-color: var(--secondary-color);
    transform: translateX(-50%);
}

.header-nav-main .sep-img {
    -webkit-mask: url(./images/menu-sprite.svg);
    mask-size: auto;
    -webkit-mask-box-image: url(./images/menu-sprite.svg);
    -webkit-mask-size: cover;
}

.section_gallery_product {
  height: 80vh;
  align-items: flex-start;
  overflow: hidden;
}

.section_gallery_product .bg_header {
  position: absolute !important;
  width: 100%;
  left: 0;
  right: 0;
}

.section_gallery_product .category_name {
  font-size: 20px;
  font-weight: 500;
}

.section_welcome .col_left .col-inner {
    position: relative;
}

.section_welcome .col_left .col-inner::before {
    content: "";
    height: 100%;
    width: 6px;
    background-color: var(--primary-color);
    position: absolute;
    left: -15px;
    top: 0;
}

.section_welcome .col_left .section_left h2 {
    font-size: 28px;
    line-height: 42px;
}

.section_welcome .col_left .section_left .subtitle {
    font-family: "Playfair Display", serif;
    font-style: italic;
    font-weight: 800;
    display: inline-block;
    font-size: 28px;
    line-height: 40px;
    margin-bottom: 20px;
}

.section_welcome .box_about {
    padding: 45px 30px 40px 30px;
    -webkit-box-shadow: 0px 0px 10px 0px rgb(0 0 0 / 9%);
    -moz-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.09);
    box-shadow: -1px 0px 10px 0px rgba(0, 0, 0, 0.09);
    -webkit-transition: .5s cubic-bezier(.24, .74, .58, 1);
    -khtml-transition: .5s cubic-bezier(.24, .74, .58, 1);
    -moz-transition: .5s cubic-bezier(.24, .74, .58, 1);
    -ms-transition: .5s cubic-bezier(.24, .74, .58, 1);
    -o-transition: .5s cubic-bezier(.24, .74, .58, 1);
    transition: .5s cubic-bezier(.24, .74, .58, 1);
    transform-origin: 0 0 0;
    -webkit-transform-origin: 0 0 0;
    -ms-transform-origin: 0 0 0;
    -o-transform-origin: 0 0 0;
}

.ttm-btn {
    color: var(--secondary-color);
    display: inline-block;
    vertical-align: middle;
    font-size: 16px;
    line-height: normal;
    background: transparent;
    border: 2px solid var(--dark-grey-color);
    position: relative;
    text-transform: capitalize;
    font-weight: 700;
    overflow: hidden;
    z-index: 1;
    transition: all 0.5s ease 0s;
}

.ttm-btn.btn-inline.ttm-icon-btn-right i {
    margin-left: 7px;
    transition: ease-in-out 0.5s;
    font-size: 18px;
    line-height: 18px;
    display: inline-block;
    vertical-align: middle;
    color: var(--secondary-color);
}

.ttm-btn.btn-inline:hover i {
    margin-left: 7px !important;
    -webkit-animation: tfLeftToRight 0.5s forwards;
    -moz-animation: tfLeftToRight 0.5s forwards;
    animation: tfLeftToRight 0.5s forwards;
}


.block_title {
    position: relative;
    padding-left: 28px;
    margin-bottom: 25px;
}

.block_title::after {
    display: block;
    content: "";
    position: absolute;
    width: 6px;
    height: 100%;
    left: 0;
    background-color: var(--primary-color);
    top: 0;
}

.block_title .subtitle {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    line-height: 21px;
    letter-spacing: 2px;
    color: var(--body-fonts-color);
    margin-bottom: 5px;
}

.block_title h2.title {
    font-weight: 800;
    font-size: 28px;
    line-height: 36px;
    text-transform: capitalize;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.block_title h2.title span {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 800;
    display: inline-block;
    color: var(--secondary-color);
}

.about_img img {
	border-radius: 15px;
}
.about_group_btn {
    display: flex;
    column-gap: 15px;
}

.about_group_btn.center {
    justify-content: center;
}

.action_btn {
    font-size: 14px;
    padding: 12px 30px 12px 30px;

    display: inline-block;
    vertical-align: middle;
    font-size: 16px;
    line-height: normal;
    padding: 15px 30px 15px 30px;
    background: transparent;
    border: 2px solid var(--secondary-color);
    position: relative;
    text-transform: capitalize;
    font-weight: 700;
    overflow: hidden;
    z-index: 1;
    transition: all 0.5s ease 0s;
}

.action_btn.btn_dark {
    background-color: black;
    border: 2px solid currentColor;
    color: #fff;
}

.action_btn.btn_dark:hover{
    background-color: var(--secondary-color);
    border: 2px solid #000;
}

.action_btn.btn_secondary {
    background-color: var(--secondary-color);
    border: 2px solid currentColor;
    color: #fff;
}

.action_btn.btn_secondary:hover {
    border: 2px solid #000;
}

.action_btn i {
    margin-left: 7px;
    transition: ease-in-out 0.5s;
    font-size: 18px;
    line-height: 18px;
}

.action_btn:hover i {
    margin-left: 7px !important;
    -webkit-animation: tfLeftToRight 0.5s forwards;
    -moz-animation: tfLeftToRight 0.5s forwards;
    animation: tfLeftToRight 0.5s forwards;
}

.title-header.title-center {
    text-align: center;
    justify-content: center;
}

.title-header {
    position: relative;
    padding-left: 28px;
    margin-bottom: 25px;
}

.title-header h3 {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    line-height: 21px;
    letter-spacing: 2px;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.title-header h2.title {
    font-weight: 800;
    font-size: 36px;
    line-height: 46px;
    text-transform: capitalize;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.title-header h2.title.light {
    color: #fff;
}

.title-header h2.title span {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 800;
    display: inline-block;
    color: var(--secondary-color);
}

.project_item {
    border: 1px solid #000000;
}

.testimonial-box {
    position: relative;
    height: 100%;
}

.testimonial-box::before {
    content: "";
    height: 81%;
    bottom: 0;
    position: absolute;
    left: 0;
    right: 0;
    background-color: #fff;
    z-index: -1;
}

.testimonial-box .icon-box-text {
    padding: 0 15px 15px;
}

.text-center {
    text-align: center;
}

.nav-dropdown-default {
    padding: 10px;
}

.header-page-services,.archive-page-header {
    background: url(./images/cad-to-bim.jpg) no-repeat center center / 100% auto;
    text-align: center;
    padding: 70px 0 0;
}

.header-page-services,.archive-page-header {
    margin-bottom: 30px;
}

.archive-page-header .col {
    padding-bottom: 0px;
}

.header-page-services.single-services {
    min-height: 240px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.header-page-services h1,.archive-page-header h1.page-title {
    color: #fff;
    padding-bottom: 50px;
    font-size: 36px;
    line-height: 56px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
}

.header-page-services p#breadcrumbs,.archive-page-header p#breadcrumbs {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    display: inline-flex;
    margin-bottom: 0;
    color: #f5f5f5;
}

.header-page-services p#breadcrumbs a,.archive-page-header p#breadcrumbs a {
    color: #fff;
}

.services-menu-container ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.services-menu-container ul.sidebar-menu li {
   margin-left: 0x !important;
}
.services-menu-container ul.sidebar-menu > li > a{
    background: var(--primary-color);
    padding: 15px;
    text-transform: uppercase;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    display: flex;
    margin-bottom: .6em;
    letter-spacing: 1px;
}
.services-menu-container ul ul.sub-menu > li {
    background: rgb(241, 244, 249);
    position: relative;
    border-left: 4px solid rgb(241, 244, 249);
}

.services-menu-container ul ul.sub-menu > li:hover {
    border-left: 4px solid var(--alert-color);
}

.services-menu-container ul ul.sub-menu > li::after {
    content: "";
    background: var(--secondary-color);
    width: 0;
    height: 100%;
    transition: all 0.5s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.services-menu-container ul ul.sub-menu > li:hover::after {
    width: 100%;
}

.services-menu-container ul ul.sub-menu > li > a {
    padding: 15px;
    text-transform: uppercase;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    margin-bottom: 3px;
    position: relative;
    transition: all 0.5s ease-in-out;
    z-index: 2;
}

.services-menu-container ul ul.sub-menu > li:hover > a {
    color: #fff;
}
.section_gallery_product .product-title.product_title.entry-title {
  font-size: clamp(18px, 3vw, 28px);
	font-weight: 900
}
.acf-feature-bar{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  border-radius:18px;
  overflow:hidden;
  background: linear-gradient(180deg, rgba(70,78,86,.85), rgba(58,64,70,.75));
  backdrop-filter: blur(6px);
}
.acf-feature-bar__item{
  padding: 26px 20px;
  text-align:center;
  position:relative;
  color:#fff;
}
.acf-feature-bar__item:not(:last-child)::after{
  content:"";
  position:absolute;
  top:14px;
  bottom:14px;
  right:0;
  width:1px;
  background: rgba(255,255,255,.25);
}
.product_detail_title .acf-feature-bar__value {
	font-size: clamp(15px, 3vw, 18px);
	font-weight: 500;
}
.acf-feature-bar__value{
  font-weight: 900;
  font-size: clamp(15px, 3vw, 15px);
  line-height:1.05;
  margin:0 0 10px 0;
  letter-spacing:.2px;
}
.acf-feature-bar__label{
  font-weight:500;
  font-size: clamp(13px, 1.2vw, 13px);
  opacity:.95;
  line-height:1.25;
  margin:0;
  white-space: pre-line; /* để xuống dòng "(double-side)" */
}
@media (max-width: 768px){
  .acf-feature-bar{ grid-template-columns: 1fr 1fr; }
  .acf-feature-bar__item:nth-child(2)::after{ display:none; }
}
@media (max-width: 420px){
  .acf-feature-bar{ grid-template-columns: 1fr; }
  .acf-feature-bar__item::after{ display:none; }
}

.tabbed-content .nav.nav-line-bottom li{
  padding-left: 20px;
  padding-right: 20px;
}

.woocommerce-loop-product__title {
  font-size: 15px;
  font-weight: 600;
}

.related-products-wrapper .product-small.col{
  padding: 10px;
  background-color: #f8f8f8;
}

/* ========= WIDGET ROOT ========= */
.qf-widget{
  position: relative;
  z-index: 9999;
}

/* ========= BUTTON FIXED BOTTOM ========= */
.qf-widget .qf-pop-btn {
  position: fixed;
  left: 16px;
  bottom: -15px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 5px 20px;
  border: 0;
  border-radius: 14px 14px 0 0;
  background: #0b2aa6;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  width: auto;
}
.qf-widget .qf-pop-btn__icon{display:inline-flex; opacity:.95}
.qf-widget .qf-pop-btn__text{white-space:nowrap}

/* ========= BACKDROP (RẤT NHẸ) ========= */
.qf-widget .qf-backdrop{
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,.12);

  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}

/* ========= POPOVER PANEL (BOTTOM SHEET) ========= */
.qf-widget .qf-popover{
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 10001;

  width: min(560px, calc(100vw - 24px));
  transform: translateX(-50%) translateY(110%); /* ẩn hẳn xuống dưới */
  opacity: 0;
  pointer-events: none;

  transition: transform .26s cubic-bezier(.2,.8,.2,1), opacity .22s ease;
  will-change: transform, opacity;
}

/* panel */
.qf-widget .qf-popover__panel{
  background: #fff;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  box-shadow: 0 -12px 40px rgba(0,0,0,.22);
}

/* header */
.qf-widget .qf-popover__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 16px 18px;
  border-bottom: 1px solid #eee;
}
.qf-widget .qf-popover__title{
  margin:0;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 800;
  color:#222;
}
.qf-widget .qf-popover__close{
  border: 0;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  font-weight: 800;
  color: #222;
  padding: 10px;
  margin: 0;
}

/* body */
.qf-widget .qf-popover__body{
  padding: 18px;
  max-height: calc(85vh - 68px);
  overflow: auto;
}

/* ========= OPEN STATE ========= */
.qf-widget.is-open .qf-backdrop{
  opacity: 1;
  pointer-events: auto;
}

.qf-widget.is-open .qf-popover{
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0); /* trượt lên */
}

/* ========= CF7 FORM STYLE ========= */
.qf-widget .wpcf7 form{ margin:0; }

.qf-widget input[type='text'],
.qf-widget input[type='tel'],
.qf-widget input[type='email'],
.qf-widget select,
.qf-widget textarea{
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #efefef;
  background: #fff;
  border-radius: 4px;
  padding: 0px 16px;
  font-size: 16px;
  color: #111;
  outline: none;
  height: 45px;
}
.qf-widget textarea{ min-height: 110px; resize: vertical; }
.qf-widget input::placeholder,
.qf-widget textarea::placeholder{ color:#777; }

.qf-widget .qf-row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.qf-widget .qf-col-full{ grid-column: 1 / -1; }

.qf-widget .qf-actions{ margin-top: 16px; }
.qf-widget .qf-submit{
  border:0;
  border-radius: 4px;
  padding: 12px 22px;
  background:#18b7a5;
  color:#fff;
  font-size: 22px;
  font-weight: 800;
}

@media (max-width: 520px){
  .qf-widget .qf-row{ grid-template-columns: 1fr; }
  .qf-widget .qf-popover__title{ font-size: 24px; }
}

@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/
	.section_about_us{
		padding-left: 10px !important;
		padding-right: 10px !important; 
		margin: 0 10px !important;
	}
	.section_gallery_product {
		height: 50vh;
	}
}


@-webkit-keyframes tfLeftToRight {
    49% {
        -webkit-transform: translateX(100%);
    }
    50% {
        opacity: 0;
        -webkit-transform: translateX(-100%);
    }
    51% {
        opacity: 1;
    }
}

@keyframes tfLeftToRight {
    49% {
        transform: translateX(100%);
    }
    50% {
        opacity: 0;
        transform: translateX(-100%);
    }
    51% {
        opacity: 1;
    }

}
