/* search */
/* .search-bar {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1435px;
  margin: 0 auto;
  background: #e3effa;
  border-radius: 30px;
  padding: 11px 20px 11px 47px;
  margin-top: 20px;
}

.search-icon {
  position: absolute;
  left: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-size: 20px;
  color: #183b59;
  font-family: "Inter", Arial, sans-serif;
  font-weight: 500;
}
.search-input::placeholder {
  color: #183b5933;
  opacity: 20%;
  font-size: 20px;
  opacity: 0.8;
} */

/* Hero Section */
.hero {
  background-image: url("/images/video-collection-bg.svg");
  background-repeat: no-repeat;
  border-radius: 30px;
  position: relative;
  overflow: hidden;
  max-width: 1435px;
  height: 780px;
  margin: 0 auto;
  margin-top: 50px;
  padding: 47px 50px;
  z-index: 2;
}

.hero-ill {
  object-fit: contain;
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: -1;
  width: 100%;
}

.hero-title {
  font-family: "Inter";
  font-weight: 900;
  font-size: 76px;
  line-height: 1.2;
  color: #ffffff;
  text-transform: uppercase;
}

.hero-subtitle {
  font-family: "Inter";
  font-weight: 400;
  font-size: 36px;
  color: #ffffff;
  max-width: 512px;
  margin-top: 50px;
}

.hero-desc {
  font-family: "Inter";
  font-weight: 400;
  font-size: 24px;
  color: #ffffff;
  max-width: 450px;
  margin-top: 20px;
}

@media screen and (max-width: 1440px) {
  .hero {
    padding: 40px;
    margin-top: 40px;
  }

  .hero-title {
    font-size: 56px;
  }

  .hero-subtitle {
    font-size: 30px;
    max-width: 450px;
    margin-top: 30px;
  }

  .hero-desc {
    font-size: 20px;
    max-width: 350px;
  }
}

@media screen and (max-width: 1150px) {
  .hero {
    padding: 30px;
    margin-top: 30px;
  }
}

@media screen and (max-width: 1060px) {
  .hero {
    padding: 25px;
  }
}

@media screen and (max-width: 820px) {
  .hero {
    padding: 20px;
  }
}

@media screen and (max-width: 580px) {
  .hero {
    max-height: 540px;
  }

  .hero-title {
    font-size: clamp(25px, 6vw, 46px);
  }

  .hero-subtitle {
    font-size: clamp(18px, 6vw, 25px);
    max-width: 350px;
    margin-top: 15px;
  }

  .hero-desc {
    font-size: 16px;
    max-width: 300px;
  }
}

@media screen and (max-width: 360px) {
  .hero-desc {
    font-size: clamp(14px, 6vw, 18px);
    max-width: 300px;
  }
}

/* Video Collection Section */
.video-section {
  margin-top: 100px;
  padding: 80px 40px 100px;
  background-image: url("/images/video-subjects-bg.svg");
}

.video-section-title {
  font-family: "Inter";
  font-weight: 900;
  font-size: clamp(18px, 3vw + 1rem, 36px);
  color: #183b59;
  text-transform: uppercase;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px 20px;
  margin-top: 50px;
  align-items: start;
  min-height: 400px; /* Reserve space to prevent layout shift when content loads */
}

.video-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card-image {
  position: relative;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  background-color: #f5f5f5;
  aspect-ratio: 16 / 9;
}

.thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-card:hover .thumbnail-img {
  transform: scale(1.02);
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
  opacity: 50%;
  z-index: 2;
}

.video-card:hover .play-icon {
  transform: translate(-50%, -50%) scale(1.1);
  opacity: 100%;
}

.video-text {
  font-family: "Inter";
  font-weight: 500;
  font-size: clamp(13px, 2vw + 1rem, 20px);
  color: #183b59;
  margin-top: 10px;
  line-height: 1.3;
}

.view-all-card .card-image {
  background-color: #b0e881;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: auto;
}

.view-all-content {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
}

.video-card .card-image {
  transition: all 0.3s ease;
}

.video-card:hover .card-image {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.view-all-content span {
  font-family: "Inter";
  font-weight: 700;
  font-size: clamp(14px, 2vw + 1rem, 24px);
  color: #183b59;
}

@media screen and (max-width: 1440px) {
  .video-section {
    padding: 40px;
    margin-top: 40px;
  }
}

@media (max-width: 1024px) {
  .video-grid {
    margin-top: 30px;
  }

  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media screen and (max-width: 950px) {
  .video-section {
    padding: 30px;
    margin-top: 30px;
  }

  .video-grid {
    gap: 20px;
  }
}

@media screen and (max-width: 768px) {
  .video-section {
    padding-left: 20px;
    padding-right: 20px;
    margin-top: 20px;
  }
}

@media (max-width: 600px) {
  .video-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* physics */

.physics {
  margin-top: 100px;
}

.view-all-card .card-physics {
  background-color: #86bcfc;
}

@media (max-width: 1440px) {
  .physics {
    margin-top: 60px;
  }
}

/* Video Popup Styles */
#video-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#video-popup .popup-container {
  position: relative;
  width: 90%;
  max-width: 1100px;
  max-height: 95vh;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

#video-player {
  width: 100%;
  height: auto;
  max-height: calc(95vh - 40px);
  display: block;
}

.popup-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s ease;
}

.popup-close-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

.popup-close-btn img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
  #video-popup .popup-container {
    width: 95%;
    max-height: 90vh;
  }

  #video-player {
    max-height: calc(90vh - 40px);
  }

  .popup-close-btn {
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
  }

  .popup-close-btn img {
    width: 16px;
    height: 16px;
  }
}
