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

/* --- Base Styles --- */
.page-news-industry-insights {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-secondary-color, #A7D9B8); /* Default light text color for dark background */
  background-color: var(--bg-color, #08160F); /* Ensure body background is respected */
  padding-bottom: 40px;
}

.page-news-industry-insights a {
  color: var(--primary-color, #11A84E);
  text-decoration: none;
}

.page-news-industry-insights a:hover {
  text-decoration: underline;
}

.page-news-industry-insights__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  color: var(--text-main-color, #F2FFF6);
}

.page-news-industry-insights__sub-title {
  font-size: 1.8em;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--text-main-color, #F2FFF6);
}

.page-news-industry-insights p {
  margin-bottom: 15px;
  color: var(--text-secondary-color, #A7D9B8);
}

.page-news-industry-insights__btn-primary,
.page-news-industry-insights__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-news-industry-insights__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
}

.page-news-industry-insights__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-news-industry-insights__btn-secondary {
  background: transparent;
  color: var(--primary-color, #11A84E);
  border: 2px solid var(--primary-color, #11A84E);
}

.page-news-industry-insights__btn-secondary:hover {
  background: var(--primary-color, #11A84E);
  color: #ffffff;
}

/* --- Hero Section --- */
.page-news-industry-insights__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Ensure image is above content */
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  overflow: hidden; /* Prevent content overflow */
}

.page-news-industry-insights__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit hero image height */
    overflow: hidden;
    margin-bottom: 30px; /* Space between image and content */
}

.page-news-industry-insights__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

.page-news-industry-insights__hero-content {
  max-width: 900px;
  text-align: center;
  padding: 0 20px;
  z-index: 1; /* Ensure content is above any background layers */
}

.page-news-industry-insights__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
  font-weight: 800;
  color: var(--text-main-color, #F2FFF6);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-news-industry-insights__intro-text {
  font-size: 1.1em;
  color: var(--text-secondary-color, #A7D9B8);
  margin-bottom: 30px;
}

.page-news-industry-insights__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%; /* Ensure container takes full width */
  max-width: 500px; /* Limit button group width */
  margin: 0 auto;
}

/* --- Content Area --- */
.page-news-industry-insights__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: var(--bg-color, #08160F); /* Match body background */
  color: var(--text-secondary-color, #A7D9B8); /* Default text color for content */
}

.page-news-industry-insights__content-area h2,
.page-news-industry-insights__content-area h3 {
  color: var(--text-main-color, #F2FFF6);
}

.page-news-industry-insights__image-block {
  margin: 30px 0;
  text-align: center;
}

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

.page-news-industry-insights__feature-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.page-news-industry-insights__feature-list li {
  background-color: var(--card-bg-color, #11271B);
  margin-bottom: 10px;
  padding: 15px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: var(--text-secondary-color, #A7D9B8);
}

.page-news-industry-insights__feature-list li strong {
  color: var(--text-main-color, #F2FFF6);
  margin-right: 10px;
}

/* --- Related Articles --- */
.page-news-industry-insights__related-articles {
  background-color: var(--card-bg-color, #11271B); /* Use card background color */
  padding: 60px 20px;
  text-align: center;
}

.page-news-industry-insights__related-articles .page-news-industry-insights__section-title {
  color: var(--text-main-color, #F2FFF6);
}

.page-news-industry-insights__article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 40px auto;
}

.page-news-industry-insights__article-card {
  background-color: var(--bg-color, #08160F); /* Darker background for card content */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news-industry-insights__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

.page-news-industry-insights__article-content {
  padding: 20px;
  text-align: left;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-news-industry-insights__article-title {
  font-size: 1.3em;
  margin-bottom: 10px;
  color: var(--text-main-color, #F2FFF6);
}

.page-news-industry-insights__article-title a {
  color: var(--text-main-color, #F2FFF6);
  text-decoration: none;
}

.page-news-industry-insights__article-title a:hover {
  color: var(--primary-color, #11A84E);
}

.page-news-industry-insights__article-meta {
  font-size: 0.9em;
  color: var(--text-secondary-color, #A7D9B8);
  margin-bottom: 15px;
}

.page-news-industry-insights__article-excerpt {
  font-size: 1em;
  color: var(--text-secondary-color, #A7D9B8);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news-industry-insights__read-more {
  display: inline-block;
  color: var(--secondary-color, #22C768);
  font-weight: bold;
  text-decoration: none;
}

.page-news-industry-insights__read-more:hover {
  text-decoration: underline;
}

.page-news-industry-insights__view-all {
  margin-top: 20px;
}

/* --- FAQ Section --- */
.page-news-industry-insights__faq-section {
  background-color: var(--deep-green-color, #0A4B2C); /* Use deep green background */
  padding: 60px 20px;
  text-align: center;
}

.page-news-industry-insights__faq-section .page-news-industry-insights__section-title {
  color: var(--text-main-color, #F2FFF6);
}

.page-news-industry-insights__faq-list {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.page-news-industry-insights__faq-item {
  background-color: var(--card-bg-color, #11271B);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-news-industry-insights__faq-item summary {
  display: block; /* For details tag */
  list-style: none; /* Remove default marker */
  cursor: pointer;
  padding: 20px 25px;
  font-size: 1.1em;
  font-weight: bold;
  color: var(--text-main-color, #F2FFF6);
  position: relative;
  outline: none;
}

.page-news-industry-insights__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-news-industry-insights__faq-qtext {
  padding-right: 40px; /* Space for toggle icon */
  display: block;
}

.page-news-industry-insights__faq-toggle {
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5em;
  line-height: 1;
  color: var(--secondary-color, #22C768);
}

.page-news-industry-insights__faq-item[open] .page-news-industry-insights__faq-toggle {
  content: "−";
}

.page-news-industry-insights__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: var(--text-secondary-color, #A7D9B8);
}

/* --- CTA Section --- */
.page-news-industry-insights__cta-section {
  background-color: var(--primary-color, #11A84E); /* Use primary color as background */
  padding: 60px 20px;
  text-align: center;
  color: #ffffff;
}

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

.page-news-industry-insights__cta-content .page-news-industry-insights__section-title {
  color: #ffffff;
  margin-bottom: 20px;
}

.page-news-industry-insights__cta-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #ffffff;
}

.page-news-industry-insights__cta-text a {
  color: var(--gold-color, #F2C14E); /* Gold color for emphasis */
  font-weight: bold;
}

.page-news-industry-insights__cta-text a:hover {
  text-decoration: underline;
}

/* Ensure buttons in CTA section are styled */
.page-news-industry-insights__cta-section .page-news-industry-insights__cta-buttons .page-news-industry-insights__btn-secondary {
  color: #ffffff;
  border-color: #ffffff;
}

.page-news-industry-insights__cta-section .page-news-industry-insights__cta-buttons .page-news-industry-insights__btn-secondary:hover {
  background: #ffffff;
  color: var(--primary-color, #11A84E);
}

/* Custom Color Variables */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg-color: #11271B;
  --bg-color: #08160F; /* This should ideally come from shared.css body */
  --text-main-color: #F2FFF6;
  --text-secondary-color: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
}

/* Ensure contrast for specific elements if they have different backgrounds */
.page-news-industry-insights__light-bg {
  background-color: var(--bg-color);
  color: var(--text-secondary-color);
}

.page-news-industry-insights__card-bg {
  background-color: var(--card-bg-color);
  color: var(--text-secondary-color);
}

.page-news-industry-insights__dark-bg {
  background-color: var(--deep-green-color);
  color: var(--text-secondary-color);
}

.page-news-industry-insights__text-main {
  color: var(--text-main-color);
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-news-industry-insights__main-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }
}

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

  .page-news-industry-insights__section-title {
    font-size: 2em;
    margin-bottom: 20px;
  }

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

  .page-news-industry-insights__hero-section {
    padding-bottom: 40px;
  }

  .page-news-industry-insights__hero-image-wrapper {
    max-height: 400px;
  }

  .page-news-industry-insights__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }

  .page-news-industry-insights__intro-text {
    font-size: 1em;
  }

  .page-news-industry-insights__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-news-industry-insights__btn-primary,
  .page-news-industry-insights__btn-secondary {
    width: 100% !important; /* Force full width for buttons */
    max-width: 100% !important;
    padding: 12px 15px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-news-industry-insights__content-area,
  .page-news-industry-insights__related-articles,
  .page-news-industry-insights__faq-section,
  .page-news-industry-insights__cta-section {
    padding: 30px 15px;
  }

  .page-news-industry-insights__hero-image,
  .page-news-industry-insights__content-image,
  .page-news-industry-insights__article-image {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Image containers */
  .page-news-industry-insights__image-block,
  .page-news-industry-insights__article-card,
  .page-news-industry-insights__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  .page-news-industry-insights__article-grid {
    grid-template-columns: 1fr; /* Single column layout for articles */
  }

  .page-news-industry-insights__article-image {
    height: 180px; /* Adjust height for mobile */
  }

  .page-news-industry-insights__faq-item summary {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-news-industry-insights__faq-qtext {
    padding-right: 30px;
  }

  .page-news-industry-insights__faq-toggle {
    right: 20px;
    font-size: 1.2em;
  }

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