/* ==========================================
   VIDEOS PAGE
========================================== */

#videosPageContainer {
  width: 100%;

  max-width: 1400px;

  margin: 0 auto;

  padding: 4rem 20px 8rem;

  box-sizing: border-box;
}

/* ==========================================
   HERO
========================================== */

.videos_hero {
  width: 100%;

  text-align: center;

  margin-bottom: 4rem;
}

.videos_hero h1 {
  font-size: 3.5rem;

  font-weight: 800;

  line-height: 1.2;

  margin-bottom: 1rem;

  color: #111;
}

.videos_hero p {
  max-width: 850px;

  margin: 0 auto;

  font-size: 1.5rem;

  line-height: 1.8;

  color: #555;
}

/* ==========================================
   VIDEO GRID
========================================== */

.videos_grid {
  width: 100%;

  display: grid !important;

  grid-template-columns: repeat(3, minmax(320px, 1fr));

  gap: 3rem;

  align-items: stretch;
}

/* ==========================================
   VIDEO CARD
========================================== */

.video_card {
  width: 100%;

  min-width: 0;

  background: #fff;

  border-radius: 20px;

  overflow: hidden;

  border: 1px solid #e5e7eb;

  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);

  transition: 0.3s ease;

  display: flex;

  flex-direction: column;
}

.video_card:hover {
  transform: translateY(-5px);

  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.08);
}

/* ==========================================
   VIDEO WRAPPER
========================================== */

.video_wrapper {
  position: relative;

  width: 100%;

  aspect-ratio: 16 / 9;

  overflow: hidden;

  background: #000;

  flex-shrink: 0;
}

.video_wrapper iframe {
  position: absolute;

  inset: 0;

  width: 100%;

  height: 100%;

  border: none;

  display: block;
}

/* ==========================================
   CONTENT
========================================== */

.video_content {
  padding: 1.5rem;

  flex: 1;
}

.video_content h3 {
  font-size: 1.15rem;

  font-weight: 700;

  line-height: 1.5;

  color: #111;

  margin-bottom: 0.8rem;
}

.video_content p {
  font-size: 0.95rem;

  line-height: 1.8;

  color: #555;
}

/* ==========================================
   TABLET
========================================== */

@media screen and (max-width: 1024px) {
  .videos_grid {
    grid-template-columns: repeat(2, minmax(280px, 1fr));
  }

  .videos_hero h1 {
    font-size: 2.7rem;
  }
}

/* ==========================================
   MOBILE
========================================== */

@media screen and (max-width: 768px) {
  #videosPageContainer {
    padding-left: 15px;
    padding-right: 15px;
  }

  .videos_grid {
    grid-template-columns: 1fr;
  }

  .videos_hero {
    margin-bottom: 3rem;
  }

  .videos_hero h1 {
    font-size: 2rem;

    line-height: 1.3;
  }

  .videos_hero p {
    font-size: 1rem;
  }

  .video_content {
    padding: 1.1rem;
  }

  .video_content h3 {
    font-size: 1rem;
  }

  .video_content p {
    font-size: 0.9rem;
  }
}