/* style/news.css */
.page-news {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light background */
  background-color: var(--background-color, #ffffff); /* Inherit from shared or default to white */
  line-height: 1.6;
}

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

/* Hero Section */
.page-news__hero-section {
  display: flex;
  flex-direction: column; /* Enforce image on top, text below */
  align-items: center;
  text-align: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  background-color: #f8f8f8; /* Light background for the section */
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Max width for image container */
  margin-bottom: 30px;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  filter: none; /* Ensure no filter on images */
}

.page-news__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.page-news__main-title {
  color: #26A9E0; /* Brand color for H1 */
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  /* No fixed large font-size. Rely on other properties for visual hierarchy */
}

.page-news__intro-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #555555;
}

.page-news__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%; /* Ensure container takes full width for wrapping */
}

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box; /* Crucial for button max-width */
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Ensure text breaks within button */
}

.page-news__btn-primary {
  background-color: #EA7C07; /* Login color for primary action */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-news__btn-primary:hover {
  background-color: #d16e06;
  border-color: #d16e06;
}

.page-news__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0; /* Brand color for secondary action */
  border: 2px solid #26A9E0;
}

.page-news__btn-secondary:hover {
  background-color: #e0f4ff;
  color: #1a7fb8;
  border-color: #1a7fb8;
}

/* Section Titles */
.page-news__section-title {
  color: #26A9E0;
  font-size: 2.2em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
}

/* News Grid */
.page-news__latest-news-section {
  padding: 60px 0;
  background-color: #ffffff;
}

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

.page-news__news-card {
  background-color: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-news__card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

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

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

.page-news__card-title {
  font-size: 1.3em;
  font-weight: 600;
  color: #333333;
  margin-bottom: 10px;
}

.page-news__card-title:hover {
  color: #26A9E0;
}

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

.page-news__card-excerpt {
  font-size: 1em;
  color: #555555;
  line-height: 1.5;
}

.page-news__view-all-button-wrapper {
  text-align: center;
  margin-top: 20px;
}

/* Industry Insights Section */
.page-news__industry-insights-section {
  padding: 60px 0;
  background-color: #f0f7fa; /* Light blue tint */
}

.page-news__content-block p {
  margin-bottom: 1em;
  color: #333333;
}

/* FAQ Section */
.page-news__faq-section {
  padding: 60px 0;
  background-color: #ffffff;
}

.page-news__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-news__faq-item {
  background-color: #f9f9f9;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1em;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  background-color: #eaf6fc; /* Lighter brand color */
  border-bottom: 1px solid #d0e7f2;
  transition: background-color 0.3s ease;
  list-style: none; /* For <summary> */
}

.page-news__faq-question::-webkit-details-marker {
  display: none;
}

.page-news__faq-question:hover {
  background-color: #d0e7f2;
}

.page-news__faq-item[open] .page-news__faq-toggle {
  transform: rotate(45deg); /* Plus sign rotates to X or dash */
}

.page-news__faq-answer {
  padding: 20px;
  font-size: 1em;
  color: #555555;
  border-top: 1px solid #f0f0f0;
  line-height: 1.6;
}

/* CTA Bottom Section */
.page-news__cta-bottom-section {
  padding: 60px 0;
  text-align: center;
  background-color: #26A9E0; /* Brand color background */
  color: #ffffff; /* White text for contrast */
}

.page-news__cta-bottom-section .page-news__section-title {
  color: #ffffff;
}

.page-news__cta-bottom-section .page-news__intro-text {
  color: #f0f0f0;
}

.page-news__cta-bottom-section .page-news__cta-buttons {
  margin-top: 40px;
}

.page-news__cta-bottom-section .page-news__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border-color: #ffffff;
}

.page-news__cta-bottom-section .page-news__btn-secondary:hover {
  background-color: #f0f7fa;
  color: #1a7fb8;
  border-color: #f0f7fa;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: 2.5em;
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__card-title {
    font-size: 1.2em;
  }
}

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

  .page-news__hero-section {
    padding: 10px 0 40px 0;
  }

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

  .page-news__main-title {
    font-size: 2em; /* Adjusted for mobile */
    margin-bottom: 15px;
  }

  .page-news__intro-text {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-news__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px; /* Add padding to button container */
  }

  .page-news__btn-primary,
  .page-news__btn-secondary {
    width: 100% !important; /* Full width for stacked buttons */
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-news__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
    padding-top: 30px;
  }

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

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

  .page-news__news-grid {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
  }

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

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

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

  .page-news__faq-question {
    font-size: 1em;
    padding: 15px;
  }

  .page-news__faq-answer {
    padding: 15px;
  }

  /* Image responsive rules for mobile (MUST BE PRESENT) */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers containing images/content for mobile (MUST BE PRESENT) */
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__hero-image-wrapper,
  .page-news__news-grid,
  .page-news__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Video responsive rules for mobile (if video existed) */
  .page-news video,
  .page-news__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-news__video-section,
  .page-news__video-container,
  .page-news__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__video-section {
    padding-top: 10px !important; /* Small top padding for video section on mobile */
  }
}

/* Ensure no filter on images */
.page-news img {
  filter: none;
}