/**
 * Homepage Sections - Consistent Padding
 * Applied to all sections on the homepage for consistent spacing
 * Note: Section padding is centralized in layout.css (section > .container rule)
 */

/* DNA Quiz Explanation Section */
.dna-quiz-explanation {
  background-color: #9cc6fb;
  text-align: center;
}

.dna-quiz-explanation .container {
  max-width: 810px;
  margin: 0 auto;
  text-align: center;
  padding-top: 50px;
  padding-bottom: 50px;
}

.dna-quiz-explanation strong {
  font-weight: bold;
}

.dna-quiz-explanation h3 {
  font-size: 18px;
  font-weight: bold;
  text-transform: uppercase;
  margin-top: 30px;
  letter-spacing: 0.5px;
}

/* Grey Movie / Video Section */
.grey-movie-wrapper {
  width: 100%;
  background-color: #111111;
}

.grey-movie-wrapper .container {
  padding-top: 60px; /* ADO 6827: live application.css .grey-movie-wrapper padding 60px 0 80px */
  padding-bottom: 50px;
}

.grey-movie-wrapper h2 {
  text-align: center;
  margin-bottom: 30px;
  /* ADO 5424 (L3): live draws this heading white (application.css ".home-page-content .title-wrap h2 { color: white }"); the base heading colour is near-black, on this #111 band it could not be read. */
  color: #fff;
}

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

.embed-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
}

.embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* See Color Differently Section */
.see-color-wrapper {
  background-color: #9cc6fb;
  text-align: center;
  /* padding handled by section > .container rule */
}

.see-color-wrapper .container {
  max-width: 1000px;
  margin: 0 auto;
}

.see-color-wrapper h2 {
  font-size: 35px;
  font-weight: bold;
  margin: 0 auto 30px;
  line-height: 43px;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  padding: 30px 60px 17px 60px;
}

.see-color-wrapper h2::before,
.see-color-wrapper h2::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  background: #000;
}

.see-color-wrapper h2::before {
  top: 0;
  height: 4px;
}

.see-color-wrapper h2::after {
  bottom: 0;
  height: 3px;
}

@media (min-width: 768px) {
  .see-color-wrapper h2 {
    font-size: 35px;
  }
}

@media (min-width: 1920px) {
  .see-color-wrapper h2 {
    font-size: 72px;
  }
}

.see-color-wrapper p {
  text-align: center;
}

.see-color-wrapper p strong {
  font-weight: bold;
}

/* Limit image width in this section */
.see-color-wrapper img {
  max-width: 45%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Benefits Section */
.benefits-section {
  background-color: #ffe29e;
  color: #000000;
  /* padding handled by section > .container rule */
}

.benefits-section h2 {
  text-align: center;
  font-size: 36px;
  font-weight: bold;
  line-height: 1.4;
  margin: 0 auto 40px;
  max-width: 800px;
}

.benefits-intro {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
}

.benefits-intro p {
  margin-bottom: 25px;
}

.benefits-intro strong {
  font-weight: bold;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px 50px;
  max-width: 1400px;
  margin: 60px auto 0;
  padding: 0 20px;
  list-style: none;
}

.benefit-item a {
  display: block;
  text-decoration: none;
  margin-bottom: 20px;
  text-align: center;
}

.benefit-item img {
  width: 100%;
  max-width: 450px;
  height: 200px;
  object-fit: cover;
  display: block;
  margin: 0 auto 15px;
}

.benefit-item .benefit-title {
  display: block;
  font-weight: 700;
  font-size: 23px;
  margin: 25px 0 0 0;
  text-transform: uppercase;
  text-align: center;
}

.benefit-item p {
  text-align: center;
}

@media (max-width: 991px) { /* tablet breakpoint */
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 767px) { /* mobile breakpoint */
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .benefit-item .benefit-title {
    font-size: 18px;
  }
}

/* E-Book Section */
.home-ebook-wrapper {
  background-color: #9cc6fb;
  text-align: center;
  /* padding handled by section > .container rule */
}

.home-ebook-wrapper h2 {
  font-size: 35px;
  font-weight: bold;
  margin-bottom: 35px;
  line-height: 1.3;
}

.home-ebook-wrapper h3 {
  font-size: 20px;
  margin: 0 0 25px 0;
}

.home-ebook-wrapper h4 {
  font-size: 25px;
  margin: 0 0 25px 0;
  font-weight: bold;
}

.home-ebook-wrapper img {
  margin: 20px auto;
  max-width: 100%;
  height: auto;
  display: block;
}

/* E-Book Form Styling */
.home-ebook-wrapper .popup_newsletter {
  max-width: 400px;
  margin: 0 auto 30px;
}

.home-ebook-wrapper .popup_newsletter input[name="email-getresponse"] {
  padding: 13px 17px 10px 17px;
  font-size: 18px;
  margin: auto auto 15px auto;
  border: 0;
  color: darkblue;
  background: #ffe29e;
  font-weight: bold;
  width: 100%;
  max-width: 400px;
  display: block;
  box-sizing: border-box;
}

.home-ebook-wrapper .popup_newsletter input[name="email-getresponse"]::placeholder {
  color: #00008b;
  opacity: 1;
  font-weight: bold;
}

.home-ebook-wrapper .popup_newsletter input.ebook-submit {
  padding: 13px 17px 10px 17px;
  font-size: 18px;
  margin-bottom: 15px;
  border: 0;
  background: #0946c1;
  border-color: #0946c1;
  color: white;
  font-weight: bold;
  width: 100%;
  max-width: 400px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.home-ebook-wrapper .popup_newsletter input.ebook-submit:hover {
  background: #073799;
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  top: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: #46b450;
  color: white;
  padding: 20px 40px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  opacity: 0;
  transition: all 0.4s ease;
  text-align: center;
  max-width: 90%;
}

.toast-notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Quote Section */
.quote-section {
  background-color: #0005e1;
  color: #fff;
  /* padding handled by section > .container rule */
}

.quote-section .container {
  max-width: 800px;
  margin: 0 auto;
}

.quote-section blockquote {
  margin: 0;
  padding: 0;
  border: none;
  text-align: center;
}

.quote-section blockquote p {
  font-size: 30px;
  line-height: 1.6;
  margin: 0 0 20px 0;
  font-style: italic;
}

.quote-section cite {
  display: block;
  font-style: normal;
  text-align: center;
  font-size: 30px;
}

.quote-section .quote-author {
  display: block;
  font-size: 30px;
  margin-bottom: 8px;
  font-style: italic;
}

.quote-section .quote-title {
  display: block;
  font-size: 30px;
  opacity: 0.9;
  margin-left: 0;
  font-style: italic;
}

/* Helix/DNA Video Section */
.helix-wrapper {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
  background-color: transparent;
  height: auto;
}

.helix-video-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  transform: none;
  min-width: 100%;
  min-height: 100%;
}

.helix-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.helix-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 60px 20px;
  max-width: 600px;
}

.helix-content h3 {
  font-size: 2em;
  font-weight: 600;
  margin: 0 0 10px 0;
}

.helix-content p {
  margin: 5px 0;
  font-size: 18px;
}

/* .app-badges styles are in components.css */

@media (max-width: 767px) { /* mobile breakpoint */
  .helix-wrapper {
    min-height: 500px;
  }

  .helix-content h3 {
    font-size: 1.5em;
  }

  .helix-content p {
    font-size: 16px;
  }
}

/* Content Titles Section */
.content-titles-section {
  background-color: #111111;
  color: #fff;
  /* padding handled by section > .container rule */
}

.content-titles-section__left,
.content-titles-section__right {
  padding-left: 50px;
  padding-right: 50px;
}

/* Testimonials Section */
.testimonials-section {
  background-color: #111111;
  color: #fff;
  /* padding handled by section > .container rule */
}

.testimonials-section h2 {
  text-align: center;
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 60px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Grid Layout */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 60px 40px;
  }
}

/* Testimonial Card */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .testimonial-card {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
  }
}

/* Avatar */
.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .testimonial-avatar {
    margin-bottom: 0;
    margin-right: 20px;
  }
}

/* Content Wrapper */
.testimonial-content {
  flex: 1;
}

/* Quote */
.testimonial-quote {
  margin: 0 0 20px 0;
}

.testimonial-quote p {
  color: #b3b3b3;
  font-style: normal;
  line-height: 1.6;
  margin: 0;
}

/* Author Attribution */
.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-style: normal;
}

.author-name {
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.author-spectrum {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Spectrum Colors */
.spectrum-1 { color: #778ac1; }
.spectrum-2 { color: #00013b; }
.spectrum-3 { color: #0c59e5; }
.spectrum-4 { color: #00466c; }

/* Quiz and App Section */
.quiz-and-app-section {
  background-color: #ffffff;
  padding: 0;
  text-align: center;
}

@media (min-width: 768px) {
  .quiz-and-app-section {
    padding: 0;
  }
}

@media (min-width: 1920px) {
  .quiz-and-app-section {
    padding: 0;
  }
}

.quiz-and-app-section h2 {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 40px;
  text-transform: uppercase;
  color: #000000;
}

/* Banner CTA Section (below hero) */
.banner-cta {
  background-color: #000;
  color: #fff;
  padding: 50px 20px;
}

@media (min-width: 768px) {
  .banner-cta {
    padding: 70px 40px;
  }
}

@media (min-width: 1920px) {
  .banner-cta {
    padding: 90px 60px;
  }
}

/* ========================================
   SHARED SECTION BASE CLASSES
   Reusable patterns across multiple pages
   ======================================== */

/* Golden Section - Yellow/gold background for content sections */
.golden-section {
  background-color: #ffe29e;
  color: #292b2c;
  text-align: center;
  /* padding handled by section > .container rule */
}

.golden-section .container {
  max-width: 900px;
  margin: 0 auto;
}

.golden-section p {
  font-size: 20px;
  line-height: 1.6;
  color: #292b2c;
  margin-bottom: 20px;
}

/* Dark CTA Section - Black background with centered content and CTA */
.dark-cta-section {
  background-color: #000;
  color: #fff;
  text-align: center;
  /* padding handled by section > .container rule */
}

.dark-cta-section p {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 20px;
  line-height: 1.5;
}

.dark-cta-section .cta-btn {
  margin-top: 30px;
}

/* Light CTA Section - White background with centered heading and CTA */
.light-cta-section {
  background-color: #fff;
  color: #292b2c;
  text-align: center;
  /* padding handled by section > .container rule */
}

.light-cta-section h2 {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px;
  text-transform: uppercase;
  color: #292b2c;
}

@media (min-width: 768px) {
  .light-cta-section h2 {
    font-size: 42px;
  }
}

@media (min-width: 1920px) {
  .light-cta-section h2 {
    font-size: 48px;
  }
}

/* Dark Interstitial - Black strip for captions/quotes between sections */
.dark-interstitial {
  background-color: #000;
  color: #fff;
  text-align: center;
  /* padding handled by section > .container rule */
}

.dark-interstitial p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.6;
  color: #fff;
}
