/* ===================================================
   STANDARD IMAGE OVERLAY TYPOGRAPHY & CARD STANDARDS
   =================================================== */
.casestudy-single, .card-overlay {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #111;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.casestudy-single img, .card-overlay img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.casestudy-single:hover img, .card-overlay:hover img {
  transform: scale(1.05);
}

.casestudy-single .casestudy-content, .card-overlay .card-overlay-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 20px 18px;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.45) 55%, rgba(10, 10, 10, 0.9) 100%);
  z-index: 2;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.casestudy-single .casestudy-content h4,
.casestudy-single .casestudy-content h3,
.card-overlay .card-overlay-content h4,
.card-overlay .card-overlay-content h3 {
  font-family: var(--font-lora), "Lora", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  color: #ffffff;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.casestudy-single .casestudy-content h4 a,
.casestudy-single .casestudy-content h3 a,
.card-overlay .card-overlay-content h4 a,
.card-overlay .card-overlay-content h3 a {
  color: #ffffff;
  text-decoration: none;
}

.casestudy-single .casestudy-btn, .card-overlay .card-overlay-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  line-height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  text-align: center;
  font-size: 16px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.casestudy-single:hover .casestudy-btn, .card-overlay:hover .card-overlay-btn {
  background: #ffffff;
  color: #111111;
  transform: rotate(45deg);
}
