.speciality-section {
  padding: 40px 20px;
}

.logo-image {
  text-align: center;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.logo-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: inline-block;
  border-radius: 8px;
  object-fit: contain;
}
.special-card-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  row-gap: 40px;
}

.special-card {
  flex: 0 0 100%;
  max-width: 100%;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease;
}

.special-card:hover {
  transform: translateY(-5px);
}

.special-card-img {
  position: relative;
  width: 100%;
  padding-top: 100%; 
}

.special-card-img img:first-child {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  height: 80%;
  object-fit: contain;
  transform: translate(-50%, -50%);
}

.overlay-center-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.overlay-center-img img {
  width: 28px!important;
  height: 28px;
  object-fit: contain;
  opacity: 0.7;
}

/* 3 cards per row on tablets and up */
@media (min-width: 768px) {
  .special-card {
    flex: 0 0 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
  }
}


.overlay-center-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0; 
  z-index: 2;
 width: 80px;
  height: 80px;
  background-color:#39b54a; 
  border-radius: 50%;
  transition: 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.special-card-img:hover .overlay-center-img {
  opacity: 1; 
}
.overlay-center-img img {
  width: 30px;
  height: 30px;
  display: block;
}
.img-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
}

.img-modal.show {
  display: flex;
}

.img-modal-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.img-modal-close {
  position: absolute;
  top: 20px;
  right: 290px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
}


@media (max-width: 991px) {
  .special-card {
    flex: 0 0 calc(50% - 20px);
    max-width: calc(50% - 20px);
  }
}

@media (max-width: 500px) {
  .special-card {
    flex: 0 0 100%;
    max-width: 100%;
  }
}
