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

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --button-register: #C30808;
  --button-login: #C30808;
  --button-font-color: #FFFF00;
}

.page-news-latest-industry-updates {
  font-family: 'Arial', sans-serif;
  color: var(--text-dark); /* Default text color for light backgrounds */
  background-color: var(--secondary-color); /* Matches body background from shared.css */
}

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

.page-news-latest-industry-updates__section {
  padding: 80px 0;
  text-align: center;
}

.page-news-latest-industry-updates__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-news-latest-industry-updates__light-bg {
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

.page-news-latest-industry-updates__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding: 100px 0;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  overflow: hidden;
}

.page-news-latest-industry-updates__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
  z-index: 1;
}

.page-news-latest-industry-updates__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.page-news-latest-industry-updates__hero-section .page-news-latest-industry-updates__container {
  position: relative;
  z-index: 2;
  text-align: center;
}

.page-news-latest-industry-updates__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-light);
}

.page-news-latest-industry-updates__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
}

.page-news-latest-industry-updates__section-title {
  font-size: 2.5em;
  margin-bottom: 40px;
  line-height: 1.3;
}

.page-news-latest-industry-updates__subsection-title {
  font-size: 1.8em;
  margin-top: 40px;
  margin-bottom: 20px;
  line-height: 1.4;
}

.page-news-latest-industry-updates__text-block {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-news-latest-industry-updates__text-block--center {
  text-align: center;
}

.page-news-latest-industry-updates__image-content {
  width: 100%;
  height: auto;
  max-width: 800px;
  margin: 30px auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-news-latest-industry-updates__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-news-latest-industry-updates__cta-buttons--center {
  justify-content: center;
}

.page-news-latest-industry-updates__btn-primary,
.page-news-latest-industry-updates__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button fits container */
  white-space: normal;
  word-wrap: break-word;
}

.page-news-latest-industry-updates__btn-primary {
  background-color: var(--button-register); /* Specific color for register/login */
  color: var(--button-font-color); /* Specific font color */
  border: 2px solid var(--button-register);
}

.page-news-latest-industry-updates__btn-primary:hover {
  background-color: darken(var(--button-register), 10%);
  border-color: darken(var(--button-register), 10%);
}

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

.page-news-latest-industry-updates__dark-bg .page-news-latest-industry-updates__btn-secondary {
  color: var(--text-light);
  border-color: var(--text-light);
}

.page-news-latest-industry-updates__light-bg .page-news-latest-industry-updates__btn-secondary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.page-news-latest-industry-updates__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
}

.page-news-latest-industry-updates__light-bg .page-news-latest-industry-updates__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-news-latest-industry-updates__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 40px auto;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}

.page-news-latest-industry-updates__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  cursor: pointer;
}

/* FAQ Section */
.page-news-latest-industry-updates__faq-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-news-latest-industry-updates__faq-list {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.page-news-latest-industry-updates__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.page-news-latest-industry-updates__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

.page-news-latest-industry-updates__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-news-latest-industry-updates__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-news-latest-industry-updates__faq-item.active .page-news-latest-industry-updates__faq-toggle {
  transform: rotate(45deg);
}

.page-news-latest-industry-updates__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-news-latest-industry-updates__faq-item.active .page-news-latest-industry-updates__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show all content */
  padding: 15px 25px 25px;
}

.page-news-latest-industry-updates__faq-answer p {
  margin: 0;
  font-size: 1em;
  line-height: 1.6;
  text-align: left;
}

.page-news-latest-industry-updates__cta-final {
  padding-bottom: 100px;
}

.page-news-latest-industry-updates__cta-final-content {
  max-width: 900px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news-latest-industry-updates__hero-title {
    font-size: 2.8em;
  }

  .page-news-latest-industry-updates__hero-description {
    font-size: 1.1em;
  }

  .page-news-latest-industry-updates__section-title {
    font-size: 2em;
  }

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

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

  .page-news-latest-industry-updates__hero-section {
    min-height: 450px;
    padding: 80px 0;
    padding-top: var(--header-offset, 120px) !important; /* Ensure content is not hidden by fixed header */
  }

  .page-news-latest-industry-updates__hero-title {
    font-size: 2.2em;
  }

  .page-news-latest-industry-updates__hero-description {
    font-size: 1em;
  }

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

  .page-news-latest-industry-updates__subsection-title {
    font-size: 1.3em;
  }

  .page-news-latest-industry-updates__text-block {
    font-size: 0.95em;
    padding: 0 15px;
  }

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

  .page-news-latest-industry-updates__btn-primary,
  .page-news-latest-industry-updates__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-news-latest-industry-updates__image-content {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .page-news-latest-industry-updates__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 15px 56.25%; /* Maintain aspect ratio */
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-news-latest-industry-updates__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* FAQ specific for mobile */
  .page-news-latest-industry-updates__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

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

  .page-news-latest-industry-updates__faq-item.active .page-news-latest-industry-updates__faq-answer {
    padding: 10px 20px 20px;
  }

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

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