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

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #ffffff;
  --background-dark: #26A9E0;
  --login-color: #EA7C07;
}

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

.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__dark-bg {
  background-color: var(--background-dark);
  color: var(--text-light);
}

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

.page-news-industry-updates__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: inherit;
}

.page-news-industry-updates__text-block {
  font-size: 18px;
  margin-bottom: 20px;
  text-align: justify;
}

/* Hero Section */
.page-news-industry-updates__hero-section {
  position: relative;
  padding: 100px 0 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  min-height: 500px;
  box-sizing: border-box;
  padding-top: var(--header-offset, 120px);
}

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

.page-news-industry-updates__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 20px;
}

.page-news-industry-updates__hero-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--text-light);
}

.page-news-industry-updates__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  color: var(--text-light);
}

/* Buttons */
.page-news-industry-updates__btn-primary {
  display: inline-block;
  background-color: var(--login-color);
  color: var(--text-light);
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 18px;
}

.page-news-industry-updates__btn-primary:hover {
  background-color: #d16b06; /* Darken #EA7C07 */
  opacity: 0.9;
}

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

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

.page-news-industry-updates__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

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

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

.page-news-industry-updates__card-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
}

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

.page-news-industry-updates__card-title a:hover {
  color: #1e87b4; /* Darken #26A9E0 */
}

.page-news-industry-updates__card-date {
  font-size: 14px;
  color: #777;
  margin-bottom: 10px;
}

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

.page-news-industry-updates__card-link {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  margin-top: auto;
}

.page-news-industry-updates__card-link:hover {
  color: #1e87b4; /* Darken #26A9E0 */
}

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

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

.page-news-industry-updates__faq-item {
  background-color: var(--background-light);
  border: 1px solid #e0e0e0;
  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;
  cursor: pointer;
  background-color: #f9f9f9;
  font-size: 18px;
  font-weight: bold;
  color: var(--text-dark);
  transition: background-color 0.3s ease;
}

.page-news-industry-updates__faq-question:hover {
  background-color: #f0f0f0;
}

.page-news-industry-updates__faq-question h3 {
  margin: 0;
  color: inherit;
}

.page-news-industry-updates__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

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

.page-news-industry-updates__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: var(--text-dark);
}

.page-news-industry-updates__faq-item.active .page-news-industry-updates__faq-answer {
  max-height: 1000px !important;
  padding: 15px 25px 20px;
}

.page-news-industry-updates__faq-answer p {
  margin: 0;
  font-size: 16px;
  text-align: justify;
}

/* CTA Section */
.page-news-industry-updates__cta-section {
  text-align: center;
  padding: 80px 0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-news-industry-updates__hero-title {
    font-size: 42px;
  }
  .page-news-industry-updates__hero-description {
    font-size: 18px;
  }
  .page-news-industry-updates__section-title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .page-news-industry-updates__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding: 80px 20px 40px;
  }

  .page-news-industry-updates__hero-title {
    font-size: 36px;
  }
  .page-news-industry-updates__hero-description {
    font-size: 16px;
  }
  .page-news-industry-updates__section-title {
    font-size: 28px;
  }
  .page-news-industry-updates__text-block {
    font-size: 16px;
  }

  /* Images responsive */
  .page-news-industry-updates img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-news-industry-updates__card-image {
    height: 180px;
  }
  .page-news-industry-updates__image-full-width {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  /* Ensure containers holding images are also responsive */
  .page-news-industry-updates__section,
  .page-news-industry-updates__container,
  .page-news-industry-updates__news-card,
  .page-news-industry-updates__faq-item,
  .page-news-industry-updates__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  /* Buttons responsive */
  .page-news-industry-updates__btn-primary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 16px;
  }

  .page-news-industry-updates__news-grid {
    grid-template-columns: 1fr;
  }

  .page-news-industry-updates__faq-question {
    font-size: 16px;
    padding: 15px 20px;
  }
  .page-news-industry-updates__faq-answer {
    padding: 0 20px;
  }
  .page-news-industry-updates__faq-item.active .page-news-industry-updates__faq-answer {
    padding: 10px 20px 15px;
  }
}

@media (max-width: 480px) {
  .page-news-industry-updates__hero-title {
    font-size: 30px;
  }
  .page-news-industry-updates__section-title {
    font-size: 24px;
  }
  .page-news-industry-updates__hero-section {
    padding: 60px 15px 30px;
  }
  .page-news-industry-updates__section {
    padding: 40px 0;
  }
  .page-news-industry-updates__cta-section {
    padding: 60px 0;
  }
}