/* style/industry-news.css */

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

.page-industry-news {
  font-family: Arial, sans-serif;
  color: var(--text-main); /* Default text color for the page */
  background-color: var(--background-color); /* Page background from custom colors */
}

/* Hero Section */
.page-industry-news__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px; /* General padding */
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  box-sizing: border-box;
}

.page-industry-news__hero-image-wrapper {
  width: 100%;
  max-width: 100%; /* Ensure full width on desktop */
  overflow: hidden;
  position: relative;
  margin-bottom: 20px;
}

.page-industry-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-industry-news__hero-content {
  text-align: center;
  max-width: 900px;
  margin-top: 20px; /* Space below image */
  padding: 0 20px;
}

.page-industry-news__main-title {
  color: var(--text-main);
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 15px;
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* H1 font size constraint */
}

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

.page-industry-news__cta-button {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box; /* For button responsive rule */
  white-space: normal; /* For button responsive rule */
  word-wrap: break-word; /* For button responsive rule */
}

.page-industry-news__btn-primary {
  background: var(--button-gradient);
  color: #ffffff; /* White text for primary button */
  border: none;
}

.page-industry-news__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-industry-news__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
}


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

/* Section Titles and Descriptions */
.page-industry-news__section-title {
  color: var(--text-main);
  text-align: center;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-industry-news__section-description {
  color: var(--text-secondary);
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 40px;
}

/* Articles Section (Light Background) */
.page-industry-news__articles-section {
  padding: 80px 0;
  background-color: var(--background-color); /* Using the overall page background */
}

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

.page-industry-news__article-card {
  background-color: var(--card-bg); /* Card background from custom colors */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-industry-news__article-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

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

.page-industry-news__article-title {
  color: var(--text-main);
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-industry-news__article-meta {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.page-industry-news__article-excerpt {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1; /* Allow excerpt to take available space */
}

.page-industry-news__read-more {
  color: var(--secondary-color);
  font-weight: bold;
  display: inline-block;
  margin-top: auto; /* Push to bottom */
}

.page-industry-news__view-all {
  text-align: center;
  margin-top: 50px;
}

/* Insights Section (Dark Background) */
.page-industry-news__insights-section {
  padding: 80px 0;
  background-color: var(--card-bg); /* Using a darker background for contrast */
}

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

.page-industry-news__insight-item {
  background-color: var(--deep-green); /* A deeper green for insight cards */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
}

.page-industry-news__insight-title {
  color: var(--text-main);
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-industry-news__insight-meta {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

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

/* Promotions CTA Section */
.page-industry-news__promotions-cta {
  padding: 80px 0;
  background-color: var(--background-color); /* Using the overall page background */
}

.page-industry-news__promotions-cta .page-industry-news__container {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-industry-news__promotions-content {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.page-industry-news__promotions-content .page-industry-news__section-title,
.page-industry-news__promotions-content .page-industry-news__description {
  text-align: left;
}

.page-industry-news__promotions-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-industry-news__promotions-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
}

/* FAQ Section */
.page-industry-news__faq-section {
  padding: 80px 0;
  background-color: var(--card-bg); /* Darker background for FAQ */
}

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

.page-industry-news__faq-item {
  background-color: var(--deep-green); /* FAQ item background */
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

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

.page-industry-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.15rem;
  color: var(--text-main);
  background-color: var(--deep-green);
  transition: background-color 0.3s ease;
}

.page-industry-news__faq-question:hover {
  background-color: rgba(var(--deep-green), 0.8);
}

.page-industry-news__faq-qtext {
  flex-grow: 1;
}

.page-industry-news__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--glow-color); /* Use glow color for toggle icon */
}

.page-industry-news__faq-answer {
  padding: 0 25px 20px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}
.page-industry-news__faq-answer p {
  margin-bottom: 0;
}


/* Responsive Design */
@media (max-width: 1024px) {
  .page-industry-news__hero-section {
    padding: 40px 15px;
    padding-top: 10px;
  }
  .page-industry-news__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-industry-news__description {
    font-size: 1rem;
  }
  .page-industry-news__articles-section,
  .page-industry-news__insights-section,
  .page-industry-news__promotions-cta,
  .page-industry-news__faq-section {
    padding: 60px 0;
  }
  .page-industry-news__container {
    padding: 0 15px;
  }
  .page-industry-news__articles-grid,
  .page-industry-news__insights-grid {
    grid-template-columns: 1fr;
  }
  .page-industry-news__promotions-cta .page-industry-news__container {
    flex-direction: column;
    text-align: center;
  }
  .page-industry-news__promotions-content {
    text-align: center;
  }
  .page-industry-news__promotions-content .page-industry-news__section-title,
  .page-industry-news__promotions-content .page-industry-news__description {
    text-align: center;
  }
}

@media (max-width: 768px) {
  /* Global responsive for images, videos, buttons */
  .page-industry-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-industry-news video,
  .page-industry-news__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-industry-news__video-section,
  .page-industry-news__video-container,
  .page-industry-news__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-industry-news__video-section {
    padding-top: 10px !important;
  }

  .page-industry-news__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-industry-news__cta-button,
  .page-industry-news__btn-primary,
  .page-industry-news__btn-secondary,
  .page-industry-news a[class*="button"],
  .page-industry-news a[class*="btn"] {
    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;
    margin-left: 0 !important; /* Reset any horizontal margins */
    margin-right: 0 !important;
  }

  .page-industry-news__cta-buttons,
  .page-industry-news__button-group,
  .page-industry-news__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column; /* Stack buttons vertically on mobile */
  }

  /* Specific section adjustments */
  .page-industry-news__hero-section {
    padding: 30px 15px;
    padding-top: 10px;
  }
  .page-industry-news__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-industry-news__description {
    font-size: 0.95rem;
  }
  .page-industry-news__articles-section,
  .page-industry-news__insights-section,
  .page-industry-news__promotions-cta,
  .page-industry-news__faq-section {
    padding: 40px 0;
  }
  .page-industry-news__section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }
  .page-industry-news__article-title,
  .page-industry-news__insight-title {
    font-size: 1.2rem;
  }
  .page-industry-news__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-industry-news__faq-answer {
    padding: 0 20px 15px;
  }
}