/* Facilities Section */
.facilities-section {
  padding: 5rem 0;
  background-color: #ffffff;
}

.facilities-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.facilities-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 4rem;
  text-align: center;
  width: 100%;
}

/* Restore and style the facilities logo */
.facilities-logo {
  /* max-width: 180px; */
  height: auto;
  display: block;
  /* margin: 0 auto 1.5rem auto; */
  margin-bottom: -1rem;
}

.facilities-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #1a1a1a;
  margin: 0;
  text-align: center;
  width: 100%;
}

/* Change to a simple flex layout with wrapping */
.facilities-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 0; /* vertical gap only */
}

/* Remove the row concept, just have items */
.facility-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: calc(20% - 0.5rem); /* 5 items per row on desktop */
  margin-bottom: 1rem;
}

.facility-icon-container {
  width: 100px;
  height: 100px;
  background-color: #f5f5f5;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.facility-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.8;
}

.facility-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #333;
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
  .facility-item {
    width: calc(33.333% - 1rem); /* 3 items per row on tablets */
  }
}

@media (max-width: 767.98px) {
  .facilities-section {
    padding: 3rem 0;
  }
  
  .facilities-title {
    font-size: 2.5rem;
  }
  
  .facilities-grid {
    gap: 1.5rem 0; /* Reduced vertical gap */
  }
  
  .facility-item {
    width: calc(50% - 0.3rem); /* 2 items per row on mobile */
    margin-bottom: 0.5rem; /* Less bottom margin */
  }
  
  .facility-icon-container {
    width: 150px; /* Bigger icons on mobile */
    height: 150px;
    padding: 1.0rem;
  }
}

/* Even smaller screens */
@media (max-width: 480px) {
  .facilities-grid {
    gap: 1rem 0; /* Even less gap on very small screens */
  }
  
  .facility-item {
    margin-bottom: 0.25rem;
  }
  
  .facility-icon-container {
    width: 90px;
    height: 90px;
    padding: 1rem;
  }
}

@media (max-width: 575.98px) {
  .facilities-grid {
    gap: 1rem;
  }
  
  .facility-item {
    width: calc(50% - 0.5rem);
    max-width: none;
    margin-bottom: 1.5rem;
  }
  
  .facility-icon-container {
    width: 120px;
    height: 120px;
  }
  
  .facility-name {
    font-size: 0.9rem;
  }
} 