/* ===== Block 02 – Videos Section with Overlapping Title Bar ===== */
.unp-video-block {
  direction: rtl;
  margin-top: 40px;
  position: relative;
}

.unp-video-block .section-inner {
  border: 2px solid #0f7c90;
  border-radius: 6px;
  padding: 20px;
  background: #fff;
  position: relative;
}

/* Title overlaps border */
.unp-video-block .section-title {
  position: absolute;
  top: -40px;
  right: 50%;
  transform: translateX(50%);
  background: #0f7c90;
  color: #fff;
  font-weight: 700;
  padding: 7px 50px;
  font-size: 20px;
  line-height: 1.4;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
  white-space: nowrap;
}

/* Grid */
.unp-video-block .video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

/* Video card */
.unp-video-block .video-post {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.unp-video-block .video-post:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 8px rgba(0,0,0,.1);
}

/* Thumbnail */
.unp-video-block .thumb-box {
  position: relative;
}
.unp-video-block .thumb-box img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform .3s ease;
}
.unp-video-block .video-post:hover .thumb-box img {
  transform: scale(1.05);
}

/* Play Icon */
.unp-video-block .play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgb(197 62 62);
  color: #fff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  line-height: 50px;
  font-size: 18px;
}

/* Title below image */
.unp-video-block .title {
  font-size: 20px;
  line-height: 1.5;
  padding: 10px;
  margin: 0;
  color: #111;
}
.unp-video-block .title a {
  color: #111;
  text-decoration: none;
}
.unp-video-block .title a:hover {
  color: #0f7c90;
}

/* Bottom categories */
.unp-video-block .bottom-cats {
  text-align: center;
  margin-top: 20px;
  border-top: 1px solid #ddd;
  padding-top: 10px;
}
.unp-video-block .cat-btn {
  display: inline-block;
  background: #0f7c90;
  color: #fff;
  padding: 5px 12px;
  margin: 4px;
  border-radius: 4px;
  font-size: 18px;
  text-decoration: none;
  transition: background .25s ease;
}
.unp-video-block .cat-btn:hover {
  background: #0c5f70;
}

/* Responsive */
@media (max-width: 992px) {
  .unp-video-block .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .unp-video-block .section-title {
    font-size: .95rem;
    padding: 5px 18px;
  }
}
@media (max-width: 600px) {
  .unp-video-block .section-inner {
    padding: 12px;
  }
  .unp-video-block .video-grid {
    grid-template-columns: 1fr;
  }
  .unp-video-block .thumb-box img {
    height: 200px;
  }
}