/* Fix spacing below the navigation bar */
main {
  padding-top: 100px; /* adjust depending on navbar height */
}

.content-container {
  margin-top: 40px;
}

.safety-main {
  padding: 50px 8%;
  background-color: #f9fafb;
  font-family: "Poppins", sans-serif;
}

.intro-section {
  text-align: center;
  margin-bottom: 40px;
}

.intro-section h1 {
  font-size: 2.3rem;
  color: #2b3a67;
  font-weight: 700;
}

.intro-section p {
  color: #6b7280;
  font-size: 1rem;
  margin-top: 8px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 35px;
}

.filter-btn {
  background: #e0e7ff;
  border: none;
  color: #2b3a67;
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
  background: #2b3a67;
  color: #fff;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.video-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.thumbnail {
  position: relative;
  overflow: hidden;
}

.thumbnail img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}

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

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.video-card:hover .overlay {
  opacity: 1;
}

.play-icon {
  font-size: 2.5rem;
  color: #fff;
}

.video-content {
  padding: 15px 18px;
  text-align: center;
}

.video-content h3 {
  font-size: 1.05rem;
  color: #1f2937;
  font-weight: 600;
  margin-bottom: 6px;
}

.video-content .category {
  font-size: 0.9rem;
  color: #6b7280;
}
