.solution-section {
  padding: 114px 0 60px 0;
  font-family: "Noto Sans JP", sans-serif;
  text-align: center;
  background: #fff url("../images/solution-section-01.png") no-repeat top center;
  background-size: 100% 100%; 
  background-color: #fff;
  min-height: 100vh; 
  height: 1722px;
}

.solution-header h2{
    margin-bottom: 40px;
}

.solution-header h2 b {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 4.2px;
  line-height: 1.6;
  margin-bottom: 50px;
  color: #fff;
  position: relative;
  padding: 0 48px;
}

.solution-header h2 b::before{
    content: "";
    position: absolute;
    width: 28px;
    height: 43px;
    left: 0;
    top: 6px;
    background: url("../images/solution-section-04.png") no-repeat;
    background-size: 28px 43px;
}

.solution-header h2 b::after{
    content: "";
    position: absolute;
    width: 28px;
    height: 43px;
    right: 0;
    top: 8px;
    background: url("../images/solution-section-05.png") no-repeat;
    background-size: 28px 43px;
}

.solution-header h2 span {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 4.2px;
  color: #fff;
}

.solution-box {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 30px 40px 30px;
  gap: 30px;
  text-align: left;
  height: 582px;
  margin-bottom: 60px;
}

.solution-box {
  /* margin-left: 0;    
  margin-right: auto;   
  padding-left: 303px; */
}

.solution-box.reverse {
  flex-direction: row-reverse;
  margin-right: 0;    
  margin-left: auto;
  /* padding-right: 303px;
  padding-left: 50px; */
  height: auto;
}

.solution-image img {
  width: 537px;
  border-radius: 8px;
  object-fit: cover;
}

.solution-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #0c8f53;
}

.solution-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.solution-content li {
  margin-bottom: 12px;
  line-height: 1.6;
  font-size: 15px;
  color: #333;
  position: relative;
  padding-left: 20px;
}

.solution-content li::before {
  content: "■";
  color: #0c8f53;
  position: absolute;
  left: 0;
  top: 0;
}

.solution-content {
  flex: 1;
}

.box-title {
  font-size: 20px;
  font-weight: 600;
  color: #0c8f53;
  margin-bottom: 20px;
}

.solution-item {
  margin-bottom: 24px;
}

.solution-subtitle {
  font-size: 18px;
  font-weight: 700;
  color: #125A12;
  margin-bottom: 8px;
  letter-spacing: 1.8px;
}

.solution-item p {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  letter-spacing: 1.6px;
  margin: 0;
}

.solution-wrapper {
  max-width: 1603px;
  margin-bottom: 60px;
  background: #fff;  
  box-shadow: 0px 3px 6px #00000029;
}

/* Box 1 (sát trái) */
.solution-wrapper.left {
  margin-left: 0;
  margin-right: auto;
  border-radius: 0 40px 40px 0;
  padding-top: 40px;
}

.box-title {
  font-size: 32px;
  font-weight: 700;
  color: #339933;
  margin-bottom: 16px;
  text-align: left;  
  position: relative;
  margin-bottom: 0;
}

.box-title::after{
    content:"";
    position: absolute;
    width: calc(100% - 350px);
    height: 1px;
    background-color: #339933;
    left: 303px;
    bottom: -5px;
}

.solution-wrapper.sw-right .box-title{
    /* padding-right: 303px;
    padding-left: unset; */
}

/* Box 2 (sát phải) */
.solution-wrapper.sw-right {
  margin-left: auto;
  margin-right: 0;
  border-radius: 40px 0 0 40px;
  padding-top: 40px;
}

.solution-wrapper.sw-right .box-title {
  font-size: 32px;
  font-weight: 700;
  color: #339933;
  text-align: right;
  padding-right: 303px;
  padding-left: 50px;
  margin-bottom: 0;
  position: relative;
  text-align: left;
}

.solution-wrapper.sw-right .box-title::after {
  content: "";
  position: absolute;
  height: 1px;
  background-color: #339933;
  left: 50px;
  bottom: -5px;
  width: calc(100% - 350px);
}

@media (min-width: 1300px) {
  .solution-section { 
    --content-width: 1300px;
    --side-gap: max(calc((100vw - var(--content-width)) / 2), 0px);
  }

  /* .solution-wrapper {
    width: 100%;
    max-width: none;
  } */

  .solution-wrapper.left {    
    margin-left: 0;
    margin-right: var(--side-gap);
    border-radius: 0 40px 40px 0;
  }

  .solution-wrapper.sw-right {
    margin-right: 0;
    margin-left: var(--side-gap);
    border-radius: 40px 0 0 40px;
  }

  .solution-wrapper .box-title,
  .solution-wrapper .solution-box {
    max-width: var(--content-width);
  }

  .solution-wrapper.left .box-title,
  .solution-wrapper.left .solution-box {
    margin-left: var(--side-gap); 
  }

  .solution-wrapper.sw-right .box-title,
  .solution-wrapper.sw-right .solution-box {
    margin-right: var(--side-gap); 
  }

  .box-title::after {
    left: 0;
    width: calc(var(--content-width) - 50px); 
  }

  .solution-wrapper.sw-right .box-title::after {
    left: 50px;
    width: calc(var(--content-width) - 50px);
  }
}

@media (max-width: 1299.98px) and (min-width: 993px) {

  .solution-section {
    height: auto; /* tránh height fix gây vỡ layout */
    padding: 80px 0 40px;
  }

  .solution-wrapper {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 30px;
  }

  .solution-wrapper.left {
    margin-left: 0;
    margin-right: auto;
    border-radius: 0 30px 30px 0;
    padding-top: 30px;
  }

  .solution-wrapper.sw-right {
    margin-left: auto;
    margin-right: 0;
    border-radius: 30px 0 0 30px;
    padding-top: 30px;
  }

  .solution-image img {
    width: 420px;
  }

  .solution-box {
    gap: 20px;
    padding: 20px 20px 30px;
    height: auto;
  }

  .solution-box.reverse {
    flex-direction: row-reverse;
  }

  .box-title {
    font-size: 28px;
    margin-bottom: 16px;
    padding-left: 40px;
    padding-right: 40px;
  }

  .box-title::after {
    left: 40px;
    width: calc(100% - 80px);
  }

  .solution-wrapper.sw-right .box-title {
    text-align: right;
  }

  .solution-wrapper.sw-right .box-title::after {
    left: 40px;
    width: calc(100% - 80px);
  }

  .solution-subtitle {
    font-size: 16px;
  }

  .solution-item p {
    font-size: 15px;
    line-height: 1.6;
  }

}

@media (max-width: 992px) and (min-width: 768.02px) {

  .solution-section {
    padding: 60px 0 40px;
    height: auto;
    background-size: cover;
  }

  .solution-wrapper {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 24px;
    padding-top: 30px;
  }

  .solution-wrapper.left {
    margin-left: 0;
    margin-right: auto;
    border-radius: 0 24px 24px 0;
  }

  .solution-wrapper.sw-right {
    margin-left: auto;
    margin-right: 0;
    border-radius: 24px 0 0 24px;
  }

  .solution-image img {
    width: 320px;
    border-radius: 8px;
  }

  .solution-box {
    padding: 20px;
    gap: 16px;
    height: auto;
    align-items: flex-start;
  }

  .solution-box.reverse {
    flex-direction: row-reverse;
  }

  .box-title {
    font-size: 26px;
    padding-left: 30px;
    padding-right: 30px;
    margin-bottom: 12px;
  }

  .box-title::after {
    left: 30px;
    width: calc(100% - 60px);
  }

  .solution-wrapper.sw-right .box-title {
    text-align: right;
  }

  .solution-wrapper.sw-right .box-title::after {
    left: 30px;
  }

  .solution-subtitle {
    font-size: 16px;
    line-height: 1.5;
  }

  .solution-item p {
    font-size: 14px;
    line-height: 1.6;
  }

}

@media (max-width: 768px) {
  .solution-section {
    background-size: cover; /* nền phủ full */
    height: auto;
    padding: 40px 0 40px 0;
  }

  .solution-header h2 b {
    font-size: 20px;
    letter-spacing: 2px;
    padding: 0 24px;
  }

  .solution-header h2 b::before{
    content: "";
    position: absolute;
    width: 13px;
    height: 20px;
    left: 0;
    top: 6px;
    background: url("../images/solution-section-04.png") no-repeat;
    background-size: 13px 20px;
  }

  .solution-header h2 b::after{
      content: "";
      position: absolute;
      width: 13px;
      height: 20px;
      right: 0;
      top: 8px;
      background: url("../images/solution-section-05.png") no-repeat;
      background-size: 13px 20px;
  }

  .solution-header h2 span {
    font-size: 20px;
    letter-spacing: 1.5px;
    font-weight: 700;
  }

  .solution-wrapper {
    max-width: 100%;
    margin: 0 0 40px 0;
    border-radius: 20px; /* bo đều 4 góc */
    padding-top: 20px;
  }

  .solution-box {
    flex-direction: column; /* xếp dọc */
    padding: 16px;
    gap: 20px;
    margin-bottom: 0;
    height: auto;
  }

  .solution-box.reverse {
    flex-direction: column; /* bỏ đảo chiều */
    padding: 16px;
  }

  .solution-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
  }

  .box-title {
    font-size: 20px;
    padding: 0 16px;
    text-align: left;
    margin-bottom: 12px;
  }

  .box-title::after {
    left: 16px;
    right: 16px;
    width: auto; /* line theo full content */
  }

  .solution-wrapper.left{
    margin-right: 16px;
  }
  .solution-wrapper.sw-right{
    margin-left: 16px;
  }

  .solution-wrapper.sw-right .box-title {
    padding: 0 16px;
    text-align: left;
  }

  .solution-wrapper.sw-right .box-title::after {
    left: 16px;
    right: 16px;
    width: auto;
  }

  .solution-subtitle {
    font-size: 15px;
  }

  .solution-item p {
    font-size: 14px;
    line-height: 1.6;
  }
}
