/* Second half of the homepage: full-height video with text overlaid on top */
.second-half {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.video-container {
  position: absolute;
  inset: 0;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.video-container video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  pointer-events: none;
}

/* text, anchored to the bottom of the video rather than relying on a
   fixed negative margin (which breaks the moment viewport size changes) */
.main-post {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 4rem 2rem;
  z-index: 1;
}

.mp-text {
  max-width: 800px;
  margin-left: 5%;
  text-align: left;
  color: white;
}

.title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.title-highlight {
  color: #FFD700;
}

.description {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: #e0e0e0;
}

.highlight {
  font-weight: 600;
}

.visit-button {
  padding: 0.75rem 2rem;
  font-size: 1rem;
  background-color: white;
  border-radius: 0.2rem;
  color: black;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  pointer-events: auto;
  border: 2px solid white;
}

.visit-button:hover {
  color: white;
  background-color: transparent;
}

.main-content {
  position: relative;
  z-index: 0;
}

@media (max-width: 900px) {
  .subtitle {
    margin-top: 6rem;
    font-size: 1.6rem;
  }

  .about-us {
    font-size: 1rem;
  }

  .mp-text {
    max-width: 100%;
    margin-left: 0;
  }

  .main-post {
    padding: 2rem 1.25rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 40%, rgba(0, 0, 0, 0));
  }

  .title {
    font-size: 2rem;
  }

  .description {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .subtitle {
    margin-top: 5rem;
    font-size: 1.3rem;
  }

  .visit-button {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
}