.video-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

/* Video Card Styling */
.video-card {
  flex: 1 1 calc(33.333% - 20px);
  max-width: calc(33.333% - 20px);
  background: white;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.video-card:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  z-index: 2;
}
/* Video Title */
.video-card h3 {
  font-size: 16px;
  text-align: center;
  margin-bottom: 10px;
  font-weight: bold;
}

/* Responsive video with 16:9 aspect ratio */
.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
}

.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* ✅ MOBILE: 1 video per row */
@media (max-width: 768px) {
  .video-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

.invisible-line{
  margin-top: 120px; 

}



.iframe-video-card {
  flex: 1 1 calc(33.333% - 20px);
  max-width: calc(33.333% - 20px);
  background: #fff;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  text-align: center;
}
.iframe-video-card h3 {
  font-size: 16px;
  text-align: center;
  margin-bottom: 10px;
  font-weight: bold;
  }
.iframe-video-card:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  z-index: 2;
}
.iframe-video-card {
  font-size: 16px;
  margin-bottom: 15px;
  color: #333;
}

/* Square iframe container */
.square-video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 aspect ratio */
  overflow: hidden;
  border-radius: 8px;
}

.square-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Responsive: 1 per row on smaller screens */
@media (max-width: 768px) {
  .iframe-video-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
}
