/* 🌌 Fő elrendezés – a háttér teljes képernyőt kitölt */
.hero-layout {
  position: relative;
  width: 100%;
  height: 100vh; /* mindig kitölti a képernyőt */
  background-color: #0f0f1a;
  overflow: hidden;
  color: #fff;
}

/* 🖼️ Háttérkép – középre igazított, betölti a teret */
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.4) blur(1px);
  z-index: 1;
}

/* 📦 Szövegdoboz – elöl, átlátszó fekete háttérrel */
.hero-text-box {
  position: relative;
  z-index: 2;
  width: 800px;
  max-width: 90%;
  height: 500px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2rem 2.5rem;
  margin: 5% 5% 2% 5%;
  background: rgba(0, 0, 0, 0.65);
  border-radius: 12px;
  text-align: left;
  overflow-wrap: break-word;

  /* Görgetősáv kinézete */
  scrollbar-width: thin;
  scrollbar-color: #ff5e5e transparent;

  /* Csak jobboldali árnyék */
  box-shadow: 8px 0 12px rgba(255, 0, 60, 0.35);
  transition: box-shadow 0.3s ease;
}

/* 🔴 Erősebb árnyék görgetés közben */
.hero-text-box.scrolling {
  box-shadow: 12px 0 24px rgba(255, 0, 70, 0.7);
}

/* 🎯 WebKit görgetősáv */
.hero-text-box::-webkit-scrollbar {
  width: 8px;
}
.hero-text-box::-webkit-scrollbar-track {
  background: transparent;
}
.hero-text-box::-webkit-scrollbar-thumb {
  background-color: #ff5e5e;
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: content-box;
}

/* 🧹 Felesleges elemek eltüntetése */
.hero-text-box p:empty,
.hero-text-box div:empty,
.hero-text-box br {
  display: none !important;
}

/* ✂️ Utolsó elem után ne legyen margó */
.hero-text-box > *:last-child {
  margin-bottom: 0 !important;
}

/* 🧢 Maszkolás – elrejti az árnyékokat felül és alul */
.hero-layout::before,
.hero-layout::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 60px;
  z-index: 3;
  pointer-events: none;
}
.hero-layout::before {
  top: 0;
  background: linear-gradient(to bottom, #0f0f1a, transparent);
}
.hero-layout::after {
  bottom: 0;
  background: linear-gradient(to top, #0f0f1a, transparent);
}

/* 📐 Szép bekezdések */
.hero-text-box p {
  margin: 0 0 1rem 0;
  line-height: 1.4;
}

/* 📱 Reszponzív mód kisebb képernyőre */
@media (max-width: 768px) {
  .hero-text-box {
    height: 350px;
    padding: 1.5rem;
    font-size: 0.95rem;
  }
}
