/* Page base */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f5f5f5;
}

/* Layout for 3 cards */
.container {
  display: flex;
  gap: 20px;
  padding: 40px;
}

/* Card container */
.card {
  position: relative;
  flex: 1;
  overflow: hidden;
  cursor: pointer;
}

/* Image styling + zoom effect */
.card img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}

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

/* Bottom overlay */
.info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;

  padding: 20px;

  height: 80px;

  /* Gradient fade like your example */
  background: linear-gradient(
    to top,
    rgba(255,255,255,1) 65%,
    rgba(255,255,255,0.85) 80%,
    rgba(255,255,255,0)
  );

  transition: all 0.4s ease;
}

/* Title */
.info h3 {
  margin: 0;
  font-size: 22px;
  font-weight: bold;
  display: inline-block;

  /* Red underline accent */
  border-bottom: 3px solid #cc0000;
  padding-bottom: 5px;
}

/* Hidden paragraph */
.info p {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.4;

  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

/* Hover expansion */
.card:hover .info {
	height: auto;
  	min-height: 180px;

}

/* Reveal text */
.card:hover .info p {
  opacity: 1;
  transform: translateY(0);
}


/* ✅ Mobile layout fix */
@media (max-width: 768px) {
  .container {
    flex-direction: column;  /* stack cards vertically */
    gap: 20px;               /* space between cards */
    padding: 20px;
  }

  .card {
    width: 100%;             /* full width */
  }
}

@media (max-width: 768px) {
.info {
    height: auto;          /* always expanded */
  }

  .info p {
    opacity: 1;            /* always visible */
    transform: none;
  }
}

