/* Images in Wellness Centrum a Zem Zen Balíčky */
.member-block-image {
width: 100%;
height: 100%;
object-fit: cover;
filter: grayscale(10%) brightness(95%);
transition: filter 0.4s ease;
}

/* Rezervujte si svoj pobyt */
.events-section .container {
padding-left: 32px;
padding-right: 32px;
}

/* Member block image wrap with hover text */
.hover-text {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.787); /* Tmavšie pozadie pre lepšiu čitateľnosť */
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  display: flex;
  flex-direction: column; /* Zarovnanie textu do stĺpca */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  font-size: 0.95em;
  font-weight: 500;

 /* NEW: allow scrolling if text is too long */
  overflow-y: auto;
  box-sizing: border-box; /* include padding in height */
  max-height: 100%; /* ensures text stays inside image */
}

/* Optional: add smooth scrolling for hover text on mobile */
.hover-text::-webkit-scrollbar {
  width: 6px;
}

.hover-text::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 3px;
}

.hover-text p {
  font-size: 1.2rem;
  color: rgba(230, 221, 221, 0.8);
  font-weight: bold;
  margin-bottom: 10px;
}

.hover-text span {
  font-size: 0.9rem;
  line-height: 1.4;
  word-wrap: break-word; /* ensure long words break */
}

.member-block-image-wrap:hover .hover-text {
  opacity: 1;
}

.hover-text p {
  font-size: 1.2rem;
  color:rgba(230, 221, 221, 0.679);
  font-weight: bold;
  margin-bottom: 10px;
}

.hover-text span {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Cena v kruhu */
.member-block-image-wrap .price {
  position: absolute;
  top: 10px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: #C10001;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  z-index: 5;
}

/* Zobrazenie ceny pri hovernutí */
.member-block-image-wrap:hover .price {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile */
@media (max-width: 768px) {
  /* Zarovnanie textov na stred */
  .about-section .col-lg-5,
  .membership-section .col-lg-5 {
    text-align: center; /* Zarovná texty na stred horizontálne */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Zarovná texty na stred vertikálne */
    align-items: center; /* Zarovná texty na stred horizontálne */
    height: auto; /* Uistite sa, že výška sa prispôsobí obsahu */
  }

  .about-section .col-lg-5 h3,
  .membership-section .col-lg-5 h3 {
    text-align: center; /* Zarovná nadpisy na stred */
    margin-bottom: 15px; /* Pridá medzeru pod nadpis */
  }

  .about-section .col-lg-5 p,
  .membership-section .col-lg-5 p {
    text-align: center; /* Zarovná odseky na stred */
    margin-bottom: 10px; /* Pridá medzeru medzi odsekmi */
  }

  /* Odstránenie paddingu pre lepšie zarovnanie */
  .about-section .col-lg-5,
  .membership-section .col-lg-5 {
    padding: 15px; /* Pridá padding okolo textu */
  }

  .about-section .row {
    flex-direction: column; /* Zabezpečí, že prvky budú pod sebou */
  }

}


@media (max-width: 768px) {
  .about-section .col-lg-5,
  .membership-section .col-lg-5 {
    text-align: center !important;
    padding: 15px;
    margin-bottom: 2rem;
  }

  .about-section .col-lg-5 h3,
  .membership-section .col-lg-5 h3 {
    text-align: center !important;
  }

  .about-section .col-lg-5 p,
  .membership-section .col-lg-5 p {
    text-align: center !important;
  }
}

/* FAQ Section Styles */
.faq-section {
    padding: 80px 20px;
    background-color: #ffffff;
}

.faq-head-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-header {
    text-align: center;
    margin-bottom: 50px;
}

.faq-header h2 {
    font-size: 2.5rem;
    color: #2d3748;
    margin-bottom: 15px;
}

.faq-header p {
    font-size: 1.1rem;
    color: #718096;
}

.faq-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.faq-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.faq-question {
    width: 100%;
    padding: 18px 20px;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.05rem;
    font-weight: 600;
    color: #2d3748;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f7fafc;
}

.faq-question.active {
    background-color: #f7fafc;
    color: #C10001;
}

.faq-icon {
    font-size: 1.5rem;
    color: #C10001;
    transition: transform 0.3s ease;
}

.faq-question.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #f7fafc;
}

.faq-answer.active {
    max-height: 500px;
    padding: 0 20px 18px 20px;
}

.faq-answer p {
    color: #4a5568;
    line-height: 1.7;
    font-size: 1rem;
}

.faq-answer strong {
    color: #C10001;
}

@media (max-width: 768px) {
    .faq-container {
        grid-template-columns: 1fr;
    }

    .faq-header h2 {
        font-size: 2rem;
    }

    .faq-question {
        font-size: 1rem;
        padding: 15px 18px;
    }

    .faq-answer.active {
        padding: 0 18px 15px 18px;
    }
}