/* style/news.css */
.page-news {
  color: #ffffff; /* Body background #0a0a0a (dark), so text must be light */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Rely on body background from shared.css */
}

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

/* Hero Section */
.page-news__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 60px; /* Space below content */
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: rgba(0, 0, 0, 0.4); /* Slightly dark overlay for contrast */
}

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

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

.page-news__hero-content {
  text-align: center;
  padding: 40px 20px;
  max-width: 800px;
  margin-top: -100px; /* Pull content up slightly over image for visual appeal */
  position: relative;
  z-index: 1; /* Ensure content is above image */
  background: rgba(0, 0, 0, 0.6); /* Darker background for text readability */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-news__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-news__description {
  font-size: 1.2rem;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-news__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-news__btn-primary:hover {
  background-color: #1a8cc4;
  transform: translateY(-2px);
}

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

.page-news__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Sections */
.page-news__latest-articles-section,
.page-news__industry-insights-section,
.page-news__faq-section,
.page-news__cta-banner {
  padding: 60px 0;
}

.page-news__section-title {
  font-size: 2.5rem;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-news__section-description {
  font-size: 1.1rem;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Article Grid */
.page-news__articles-grid,
.page-news__insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-news__article-card,
.page-news__insight-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: #ffffff;
}

.page-news__article-card:hover,
.page-news__insight-card:hover {
  transform: translateY(-5px);
}

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

.page-news__article-content,
.page-news__insight-content {
  padding: 20px;
}

.page-news__article-title,
.page-news__insight-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__article-title a,
.page-news__insight-title a {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__article-title a:hover,
.page-news__insight-title a:hover {
  color: #1a8cc4;
}

.page-news__article-meta,
.page-news__insight-meta {
  font-size: 0.9rem;
  color: #cccccc;
  margin-bottom: 15px;
}

.page-news__article-excerpt,
.page-news__insight-excerpt {
  font-size: 1rem;
  color: #e0e0e0;
  margin-bottom: 20px;
}

.page-news__read-more {
  color: #EA7C07; /* Login color for contrast */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

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

/* FAQ Section */
.page-news__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.page-news__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-news__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: bold;
  color: #26A9E0;
  transition: background-color 0.3s ease;
}

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

.page-news__faq-item summary:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-news__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
}

.page-news__faq-answer {
  padding: 0 20px 20px;
  font-size: 1rem;
  color: #e0e0e0;
}

/* CTA Banner */
.page-news__cta-banner {
  background: linear-gradient(90deg, #26A9E0, #1a8cc4);
  text-align: center;
  padding: 80px 20px;
  border-radius: 8px;
  margin: 60px auto;
}

.page-news__cta-title {
  font-size: 2.8rem;
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-news__cta-description {
  font-size: 1.2rem;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-news__hero-content {
    margin-top: -80px;
  }
}

@media (max-width: 768px) {
  .page-news {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-news__container {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-news__hero-section {
    padding-bottom: 40px;
  }
  .page-news__hero-content {
    margin-top: -60px;
    padding: 30px 15px;
  }
  .page-news__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-news__description {
    font-size: 1rem;
  }
  .page-news__cta-button {
    padding: 12px 25px;
    font-size: 0.95rem;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !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;
  }
  .page-news__cta-buttons {
    display: flex;
    flex-direction: column;
  }
  .page-news__section-title {
    font-size: 2rem;
  }
  .page-news__section-description {
    font-size: 1rem;
  }
  .page-news__articles-grid,
  .page-news__insights-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-news__article-title,
  .page-news__insight-title {
    font-size: 1.3rem;
  }
  .page-news__article-image,
  .page-news__insight-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .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;
  }
  .page-news__cta-banner {
    padding: 50px 15px;
  }
  .page-news__cta-title {
    font-size: 2.2rem;
  }
  .page-news__cta-description {
    font-size: 1.1rem;
  }
  .page-news__faq-item summary {
    font-size: 1rem;
    padding: 15px;
  }
  .page-news__faq-answer {
    padding: 0 15px 15px;
  }
}

@media (max-width: 480px) {
  .page-news__main-title {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
  }
  .page-news__hero-content {
    margin-top: -40px;
  }
  .page-news__section-title {
    font-size: 1.8rem;
  }
  .page-news__cta-title {
    font-size: 1.8rem;
  }
}