
.resources-image-box {
  position: relative;
  overflow: hidden;
  height: 100%;
  background: #000;
}

.resources-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.resources-image-box:hover img {
  transform: scale(1.05);
}

.resources-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  transition: background 0.3s ease;
  flex-direction: column;
}

.resources-title-box {
  transition: all 0.4s ease-in-out;
}

.resources-title-box .resources-title {
  font-weight: 600;
  font-size:18px;
  line-height:1.3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.resources-hidden-text {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.4s ease-in-out;
  max-height: 0;
  overflow: hidden;
}
.resources-hidden-text p{color:#fff;}

.resources-image-box:hover .resources-overlay {
  background: rgba(0, 0, 0, 0.85);
}

.resources-image-box:hover .resources-hidden-text {
  opacity: 1;
  transform: translateY(0);
  max-height: 500px;
}

.resources-hidden-text p {
  margin: 15px 0 10px;
}

.cta-button {
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.cta-button:hover {
  color: #f0ad4e;
}