/* ==========================================================
   Job Posting View Cards
========================================================== */

.posting-card {
  margin-bottom: 30px;
  width: 100%;
  transition: transform .25s ease, box-shadow .25s ease;
}

/* Image Container */
.postingimageblock {
  position: relative;
  width: 100%;
  max-width: 370px;
  height: 245px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0,0,0,.15);
  transition: box-shadow .25s ease;
}

/* Image */
.postingimageblock img {
  width: 100%;
  height: 245px;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}

/* Gradient Overlay */
.postingimageblock::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.85) 0%,
    rgba(0,0,0,.55) 35%,
    rgba(0,0,0,.20) 65%,
    rgba(0,0,0,0) 100%
  );
  z-index: 1;
  transition: background .3s ease;
}

/* Hover Effects */
.posting-card:hover {
  transform: translateY(-4px);
}

.posting-card:hover .postingimageblock {
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
}

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

.posting-card:hover .postingimageblock::after {
  background: linear-gradient(
    to top,
    rgba(0,0,0,.65) 0%,
    rgba(0,0,0,.40) 35%,
    rgba(0,0,0,.15) 65%,
    rgba(0,0,0,0) 100%
  );
}

/* Overlay Text */
.postingoverlay {
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 15px;
  z-index: 2;
}

/* Title */
.postingtitleblock {
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
}

.postingtitleblock,
.postingtitleblock a {
  color: #ffffff;
  text-decoration: none;
  text-shadow: 2px 2px 6px rgba(0,0,0,.8);
}

.postingtitleblock a:hover {
  color: #f6b028;
}

/* Date */
.postingdateblock {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 600;
  text-shadow: 2px 2px 6px rgba(0,0,0,.8);
}

/* Tablet */
@media (max-width: 992px) {
  .postingimageblock {
    max-width: 100%;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .postingimageblock {
    width: 100%;
    max-width: 100%;
    height: 245px;
  }

  .postingimageblock img {
    width: 100%;
    height: 245px;
  }

  .postingtitleblock {
    font-size: 1.25rem;
  }

  .postingdateblock {
    font-size: .95rem;
  }
}