.service-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 0;
  animation: bgZoom 40s ease-in-out infinite;
  transition: opacity 1s ease-in-out;
  background-color: #222; /* fallback */
}

.creation-tech-section {
  background-color: #f9f9f9;
  position: relative;
  padding: 60px 20px;
  overflow: hidden;
}

.creation-tech-box {
  position: relative;
  overflow: hidden; /* NGĂN background tràn ra ngoài */
  background: #ffffff;
  padding: 40px;
  border-radius: 8px;
  z-index: 2;
}

.creation-tech-box::before {
  position: absolute;
  content: '';
  inset: 0;
  background-image: url('../image/装飾.png');
  background-size: 50% auto; /* ✅ nhỏ hơn chiều ngang */
  background-repeat: no-repeat;
  background-position: bottom right; /* hoặc bottom center */
  z-index: -1;
}



.creation-title .symbol {
  color: #111;
  font-weight: bold;
  display: inline-block;
  margin: 0 4px;
}

.creation-description {
  font-size: 18px;
  color: #333;
  line-height: 1.8;
  font-weight: 600;
}

.video-section {
  background-color: #f9f9f9;
  padding: 60px 20px;
  overflow: hidden;
  position: relative;
}

.box-wrapper {
  position: relative;
  width: 100%;
}

.box-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}


.sg-header {
  position: absolute; /* Không dùng absolute để chiếm chỗ thật */
  width: 50%;         /* Chỉ chiếm nửa màn hình */
  /* aspect-ratio: 3 / 1.2; */
  top:0;
  left:-3%;
  z-index: 0;
  overflow: hidden;
}

.sg-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.info-box {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-content {
  padding: 5% 3%;
  width: 100%;
  font-size: clamp(14px, 2.5vw, 18px);
  line-height: 1.6;
  color: #222;
  word-break: break-word;
  font-weight: bold;
  text-align: start;
  box-sizing: border-box; /* Đảm bảo không vượt khung */
}

/* 🎯 Subtitle frame luôn nằm đúng vị trí so với khung content */
.subtitle-frame-wrapper {
  position: absolute;
  top: -8%;
  left: 3%;
  width: 22%;
  max-width: 240px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.subtitle-frame {
  width: 100%;
  height: auto;
}

.subtitle-text {
  position: absolute;
  font-size: 16px;
  font-weight: bold;
  color: #003300;
  text-align: center;
  white-space: nowrap;
}

.subtitle-spacer {
  height: 40px;
}

@keyframes bgZoom {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.1); }
  100% { transform: scale(1); }
}

  .creation-title {
        font-size: 70px;
    }

@media screen and (max-width: 1024px) {

.creation-tech-box {
  padding: 32px;
}

.creation-title {

  font-size: 60px;

}
.creation-description {
  font-size: 16px;
}

.subtitle-frame-wrapper {

    top: -12%;

    left: 3%;
    width: 30%;
    max-width: 240px;
}

.subtitle-text {
  font-size: 14px;
}

}

@media screen and (max-width: 768px) {

   .subtitle-spacer {
    height: 40px;
  }
 .info-content {
    font-size: 16px;
    padding: 6% 4%;
  }

 .creation-tech-box {
    padding: 24px;
  }

  .creation-title {

    font-size: 54px;

  }

  .creation-description {
    font-size: 16px;
  }

   .subtitle-frame-wrapper {
    top: -9%;
    left: 4%;
    width: 100%;
    max-width: 170px;
  }

  .subtitle-text {
    font-size: 14px;
  }
}


@media screen and (max-width: 600px) {
  .subtitle-frame-wrapper {
    top: -8%;
    left: 4%;
    width: 100%;
    max-width: 160px;
  }

  .subtitle-text {
    font-size: 12px;
  }
.sg-header {

  top:100px;

}

.creation-title {
        font-size: 44px;
    }


}
@media screen and (max-width: 480px) {

  .subtitle-frame-wrapper {

    top: -5%;
    left: 4%;
    width: 100%;
    max-width: 140px;
  }

  .subtitle-text {

  font-size: 12px; 


}
  .creation-tech-box {
    padding: 20px;
  }

  .creation-title {

    font-size: 40px;
    line-height: 1.3;
  }

  .creation-description {
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
  }


  .info-content {
    font-size: 14px;
    padding: 8% 4%;
    line-height: 1.5;
  }
  .subtitle-spacer {
    height: 50px;
  }
}



@media screen and (max-width: 360px) {
  .subtitle-frame-wrapper {
    top: 0%;
    left: 4%;
    width: 100%;
    max-width: 100px;
  }

  .subtitle-text {
  font-size: 9px; /* tự co giãn */

}
.creation-title {
        font-size: 34px;
    }
}