/* style/news.css */
/* Base styles for the news page, ensuring proper text color based on body background */
/* Assuming body background is light (from shared.css), using dark text */
.page-news {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light backgrounds */
  line-height: 1.6;
  background-color: #FFFFFF; /* Explicitly set for content area if body is unknown */
}

/* Hero Section */
.page-news__hero-section {
  width: 100%;
  display: flex;
  flex-direction: column; /* Image then text */
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: #FFFFFF; /* Light background for hero section */
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-news__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-news__hero-content {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
  box-sizing: border-box;
  background-color: #FFFFFF; /* Ensure content background is white for contrast */
  color: #333333;
}

.page-news__main-title {
  font-size: clamp(2em, 4vw, 2.8em); /* Responsive font size for H1 */
  color: #26A9E0; /* Brand color for H1 */
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

.page-news__intro-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* General Container */
.page-news__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Section Titles and Descriptions */
.page-news__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-news__section-title--white {
  color: #ffffff;
}

.page-news__section-description {
  font-size: 1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__section-description--white {
  color: #f0f0f0;
}

/* Latest News Section */
.page-news__latest-section {
  padding: 60px 0;
  background-color: #F8F8F8; /* Light grey background for contrast with hero */
}

.page-news__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-news__news-card,
.page-news__trend-card {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333; /* Ensure dark text on light card background */
}

.page-news__news-card:hover,
.page-news__trend-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.page-news__card-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-news__card-content {
  padding: 25px;
}

.page-news__card-title {
  font-size: 1.3em;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-news__card-title a {
  color: #26A9E0; /* Brand color for link */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__card-title a:hover {
  color: #1a7bb2; /* Slightly darker brand color on hover */
}

.page-news__card-title--white a {
  color: #ffffff;
}

.page-news__card-title--white a:hover {
  color: #f0f0f0;
}

.page-news__card-date {
  font-size: 0.9em;
  color: #777777;
  margin-bottom: 15px;
  display: block;
}

.page-news__card-date--white {
  color: #cccccc;
}

.page-news__card-excerpt {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
}

.page-news__card-excerpt--white {
  color: #f0f0f0;
}

.page-news__read-more {
  display: inline-block;
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-news__read-more:hover {
  color: #1a7bb2;
}

.page-news__read-more--white {
  color: #ffffff;
}

.page-news__read-more--white:hover {
  color: #f0f0f0;
}

.page-news__view-all-wrapper {
  text-align: center;
}

/* Industry Trends Section (Dark Background) */
.page-news__industry-section {
  padding: 60px 0;
  background-color: #26A9E0; /* Main brand color for dark section */
  color: #ffffff; /* White text for dark background */
}

.page-news__grid--two-columns {
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.page-news__trend-card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards on dark background */
  color: #ffffff; /* White text for cards on dark background */
}

/* CTA Section */
.page-news__cta-section {
  padding: 80px 0;
  background-color: #F8F8F8; /* Light grey background */
  text-align: center;
}

.page-news__cta-content {
  max-width: 900px;
}

.page-news__cta-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  color: #26A9E0;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-news__cta-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  color: #555555;
}

/* Buttons */
.page-news__cta-button {
  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;
  cursor: pointer;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box; /* Ensure padding is included in width */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-news__btn-primary {
  background-color: #26A9E0; /* Primary brand color */
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-news__btn-primary:hover {
  background-color: #1a7bb2; /* Slightly darker on hover */
  border-color: #1a7bb2;
}

.page-news__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-news__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-news {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-news__hero-content {
    padding: 30px 15px;
  }

  .page-news__main-title {
    font-size: 1.8em;
  }

  .page-news__intro-text {
    font-size: 1em;
  }

  .page-news__section-title,
  .page-news__cta-title {
    font-size: 1.6em;
  }

  .page-news__section-description,
  .page-news__cta-description {
    font-size: 0.95em;
  }

  .page-news__latest-section,
  .page-news__industry-section,
  .page-news__cta-section {
    padding: 40px 0;
  }

  .page-news__container {
    padding: 0 15px;
  }

  .page-news__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-news__grid--two-columns {
    grid-template-columns: 1fr;
  }

  .page-news__news-card,
.page-news__trend-card {
    padding: 0;
  }

  .page-news__card-image {
    height: 180px; /* Adjust card image height for mobile */
  }

  .page-news__card-content {
    padding: 20px;
  }

  .page-news__card-title {
    font-size: 1.1em;
  }

  .page-news__cta-button,
  .page-news__btn-primary,
  .page-news__btn-secondary,
  .page-news a[class*="button"],
  .page-news 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: 12px 20px !important;
    font-size: 1em !important;
  }

  .page-news__cta-buttons,
  .page-news__button-group,
  .page-news__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;
  }

  /* Ensure all images are responsive and don't overflow */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-news__section,
  .page-news__card,
  .page-news__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Video section specific mobile padding - not applicable here but for general rule */
  .page-news__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
}

/* Color contrast fixes */
.page-news__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

.page-news__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}