.centers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 80%;
    padding: 20px;
    row-gap: 70px;
    column-gap: 25px;
    margin: 0 auto;
}

.center-item {
    position: relative;
    border-radius: 15px;
    padding: 20px;
    padding-top: 40px;
    background-color: #fff;
    text-align: center;
    box-shadow: 0 0 15px #acacac;
    display: flex;
    flex-direction: column;
    height: 100%; /* Make all items the same height */
  }
  
  .center-content {
    margin-top: 20px;
    flex-grow: 1; /* Allow content to expand and fill available space */
    display: flex;
    flex-direction: column;
  }

.center-image {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.center-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



.center-content h3 {
    font-size: 1.7rem;
    margin-bottom: 10px;
    font-weight: 600;
    color: #4F5252;
}

.center-content h3:hover {
    color: black;
}

.centers-grid a:hover
{
    text-decoration: none;
    background: #00B0BE;
}

.center-content a:hover {
    text-decoration: none;
  
}
@media (max-width: 768px) {
    .centers-grid {
      grid-template-columns: repeat(2, 1fr);
      max-width: 90%;
      row-gap: 60px;
      column-gap: 20px;
    }
  }