.home_intro {
  width: 100%;
}

.home_intro .intro_inner {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding: 50px 20px;
  box-sizing: border-box;
}

/* Same width as .home_popular below (1000px less 20px side padding) */
.home_intro .intro_panel {
  color: var(--green);
  box-sizing: border-box;
  width: 100%;
}

.home_intro .intro_text {
  text-align: center;
  margin-bottom: 30px;
}

.home_intro .intro_text h1 {
  font-size: 36px;
  margin: 0 0 10px;
}

.home_intro .intro_paragraphs {
  text-align: center;
}

.home_intro .intro_paragraphs p {
  margin: 10px 0 0 ;
}

.home_intro .intro_buttons {
  display: flex;
  align-items: stretch;
  gap: 30px;
  width: 100%;
}

.home_intro .intro_button_cont {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  text-align: center;
}

.home_intro .intro_button_cont h2 {
  margin: 0 0 10px;
  font-size: 19px;
}

.home_intro .intro_button {
  padding: 5px 10px 3px;
  border-radius: 5px;
  border: 1px solid var(--bright-blue);
  font-size: 15px;
  color: var(--bright-blue);
  background: var(--highlight);
  text-decoration: none;
  display: inline-block;
}

@media (max-width: 600px) {
  .home_intro .intro_inner {
    padding: 30px 20px;
  }

  .home_intro .intro_buttons {
    flex-direction: column;
    gap: 20px;
  }

  .home_intro .intro_button_cont {
    width: 100%;
  }
}


.home_survey {
  width: 100%;
  background-image: url('/static/images/home_survey_background.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 0;
  box-sizing: border-box;
}

.home_survey .survey_inner {
  width: 100%;
  max-width: 1000px;
}

.home_survey .survey_header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 0 50px;
}

.home_survey .survey_title {
  margin: 0;
  color: var(--dark-blue);
  font-size: 36px;
  line-height: 1;
}

.home_survey .survey_image {
  display: block;
  width: 80px;
  height: auto;
  flex-shrink: 0;
  padding-left: 20px;
}

.home_survey .survey_question {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
  margin: 0 0 28px;
}

.home_survey .survey_question_text {
  font-size: 20px;
}

.home_survey .survey_answers {
  display: flex;
  gap: 14px;
}

.home_survey .survey_answer {
  appearance: none;
  background: var(--white);
  border: 2px solid var(--black);
  color: var(--black);
  border-radius: 15px;
  padding: 10px 15px;
  font: inherit;
  line-height: 1;
  cursor: pointer;
}

.home_survey .survey_answer.active {
  background: var(--black);
  color: var(--white);
}


.home_popular {
  width: 100%;
  padding: 50px 20px 100px;
  max-width: 1000px;
  margin: auto;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .home_popular {
    padding: 50px 20px;
  }
}

.home_popular .popular_inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.home_popular .popular_title {
  margin: 0 0 20px;
  font-size: 36px;
  color: var(--green);
  font-weight: 400;
}

.home_popular .popular_text {
  font-size: 18px;
  color: var(--green);
}

.home_popular .popular_items {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
  margin-top: 30px;
}

.home_popular .popular_item {
  flex: 0 0 calc((100% - 100px) / 6);
  min-width: 0;
  text-decoration: none;
  color: inherit;
  display: block;
}

@media (max-width: 900px) {
  .home_popular .popular_item {
    flex: 0 0 calc((100% - 40px) / 3);
  }
}

@media (max-width: 600px) {
  .home_popular .popular_item {
    flex: 0 0 calc((100% - 20px) / 2);
  }
}

.home_popular .popular_kind {
  margin-bottom: 20px;
  padding: 5px 10px 3px;
  border-radius: 5px;
  border: 1px solid var(--bright-blue);
  font-size: 15px;
  color: var(--bright-blue);
  background: var(--highlight);
}

.home_popular .popular_image {
  display: block;
  width: 100%;
  height: auto;
}


/* Video - same width as .home_popular */

.home_video {
  width: 100%;
  max-width: 1000px;
  margin: 50px auto;
  box-sizing: border-box;
  text-align: center;
}

.home_video .video_title {
  margin: 0 0 20px;
  font-size: 36px;
  color: var(--green);
  font-weight: 400;
}

.home_video .video_player {
  position: relative;
}

.home_video .video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: var(--black);
}

/* the video has no sound - Chrome/Edge still show a greyed-out speaker in
   the controls, so hide it (Safari and Firefox leave it off for a video
   with no audio track) */
.home_video .video::-webkit-media-controls-mute-button,
.home_video .video::-webkit-media-controls-volume-slider,
.home_video .video::-webkit-media-controls-volume-control-container {
  display: none !important;
}

/* big round play button over the poster */
.home_video .video_play_button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 96px;
  height: 96px;
  transform: translate(-50%, -50%);
  appearance: none;
  border: 3px solid var(--white);
  border-radius: 50%;
  padding: 0;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.home_video .video_play_button:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 18px 0 18px 30px;
  border-color: transparent transparent transparent var(--white);
}

.home_video .video_play_button:hover,
.home_video .video_play_button:focus-visible {
  background: rgba(0, 0, 0, 0.65);
  transform: translate(-50%, -50%) scale(1.06);
}

.home_video .video_play_button:focus-visible {
  outline: 3px solid var(--highlight);
  outline-offset: 3px;
}

.home_video .video_play_button[hidden] {
  display: none;
}

@media (max-width: 600px) {
  .home_video .video_play_button {
    width: 70px;
    height: 70px;
  }

  .home_video .video_play_button:after {
    border-width: 13px 0 13px 22px;
  }
}


/* Sky background - same as the Directory's .main background, with the intro,
   popular and video sections on translucent white panels over it. */

.main {
  background-image: url('/static/images/background_sky_v2.jpg');
  background-size: 100% auto;
  background-position: center top;
  background-repeat: no-repeat;
  padding-bottom: 50px; /* footer overlap, as on the Directory */
}

/* intro sits on a translucent white panel over the sky - side padding stays
   20px so its content still lines up with .home_popular below. The gap above
   is padding on .home_intro rather than a margin on the panel, so it doesn't
   collapse through <main> and push the sky down. */
.main .home_intro {
  padding: 50px 20px 0;
  box-sizing: border-box;
}

.main .home_intro .intro_inner,
.main .home_popular,
.main .home_video {
  padding: 20px 20px 30px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 20px;
}

/* 20px from the page edges until the 1000px max width */
.main .home_popular,
.main .home_video {
  width: calc(100% - 40px);
}

/* gap between the two panels */
.main .home_popular {
  margin-top: 50px;
}

@media (max-width: 600px) {
  .main .home_intro {
    padding-top: 30px;
  }

  .main .home_intro .intro_inner,
  .main .home_popular,
  .main .home_video {
    padding: 20px 10px 30px;
  }

  .main .home_popular,
  .main .home_video {
    margin-top: 20px;
  }
}
