#Facts {
  padding: 50px 20px;
  text-align: center;
  background-color: #f9f9f9;
}

#Facts h2 {
  font-size: 42px;    
  line-height: 1.2;     
  margin-bottom: 50px;  
  position: relative;
  display: inline-block;
  font-weight: 700;     
  color: #282828;       
  text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

#Facts h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: #282828;
  margin: 6px auto 0;
  border-radius: 2px;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); 
  gap: 25px; 
  max-width: 1200px;
  margin: 0 auto;
}

.fact-item {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 350px; 
  cursor: pointer;
  position: relative;
}

.fact-item img {
  width: 100%;
  height: 250px; 
  object-fit: cover;
  transition: transform 0.5s ease;
}

.fact-item p {
  padding: 15px;
  font-size: 16px;
  color: #333;
  line-height: 1.5;
}

/* Card hover effect */
.fact-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.3);
}

/* Image moves up and zooms on hover */
.fact-item:hover img {
  transform: translateY(-15px) scale(1.12);
}
