/* .solution tổng thể */
.solution {
  height: auto; /* Đổi chiều cao cố định thành tự động để phù hợp nội dung */
  background-color: #000000;
  position: relative;
  overflow: hidden;
}

.solution-content {
  color: #ffffff;
  /* margin-bottom: 30px; */
}

.solution h3, .solution h2, .solution p {
  text-align: left; /* Căn lề trái */
  color: #ffffff;
}

.title-product{
  font-family: 'Nasalization';
  font-size: 36px;
  color:#ffffff;
  line-height: 48px;
}

.solution p {
  max-width: 1010px;
}

.lcd {
  padding-top: 80px;
}

.lcd p {
  max-width: 1030px;
  line-height: 32px;
}

/* Responsive layout */
.responsive-layout {
  display: flex;
  flex-direction: column;
  /* gap: 16px; */
}

.card-item {
  display: flex;
  align-items: center; 
  justify-content: space-between;
  gap: 40px; 
  padding: 48px 16px; 
}

.solution .image-container {
  flex: 121;
  width: 100%; 
  padding: 0px;
}

.solution-image {
  height: auto; 
  width: 100%; 
}

.text-container {
  flex: 100;
  text-align: left;
}

.text-container img {
  max-width: 150px; /* Giới hạn logo */
  /* margin-bottom: 16px; */
}

.text-container h2 {
  margin: 4px 0;
}

.card-body {
  color: #ffffff;
  opacity: .8;
}

@media (max-width: 992px) {
  .card-item {
    flex-direction: column; 
    gap: 16px; 
    padding: 20px 0;
    align-items: start;
  }
  .box1 {
    order: 2; /* Hiển thị Box 1 ở vị trí thứ hai */
  }
  
  .box2 {
    order: 1; /* Hiển thị Box 2 ở vị trí đầu tiên */
  }
  .text-container__below {
    order: -1; /* Đẩy văn bản lên trên */
  }

  .image-container .solution-image {
    align-self: center;
    width: 100%;
    height: auto;
  }

  /* .text-container {
    margin-top: 16px;
  } */

  .solution p {
    max-width: 656px;
    line-height: 32px;
  }

  .lcd p {
    max-width: 656px;
    line-height: 32px;
  }

  .title-product{
    font-size: 36px;
    line-height: 48px;
}
}

/* Responsive Mobile (min-width: 360px) */
@media (max-width: 768px) {
  .card-item {
    flex-direction: column; /* Hình ảnh và text vẫn xếp dọc */
    padding-left: 0;
    padding-right: 0;
  }

  .image-container img {
    max-width: 100%; /* Tối đa chiều rộng */
  }

  .text-container {
    text-align: left;
    margin-top: 8px;
  }

  .solution p {
    max-width: 90%;
    line-height: 25px;
  }

  .lcd p {
    max-width: 90%;
    line-height: 25px;
  }

  .title-product{
    font-size: 28px;
    line-height: 36px;
}
}
