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

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

/* Base Styles for the Page Content */
.page-news-industry-updates {
  background-color: var(--bg-dark); /* Using the specified background color */
  color: var(--text-main); /* Light text for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-news-industry-updates__section {
  padding: 60px 0;
}

.page-news-industry-updates__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--gold-color); /* Use gold for main titles for emphasis */
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-news-industry-updates__sub-title {
  font-size: 1.8em;
  font-weight: 600;
  color: var(--secondary-color); /* Use secondary green for sub-titles */
  margin-top: 30px;
  margin-bottom: 20px;
}

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

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

.page-news-industry-updates a {
  color: var(--gold-color);
  text-decoration: none;
}

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

/* Hero Section */
.page-news-industry-updates__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, relying on body for header offset */
  overflow: hidden;
}

.page-news-industry-updates__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.page-news-industry-updates__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-news-industry-updates__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.page-news-industry-updates__main-title {
  font-weight: 800;
  color: var(--gold-color);
  line-height: 1.2;
  margin-bottom: 20px;
  /* No fixed font-size for H1, relying on shared for general h1 styling or browser defaults */
}

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

/* CTA Buttons */
.page-news-industry-updates__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-news-industry-updates__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-align: center;
  font-size: 1.1em;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 200px; /* Ensure buttons are not too small */
  box-sizing: border-box;
}

.page-news-industry-updates__btn-primary {
  background: var(--btn-gradient);
  color: var(--text-main);
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news-industry-updates__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--glow-color);
}

.page-news-industry-updates__btn-secondary {
  background: var(--card-bg);
  color: var(--gold-color);
  border: 2px solid var(--gold-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news-industry-updates__btn-secondary:hover {
  transform: translateY(-3px);
  background: var(--gold-color);
  color: var(--bg-dark);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Image content within sections */
.page-news-industry-updates__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

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

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

.page-news-industry-updates__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 10px var(--glow-color);
}

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

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

.page-news-industry-updates__card-title {
  font-size: 1.4em;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news-industry-updates__card-title a {
  color: var(--text-main);
}

.page-news-industry-updates__card-title a:hover {
  color: var(--gold-color);
  text-decoration: underline;
}

.page-news-industry-updates__card-date {
  font-size: 0.9em;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.page-news-industry-updates__card-description {
  font-size: 1em;
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news-industry-updates__read-more-link {
  color: var(--gold-color);
  font-weight: 600;
  align-self: flex-start;
}

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

/* FAQ Section */
.page-news-industry-updates__faq-list {
  margin-top: 40px;
}

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

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

.page-news-industry-updates__faq-question:hover {
  background-color: var(--deep-green);
}

.page-news-industry-updates__faq-item[open] .page-news-industry-updates__faq-question {
  background-color: var(--deep-green);
}

.page-news-industry-updates__faq-item[open] .page-news-industry-updates__faq-toggle {
  transform: rotate(45deg);
}

.page-news-industry-updates__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--gold-color);
}

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

.page-news-industry-updates__faq-item details > summary {
  list-style: none;
}

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

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

  .page-news-industry-updates__sub-title {
    font-size: 1.6em;
  }

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

  .page-news-industry-updates__articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-news-industry-updates__section {
    padding: 40px 0;
  }

  .page-news-industry-updates__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-news-industry-updates__sub-title {
    font-size: 1.4em;
  }

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

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

  .page-news-industry-updates__main-title {
    font-size: 1.8em;
  }

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

  .page-news-industry-updates__button-group {
    flex-direction: column;
    gap: 15px;
  }

  .page-news-industry-updates__cta-button,
  .page-news-industry-updates a[class*="button"],
  .page-news-industry-updates 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;
  }

  .page-news-industry-updates__button-group,
  .page-news-industry-updates__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;
  }

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

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

  .page-news-industry-updates__section,
  .page-news-industry-updates__card,
  .page-news-industry-updates__container,
  .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;
  }

  /* Ensure content images are not too small in content area */
  .page-news-industry-updates__image-content,
  .page-news-industry-updates__card-image {
    min-width: 200px !important;
    min-height: 200px !important;
  }

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

  .page-news-industry-updates__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }

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