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

/* Base styles for the page */
.page-news-industry-updates {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Inherited from body, set for consistency */
}

.page-news-industry-updates__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-news-industry-updates__section-title {
  font-size: 2.5em;
  color: #ffc107; /* Highlight with secondary color */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-news-industry-updates__subsection-title {
  font-size: 1.8em;
  color: #007bff; /* Primary color for subheadings */
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-news-industry-updates__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0; /* Slightly off-white for better readability on dark */
}

/* Hero Section */
.page-news-industry-updates__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 100px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  min-height: 600px;
  overflow: hidden;
  color: #ffffff;
}

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

.page-news-industry-updates__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-news-industry-updates__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffc107; /* Highlight with secondary color */
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-news-industry-updates__hero-description {
  font-size: 1.4em;
  margin-bottom: 30px;
  max-width: 800px;
  color: #f0f0f0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Buttons */
.page-news-industry-updates__btn-primary {
  display: inline-block;
  background-color: #007bff;
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: 2px solid #007bff;
}

.page-news-industry-updates__btn-primary:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

/* Section Styling */
.page-news-industry-updates__section {
  padding: 60px 0;
}

.page-news-industry-updates__dark-bg {
  background-color: #1a1a1a; /* Slightly lighter dark for contrast */
  color: #ffffff;
}

.page-news-industry-updates__light-bg {
  background-color: #f8f9fa;
  color: #333333;
}

.page-news-industry-updates__light-bg .page-news-industry-updates__paragraph,
.page-news-industry-updates__light-bg .page-news-industry-updates__faq-title,
.page-news-industry-updates__light-bg .page-news-industry-updates__faq-toggle {
  color: #333333;
}

.page-news-industry-updates__light-bg .page-news-industry-updates__section-title {
  color: #007bff;
}

.page-news-industry-updates__light-bg .page-news-industry-updates__subsection-title {
  color: #1a1a1a;
}

/* Grid Container for Cards */
.page-news-industry-updates__grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Cards */
.page-news-industry-updates__card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

.page-news-industry-updates__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.page-news-industry-updates__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-news-industry-updates__card-title {
  font-size: 1.5em;
  color: #007bff;
  margin-bottom: 10px;
  padding: 0 20px;
  font-weight: bold;
}

.page-news-industry-updates__card-text {
  font-size: 1em;
  color: #555555;
  padding: 0 20px;
}

/* Image-Content Layout */
.page-news-industry-updates__image-content-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-top: 40px;
}

.page-news-industry-updates__content-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

.page-news-industry-updates__image-content-layout > div {
  flex: 1;
}

/* FAQ Section */
.page-news-industry-updates__faq-section {
  padding: 60px 0;
}

.page-news-industry-updates__faq-list {
  margin-top: 40px;
  border-top: 1px solid #e0e0e0;
}

.page-news-industry-updates__faq-item {
  border-bottom: 1px solid #e0e0e0;
}

.page-news-industry-updates__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

.page-news-industry-updates__faq-title {
  font-size: 1.2em;
  font-weight: bold;
  color: #333333;
  margin: 0;
}

.page-news-industry-updates__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #007bff;
  transition: transform 0.3s ease;
}

.page-news-industry-updates__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 15px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

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

.page-news-industry-updates__faq-item.active .page-news-industry-updates__faq-toggle {
  transform: rotate(0deg); /* '+' becomes '−' in JS, no rotation needed */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news-industry-updates__hero-title {
    font-size: 3em;
  }
  .page-news-industry-updates__hero-description {
    font-size: 1.2em;
  }
  .page-news-industry-updates__image-content-layout {
    flex-direction: column;
    align-items: center;
  }
  .page-news-industry-updates__content-image {
    max-width: 100%;
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-news-industry-updates__hero-section {
    padding: 80px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
  }
  .page-news-industry-updates__hero-title {
    font-size: 2.2em;
  }
  .page-news-industry-updates__hero-description {
    font-size: 1em;
  }
  .page-news-industry-updates__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }
  .page-news-industry-updates__subsection-title {
    font-size: 1.5em;
  }
  .page-news-industry-updates__paragraph {
    font-size: 1em;
  }
  .page-news-industry-updates__grid-container {
    grid-template-columns: 1fr;
  }
  .page-news-industry-updates__btn-primary {
    padding: 12px 25px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-news-industry-updates__content-area,
  .page-news-industry-updates__section,
  .page-news-industry-updates__faq-section {
    padding: 40px 0;
  }
  .page-news-industry-updates__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Mobile image responsiveness */
  .page-news-industry-updates img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-news-industry-updates__card-image {
    height: 200px; /* Adjust height for mobile cards */
  }
  .page-news-industry-updates__hero-image {
    max-width: 100% !important;
    height: 100% !important; /* Maintain height to cover hero section */
  }

  /* Ensure no horizontal scroll for containers with images/buttons */
  .page-news-industry-updates__grid-container,
  .page-news-industry-updates__image-content-layout,
  .page-news-industry-updates__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding: 0 15px;
  }
  .page-news-industry-updates__faq-question {
    padding: 15px 0;
  }
}

@media (max-width: 480px) {
  .page-news-industry-updates__hero-title {
    font-size: 1.8em;
  }
  .page-news-industry-updates__section-title {
    font-size: 1.8em;
  }
  .page-news-industry-updates__subsection-title {
    font-size: 1.3em;
  }
}