/*
Theme Name: Flastsome Child
Theme URI: https://example.com/
Description: Child theme for the Flatsome theme
Author: Your Name
Author URI: https://example.com/
Template: flatsome
Version: 1.0.0
*/

h1, h2, h3 ,h4 {
	color: var(--Bright-Red) !important;
}

.custom-col {
	max-height: 250px;
	overflow-y: scroll;
}
.row-solid .col:after{
	display:none;
}
.last-reset p {
	overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    -webkit-line-clamp: 4;
	margin: 0;
}
.last-reset h3 {
    font-family: Montserrat;
    font-size: 19px;
    line-height: 22px;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    min-height: 45px;
}

.sp h4 {
    position: absolute;
    top: 5px;
	width: 350px;
    height: 38px;
    font-size: 25px;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0;
    white-space: nowrap;
    color: #8c0404;
	background: #fff;
    z-index: 999;
}

.sp h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: 35%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: url('/wp-content/uploads/2025/10/logo-savitech-2.png') no-repeat center center;
  background-size: contain;
}

.sp .nav {
	position: relative;
	padding: 0 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
	border-bottom: solid 1px #8c0404;
}

.sp .nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    justify-content: flex-start;
    border-bottom: 1px solid #8c0404;
    padding-left: calc(200px + 200px);
    padding-right: 10px;
}

.sp .nav li {
    flex-shrink: 0;
}

.product-small.box {
    background: var(--color-white);
    box-shadow: 3px 3px 9.1px 0px rgba(226, 26, 26, 0.15);
    padding: 17px;
    position: relative;
    padding-right: 30px;
    cursor: pointer;
    border-radius: 30px;
}
.duan .box-text a {
	color:#8c0404;
}
.dichvu {
    background: var(--color-white);
    box-shadow: 2px 0px 9.1px 0px rgba(226, 26, 26, 0.15);
    padding: 17px;
    min-height: 250px;
    max-height: 250px;
    position: relative;
    padding-right: 30px;
    cursor: pointer;
    border-radius: 30px;
}

.dichvu:hover {
	box-shadow: 0px 0px 9.1px 0px rgb(168 11 11);
}


.slogan_project {
	margin:20px;
}

.product-small.box .product-title a {
    font-size: 14px;
    text-transform: uppercase;
    text-align: left;
    color: var(--Deep-Teal);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    text-overflow: ellipsis;
    line-height: 1.4;
    height: 2.8em;
    margin-top: 10px;
    text-decoration: none;
    overflow: hidden;
    transition: color 0.3s;
}

.menu_links .ux-menu-link__link {
	color: var(--color-white) !important;
}

.menu_links .ux-menu-link__link:hover {
	color: var(--Bright-Red) !important;
}

.left_about strong {
    text-align: right;
    font-family: Montserrat;
    font-size: 26px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    margin-bottom: 10px;
}

.header-nav {
	display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}
.fa-map-marker {
	color:#E21A1A;
}

.sp h4 {
  padding-left: 50px; 
}

.col-img-scroll{
	padding-bottom: 0 !important;
	overflow: hidden;
}
.col-img-scroll .ux-logo {
		margin-right: 40px;
	}
.col-img-scroll .col-inner {
  display: flex;
  white-space: nowrap;
  will-change: transform;
}
.col-img-scroll::-webkit-scrollbar {
  display: none;
}
.col-img-scroll {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.col-img-scroll{
	padding-bottom: 0 !important;
}
.col-img-scroll .ux-logo {
	margin-right: 10px;
}
.custom-img .ux-logo-link {
	width: 230px !important;
	height: 120px !important;
}
.custom-img .ux-logo-link img {
	width: 200px !important;
	height: 90px !important;
}

.duan .box-text {
	padding-bottom: unset !important;
	padding-top: unset !important;
}
/* Chỉ áp dụng trên mobile */
@media (max-width: 768px) {
  .sp_mobile ul.nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* cho mượt trên iOS */
    scrollbar-width: thin; /* Firefox */
  }

  .sp_mobile ul.nav li {
    flex: 0 0 auto;   /* giữ cho mỗi tab có chiều rộng theo nội dung */
    margin-right: 10px;
  }

  /* Ẩn scrollbar nếu muốn */
  .sp_mobile ul.nav::-webkit-scrollbar {
    display: none;
  }
}

@media only screen and (max-width: 600px){

  	.col-img-custom {
		width: 100%;
		flex-basis: 100%;
		max-width: 100%;
	}
	.custom-img .ux-logo-link {
		width: 165px !important;
	}
	
 	.custom-img .ux-logo-link img {
    width: 135px !important;
    height: 91px !important;
	}
}

.name_about {
    color: #000;
    font-family: Montserrat;
    font-size: 19px;
    font-style: normal;
    font-weight: 500;
    line-height: 30px;
    text-transform: uppercase;
}

/* chữ TOÀN DIỆN */
.name_about span {
  color: var(--Bright-Red);
  font-weight: 700;
}

#top-bar > .flex-row .flex-col:nth-child(2) {
	width: 100%;
}
#top-bar > .flex-row .flex-col:nth-child(2) > .nav {
	justify-content: flex-end;
}
#top-bar > .flex-row .flex-col:nth-child(2) .nav .header-contact-wrapper {
	width: 50%;
}
#top-bar > .flex-row .flex-col:nth-child(2) .nav .header-contact-wrapper #header-contact {
	flex-direction: row-reverse;
	justify-content: space-between;
}
/* Responsive: co lại khi màn hình nhỏ */
@media (max-width: 768px) {
  .name_about {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
	.dv {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        
    }
	#footer .icon-box-text {
	color: #fff;
	}
  .name_about {
		font-size: 18px;
		line-height: 1.2;
  }
	.dichvu {
		min-height: 151px;
		box-shadow: 2px 2px 9.1px 3px rgba(226, 26, 26, 0.15);
	}
	.dichvu img {
		width: 84%;
	}
	.last-reset h3 {
		font-size: 13px;
	}
	.dichvu .last-reset p {
		display: none;
	}
}


	.gt {
		box-shadow: rgba(226, 26, 26, 0.15) 4px 4px 1px 0px;
}

	.gt:hover {
		box-shadow: 4px 4px 1px 0px var(--Maroon);
}
.container .section, .row .section {
	padding: 0;
}

.entry-content.single-page {
	text-align: justify;
}

/* slogan */
.slogan {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  color: #fff;
  position: relative;
  font-weight: 500;
  font-size: 15px;
  animation: textScroll 12s linear infinite;
}

.nav-dark .nav>li>a {
	color: var(--color-white);
}

@keyframes textScroll {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.html_topbar_left {
  overflow: hidden;
  width: 250px; 
}
