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

/* Base styles for the page content */
.page-news-industry-updates {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for the page, as body is dark */
  background-color: #000000; /* Ensuring consistency with body background */
}

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

/* Header offset for main content or hero section */
.page-news-industry-updates__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-bottom: 60px;
}

.page-news-industry-updates__main-title {
  font-size: 3.5em;
  color: #FFFF00; /* Bright color for main title */
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-news-industry-updates__description {
  font-size: 1.2em;
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-news-industry-updates__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-news-industry-updates__btn-primary,
.page-news-industry-updates__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  min-width: 180px;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
}

.page-news-industry-updates__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-news-industry-updates__btn-primary:hover {
  background-color: #ff3333;
  border-color: #ff3333;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Default secondary button style (for light backgrounds) */
.page-news-industry-updates__btn-secondary {
  background-color: #ffffff; /* White background */
  color: #017439; /* Brand primary color text */
  border: 2px solid #017439; /* Brand primary color border */
}

.page-news-industry-updates__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Override for secondary button within dark sections (e.g., hero) */
.page-news-industry-updates__dark-bg .page-news-industry-updates__btn-secondary {
  background-color: #017439; /* Brand primary color background */
  color: #ffffff; /* White text */
  border: 2px solid #ffffff; /* White border */
}

.page-news-industry-updates__dark-bg .page-news-industry-updates__btn-secondary:hover {
  background-color: #005a2d; /* Slightly darker green on hover */
  border-color: #f0f0f0; /* Slightly off-white border on hover */
  color: #ffffff;
}

.page-news-industry-updates__btn-primary--large {
    font-size: 1.3em;
    padding: 18px 40px;
    min-width: 250px;
}

/* Section common styles */
.page-news-industry-updates__latest-news,
.page-news-industry-updates__regulatory-updates,
.page-news-industry-updates__tech-innovations,
.page-news-industry-updates__market-analysis,
.page-news-industry-updates__video-section,
.page-news-industry-updates__faq-section,
.page-news-industry-updates__cta-final {
  padding: 80px 0;
}

.page-news-industry-updates__section-title {
  font-size: 2.5em;
  margin-bottom: 40px;
  text-align: center;
  line-height: 1.2;
}

.page-news-industry-updates__text-block {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 50px auto;
  text-align: center;
}

/* Color schemes for sections */
.page-news-industry-updates__dark-bg {
  background-color: #017439; /* Brand primary color for dark sections */
  color: #ffffff;
}

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

/* Latest News Section */
.page-news-industry-updates__news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-news-industry-updates__news-card {
  background-color: #f8f8f8;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333; /* Dark text on card */
}

.page-news-industry-updates__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-news-industry-updates__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-news-industry-updates__card-content {
  padding: 25px;
}

.page-news-industry-updates__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-news-industry-updates__card-title a {
  color: #017439; /* Brand primary color for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news-industry-updates__card-title a:hover {
  color: #005a2d;
}

.page-news-industry-updates__card-text {
  font-size: 1em;
  margin-bottom: 20px;
}

.page-news-industry-updates__read-more {
  display: inline-block;
  color: #C30808; /* Red for read more link */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-news-industry-updates__read-more:hover {
  color: #ff3333;
  text-decoration: underline;
}

/* Regulatory Updates Section */
.page-news-industry-updates__info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-news-industry-updates__info-card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  color: #333333;
}

.page-news-industry-updates__card-subtitle {
  font-size: 1.4em;
  color: #017439;
  margin-bottom: 15px;
}

/* Tech Innovations Section */
.page-news-industry-updates__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-news-industry-updates__feature-item {
  background-color: #f8f8f8;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
  text-align: center;
}

.page-news-industry-updates__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-news-industry-updates__feature-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-news-industry-updates__feature-title {
  font-size: 1.4em;
  color: #017439;
  margin: 20px 0 10px 0;
  padding: 0 20px;
}

.page-news-industry-updates__feature-text {
  font-size: 1em;
  padding: 0 20px 20px 20px;
}

/* Market Analysis Section */
.page-news-industry-updates__market-insights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-news-industry-updates__insight-card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  color: #333333;
}

/* Video Section */
.page-news-industry-updates__video-section {
  text-align: center;
  background-color: #000000; /* Explicitly black for video section */
  color: #ffffff;
}

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

.page-news-industry-updates__video-link {
    display: block; /* Make the anchor block level to contain the video */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.page-news-industry-updates__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.page-news-industry-updates__cta-buttons--video {
    margin-top: 0; /* Adjust margin if needed for video CTA */
}

/* FAQ Section */
.page-news-industry-updates__faq-list {
  max-width: 800px;
  margin: 50px auto 0 auto;
}

.page-news-industry-updates__faq-item {
  background-color: #f8f8f8;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  color: #333333;
}

.page-news-industry-updates__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #e0e0e0;
  border-bottom: 1px solid #d0d0d0;
  color: #017439; /* Question text color */
  transition: background-color 0.3s ease;
}

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

.page-news-industry-updates__faq-question h3 {
    margin: 0;
    font-size: 1.2em; /* Ensure h3 within question matches font size */
    color: #017439;
}

.page-news-industry-updates__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #C30808; /* Toggle icon color */
}

.page-news-industry-updates__faq-item.active .page-news-industry-updates__faq-toggle {
  transform: rotate(45deg); /* Plus to X (or just change to minus) */
}

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

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

.page-news-industry-updates__faq-answer p {
    margin: 0;
    color: #333333;
}


/* Responsive styles */
@media (max-width: 1024px) {
  .page-news-industry-updates__main-title {
    font-size: 2.8em;
  }
  .page-news-industry-updates__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-news-industry-updates__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-news-industry-updates__container {
    padding: 0 15px;
  }
  .page-news-industry-updates__main-title {
    font-size: 2.2em;
  }
  .page-news-industry-updates__description {
    font-size: 1em;
  }
  .page-news-industry-updates__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-news-industry-updates__btn-primary,
  .page-news-industry-updates__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-news-industry-updates__btn-primary--large {
      padding: 15px 30px;
      font-size: 1.1em;
  }
  .page-news-industry-updates__section-title {
    font-size: 1.8em;
  }
  .page-news-industry-updates__text-block {
    font-size: 0.95em;
  }

  /* Images responsive */
  .page-news-industry-updates img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-news-industry-updates__news-card,
  .page-news-industry-updates__info-card,
  .page-news-industry-updates__feature-item,
  .page-news-industry-updates__insight-card,
  .page-news-industry-updates__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-news-industry-updates__news-grid,
  .page-news-industry-updates__info-cards,
  .page-news-industry-updates__features-grid,
.page-news-industry-updates__market-insights {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Video responsive */
  .page-news-industry-updates video,
  .page-news-industry-updates__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-news-industry-updates__video-section,
  .page-news-industry-updates__video-container,
  .page-news-industry-updates__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-news-industry-updates__video-wrapper {
      padding-bottom: 56.25% !important; /* Maintain aspect ratio */
  }
  /* Specific padding for video section on mobile */
  .page-news-industry-updates__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  /* FAQ responsive */
  .page-news-industry-updates__faq-question,
  .page-news-industry-updates__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-news-industry-updates__faq-question h3 {
      font-size: 1.1em;
  }
}