.about-facts {
  padding-top: 50px;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  text-align: center;
  font-family: "Open Sans", sans-serif;
  background-color: #00a5ff;
}

.about-facts h2 {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 0;
}

.about-facts-grid {
  display: flex;
  flex-direction: row;
}

.fact {
  min-width: 250px;
  flex: 1;
  padding: 60px 30px;
  color: #003552; /* dark text */
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #00a5ff;
}

/* Icon styling */
.fact img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
}

/* Title */
.fact h3 {
  font-size: 1.8rem;
  font-weight: 900;
  color: #003552;
  margin-bottom: 5px;
}

/* Paragraph */
.fact p {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  max-width: 300px;
}

@media (max-width: 1024px) {
  .about-facts {
    padding-top: 30px;
  }

  .about-facts h2 {
    font-size: 1.4rem;
    padding: 0 20px; /* Prevents text hitting screen edges */
  }

  .about-facts-grid {
    flex-direction: column; /* Stacks the facts vertically */
    align-items: center;
  }

  .fact {
    width: 100%;
    min-width: unset; /* Removes the minimum width restriction */
    padding: 30px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* Optional: adds separation */
  }

  .fact:last-child {
    border-bottom: none;
  }

  .fact img {
    width: 100px; /* Slightly smaller icons for mobile */
    height: 100px;
  }

  .fact h3 {
    font-size: 1.5rem;
  }

  .fact p {
    font-size: 0.95rem;
    max-width: 90%; /* Allows text to use more horizontal space */
  }
}
