/* style/news-industry-trends.css */
.page-news-industry-trends {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
}

.page-news-industry-trends__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  position: relative;
  overflow: hidden;
}

.page-news-industry-trends__dark-bg {
  background: #26A9E0;
  color: #ffffff;
}

.page-news-industry-trends__light-bg {
  background: #ffffff;
  color: #333333;
}

.page-news-industry-trends__dark-section {
  background: #26A9E0;
  color: #ffffff;
}

.page-news-industry-trends__hero-content {
  max-width: 900px;
  z-index: 1;
  position: relative;
}

.page-news-industry-trends__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff; /* Ensure white text on dark background */
}

.page-news-industry-trends__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #ffffff; /* Ensure white text on dark background */
}

.page-news-industry-trends__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-news-industry-trends__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2; /* Subtle background effect */
}

.page-news-industry-trends__btn-primary {
  display: inline-block;
  background: #EA7C07; /* Login color for primary CTA */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-news-industry-trends__btn-primary:hover {
  background-color: #d16e06;
}

.page-news-industry-trends__section {
  padding: 60px 20px;
}

.page-news-industry-trends__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-news-industry-trends__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: inherit; /* Inherit color from section background */
}

.page-news-industry-trends__subsection-title {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 15px;
  color: inherit;
}

.page-news-industry-trends__text-block {
  margin-bottom: 20px;
  font-size: 1.1em;
  color: inherit;
}

.page-news-industry-trends__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
}

.page-news-industry-trends__video-section {
  padding: 60px 20px;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

.page-news-industry-trends__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.page-news-industry-trends__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  cursor: pointer; /* Indicates clickability */
}

.page-news-industry-trends__video-caption {
  margin-top: 20px;
  font-style: italic;
  color: #ffffff;
}

/* FAQ Section Styles */
.page-news-industry-trends__faq-section {
  padding: 60px 20px;
}

.page-news-industry-trends__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.page-news-industry-trends__faq-item {
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-news-industry-trends__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #ffffff;
  color: #333333;
  transition: background-color 0.3s ease;
}

.page-news-industry-trends__faq-question:hover {
  background-color: #f0f0f0;
}

.page-news-industry-trends__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-news-industry-trends__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #f9f9f9;
  color: #555555;
}

.page-news-industry-trends__faq-answer p {
  margin: 0;
  padding-bottom: 15px;
}

.page-news-industry-trends__faq-item.active .page-news-industry-trends__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px;
}

.page-news-industry-trends__faq-item.active .page-news-industry-trends__faq-toggle {
  transform: rotate(45deg); /* Plus sign rotates to form an X or minus */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news-industry-trends__hero-title {
    font-size: 3em;
  }
  .page-news-industry-trends__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-news-industry-trends {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-news-industry-trends__hero-section {
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
  }

  .page-news-industry-trends__hero-title {
    font-size: 2.5em;
  }

  .page-news-industry-trends__hero-description {
    font-size: 1em;
  }

  .page-news-industry-trends__section {
    padding: 40px 0;
  }

  .page-news-industry-trends__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-news-industry-trends__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-news-industry-trends__subsection-title {
    font-size: 1.5em;
  }

  /* Mobile image responsiveness */
  .page-news-industry-trends img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-news-industry-trends__content-image {
    min-width: 200px !important;
    min-height: 200px !important;
  }

  /* Mobile video responsiveness */
  .page-news-industry-trends video,
  .page-news-industry-trends__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-news-industry-trends__video-section,
  .page-news-industry-trends__video-container,
  .page-news-industry-trends__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Mobile button responsiveness */
  .page-news-industry-trends__btn-primary,
  .page-news-industry-trends__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-news-industry-trends__cta-buttons,
  .page-news-industry-trends__button-group,
  .page-news-industry-trends__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-news-industry-trends__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

  .page-news-industry-trends__faq-answer {
    padding: 0 20px;
  }

  .page-news-industry-trends__faq-item.active .page-news-industry-trends__faq-answer {
    padding: 15px 20px;
  }
}