.section-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.section-subtitle {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2563eb;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #1e293b;
  position: relative;
  display: inline-block;
}

.title-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #283891, #3b82f6);
  margin: 12px auto 0;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.section-header:hover .title-divider {
  width: 100px;
}

.facility-card {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.facility-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 35px -10px rgba(40, 56, 145, 0.2);
}

/* Image Wrapper with Ratio */
.facility-img-wrapper {
  position: relative;
  width: 100%;
  padding-top: 75%; /* 4:3 Aspect Ratio */
  overflow: hidden;
  background-color: #e2e8f0;
}

.facility-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.facility-card:hover .facility-img {
  transform: scale(1.08);
}

/* Image Overlay */
.facility-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.4) 0%,
    transparent 60%
  );
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.facility-card:hover .facility-overlay {
  opacity: 0.2;
}

.facility-banner {
  background-color: #283891; /* Original dark blue color theme */
  color: #ffffff;
  padding: 1.25rem 1rem;
  text-align: center;
  transition:
    background-color 0.3s ease,
    padding 0.3s ease;
  position: relative;
  z-index: 2;
}

.facility-card:hover .facility-banner {
  background-color: #1e2b73;
}

.facility-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.facility-title i {
  font-size: 1rem;
  opacity: 0.85;
  transition: transform 0.3s ease;
}

.facility-card:hover .facility-title i {
  transform: scale(1.2);
  opacity: 1;
}
