.video-background-container {
  position: relative;
  width: 100%;
  height: 50vh;
  overflow: hidden;
}

.video-background {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: -2;
}

/* overlay สีน้ำเงินเข้ม */
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /*background-color: rgba(15, 5, 204, 0.7); /* #0f05cc โปร่ง 60% */
  background-color: rgba(12, 1, 147, 0.7); /* #0f05cc โปร่ง 60% */
  z-index: -1;
}


.video-overlay-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.video-overlay-content h1 {
  color: #fff;
  font-size: 3.5em;
  text-align: center;
  margin-top: 0;
}
.video-overlay-content h1 span {
  color: #ffdc00;
}

/* ปุ่ม Register */
.register-btn {
  background-color: white;
  color: #0f05cc;
  padding: 14px 32px;
  font-size: 18px;
  font-weight: 600;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: capitalize;
}

.register-btn:hover {
  background-color: transparent;
  color: white;
  box-shadow: inset 0 0 0 2px white;
}

@media (max-width: 991px) {
  .video-overlay-content h1 {
    font-size: 2.5em;
  }
  .register-btn {
    font-size: 16px;
    padding: 12px 30px;
  }
}

@media (max-width: 767px) {
  .video-background-container {
    height: 40vh;
  }
  .video-overlay-content h1 {
    font-size: 1.8em;
    padding-bottom: 10px;
  }
  .register-btn {
    font-size: 14px;
    padding: 12px 25px;
    width: fit-content;
  }
}