.container-1 {
  margin-top: 5em;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}


.cardfacility-inner {
  position: relative;
  width: inherit;
  height: 20rem;
  /* slightly taller */
  border-radius: 1.5rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cardfacility-inner:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
}

.imgBox {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.imgBox img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.cardfacility-inner:hover .imgBox img {
  transform: scale(1.1);
  filter: brightness(0.8);
}

/* Overlay for main_facility_title on hover */
.overlayTitle {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(35, 5, 89, 0.6);
  /* dark purple overlay */
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  padding: 1rem;
  transition: opacity 0.3s ease;
  border-radius: 1.5rem;
}

.cardfacility-inner:hover .overlayTitle {
  opacity: 1;
}

/* Icon Circle */
.icon {
  position: absolute;
  bottom: -0.5rem;
  right: -0.5rem;
  width: 5.5rem;
  height: 5.5rem;
     background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
  border-top-left-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s;
}

.icon:hover {
  transform: scale(1.15);
}

.iconBox {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
}

/* Content Section */
.content {
  padding: 1rem;
  text-align: center;
}

.content h3 {
  text-transform: capitalize;
  font-size: clamp(1.2rem, 1.4vw, 1.5rem);
  color: #230559;
  /* change from black for variation */
  transition: color 0.3s;
}

.content h3:hover {
   background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
}

section {
  padding-block: min(20vh, 2rem);
  width: calc(min(76.5rem, 90%));
  margin-inline: auto;
  color: #111;
}

.cardfacility-inner:hover {
  transform: scale(1);
  transition: transform 0.3s ease-in-out;
}

.iconBox {
   background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
  color: white;
  font-weight: bold;
}

section {
  padding-block: min(20vh, 2rem);
  width: calc(min(76.5rem, 90%));
  margin-inline: auto;
  color: #111;
}

section a {
  display: inline-block;
  text-decoration: none;
}

.container-1 {
  margin-top: 5em;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 2rem;
}

.cardfacility:nth-child(1) .box .icon .iconBox {
  background: #230559;
}

.cardfacility:nth-child(2) .box .icon .iconBox {
  background: #230559;
}

.cardfacility:nth-child(3) .box .icon .iconBox {
  background: #230559;
}

.content {
  padding: 0.938rem 0.625rem !important;
}

.content h3 {
  text-transform: capitalize;
  font-size: clamp(1.5rem, 1.3909rem + 0.4364vw, 10px) !important;
}

.cardfacility-inner {
  position: relative;
  width: 100%;
  height: 20rem;
  background: var(--clr);
  border-radius: 1.25rem;
  border-bottom-right-radius: 0;
  overflow: hidden;
}

.box {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 1.25rem;
  overflow: hidden;
}

.imgBox {
  position: absolute;
  inset: 0;
}

.imgBox img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.facilities_img{
  width:32px;
}

.fac_modal{
  width:40px;
}