.case-study-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 4 columns */
  grid-gap: 20px; /* Spacing between tiles */
  max-width: 100%;
  margin: 0 auto;
  justify-content: center;
}

.tile {
/*   width: 280px; /* Fixed width for each tile */ */
/*   height: 420px; /* Fixed height for each tile */ */
  border: 1px solid #ccc;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Elevation on hover */
}

.tile-header {
  height: 160px; /* Fixed height for the header image */
  overflow: hidden;
  position: relative;
}

.tile-header img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures the image covers the container */
}

.tile-body {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tile-type {
  font-size: 14px;
  font-weight: bold;
  color: #0d5e6e;
/*   margin-bottom: 10px; */
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tile-title {
  font-size: 18px;
  font-weight: bold;
/*   margin: 0; */
  color: #0d5e6e;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
/*   margin-bottom: 10px; */
  line-height: 1.3;
  overflow-wrap: break-word; /* Allows long titles to wrap */
  text-align: center;
}

.tile-description {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 15px;
  height: 100%;
/*   max-height: 54px; /* Controls height */
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
/*   -webkit-line-clamp: 3; /* Limit description to 3 lines */ */
  font-family: 'Arial', sans-serif;
}

.read-more {
  color: #0d5e6e;
  font-weight: bold;
  text-decoration: none;
  align-self: flex-start;
  padding: 8px 16px;
  border: 1px solid #0d5e6e;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.read-more:hover {
  background-color: #0d5e6e;
  color: #fff;
  text-shadow: none;
}

/* Responsive Layout for smaller screens */
@media (max-width: 1024px) {
  .case-study-tiles {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .case-study-tiles {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .case-study-tiles {
    grid-template-columns: 1fr;
    width:100%;
  }
}
