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

:root {
  --primary-color: #0A2342;
  --secondary-color: #FFC107;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-dark: #000;
  --background-light: #f8f9fa;
  --border-color: #e0e0e0;
}

.page-news-latest-industry-trends {
  color: var(--text-light); /* Body background is dark, so default text is light */
  background-color: var(--background-dark);
  padding-top: 120px; /* Adjust for fixed header on desktop */
}

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

.page-news-latest-industry-trends__hero-section {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #000000 100%);
  color: var(--text-light);
}

.page-news-latest-industry-trends__main-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-news-latest-industry-trends__description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

.page-news-latest-industry-trends__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
}

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

.page-news-latest-industry-trends__cta-button--primary:hover {
  background: #e0a800;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

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

.page-news-latest-industry-trends__cta-button--secondary:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

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

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

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

.page-news-latest-industry-trends__section-title {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: inherit;
}

.page-news-latest-industry-trends__section--dark-bg .page-news-latest-industry-trends__section-title {
  color: var(--secondary-color);
}

.page-news-latest-industry-trends__section-intro,
.page-news-latest-industry-trends__section-text {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify;
  color: inherit;
}

.page-news-latest-industry-trends__trend-article {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}

.page-news-latest-industry-trends__trend-article:last-of-type {
  margin-bottom: 0;
}

.page-news-latest-industry-trends__trend-article--reverse {
  flex-direction: row-reverse;
}

.page-news-latest-industry-trends__trend-content {
  flex: 1;
}

.page-news-latest-industry-trends__trend-image-wrapper {
  flex: 1;
  max-width: 50%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

.page-news-latest-industry-trends__trend-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.4;
  color: var(--primary-color);
}

.page-news-latest-industry-trends__section--dark-bg .page-news-latest-industry-trends__trend-title {
  color: var(--secondary-color);
}

.page-news-latest-industry-trends__trend-text {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 10px;
  color: inherit;
  text-align: justify;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news-latest-industry-trends__main-title {
    font-size: 42px;
  }
  .page-news-latest-industry-trends__section-title {
    font-size: 32px;
  }
  .page-news-latest-industry-trends__trend-title {
    font-size: 24px;
  }
  .page-news-latest-industry-trends__trend-article {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .page-news-latest-industry-trends {
    padding-top: 100px !important; /* Adjust for fixed header on mobile */
    font-size: 16px;
    line-height: 1.6;
  }

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

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

  .page-news-latest-industry-trends__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-news-latest-industry-trends__description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-news-latest-industry-trends__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-news-latest-industry-trends__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 25px !important;
    font-size: 16px !important;
  }

  .page-news-latest-industry-trends__section {
    padding: 40px 0;
  }

  .page-news-latest-industry-trends__section-title {
    font-size: 26px;
    margin-bottom: 25px;
  }

  .page-news-latest-industry-trends__section-intro,
  .page-news-latest-industry-trends__section-text {
    font-size: 15px;
    text-align: left;
  }

  .page-news-latest-industry-trends__trend-article {
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
  }

  .page-news-latest-industry-trends__trend-article--reverse {
    flex-direction: column;
  }

  .page-news-latest-industry-trends__trend-image-wrapper {
    max-width: 100%;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-news-latest-industry-trends__trend-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-news-latest-industry-trends__trend-title {
    font-size: 22px;
  }
  .page-news-latest-industry-trends img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-news-latest-industry-trends__section,
  .page-news-latest-industry-trends__card,
  .page-news-latest-industry-trends__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Ensure contrast for all elements */
.page-news-latest-industry-trends p,
.page-news-latest-industry-trends li {
  color: inherit;
}

.page-news-latest-industry-trends__section--white-bg .page-news-latest-industry-trends__trend-title {
  color: var(--primary-color);
}

.page-news-latest-industry-trends__section--dark-bg .page-news-latest-industry-trends__trend-title {
  color: var(--secondary-color);
}

.page-news-latest-industry-trends__section--white-bg .page-news-latest-industry-trends__section-text {
  color: var(--text-dark);
}

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