h1 {
    font-size: 56px;
    text-align: center;
    color: #374A66;
    margin-top: 0;
    padding-top: 64px;
}

.kezeles_lista_hero,
.kezeles_allista_hero {
    position: relative;
    z-index: 1;
    overflow: visible;
}

.kezeles_lista_hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 860px;
  background-color: #EEE7E3;
  border-bottom-left-radius: 100px;
  border-bottom-right-radius: 100px;
  z-index: -1;
}

.kezeles_allista_hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 480px;
  background-color: #EEE7E3;
  border-bottom-left-radius: 100px;
  border-bottom-right-radius: 100px;
  z-index: -1;
}

.container .kezeles-description {
    width: 50%;
}

.kezeles-borgyogyaszat .kezeles-description,
.kezeles-nogyogyaszat .kezeles-description,
.kezeles-zo-skin .kezeles-description {
    margin-bottom: 56px;
}

#kezeles_lista .container {
    padding: 0px 32px 0 32px;
    box-sizing: border-box;
    width: 1440px;
}

#kezeles_lista .kezeles-zo-skin {
    padding-bottom: 112px!important;
    padding-top: 64px;
}

#kezeles_lista .kezeles-nogyogyaszat,
#kezeles_lista .kezeles-borgyogyaszat,
#kezeles_lista .kezeles-zo-kezelesek {
    padding-top: 64px;
    padding-bottom: 64px;
}

#kezeles_lista .kezeles-esztetika {
    padding-bottom: 64px;
}

#kezeles_lista h2 {
    color: #374A66;
}

#kezeles_lista h3 {
    color: #374A66;
    font-size: 20px;
    /*margin-top: 56px;*/
}

.bt_padding {
    padding-bottom: 32px;
}

.kezeles-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.kezeles-list__item {
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

/* SÖTÉTLÍTŐ RÉTEG */
.kezeles-list__item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.0) 0%,
    rgba(0,0,0,0.5) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.kezeles-list__item img {
    display: block;
    max-height: 240px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.kezeles-list__item:hover img {
  transform: scale(1.1);
  filter: blur(3px);
}

/* a wrapper, ami mindkét állapotot tartalmazza */
.kezeles-list__item .caption {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
}

/* csak a kis title-bar, alapból LÁTSZIK */
.kezeles-list__item .caption .caption-title {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  padding: 0 32px;
  color: #fff;
  z-index: 1;
  opacity: 1 !important;
  visibility: visible !important;
  transition: opacity .3s ease, visibility .3s ease;
}

/* full overlay (title + desc), alapból ELREJTVE */
.kezeles-list__item .caption .caption-full {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* középre igazításhoz flex container: */
  flex-direction: column;
  justify-content: center;     /* függőleges közép */
  align-items: center;         /* vízszintes közép (opcionális) */
  padding: 32px;
  color: #fff;
  z-index: 2;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: opacity .3s ease, visibility .3s ease;
  display: flex;
      align-items: baseline;
    justify-content: center;
}

/* HOVER / TAP esetén: title tűnik el, full overlay jelenik meg */
.kezeles-list__item:hover .caption .caption-title,
.kezeles-list__item:active .caption .caption-title {
  opacity: 0 !important;
  visibility: hidden !important;
}

.kezeles-list__item:hover .caption .caption-full,
.kezeles-list__item:active .caption .caption-full {
  opacity: 1 !important;
  visibility: visible !important;
}

.kezeles-list__item .caption .caption-title { z-index: 2; }
.kezeles-list__item .caption .caption-full  { z-index: 3; }


.kezeles-list__item .caption h3 {
    font-family: "Cabin", sans-serif;
    font-size: 18px!important;
    line-height: 1.4;
    font-weight: 700;
    margin: 0;
    color: #fff!important;
    margin-bottom: 20px;
}

.kezeles-list__item a {
    text-decoration: none!important;
    color: #fff!important;
}

.kezeles-list__item .description {
    color: #FFF;
    line-height: 1.3;
}

.rolunk-description {
    text-align: center;
    width: 1024px;
    margin: auto;
}

.foot_padding {
    padding-top: 128px;
}

.kezeles-list {
  grid-template-columns: repeat(4, 1fr);
}
.list-three {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1439px) {
    #kezeles_lista .container {
        width: 100%;
    }
    #kezeles_lista h3 {
        font-size: 18px;
        /*margin-top: 32px;*/
    }



    .kezeles-list__item:hover .caption .caption-title,
    .kezeles-list__item:active .caption .caption-title {
    opacity: 1 !important;
    visibility:visible !important;
    }

    .kezeles-list__item:hover .caption .caption-full,
    .kezeles-list__item:active .caption .caption-full {
    opacity: 0 !important;
    visibility: hidden !important;
    }



    .list-three .kezeles-list__item .caption {
        margin-bottom: 0;
    }
    .kezeles-list__item .caption {
        margin-bottom: 0;
    }
    .kezeles-list__item .description {
        display: none;
    }

    .kezeles-list__item:hover .caption {
        transform: none;
    }
    .list-three .kezeles-list__item:hover .caption {
        transform: none;
    }
}

@media (max-width: 1023px) {
    .list-three {
        grid-template-columns: repeat(2, 1fr);
    }
    .kezeles-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #kezeles_lista .container {
        width: 100%;   
    }
    #kezeles_lista .kezeles-nogyogyaszat,
    #kezeles_lista .kezeles-borgyogyaszat,
    #kezeles_lista .kezeles-zo-kezelesek {
        padding-top: 32px;
    }
    h1 {
        font-size: 32px;
        padding-top: 32px;
        line-height: 1.4;
    }
    .container .kezeles-description {
        width: 100%;
    }
    #kezeles_lista h2 {
        font-size: 24px;
    }
    #kezeles_lista h3 {
        font-size: 18px;
    }
    .list-three .kezeles-list__item .caption {
        margin-bottom: 0;
    }
    .kezeles-list__item .caption {
        margin-bottom: 0;
    }
    .kezeles-list__item .description {
        display: none;
    }

    .kezeles-list__item:hover .caption {
        transform: none;
    }

    .list-three .kezeles-list__item:hover .caption {
        transform: none;
    }

    .rolunk-description {
        width: 100%;
    }
    .kezeles-list {
        grid-template-columns: repeat(1, 1fr);
    }
    .list-three {
        grid-template-columns: repeat(1, 1fr);
    }
}
