/* ==============================================
   Hdev Video Card
   ============================================== */

.hdev-video {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin-bottom: 0;
  color: var(--hdev-text);
  text-decoration: none;
}

.hdev-video__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--hdev-radius);
  background-color: #1f2430;
}

.hdev-video__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.2) 100%);
  pointer-events: none;
}

.hdev-video__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hdev-video__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  max-width: calc(100% - 24px);
  padding: 5px 11px;
  border-radius: 999px;
  background-color: #fff;
  color: var(--hdev-orange-darker);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
}

.hdev-video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background-color: var(--hdev-orange-btn);
  color: #fff;
  font-size: 26px;
  box-shadow: 0 0 0 8px rgba(229, 115, 26, 0.25);
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hdev-video__play .hdev-icon {
  margin-left: 3px;
}

.hdev-video__title {
  display: block;
  margin-top: 14px;
  color: var(--hdev-text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  transition: color 0.2s ease;
}

a.hdev-video:hover .hdev-video__img {
  transform: scale(1.04);
}

a.hdev-video:hover .hdev-video__play {
  box-shadow: 0 0 0 12px rgba(229, 115, 26, 0.3);
  transform: translate(-50%, -50%) scale(1.06);
}

a.hdev-video:hover .hdev-video__title {
  color: var(--hdev-orange-btn);
}

@media (max-width: 549px) {
  .hdev-video__play {
    width: 54px;
    height: 54px;
    font-size: 22px;
  }

  .hdev-video__title {
    font-size: 15px;
  }
}
