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

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

.page-news-latest-industry-updates {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark);
  background-color: var(--background-color-light);
}

/* Hero Section */
.page-news-latest-industry-updates__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
  color: var(--text-color-light);
  overflow: hidden;
  min-height: 600px;
}

.page-news-latest-industry-updates__hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.page-news-latest-industry-updates__hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6); /* Darken video for text readability */
}

.page-news-latest-industry-updates__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Slightly darker overlay for text */
  border-radius: 10px;
}

.page-news-latest-industry-updates__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-news-latest-industry-updates__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: var(--secondary-color);
}

.page-news-latest-industry-updates__hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* General Section Styling */
.page-news-latest-industry-updates__section {
  padding: 80px 20px;
  text-align: center;
}

.page-news-latest-industry-updates__section-title {
  font-size: 2.5em;
  margin-bottom: 40px;
  color: var(--primary-color);
}

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

.page-news-latest-industry-updates__dark-section .page-news-latest-industry-updates__section-title {
  color: var(--secondary-color);
}

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

/* Content Area */
.page-news-latest-industry-updates__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

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

.page-news-latest-industry-updates__grid-container--2-cols {
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.page-news-latest-industry-updates__grid-container--3-cols {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-news-latest-industry-updates__grid-item {
  background: var(--secondary-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-news-latest-industry-updates__grid-item .page-news-latest-industry-updates__image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-news-latest-industry-updates__item-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: var(--primary-color);
  line-height: 1.3;
}

.page-news-latest-industry-updates__item-title a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-news-latest-industry-updates__item-title a:hover {
  text-decoration: underline;
}

.page-news-latest-industry-updates__text-block {
  font-size: 1.1em;
  color: var(--text-color-dark);
}

/* Card Styling */
.page-news-latest-industry-updates__card {
  background: var(--secondary-color);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: left;
  color: var(--text-color-dark);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-news-latest-industry-updates__dark-section .page-news-latest-industry-updates__card {
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-color-dark);
}

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

.page-news-latest-industry-updates__card-title {
  font-size: 1.6em;
  padding: 15px 20px 10px;
  color: var(--primary-color);
  line-height: 1.3;
}

.page-news-latest-industry-updates__card-title a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-news-latest-industry-updates__card-title a:hover {
  text-decoration: underline;
}

.page-news-latest-industry-updates__card-text {
  font-size: 1em;
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-news-latest-industry-updates__btn-text {
  display: inline-block;
  margin: 0 20px 20px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-news-latest-industry-updates__btn-text:hover {
  text-decoration: underline;
}

/* Buttons */
.page-news-latest-industry-updates__btn-primary,
.page-news-latest-industry-updates__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
}

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

.page-news-latest-industry-updates__btn-primary:hover {
  background-color: #a30606; /* Darker shade on hover */
  border-color: #a30606;
}

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

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

.page-news-latest-industry-updates__btn-primary--large,
.page-news-latest-industry-updates__btn-secondary--large {
  padding: 15px 35px;
  font-size: 1.1em;
}

/* Call to Action Section */
.page-news-latest-industry-updates__cta-section {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 80px 20px;
}

.page-news-latest-industry-updates__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.page-news-latest-industry-updates__cta-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px;
}

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

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

.page-news-latest-industry-updates__faq-section .page-news-latest-industry-updates__section-title {
  color: var(--secondary-color);
}

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

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

.page-news-latest-industry-updates__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.3em;
  font-weight: bold;
  color: var(--secondary-color);
  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-question h3 {
  margin: 0;
  color: inherit;
  font-size: 1em;
}

.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, padding 0.3s ease;
  color: var(--secondary-color);
  font-size: 1.1em;
}

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

.page-news-latest-industry-updates__faq-answer p {
  margin: 0;
  color: inherit;
}

/* Image Specific Styles */
.page-news-latest-industry-updates img {
  border-radius: 8px;
}

/* 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,
  .page-news-latest-industry-updates__cta-title {
    font-size: 2em;
  }
  .page-news-latest-industry-updates__item-title {
    font-size: 1.6em;
  }
  .page-news-latest-industry-updates__card-title {
    font-size: 1.4em;
  }
}

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

  .page-news-latest-industry-updates__hero-section {
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important;
    min-height: 500px;
  }
  
  .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__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

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

  .page-news-latest-industry-updates__section-title,
  .page-news-latest-industry-updates__cta-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  
  .page-news-latest-industry-updates__content-area {
    padding: 40px 15px;
  }

  .page-news-latest-industry-updates__grid-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-news-latest-industry-updates__grid-item {
    padding: 25px;
  }

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

  .page-news-latest-industry-updates__card-title {
    font-size: 1.3em;
  }
  
  .page-news-latest-industry-updates__cta-section {
    padding: 60px 15px;
  }

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

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

  .page-news-latest-industry-updates__faq-section {
    padding: 60px 15px;
  }

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

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

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

  /* Responsive images, videos, buttons */
  .page-news-latest-industry-updates img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-news-latest-industry-updates video,
  .page-news-latest-industry-updates__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-news-latest-industry-updates__hero-video-wrapper,
  .page-news-latest-industry-updates__video-section,
  .page-news-latest-industry-updates__video-container,
  .page-news-latest-industry-updates__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 0 !important; /* Remove padding for full width */
    padding-right: 0 !important;
  }

  .page-news-latest-industry-updates__section,
  .page-news-latest-industry-updates__card,
  .page-news-latest-industry-updates__container,
  .page-news-latest-industry-updates__grid-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-news-latest-industry-updates__btn-primary,
  .page-news-latest-industry-updates__btn-secondary,
  .page-news-latest-industry-updates a[class*="button"],
  .page-news-latest-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-latest-industry-updates__cta-buttons,
  .page-news-latest-industry-updates__button-group,
  .page-news-latest-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-latest-industry-updates__cta-buttons {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .page-news-latest-industry-updates__hero-title {
    font-size: 1.8em;
  }
  .page-news-latest-industry-updates__section-title,
  .page-news-latest-industry-updates__cta-title {
    font-size: 1.5em;
  }
  .page-news-latest-industry-updates__faq-question {
    font-size: 1em;
  }
}