.home-box-info-section,
.home-box-du-an,
.home-box-banner-1,
.home-box-tin-tuc,
.home-box-banner-2,
.home-box-kh-danhgia,
.home-box-kh-thanthiet,
.home-box-category {
  float: left;
  width: 100%;
}
.text-title {
  font-size: 2em;
  font-weight: 800;
  line-height: 1.2;
  color: var(--cl-main);
  text-transform: uppercase;
}

.btn {
  background-color: var(--cl-main);
  display: inline-block;
  color: #ffffff;
  position: relative;
  padding: 8px 10px;
  font-size: 1.2em;
  border: 0;
  border-radius: 6px;
  transition: all 0.4s ease;
  z-index: 1;
  -webkit-box-shadow: 0 5px 15px rgba(33, 33, 33, 0.2);
  overflow: hidden;
  margin: 0.5em 0;
  white-space: nowrap;
  align-self: flex-start;
  font-weight: 500;
}
.btn:before {
  content: "";
  position: absolute;
  height: 100%;
  width: 0%;
  top: 0;
  left: -40px;
  transform: skewX(45deg);
  background: linear-gradient(90deg, var(--cl-main) 0%, var(--sub-cl) 100%);
  z-index: -1;
  transition: all 1s;
}
.btn:hover:before {
  width: 160%;
}
.btn:hover {
  background-color: var(--cl-main);
  color: #fff;
}
/*css box thông tin*/
.home-box-info-section {
  padding: 50px;
}
.inner-home-box-info {
  display: flex;
  flex-wrap: wrap;
}
.home-box-info-left,
.home-box-info-right {
  padding: 50px 0.75em;
}
.home-box-info-left h2 {
  font-size: 2em;
}
.discount {
  font-size: 1.5em;
  font-weight: bold;
}

.discount .bg-span {
  background: var(--cl-main);
  display: inline-block;
  transform: skewX(335deg);
  padding: 4px 8px;
}
.discount span {
  position: relative;
  color: white;
  transform: skewX(25deg);
  display: inline-block;
}
.home-box-info-left .content ul {
  list-style: none;
  padding: 0;
}

.home-box-info-left .content ul li {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 500;
  margin-bottom: 0.5em;
  font-size: 1.2em;
}
.home-box-info-left .content ul li i {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: var(--cl-main);
  background: var(--sub-cl);
  border-radius: 4px;
}

.home-box-info-left .price {
  font-size: 1.5em;
}
.home-box-info-left .price span {
  font-size: 1.6em;
  color: var(--cl-main);
  font-weight: 600;
}

.note {
  font-size: 1em;
  margin-top: 0.2em;
  color: #666;
  font-weight: bold;
  font-style: italic;
  text-decoration: underline;
}
.home-box-info-right {
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-box-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Chia làm đúng 2 cột */
  gap: 20px;
}

.info-right-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 200px;
  border: 1px solid #42464e;
  padding: 10px;
  display: inline-block;
  border-radius: 12px;
  background: #fff;
  font-size: 16px;
  line-height: 20px;
  vertical-align: middle;
  letter-spacing: 1px;
  word-spacing: 0px;
  color: #42464e;
  cursor: pointer;
}

.info-right-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px var(--sub-cl);
  border-color: var(--cl-main);
  color: var(--cl-main);
}
.home-box-web-desgin .text-title {
  font-size: 2em;
}
.home-box-web-desgin .text-subtitle {
  text-transform: uppercase;
  font-size: 1.3em;
}
/*css box lĩnh vực*/
.field-item {
  margin: 0.75em 0;
  height: 144.13px;
}
.inner-field-item {
  width: 100%;
  height: 100%;
  display: flex;
  border-radius: 0.8em;
  overflow: hidden;
}
.thumbnail {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.thumbnail img {
  width: 100%;
  height: 100%;
  transform-origin: center;
  transition: transform 0.4s ease-in-out;
  overflow: hidden;
  object-fit: cover;
  object-position: center;
}
.field-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 1em;
  color: var(--cl-white);
  margin: 0;
  padding: 0.5em;
  z-index: 5;
}
.inner-field-item .thumbnail:before {
  content: "";
  position: absolute;
  bottom: 0;
  height: 50%;
  background-image: linear-gradient(359deg, #000000, #ffc0cb00);
  z-index: 1;
  width: 100%;
  left: 0;
  pointer-events: none;
}
.field-item:hover img {
  transform: scale(1.2);
}
.home-box-web-desgin .btn-more {
  display: flex;
  gap: 0.75em;
  align-items: center;
}
.home-box-web-desgin .btn-more i {
  font-size: 1.2em;
}
/*css box khách hàng thân thết*/
.home-box-our-clients {
  padding: 0 0.75em;
}
.home-box-our-clients .text-subtitle {
  font-size: 1.2em;
}
.client-list {
  gap: 10px;
}
.client-item {
  width: calc(33.333% - 10px);
  height: 250px;
  overflow: hidden;
  cursor: pointer;
}
.overlay {
  background-color: transparent;
}
.img-bg {
  width: 100%;
  height: 100%;
  transform-origin: center;
  transition: transform 0.4s ease-in-out;
  overflow: hidden;
  object-fit: cover;
  object-position: center;
}
.client-item .img-bg {
  max-height: 200px;
}
.client-item .inner {
  padding: 1.5em 3em;
  text-align: center;
}
.client-item span.cus-created {
  color: #fff;
  font-size: 1.2em;
}
.client-item h4.client-name {
  color: #ff6600;
  font-size: 1.5em;
  font-weight: 700;
}
.client-item p.client-content {
  font-size: 1.2em;
  line-height: 1.5;
  text-decoration: underline;
}
/*css box câu hỏi*/
.home-box-question {
  padding: 0 0.75em;
}
.question-item {
  background: #fff9f9;
  border: 1px solid var(--cl-main);
  border-radius: 8px;
  margin-bottom: 1.5em;
  overflow: hidden;
}
button.btn-question {
  display: flex;
  background: transparent;
  color: #333333;
  width: 100%;
  text-align: left;
  font-size: 1em;
  border-radius: 0;
  margin: 0;
  padding: 0.75em;
  line-height: 1;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  user-select: none;
  box-shadow: none;
}
button.btn-question span {
  font-weight: 800;
  white-space: normal;
  word-break: break-word; /* Tùy chọn: giúp cắt từ nếu quá dài */
}
.question-content {
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: height 0.5s ease, opacity 0.5s ease, transform 0.5s ease;
  margin: 0 1em;
  height: 0;
  line-height: 1.2;
}
.question-item.active button.btn-question {
  color: var(--cl-main);
}
.question-item.active button.btn-question:hover {
  color: var(--cl-white);
}
.question-item.active .question-content {
  opacity: 1;
  transform: translateY(0);
  margin: 0.75em 1em 1em 1em;
}

.btn-question i {
  transition: transform 0.3s ease;
}

.question-item.active .btn-question i {
  transform: rotate(180deg);
}
.home-box-question-right {
  display: inline-block;
}
.box-image {
  text-align: right;
  position: relative;
  padding-top: 65%;
}
.box-image img {
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  object-fit: contain;
  object-position: right;
}
/*css box liên hệ*/
.home-box-hotline {
  padding: 50px 20px;
  position: relative;
}
.home-box-hotline .text-title {
  font-size: 2.4em;
}
.home-box-hotline .text-subtitle {
  font-size: 1.6em;
  font-weight: 600;
  color: #fff;
}
.home-box-hotline .text-note {
  color: #fff;
}
.hotline-item {
  margin: 10px 0;
  font-size: 2em;
  transition: all 0.3s ease;
}

.hotline-item .icon-phone {
  margin-right: 0.5em;
  width: 36px;
  height: auto;
}

.hotline-number {
  font-size: 1.4em;
  color: var(--cl-main);
  font-weight: bold;
}
.hotline-item:hover .hotline-number {
  text-decoration: underline;
}
.inner-hotline-cta-box {
  padding: 20px 30px;
  border-radius: 10px;
  color: #fff;
  font-size: 1em;
}

.inner-hotline-cta-box .cta-callnow {
  font-size: 1.8em;
  font-weight: bold;
  margin-top: 10px;
}

.cta-note {
  margin-top: 5px;
  opacity: 0.9;
}

@media (min-width: 1200px) {
  .col-cate {
    flex: 0 0 25%;
    max-width: 25%;
  }
  .client-item .img-bg {
    max-height: 100%;
  }
  .client-item .inner {
    color: #ff6600 !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    background-color: rgba(0, 0, 0, 0.65);
  }
  .client-item:hover .inner {
    opacity: 1;
  }
  .client-item h4.client-name {
    color: #ff6600 !important;
    font-size: 1.8em;
    font-weight: 700;
  }
  .client-item p.client-content {
    color: #ff6600 !important;
    font-size: 1.2em;
  }
}
@media only screen and (max-width: 1024px) {
  .client-item {
    padding: 0.5em;
    display: flex;
    flex-direction: column;
  }
  .client-item .img-bg {
    height: 200px;
  }
}
@media only screen and (max-width: 993px) {
  * {
    box-sizing: border-box;
  }
  .info-right-item {
    width: 150px;
  }
  .inner-web-desgin {
    justify-content: space-between;
  }
  .inner-web-desgin .field-item {
    width: calc(50% - 10px);
    height: 120px;
    padding: 0;
  }
  .home-box-our-clients {
    padding: 0;
  }
  .client-item {
    width: calc(50% - 5px);
    height: auto;
    box-sizing: border-box;
  }
  .client-item * {
    box-sizing: border-box !important;
  }
  .img-bg {
    position: relative;
  }
  .overlay {
    width: 100%;
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 10;
  }
  .client-click {
    position: relative;
    display: flex;
    align-items: center; /* căn giữa theo chiều dọc */
    justify-content: center; /* căn giữa theo chiều ngang */
  }
  .client-item .inner {
    position: absolute;
    z-index: 100;
    text-align: center;
    margin: 0;
    margin-top: 30px;
    padding: 10px 0;
  }
  .client-item span.cus-created {
    font-size: 12px;
    box-sizing: border-box;
  }
  .client-item h4.client-name {
    font-size: 1.25em;
    box-sizing: border-box;
    font-weight: bold;
  }
  .client-item p.client-content {
    font-size: 12px;
    color: white;
    box-sizing: border-box;
  }
  .field-item {
    height: 200px;
  }
  .thumbnail a {
    width: 100%;
  }
  .home-box-question {
    padding: 0;
  }
}
@media only screen and (max-width: 768px) {
  .home-box-info-left,
  .home-box-info-right {
    padding: 0;
  }
  .home-box-info-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .info-right-item {
    width: 200px;
  }
   .client-item span.cus-created {
    font-size: 12px;
    box-sizing: border-box;
  }
}
@media only screen and (max-width: 680px) {
  .home-box-info-grid {
    grid-template-columns: 1fr 1fr;
  }
  .text-title {
    font-size: 1.5em;
  }
  .home-box-hotline .text-title {
    font-size: 1.8em;
  }
  .home-box-hotline .text-subtitle {
    font-size: 1.2em;
  }
  .hotline-number {
    font-size: 1.2em;
  }
  .hotline-item .icon-phone {
    width: 26px;
  }
  .cta-description,
  .cta-note {
    font-size: 0.9em;
    display: flex;
    white-space: normal; /* Cho phép xuống dòng */
    word-wrap: break-word; /* Tự động ngắt từ nếu dài quá */
    width: 100%; /* Chiếm toàn bộ chiều ngang cha */
    max-width: 100%; /* Không vượt quá cha */
    line-height: 1.4; /* Dễ đọc hơn */
  }
  .inner-hotline-cta-box .cta-callnow {
    font-size: 1.5em;
  }
   .client-item span.cus-created {
    font-size: 12px;
    box-sizing: border-box;
  }
}
@media only screen and (max-width: 576px) {
  .info-right-item {
    width: 150px;
  }
  .home-box-info-left h2 {
    font-size: 1.5em;
  }
  .home-box-info-left .content ul li {
    font-size: 1em;
  }
  .btn-dangky {
    margin: 15px auto;
  }
  .home-box-info-left .text-title {
    text-align: center;
  }
  .discount {
    font-size: 1.2em;
  }
  .inner-hotline-cta-box .cta-callnow {
    font-size: 1.2em;
  }
   .client-item span.cus-created {
    font-size: 12px;
    box-sizing: border-box;
  }
}
@media only screen and (max-width: 480px) {
  .home-box-info-left,
  .home-box-info-right {
    padding: 0;
  }
  .home-box-info-grid {
    grid-template-columns: 1fr;
  }
  .info-right-item {
    width: 100%;
  }
  .home-box-info-left h2 {
    font-size: 1.2em;
  }
  .home-box-info-left .content ul li {
    font-size: 0.9em;
  }
   .client-item span.cus-created {
    font-size: 12px;
    box-sizing: border-box;
  }
  .home-box-hotline .text-title {
    font-size: 1.5em;
  }
  .home-box-hotline .text-subtitle {
    font-size: 1em;
  }
  .hotline-number {
    font-size: 1em;
  }
  .hotline-item .icon-phone {
    width: 20px;
  }
}
