/* style/news-industry-trends.css */

/* Base Styles for the page content */
.page-news-industry-trends {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default light text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

/* Header offset to prevent content being hidden by fixed header */
.page-news-industry-trends__hero-section {
  padding-top: var(--header-offset, 120px); /* Apply header offset */
}

/* General container for content sections */
.page-news-industry-trends__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-news-industry-trends__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 500px;
  padding-bottom: 60px;
  overflow: hidden;
  background-color: #0A2647; /* Primary brand color for hero background */
  color: #ffffff;
}

.page-news-industry-trends__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.3; /* Subtle background image */
}

.page-news-industry-trends__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #F4B400; /* Auxiliary color for emphasis */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  max-width: 800px;
}

.page-news-industry-trends__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 700px;
}

.page-news-industry-trends__cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 30px;
}

/* Buttons */
.page-news-industry-trends__btn-primary,
.page-news-industry-trends__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons adapt to mobile */
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-news-industry-trends__btn-primary {
  background-color: #F4B400; /* Auxiliary color */
  color: #0A2647; /* Primary color for text on auxiliary background */
  border: 2px solid #F4B400;
}

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

.page-news-industry-trends__btn-secondary {
  background-color: transparent;
  color: #F4B400; /* Auxiliary color */
  border: 2px solid #F4B400;
}

.page-news-industry-trends__btn-secondary:hover {
  background-color: #F4B400;
  color: #0A2647;
}

/* Content Sections */
.page-news-industry-trends__content-section {
  padding: 60px 0;
}

.page-news-industry-trends__light-bg {
  background-color: #ffffff;
  color: #333333; /* Dark text for light background */
}

.page-news-industry-trends__dark-bg {
  background-color: #0A2647;
  color: #ffffff; /* Light text for dark background */
}

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

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

.page-news-industry-trends p {
  margin-bottom: 1em;
  font-size: 1.1em;
}

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

.page-news-industry-trends__feature-list {
  list-style: none;
  padding: 0;
  margin: 40px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-news-industry-trends__feature-list li {
  background-color: rgba(255, 255, 255, 0.1); /* Light transparent background for dark sections */
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  color: inherit;
}

.page-news-industry-trends__dark-bg .page-news-industry-trends__feature-list li {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.page-news-industry-trends__light-bg .page-news-industry-trends__feature-list li {
  background-color: #f9f9f9;
  color: #333333;
}

.page-news-industry-trends__feature-list li:hover {
  transform: translateY(-5px);
}

.page-news-industry-trends__feature-title {
  font-size: 1.5em;
  color: #F4B400; /* Auxiliary color for feature titles */
  margin-bottom: 15px;
}

/* FAQ Section */
.page-news-industry-trends__faq-section {
  padding: 60px 0;
  background-color: #f5f5f5; /* Light background for FAQ */
  color: #333333;
}

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

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

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

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

.page-news-industry-trends__faq-title {
  margin: 0;
  font-size: 1.2em;
  color: #0A2647; /* Primary color for FAQ question text */
}

.page-news-industry-trends__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #F4B400; /* Auxiliary color for toggle icon */
  transition: transform 0.3s ease;
}

.page-news-industry-trends__faq-item.active .page-news-industry-trends__faq-toggle {
  transform: rotate(45deg); /* For '-' icon */
}

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

.page-news-industry-trends__faq-item.active .page-news-industry-trends__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 15px 20px;
}

.page-news-industry-trends__faq-answer p {
  margin-top: 0;
  margin-bottom: 1em;
  font-size: 1em;
}

/* 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__hero-section {
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }
  .page-news-industry-trends__hero-title {
    font-size: 2.2em;
  }
  .page-news-industry-trends__hero-description {
    font-size: 1em;
  }
  .page-news-industry-trends__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to prevent overflow */
  }
  .page-news-industry-trends__btn-primary,
  .page-news-industry-trends__btn-secondary {
    width: 100% !important; /* Full width for buttons */
    max-width: 100% !important;
    padding-left: 15px !important; /* Ensure padding for text */
    padding-right: 15px !important;
  }
  .page-news-industry-trends__section-title {
    font-size: 1.8em;
  }
  .page-news-industry-trends__sub-title {
    font-size: 1.5em;
  }
  .page-news-industry-trends p,
  .page-news-industry-trends li {
    font-size: 1em;
  }
  .page-news-industry-trends__feature-list {
    grid-template-columns: 1fr;
  }
  .page-news-industry-trends__container {
    padding: 0 15px; /* Adjust container padding for mobile */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Mobile image adaptation */
  .page-news-industry-trends img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-news-industry-trends__content-section,
  .page-news-industry-trends__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
  
  .page-news-industry-trends__faq-item {
    margin: 0 15px 15px 15px;
  }
  .page-news-industry-trends__faq-question {
    padding: 15px;
  }
  .page-news-industry-trends__faq-answer {
    padding: 0 15px;
  }
  .page-news-industry-trends__faq-item.active .page-news-industry-trends__faq-answer {
    padding: 15px 15px;
  }
}

@media (max-width: 480px) {
  .page-news-industry-trends__hero-title {
    font-size: 1.8em;
  }
  .page-news-industry-trends__section-title {
    font-size: 1.5em;
  }
  .page-news-industry-trends__feature-title {
    font-size: 1.2em;
  }
}