/* 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: var(--text-main-color, #F2FFF6); /* Default to Text Main if not explicitly set */
  background-color: var(--background-color-page, #08160F); /* Use custom background color */
}

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

/* Hero Section */
.page-news-industry-trends__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding as body handles header offset */
  padding-bottom: 60px;
  min-height: 500px;
}

.page-news-industry-trends__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  max-height: 600px; /* Limit height for hero image */
}

.page-news-industry-trends__hero-content {
  position: relative;
  z-index: 2;
  color: var(--text-main-color, #F2FFF6);
  max-width: 900px;
  padding: 40px 20px;
  background: rgba(8, 22, 15, 0.7); /* Deep Green background with opacity */
  border-radius: 10px;
}

.page-news-industry-trends__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--gold-color, #F2C14E);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

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

.page-news-industry-trends__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Section Titles */
.page-news-industry-trends__section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: bold;
  color: var(--text-main-color, #F2FFF6);
  text-align: center;
  margin-bottom: 40px;
  padding-top: 60px;
}

.page-news-industry-trends__section-description {
  font-size: 1.1rem;
  color: var(--text-secondary-color, #A7D9B8);
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-news-industry-trends__sub-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--gold-color, #F2C14E);
  margin-top: 30px;
  margin-bottom: 15px;
}

/* 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;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-news-industry-trends__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-news-industry-trends__btn-secondary {
  background-color: transparent;
  color: var(--text-main-color, #F2FFF6);
  border: 2px solid var(--border-color, #2E7A4E);
}

.page-news-industry-trends__btn-secondary:hover {
  background-color: rgba(46, 122, 78, 0.2); /* Border color with opacity */
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Latest News Section */
.page-news-industry-trends__latest-news-section {
  padding: 80px 0;
  background-color: var(--background-color-page, #08160F);
}

.page-news-industry-trends__news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.page-news-industry-trends__news-card {
  background-color: var(--card-bg-color, #11271B);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-news-industry-trends__news-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-news-industry-trends__news-date {
  font-size: 0.9rem;
  color: var(--text-secondary-color, #A7D9B8);
  margin-bottom: 10px;
  display: block;
}

.page-news-industry-trends__news-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.4;
  flex-grow: 1;
}

.page-news-industry-trends__news-title a {
  color: var(--text-main-color, #F2FFF6);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news-industry-trends__news-title a:hover {
  color: var(--gold-color, #F2C14E);
}

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

.page-news-industry-trends__read-more-btn {
  display: inline-block;
  margin-top: auto;
  color: var(--gold-color, #F2C14E);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-news-industry-trends__read-more-btn:hover {
  color: var(--glow-color, #57E38D);
}

.page-news-industry-trends__view-all-btn-container {
  text-align: center;
}

/* Trends Analysis Section */
.page-news-industry-trends__trends-analysis-section {
  padding: 80px 0;
  background-color: var(--deep-green-color, #0A4B2C);
}

.page-news-industry-trends__trends-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.page-news-industry-trends__trends-image {
  width: 50%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  min-width: 400px; /* Minimum size for content image */
}

.page-news-industry-trends__text-block {
  width: 50%;
  color: var(--text-main-color, #F2FFF6);
}

.page-news-industry-trends__text-block p {
  margin-bottom: 15px;
  font-size: 1.05rem;
  color: var(--text-secondary-color, #A7D9B8);
}

/* Platform Updates Section */
.page-news-industry-trends__platform-updates-section {
  padding: 80px 0;
  background-color: var(--background-color-page, #08160F);
}

.page-news-industry-trends__updates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.page-news-industry-trends__update-item {
  background-color: var(--card-bg-color, #11271B);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.page-news-industry-trends__update-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  display: block;
}

.page-news-industry-trends__update-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--gold-color, #F2C14E);
  margin-bottom: 15px;
}

.page-news-industry-trends__update-item p {
  font-size: 1rem;
  color: var(--text-secondary-color, #A7D9B8);
  margin-bottom: 20px;
}

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

.page-news-industry-trends__cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: bold;
  color: var(--text-main-color, #F2FFF6);
  margin-bottom: 20px;
}

.page-news-industry-trends__cta-description {
  font-size: 1.15rem;
  color: var(--text-secondary-color, #A7D9B8);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* FAQ Section */
.page-news-industry-trends__faq-section {
  padding: 80px 0;
  background-color: var(--background-color-page, #08160F);
}

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

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

.page-news-industry-trends__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--text-main-color, #F2FFF6);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.page-news-industry-trends__faq-question::-webkit-details-marker {
  display: none;
}

.page-news-industry-trends__faq-question:hover {
  color: var(--gold-color, #F2C14E);
}

.page-news-industry-trends__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
}

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

.page-news-industry-trends__faq-answer p {
  margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news-industry-trends__trends-content {
    flex-direction: column;
    align-items: center;
  }

  .page-news-industry-trends__trends-image,
  .page-news-industry-trends__text-block {
    width: 100%;
    min-width: unset;
  }
}

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

  .page-news-industry-trends__container {
    padding: 0 15px;
  }

  /* Hero Section */
  .page-news-industry-trends__hero-section {
    padding-bottom: 40px;
    min-height: 400px;
  }
  
  .page-news-industry-trends__hero-content {
    padding: 20px 15px;
  }

  .page-news-industry-trends__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .page-news-industry-trends__description {
    font-size: 1rem;
  }

  .page-news-industry-trends__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  /* Section Titles */
  .page-news-industry-trends__section-title {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
    margin-bottom: 30px;
    padding-top: 40px;
  }

  .page-news-industry-trends__section-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .page-news-industry-trends__sub-title {
    font-size: 1.5rem;
  }

  /* Buttons */
  .page-news-industry-trends__btn-primary,
  .page-news-industry-trends__btn-secondary {
    padding: 12px 20px;
    font-size: 1rem;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-news-industry-trends__hero-cta-buttons,
  .page-news-industry-trends__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important; /* Force column layout for buttons on mobile */
    gap: 15px !important;
  }

  /* News Grid */
  .page-news-industry-trends__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-news-industry-trends__news-card {
    margin-bottom: 20px;
  }

  .page-news-industry-trends__news-image {
    height: 180px;
  }

  .page-news-industry-trends__news-title {
    font-size: 1.2rem;
  }

  /* Trends Analysis Section */
  .page-news-industry-trends__trends-analysis-section,
  .page-news-industry-trends__platform-updates-section,
  .page-news-industry-trends__cta-section,
  .page-news-industry-trends__faq-section {
    padding: 50px 0;
  }

  .page-news-industry-trends__trends-content {
    gap: 20px;
  }

  .page-news-industry-trends__trends-image,
  .page-news-industry-trends__text-block {
    width: 100%;
  }

  .page-news-industry-trends__text-block p {
    font-size: 0.95rem;
  }

  /* Platform Updates */
  .page-news-industry-trends__updates-grid {
    grid-template-columns: 1fr;
  }

  .page-news-industry-trends__update-image {
    height: 200px;
  }

  .page-news-industry-trends__update-title {
    font-size: 1.3rem;
  }

  /* FAQ */
  .page-news-industry-trends__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-news-industry-trends__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95rem;
  }

  /* Image responsiveness */
  .page-news-industry-trends img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-news-industry-trends__section,
  .page-news-industry-trends__card,
  .page-news-industry-trends__container,
  .page-news-industry-trends__trends-image,
  .page-news-industry-trends__update-item,
  .page-news-industry-trends__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  .page-news-industry-trends__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
}

/* Custom Colors */
:root {
  --main-color: #11A84E;
  --accent-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg-color: #11271B;
  --background-color-page: #08160F;
  --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 main text against dark background */
.page-news-industry-trends p,
.page-news-industry-trends li {
  color: var(--text-secondary-color, #A7D9B8);
}

/* Specific contrast fixes if needed, though colors are predefined for contrast */
.page-news-industry-trends__text-block h3 {
  color: var(--gold-color, #F2C14E);
}

/* No CSS filter for images */
.page-news-industry-trends img {
  filter: none; /* Ensure no filters are applied */
}