.tc-reveal {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.tc-reveal__bg {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  opacity: 0;
  transition: opacity 600ms ease;
  z-index: 1;
  pointer-events: none;
}

.tc-reveal__bg.is-active {
  opacity: 1;
  z-index: 2;
}

.tc-reveal__overlay {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0,0,0,.7), rgba(0,0,0,.4));
  z-index: 3;
  pointer-events: none;
}

.tc-reveal > .elementor-container,
.tc-reveal > .e-con {
  position: relative;
  z-index: 4;
}

.tc-reveal__item {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding: clamp(1rem, 2vw, 2rem) 0;
  transition: border-color 0.3s ease;
}

.tc-reveal__item:focus {
  outline: none;
}

.tc-reveal__title {
  opacity: 0.5;
  transition: opacity 0.3s ease;
  margin: 0 !important;
}

.tc-reveal__item.is-active .tc-reveal__title {
  opacity: 1;
  border-bottom: 2px solid #fff;
  display: inline-block;
}

.tc-reveal__body-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 400ms ease, opacity 400ms ease, margin-top 400ms ease;
  opacity: 0;
}

.tc-reveal__item.is-active .tc-reveal__body-wrapper {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 1rem;
}

.tc-reveal__body-inner {
  min-height: 0;
  overflow: hidden;
}

.tc-reveal__body {
  margin: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
  .tc-reveal__bg,
  .tc-reveal__item,
  .tc-reveal__title,
  .tc-reveal__body-wrapper {
    transition: none !important;
  }
}
