/* Szolgáltatás előnézet (középső kép) és interakciók */
.sd-img {
  position: relative;
}
.sd-img #service-center-image {
  width: 516px;
  height: 516px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(12, 41, 87, 0.25);
  transition: opacity .3s ease, transform .3s ease, box-shadow .3s ease;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.sd-img #service-center-image.fade {
  opacity: .2;
  transform: scale(.96);
}
.sd-img #service-center-image:hover {
  box-shadow: 0 18px 40px rgba(12, 41, 87, 0.35);
  transform: scale(1.02);
}

/* Fehér színátmenet overlay a képek szélén */
.sd-img::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 516px;
  height: 516px;
  border-radius: 12px;
  background: radial-gradient(ellipse at center, transparent 60%, rgba(255, 255, 255, 0.3) 80%, rgba(255, 255, 255, 0.7) 95%, rgba(255, 255, 255, 0.9) 100%);
  pointer-events: none;
  z-index: 2;
  transition: opacity .3s ease;
}

.sd-img:hover::after {
  opacity: 0.8;
}

.sr-tw-ul li.service-item,
.sr-thr-ul li.service-item {
  cursor: pointer;
  user-select: none;
  transition: box-shadow .2s ease, transform .15s ease, border-color .2s ease;
  border-radius: 10px;
  border: 1px solid rgba(12, 41, 87, 0.08);
  padding-right: 12px;
  position: relative;
  z-index: 999 !important;
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(8px);
}
.sr-tw-ul li.service-item:hover,
.sr-thr-ul li.service-item:hover {
  box-shadow: 0 10px 22px rgba(12,41,87,.08);
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 1) !important;
  z-index: 1500 !important;
}
.sr-tw-ul li.service-item.active,
.sr-thr-ul li.service-item.active {
  border-color: #e81c2e;
  box-shadow: 0 12px 26px rgba(232,28,46,.12);
  background: rgba(255, 255, 255, 1) !important;
  z-index: 1500 !important;
}
.sr-tw-ul li.service-item .text,
.sr-thr-ul li.service-item .text {
  position: relative;
  z-index: 1200 !important;
}
.sr-tw-ul li.service-item .text h4 a,
.sr-thr-ul li.service-item .text h4 a {
  color: #0c2957;
  position: relative;
  z-index: 1200 !important;
}
.sr-thr-ul li.service-item .text h4 a:focus {
  outline: none;
}

/* Ikon elemek is legyenek a tetején */
.sr-tw-ul li.service-item .icon-right,
.sr-thr-ul li.service-item .icon {
  position: relative;
  z-index: 1200 !important;
}

/* Extra védelem a bal oldali service-item oszlopnak */
.sr-tw-ul,
.sr-thr-ul {
  position: relative;
  z-index: 2000 !important;
}

/* Minden service-item elem biztosan látható legyen */
.service-item * {
  position: relative;
  z-index: inherit !important;
}

/* Kisebb kijelzőkön a középső előnézet legyen látható */
@media (max-width: 991.98px) {
  .sd-img {
    margin: 30px 0 20px 0;
    display: block !important;
    text-align: center;
  }
  .sd-img #service-center-image {
    width: 100%;
    height: auto;
    max-width: 450px;
    margin: 0 auto;
  }
  .sd-img::after {
    width: 100%;
    height: 100%;
    max-width: 450px;
    aspect-ratio: 1;
  }
}

@media (max-width: 768px) {
  .sd-img #service-center-image {
    max-width: 350px;
  }
  .sd-img::after {
    max-width: 350px;
  }
}

@media (max-width: 480px) {
  .sd-img #service-center-image {
    max-width: 280px;
  }
  .sd-img::after {
    max-width: 280px;
  }
}
