.video-top {
  display: flex;
  justify-content: center;
  margin-top: 3%;
  margin-bottom: 3%;
}
.video-desc-container {
  width: 80%;
  display: flex;
}

.video-description {
  width: 50%;
  margin-left: 30px;
}

.video-desc-text p {
  font-size: 16px;
}

.video-container {
  position: relative;
  overflow: hidden;
  width: 50%;
  aspect-ratio: 16 / 9;
  max-width: 100%;
  border-style: solid;
  box-shadow: -7px -7px 0px 0px var(--secondary-color-new);
}

/* Blurred video background */
.blur-layer {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(5px) brightness(0.6);
  z-index: 1;
  pointer-events: no;
}

.blur-layer video {
  max-width: 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(3px) brightness(0.6);
  transform: scale(1.05);
  overflow: hidden;
}

/* Overlay with play button and label */
.video-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.overlay-content {
  display: flex;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 10px 18px;
  border-radius: 12px;
  gap: 12px;
  pointer-events: auto; /* clickable */
}

/* Play Button */
.play-button {
  width: 60px;
  height: 60px;
  background-color: orange;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: relative;
}

.play-button::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 18px solid white;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  margin-left: 3px;
}

/* Label text */
.overlay-text {
  color: white;
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}
.responsive-iframe {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
}

.hidden {
  display: none;
}

.video-caption {
  text-align: center;
  color: white;
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  padding: 0 20px;
  z-index: 2;
}

.video-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.video-subtitle {
  font-size: 16px;
  font-weight: 400;
  color: #f0f0f0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@media (max-width: 576px) {
  .video-top {
    flex-direction: column;
    align-items: center;
  }

  .video-desc-container {
    flex-direction: column;
    width: 100%;
    padding: 0 12px;
  }

  .video-description,
  .video-container {
    width: 100%;
    margin-left: 0;
  }

  .video-caption {
    position: absolute;
    bottom: 20px; /* stay at the bottom of video */
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
    padding: 0 15px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.4); /* optional for readability */
    border-radius: 8px;
  }

  .overlay-content {
    flex-direction: column;
    gap: 8px;
    padding: 12px;
  }

  .overlay-text {
    font-size: 14px;
    text-align: center;
  }

  .play-button {
    width: 50px;
    height: 50px;
  }

  .play-button::after {
    border-left: 14px solid white;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
  }
}

@media (max-width: 1024px) {
  .video-desc-container {
    display: block;
    padding-top: 5%;
  }

  .video-description {
    width: 100%;
    margin-left: 0;
    margin-top: 30px;
  }

  .video-description h2 {
    font-size: 18px;
  }

  .video-container {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .play-button {
    width: 40px;
    height: 40px;
  }

  .play-button::after {
    border-left: 12px solid white;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    margin-left: 2px;
  }

  .overlay-text {
    font-size: 14px;
    margin-bottom: 35px;
  }

  .overlay-content {
    padding: 6px 12px;
    gap: 8px;
  }
}

@media (max-width: 800px) {
  .video-title {
    font-size: 16px;
  }

  .video-subtitle {
    font-size: 13px;
  }

  .play-button {
    margin-bottom: 35px;
  }
}

@media (max-width: 576px) {
  .video-caption {
    bottom: 0px;
  }
}
@media (max-width: 1366px) {
  .overlay-text {
    margin-bottom: 0px;
  }
}

@media (max-width: 540px) {
  .overlay-text {
    margin-bottom: 35px;
  }
}
