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

/* General page styling */
.page-news-industry-trends {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default dark text for light background */
  background-color: #FFFFFF; /* Ensure content background is light */
  line-height: 1.6;
}

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

/* Hero Section */
.page-news-industry-trends__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image on top, text below */
  align-items: center;
  text-align: center;
  padding: 10px 0 60px; /* Small top padding, more bottom padding */
  background-color: #F8F8F8; /* Light background for hero section */
}

.page-news-industry-trends__hero-image-wrapper {
  width: 100%;
  overflow: hidden;
}

.page-news-industry-trends__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Minimum image size */
}

.page-news-industry-trends__hero-content {
  padding: 40px 20px 0;
  max-width: 900px;
  width: 100%; /* Ensure content block takes full width up to max-width */
}

.page-news-industry-trends__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
  color: #26A9E0;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-news-industry-trends__lead-paragraph {
  font-size: 1.25rem;
  color: #555555;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-news-industry-trends__btn-primary,
.page-news-industry-trends__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box; /* Ensure padding is included in width */
  max-width: 100%; /* Default for all buttons */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-news-industry-trends__btn-primary {
  background-color: #26A9E0; /* Primary brand color */
  color: #FFFFFF;
  border: 2px solid #26A9E0;
  margin-right: 15px;
}

.page-news-industry-trends__btn-primary:hover {
  background-color: #1a8ccb;
  border-color: #1a8ccb;
}

.page-news-industry-trends__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0; /* Primary brand color */
  border: 2px solid #26A9E0;
}

.page-news-industry-trends__btn-secondary:hover {
  background-color: #e0f2f7;
}

.page-news-industry-trends__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%; /* Ensure container takes full width */
  max-width: 100%; /* Ensure container takes full width */
  box-sizing: border-box;
  overflow: hidden;
}

/* Section common styling */
.page-news-industry-trends__section {
  padding: 60px 0;
}

.page-news-industry-trends__section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-news-industry-trends__sub-title {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  color: #333333;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-news-industry-trends__text-block {
  font-size: 1.05rem;
  margin-bottom: 20px;
  color: #555555;
  text-align: justify;
}

.page-news-industry-trends__text-block strong {
  color: #26A9E0; /* Highlight important keywords with brand color */
}

/* Image and Content Block Layout */
.page-news-industry-trends__image-content-block {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 40px;
}

.page-news-industry-trends__content-block-reverse {
  display: flex;
  flex-direction: row-reverse; /* Image on right, text on left */
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 40px;
}

.page-news-industry-trends__image-content-block .page-news-industry-trends__image,
.page-news-industry-trends__content-block-reverse .page-news-industry-trends__image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce min size for content images */
  min-height: 200px;
}

.page-news-industry-trends__text-block-group {
  flex: 1;
  max-width: 50%;
}

/* Dark Background Section */
.page-news-industry-trends__dark-bg {
  background-color: #26A9E0; /* Primary brand color as background */
  color: #FFFFFF; /* White text for dark background */
}

.page-news-industry-trends__dark-bg .page-news-industry-trends__section-title,
.page-news-industry-trends__dark-bg .page-news-industry-trends__sub-title,
.page-news-industry-trends__dark-bg .page-news-industry-trends__text-block {
  color: #FFFFFF; /* Ensure all text is white */
}

.page-news-industry-trends__dark-bg .page-news-industry-trends__text-block strong {
  color: #f0f0f0; /* Slightly off-white for strong text on dark background */
}

/* Latest News Section */
.page-news-industry-trends__latest-news-section {
  background-color: #f9f9f9;
}

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

.page-news-industry-trends__news-card {
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.page-news-industry-trends__news-card:hover {
  transform: translateY(-5px);
}

.page-news-industry-trends__news-card-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency, adjust as needed */
  object-fit: cover;
  display: block;
  min-width: 200px; /* Enforce min size for card images */
  min-height: 200px;
}

.page-news-industry-trends__news-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.page-news-industry-trends__news-card-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: 600;
  line-height: 1.4;
  flex-grow: 1;
}

.page-news-industry-trends__news-card-title a {
  color: #26A9E0; /* Brand color for titles */
  text-decoration: none;
}

.page-news-industry-trends__news-card-title a:hover {
  text-decoration: underline;
}

.page-news-industry-trends__news-card-meta {
  font-size: 0.9rem;
  color: #777777;
  margin-bottom: 15px;
}

.page-news-industry-trends__news-card-excerpt {
  font-size: 1rem;
  color: #666666;
  margin-bottom: 20px;
  text-align: justify;
}

.page-news-industry-trends__read-more-btn {
  display: inline-block;
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  align-self: flex-start;
}

.page-news-industry-trends__read-more-btn:hover {
  text-decoration: underline;
}

.page-news-industry-trends__view-all-wrapper {
  text-align: center;
  margin-top: 50px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-news-industry-trends__image-content-block,
  .page-news-industry-trends__content-block-reverse {
    flex-direction: column;
    align-items: center;
  }

  .page-news-industry-trends__image-content-block .page-news-industry-trends__image,
  .page-news-industry-trends__content-block-reverse .page-news-industry-trends__image,
  .page-news-industry-trends__text-block-group {
    max-width: 100%;
    width: 100%;
  }

  .page-news-industry-trends__hero-content {
    padding-top: 20px;
  }
}

@media (max-width: 768px) {
  /* General mobile text scaling */
  .page-news-industry-trends {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-news-industry-trends__container {
    padding: 0 15px !important; /* Ensure padding on mobile */
  }

  /* Hero Section */
  .page-news-industry-trends__hero-section {
    padding: 10px 0 40px !important; /* Small top padding, more bottom padding */
  }

  .page-news-industry-trends__main-title {
    font-size: clamp(2rem, 8vw, 2.8rem); /* Adjust H1 for smaller screens */
  }

  .page-news-industry-trends__lead-paragraph {
    font-size: 1.1rem;
  }

  /* Buttons */
  .page-news-industry-trends__btn-primary,
  .page-news-industry-trends__btn-secondary {
    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-industry-trends__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  /* Images */
  .page-news-industry-trends img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Image Containers */
  .page-news-industry-trends__section,
  .page-news-industry-trends__card,
  .page-news-industry-trends__container,
  .page-news-industry-trends__hero-image-wrapper,
  .page-news-industry-trends__news-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  .page-news-industry-trends__image-content-block .page-news-industry-trends__image,
  .page-news-industry-trends__content-block-reverse .page-news-industry-trends__image {
    min-width: unset; /* Allow images to scale down */
    min-height: unset;
  }

  .page-news-industry-trends__news-card-image {
    height: auto; /* Allow image height to be auto on mobile */
  }

  /* Video (if any) */
  .page-news-industry-trends video,
  .page-news-industry-trends__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-news-industry-trends__video-section,
  .page-news-industry-trends__video-container,
  .page-news-industry-trends__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-news-industry-trends__video-section {
    padding-top: 10px !important; /* Small top padding, not var(--header-offset) */
  }
}