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

/* Custom Colors */
:root {
  --color-primary: #11A84E;
  --color-secondary: #22C768;
  --color-card-bg: #11271B;
  --color-background: #08160F;
  --color-text-main: #F2FFF6;
  --color-text-secondary: #A7D9B8;
  --color-border: #2E7A4E;
  --color-glow: #57E38D;
  --color-gold: #F2C14E;
  --color-divider: #1E3A2A;
  --color-deep-green: #0A4B2C;
  --btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-news-industry-news {
  font-family: Arial, sans-serif;
  color: var(--color-text-main); /* Default text color for the page content */
  background-color: var(--color-background); /* Ensure consistent background */
}

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

/* Hero Section */
.page-news-industry-news__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding as body handles --header-offset */
  padding-bottom: 60px;
  background-color: var(--color-deep-green);
  overflow: hidden;
}

.page-news-industry-news__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.page-news-industry-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text contrast */
}

.page-news-industry-news__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  box-sizing: border-box;
  margin-top: -100px; /* Pull content up over the image slightly for visual flow */
  background-color: rgba(8, 22, 15, 0.8); /* Semi-transparent background for text block */
  border-radius: 10px;
  padding-bottom: 60px;
}

.page-news-industry-news__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  color: var(--color-text-main);
  margin-bottom: 15px;
  line-height: 1.2;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-news-industry-news__description {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  margin-bottom: 30px;
  line-height: 1.6;
}

/* General Section Styling */
.page-news-industry-news__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--color-text-main);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.3;
}

.page-news-industry-news__section-description {
  font-size: 1rem;
  color: var(--color-text-secondary);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

.page-news-industry-news__sub-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--color-text-main);
  margin-bottom: 15px;
  line-height: 1.4;
  font-weight: 600;
}

.page-news-industry-news p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: 15px;
}

.page-news-industry-news ul {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-news-industry-news li {
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
  line-height: 1.6;
}

.page-news-industry-news li::before {
  content: '✓';
  color: var(--color-gold);
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
}

/* Buttons */
.page-news-industry-news__cta-button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure button adapts to width */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word;
}

.page-news-industry-news__btn-primary {
  background: var(--btn-gradient);
  color: #ffffff;
  border: none;
}

.page-news-industry-news__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(34, 199, 104, 0.4);
}

.page-news-industry-news__btn-secondary {
  background: transparent;
  color: var(--color-text-main);
  border: 2px solid var(--color-border);
}

.page-news-industry-news__btn-secondary:hover {
  background-color: rgba(46, 122, 78, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(46, 122, 78, 0.2);
}

/* Latest News Section */
.page-news-industry-news__latest-news-section,
.page-news-industry-news__market-analysis-section,
.page-news-industry-news__regulatory-section,
.page-news-industry-news__future-outlook-section,
.page-news-industry-news__faq-section,
.page-news-industry-news__cta-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--color-divider);
}

.page-news-industry-news__latest-news-section:last-of-type,
.page-news-industry-news__cta-section:last-of-type {
  border-bottom: none;
}

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

.page-news-industry-news__news-card {
  background-color: var(--color-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

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

.page-news-industry-news__card-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  line-height: 1.4;
  font-weight: bold;
}

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

.page-news-industry-news__card-title a:hover {
  color: var(--color-secondary);
}

.page-news-industry-news__card-date {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-bottom: 15px;
  display: block;
}

.page-news-industry-news__card-text {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news-industry-news__read-more-button {
  display: inline-block;
  color: var(--color-gold);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  align-self: flex-start;
}

.page-news-industry-news__read-more-button:hover {
  color: var(--color-secondary);
}

.page-news-industry-news__button-container {
  text-align: center;
  margin-top: 50px;
}

/* Market Analysis & Regulatory Sections */
.page-news-industry-news__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-top: 40px;
}

.page-news-industry-news__content-wrapper--reverse {
  flex-direction: row-reverse;
}

.page-news-industry-news__text-block {
  flex: 1;
}

.page-news-industry-news__image-block {
  flex: 0 0 500px; /* Fixed width for image block on desktop */
  max-width: 500px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.page-news-industry-news__analysis-image,
.page-news-industry-news__regulatory-image,
.page-news-industry-news__future-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* FAQ Section */
.page-news-industry-news__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-news-industry-news__faq-item {
  background-color: var(--color-card-bg);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.page-news-industry-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--color-text-main);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-news-industry-news__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for details/summary */
}

.page-news-industry-news__faq-question:hover {
  background-color: rgba(46, 122, 78, 0.2);
}

.page-news-industry-news__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-gold);
  margin-left: 15px;
}

.page-news-industry-news__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  opacity: 0.9;
}

.page-news-industry-news__faq-item[open] .page-news-industry-news__faq-toggle {
  content: '−'; /* Change to minus when open */
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news-industry-news__hero-content {
    margin-top: -80px;
    padding-bottom: 50px;
  }
  .page-news-industry-news__content-wrapper {
    flex-direction: column;
    align-items: center;
  }
  .page-news-industry-news__content-wrapper--reverse {
    flex-direction: column;
  }
  .page-news-industry-news__image-block {
    flex: none;
    width: 100%;
    max-width: 600px; /* Adjust max-width for tablets */
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-news-industry-news {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-news-industry-news__hero-section {
    padding-bottom: 40px;
  }
  .page-news-industry-news__hero-content {
    margin-top: -60px;
    padding: 30px 15px;
    padding-bottom: 40px;
  }
  .page-news-industry-news__main-title {
    font-size: 2rem;
  }
  .page-news-industry-news__description {
    font-size: 1rem;
  }
  .page-news-industry-news__section-title {
    font-size: 1.8rem;
  }
  .page-news-industry-news__sub-title {
    font-size: 1.2rem;
  }
  .page-news-industry-news__latest-news-section,
  .page-news-industry-news__market-analysis-section,
  .page-news-industry-news__regulatory-section,
  .page-news-industry-news__future-outlook-section,
  .page-news-industry-news__faq-section,
  .page-news-industry-news__cta-section {
    padding: 40px 0;
  }
  .page-news-industry-news__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-news-industry-news__card-image {
    height: 180px;
  }
  .page-news-industry-news__card-title {
    font-size: 1.1rem;
  }
  .page-news-industry-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-news-industry-news__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-news-industry-news__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-news-industry-news__faq-answer {
    padding: 0 20px 15px 20px;
  }
  /* Mobile image responsiveness */
  .page-news-industry-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-news-industry-news__section,
  .page-news-industry-news__card,
  .page-news-industry-news__container,
  .page-news-industry-news__hero-image-wrapper,
  .page-news-industry-news__image-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-news-industry-news__hero-section {
    padding-top: 10px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-news-industry-news__hero-image-wrapper {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-news-industry-news__image-block {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-news-industry-news__content-wrapper {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-news-industry-news__main-title {
    font-size: 1.7rem;
  }
  .page-news-industry-news__section-title {
    font-size: 1.5rem;
  }
  .page-news-industry-news__hero-content {
    margin-top: -40px;
    padding-bottom: 30px;
  }
  .page-news-industry-news__cta-section {
    padding: 50px 0;
  }
}