/* style/news.css */
.page-news {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000; /* Assuming body background is black from shared.css */
}

.page-news__hero-banner {
  position: relative;
  width: 100%;
  padding: 120px 0 60px; /* Add padding-top for fixed header */
  background-color: #007bff; /* Primary brand color */
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.page-news__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.page-news__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffc107; /* Highlight with auxiliary color */
}

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

.page-news__hero-description a {
  color: #ffc107;
  text-decoration: underline;
}

.page-news__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.15;
  overflow: hidden;
  z-index: 0;
}

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

.page-news__section {
  padding: 60px 0;
  background-color: #0d0d0d; /* Slightly lighter dark background */
  color: #ffffff;
}

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

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

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

.page-news__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #ffc107; /* Auxiliary color for titles */
}

.page-news__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.8;
}

.page-news__text-block strong.page-news__highlight {
  color: #ffc107;
  font-weight: bold;
}

.page-news__btn-primary {
  display: inline-block;
  background-color: #ffc107;
  color: #333333; /* Dark text on light button */
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-news__btn-primary:hover {
  background-color: #e0a800;
  transform: translateY(-3px);
}

.page-news__btn-large {
  font-size: 1.3em;
  padding: 18px 35px;
}

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

.page-news__article-card {
  background-color: #1a1a1a; /* Dark background for cards */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.page-news__article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-news__article-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

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

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

.page-news__article-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-news__article-title a {
  color: #ffc107; /* Auxiliary color for article titles */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__article-title a:hover {
  color: #ffffff;
}

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

.page-news__read-more {
  display: inline-block;
  color: #007bff; /* Primary color for read more link */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

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

.page-news__feature-item {
  background-color: #2a2a2a; /* Slightly lighter dark for feature items */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: #ffffff;
}

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

.page-news__cta-content {
  text-align: center;
}

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

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

.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background-color: #1a1a1a; /* Darker background for question */
  color: #ffc107;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

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

.page-news__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
  color: #ffc107;
}

.page-news__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #ffffff;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-news__faq-item.active .page-news__faq-toggle {
  color: #ffc107;
  transform: rotate(45deg); /* Plus to X for active state */
}

.page-news__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
  background-color: #0d0d0d; /* Background for answer */
  color: #f0f0f0;
}

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 2000px !important; /* Ensure enough height for content */
  padding: 20px !important;
  opacity: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: 2.8em;
  }

  .page-news__section-title {
    font-size: 2em;
  }

  .page-news__hero-banner {
    padding-top: 100px;
  }
}

@media (max-width: 768px) {
  .page-news__hero-banner {
    padding-top: 80px; /* Adjust padding-top for mobile fixed header */
    padding-bottom: 40px;
  }

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

  .page-news__hero-description {
    font-size: 1em;
  }

  .page-news__section {
    padding: 40px 0;
  }

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

  .page-news__text-block {
    font-size: 0.95em;
  }

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

  .page-news__article-card {
    margin: 0 10px;
  }

  .page-news__article-title {
    font-size: 1.2em;
  }

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

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

  .page-news__feature-item {
    padding: 20px;
  }

  .page-news__feature-title {
    font-size: 1.3em;
  }

  .page-news__btn-primary {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-news__btn-large {
    font-size: 1.1em;
    padding: 15px 30px;
  }

  /* FAQ Mobile */
  .page-news__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-news__faq-question h3 {
    font-size: 1em;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-news__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-news__faq-answer {
    padding: 0 15px;
  }
  
  .page-news__faq-item.active .page-news__faq-answer {
    padding: 15px !important;
  }

  /* Universal image responsive styles for mobile */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-news__section,
  .page-news__container,
  .page-news__article-card,
  .page-news__feature-item,
  .page-news__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-news__container {
    padding-left: 0;
    padding-right: 0;
  }
}