/* style/news.css */

/* Base styles for news page */
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text on dark body background */
  background-color: #1a1a2e; /* Matches body background for consistency */
}

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

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

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

.page-news__text-block {
  color: #f0f0f0;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjusted for better visual impact */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is below header */
  box-sizing: border-box;
}

.page-news__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-news__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.page-news__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
}

.page-news__main-title {
  font-size: 3.5em;
  color: #FFFFFF;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-news__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 40px;
}

.page-news__hero-btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 1.2em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

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

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

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

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

.page-news__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
  flex-wrap: wrap;
}

/* Latest Updates Section */
.page-news__latest-updates {
  padding: 80px 0;
  background-color: #1a1a2e; /* Ensure dark background */
}

.page-news__dark-section {
  background-color: #1a1a2e;
  color: #ffffff;
}

.page-news__light-bg {
  background-color: #ffffff;
  color: #333333;
}

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

.page-news__news-card {
  background: rgba(255, 255, 255, 0.05); /* Slightly transparent white for cards on dark background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
}

.page-news__news-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.page-news__card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-news__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-news__card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-news__card-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 10px;
  font-weight: bold;
}

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

.page-news__card-description {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__read-more {
  color: #26A9E0;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 5px;
}

.page-news__read-more i {
  transition: transform 0.3s ease;
}

.page-news__news-card:hover .page-news__read-more i {
  transform: translateX(5px);
}

/* Platform Insights Section */
.page-news__platform-insights {
  padding: 80px 0;
  background-color: #ffffff; /* Light background */
  color: #333333;
}

.page-news__platform-insights .page-news__section-title,
.page-news__platform-insights .page-news__section-intro,
.page-news__platform-insights .page-news__text-block {
  color: #333333;
}

.page-news__feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin-top: 50px;
}

.page-news__feature-item {
  text-align: center;
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-news__feature-icon {
  font-size: 3em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-news__feature-title {
  font-size: 1.5em;
  color: #333333;
  margin-bottom: 10px;
}

.page-news__feature-description {
  font-size: 1em;
  color: #666666;
}

/* Industry Insights Section */
.page-news__industry-insights {
  padding: 80px 0;
  background-color: #1a1a2e; /* Dark background */
}

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

.page-news__faq-section .page-news__section-title,
.page-news__faq-section .page-news__section-intro {
  color: #333333;
}

.page-news__faq-list {
  max-width: 800px;
  margin: 50px auto 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.page-news__faq-item {
  border-bottom: 1px solid #eeeeee;
}

.page-news__faq-item:last-child {
  border-bottom: none;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: #f9f9f9;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

.page-news__faq-heading {
  font-size: 1.2em;
  color: #333333;
  margin: 0;
  flex-grow: 1;
}

.page-news__faq-toggle {
  font-size: 1.5em;
  color: #26A9E0;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-news__faq-item.active .page-news__faq-toggle {
  transform: rotate(45deg);
  content: '−'; /* Changed in JS */
}

.page-news__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  background: #ffffff;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 1000px !important; /* Sufficiently large */
  padding: 20px 25px;
}

.page-news__faq-answer p {
  margin: 0;
  color: #555555;
}

/* CTA Banner Section */
.page-news__cta-banner {
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-color: #1a1a2e; /* Dark background */
}

.page-news__cta-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.3;
}

.page-news__cta-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for text */
  border-radius: 10px;
}

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: 3em;
  }
  .page-news__hero-description {
    font-size: 1.1em;
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__news-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-news__feature-list {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    height: 500px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }
  .page-news__main-title {
    font-size: 2.5em;
  }
  .page-news__hero-description {
    font-size: 1em;
  }
  .page-news__section-title {
    font-size: 1.8em;
  }
  .page-news__section-intro {
    font-size: 0.95em;
  }
  .page-news__hero-btn, .page-news__btn-primary, .page-news__btn-secondary {
    font-size: 1em;
    padding: 12px 25px;
  }
  .page-news__news-grid {
    grid-template-columns: 1fr;
  }
  .page-news__feature-list {
    grid-template-columns: 1fr;
  }
  .page-news__feature-item {
    padding: 20px;
  }
  .page-news__faq-question {
    padding: 15px 20px;
  }
  .page-news__faq-heading {
    font-size: 1.1em;
  }
  .page-news__faq-answer {
    padding: 0 20px;
  }
  .page-news__faq-item.active .page-news__faq-answer {
    padding: 15px 20px;
  }
  .page-news__cta-title {
    font-size: 2em;
  }
  .page-news__cta-description {
    font-size: 1em;
  }

  /* Mobile image and container responsive rules */
  .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,
  .page-news__news-card,
  .page-news__feature-item,
  .page-news__cta-content {
    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__cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .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-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-news__main-title {
    font-size: 2em;
  }
  .page-news__hero-section {
    height: 400px;
  }
  .page-news__section-title {
    font-size: 1.5em;
  }
  .page-news__cta-title {
    font-size: 1.8em;
  }
}