/* Video Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  transition: all 0.3s ease;
}

.modal-content {
  position: relative;
  background-color: transparent;
  margin: 5% auto;
  padding: 20px;
  width: 80%;
  max-width: 900px;
  animation: modalopen 0.5s;
}

@keyframes modalopen {
  from {opacity: 0}
  to {opacity: 1}
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.close:hover {
  color: #FCB900;
  transform: scale(1.2);
}

#videoContainer {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

#videoContainer iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-thumbnail {
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.video-thumbnail:hover {
  transform: scale(1.02);
}

.video-thumbnail .fa-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  background-color: rgba(252, 185, 0, 0.8);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: all 0.3s ease;
}

.video-thumbnail:hover .fa-play {
  background-color: rgba(252, 185, 0, 1);
  transform: translate(-50%, -50%) scale(1.1);
}

/* Responsive styles */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 10% auto;
  }
  
  #videoContainer {
    padding-bottom: 75%; /* 4:3 aspect ratio for smaller screens */
  }
}
