#rolunk-hero {
  position: relative;
  z-index: 1;
  overflow: visible;
}

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

#rolunk-hero .container {
  padding: 64px 32px 64px 32px;
  box-sizing: border-box;
  width: 1440px;
}

.rolunk-hero-title-box {
  width: 572px;
  margin: auto;
  text-align: center;
}

.rolunk-hero-title-box h1 {
  margin-top: 0;
  margin-bottom: 32px;
  color: #3C4A64;
  font-size: 56px;
  font-weight: 700;
  line-height: 1.3;
}

.rolunk-hero-title-box h4 {
  margin-bottom: 8px;
  margin-top: 0px;
  color: #3C4A64;
}

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

.rolunk-description p {
  margin-bottom: 32px;
}

.rolunk-image {
  text-align: center;
}

.rolunk-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.fooldal_borblokk .container {
  padding: 0 32px;
  box-sizing: border-box;
  display: flex;
  gap: 80px;
  align-items: center;
  margin-top: 112px;
  margin-bottom: 112px;
}

.fooldal_borblokk .container>div {
  flex: 1 1 0;
  min-width: 0;
}

.fooldal_borblokk .container>div.borblokk_kep {
  overflow: hidden;
  border-radius: 16px;
  box-shadow: -4px 4px 8px -2px #0000001A;
}


.fooldal_borblokk .container>div img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 16px;
}

.fooldal_borblokk h2 {
  font-size: 28px;
  color: #3C4A64;
}

.fooldal_borblokk h3 {
  font-size: 20px;
  color: #3C4A64;
  margin-bottom: 8px;
}

.fooldal_borblokk p {
  margin-top: 0;
}

.margin_top_16 {
  margin-top: 16px;
  display: inline-block;
}

#filozofiank .container {
  background: linear-gradient(to right, #7086A8 0%, #374A66 90%);
  padding: 112px 64px;
  box-sizing: border-box;
  width: 1376px;
  border-radius: 32px;
  color: #FFF;
  display: flex;
  justify-content: center;
}

#filozofiank .container h2 {
  margin-top: 0;
}

.filozofiank-description {
  font-size: 20px;
  font-weight: bold;
}

.filozofiank_inner {
  width: 950px;
  text-align: center;
}

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

.misszionk-text {
  font-weight: bold;
}

.misszionk-description {
  width: 800px;
  padding-bottom: 64px;
}

.misszionk-description h2 {
  color: #3C4A64;
  margin-top: 0;
}

.misszionk-description h4 {
  color: #3C4A64;
  margin-bottom: 0;
}

.csapat-top {
  width: 800px;
  padding-bottom: 32px;
}

.csapat-top h2 {
  color: #3C4A64;
}

#csapat .container {
  padding: 64px 32px 112px 32px;
  box-sizing: border-box;
  width: 1440px;
}

.csapat-members {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.csapattag {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.csapattag::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.0) 33%,
    rgba(0,0,0,0.5) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.csapattag img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.2s ease, filter 0.2s ease;
}

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

/*.csapattag .caption {
  position: absolute;
  bottom: 32px;
  transition: transform 0.2s ease;
  z-index: 2;
  padding-left: 32px;
  padding-right: 32px;
  margin-bottom: -105px;
}

.csapattag:hover .caption {
  transform: translateY(-115px);
}*/

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

/* csak a kis title-bar, alapból LÁTSZIK */
.csapattag .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 */
.csapattag .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 */
.csapattag:hover .caption .caption-title,
.csapattag:active .caption .caption-title {
  opacity: 0 !important;
  visibility: hidden !important;
}

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

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



.csapattag .caption h3 {
  font-family: "Cabin", sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  color: #fff;
}

.csapattag .csapattag-title {
  color: #FFF;
  margin-bottom: 32px;
}

.csapattag .description {
  color: #FFF;
}

/* Globálisan, vagy akár csak a tablet-media query-n belül */
.csapat-members .csapattag {
  display: grid;
}

.csapat-members .csapattag img {
  width: 100% !important;
  height: 100% !important;    /* KIZÁRÓLAG így tölti ki a négyzet magasságát is */
  object-fit: cover;          /* a kép középről vág és kitölt */
  display: block;
}





@media (max-width: 1439px) {
  .fooldal_borblokk .container {
    display: block;
    width: 100%;
  }

  .fooldal_borblokk h2 {
    font-size: 26px;
  }

  .fooldal_borblokk h3 {
    font-size: 18px;
  }

  #rolunk-hero .container {
    width: 100%;
    padding: 32px;
  }

  #misszionk .container {
    width: 100%;
    padding: 32px;
  }

  #filozofiank .container {
    width: 95%;
    padding: 64px 32px;
  }

  .rolunk-hero-title-box {
    width: 100%;
  }

  .rolunk-description {
    width: 100%;
  }

  .misszionk-description {
    width: 100%;
  }

  #csapat .container {
    width: 100%;
  }

  .csapat-top {
    width: 100%;
  }

  .rolunk-image img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .rolunk-hero-title-box h1 {
    font-size: 32px;
    padding-top: 16px;
  }

  #rolunk-hero::before {
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    height: 500px;
  }

  .misszionk-item {
    text-align: center;
    padding-bottom: 32px;
  }

  .tudatos-borapolas-list {
    margin-bottom: 40px;
  }

  .csapat-members {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .csapattag {
    margin-bottom: 32px;
  }

  .csapattag img {
    width: auto !important;
    height: 350px !important;
  }

  .csapattag .caption {
    margin-bottom: 0 !important;
  }

  .csapattag .description {
    display: none;
  }

  .csapattag:hover .caption {
    transform: none !important;
  }

  .csapattag .csapattag-title {
  }

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

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

@media (min-width: 768px) and (max-width: 1439px) {
  .borblokk_kep .tudatos-borapolas-image {
    height: 600px;
    overflow: hidden;
  }

  .borblokk_kep .tudatos-borapolas-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }

  .fooldal_borblokk .container>div img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }
}



@media (min-width: 768px) and (max-width: 1439px) {
  /* A csapat tagjai két oszlopba rendeződnek tablet nézetben */
  .csapat-members {
    display: grid; /* ha korábban flex vagy más volt */
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;     /* az eredeti hézag megtartása */
  }
}



@media (min-width: 768px) {
  .misszionk-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    /* oszlopok közti hézag */
  }

  .misszionk-item {
    /* 4 oszlop = 25% szélesség, hézagot levonva */
    flex: 0 0 calc(25% - 24px);
    box-sizing: border-box;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .csapat-members {
    display: block;
  }
}