/* style/news.css */
:root {
  --primary-color: #FFD700; /* Gold for emphasis */
  --secondary-color: #E53E3E; /* Red for CTA/Hot */
  --dark-background: #1A202C; /* Main dark theme color */
  --text-light: #ffffff;
  --text-dark: #333333;
  --card-background: #2D3748; /* Slightly lighter dark for cards */
  --border-color: rgba(255, 255, 255, 0.1);
}

/* Ensure content is below fixed header */
.page-news__hero-intro-section {
  padding-top: 120px; /* Desktop: Adjust based on shared header height */
  padding-bottom: 60px;
  background: var(--dark-background);
  color: var(--text-light);
  text-align: center;
}

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

.page-news__main-title {
  font-size: 3.2em;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--primary-color);
}

.page-news__intro-text {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-news__intro-text strong {
  color: var(--primary-color);
}

.page-news__cta-button {
  display: inline-block;
  padding: 15px 35px;
  background: var(--primary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news__cta-button:hover {
  background: #FFC107;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-news__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 50px;
  color: var(--primary-color);
}

/* Featured News Section */
.page-news__featured-news-section {
  padding: 80px 0;
  background: #121212; /* Inherit body background for contrast with cards */
  color: var(--text-light);
}

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

.page-news__article-card {
  background: var(--card-background);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-news__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

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

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

.page-news__article-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.4;
  color: var(--primary-color);
}

.page-news__article-title a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__article-title a:hover {
  color: #FFC107;
  text-decoration: underline;
}

.page-news__article-excerpt {
  font-size: 1em;
  line-height: 1.6;
  color: #cccccc;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__read-more-button {
  display: inline-block;
  padding: 10px 20px;
  background: var(--secondary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  align-self: flex-start;
  transition: background-color 0.3s ease;
}

.page-news__read-more-button:hover {
  background: #C53030;
}

/* Latest Articles Section */
.page-news__latest-articles-section {
  padding: 80px 0;
  background: var(--dark-background);
  color: var(--text-light);
}

.page-news__articles-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.page-news__list-item {
  display: flex;
  background: var(--card-background);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__list-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-news__list-image {
  width: 200px;
  height: 150px;
  object-fit: cover;
  flex-shrink: 0;
}

.page-news__list-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-news__list-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 8px;
  line-height: 1.3;
}

.page-news__list-title a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__list-title a:hover {
  color: #FFC107;
  text-decoration: underline;
}

.page-news__list-date {
  font-size: 0.9em;
  color: #999999;
  margin-bottom: 10px;
}

.page-news__list-excerpt {
  font-size: 0.95em;
  color: #cccccc;
  line-height: 1.5;
  margin-bottom: 15px;
}

.page-news__read-more-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-news__read-more-link:hover {
  color: #C53030;
  text-decoration: underline;
}

/* Categories Section */
.page-news__categories-section {
  padding: 80px 0;
  background: #121212; /* Inherit body background */
  color: var(--text-light);
}

.page-news__category-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.page-news__category-list li {
  background: var(--card-background);
  border-radius: 8px;
  padding: 12px 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-news__category-list li:hover {
  background-color: #3f4e64; /* Slightly lighter on hover */
  transform: translateY(-2px);
}

.page-news__category-list a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: color 0.3s ease;
}

.page-news__category-list a:hover {
  color: #FFC107;
}

/* CTA Banner Section */
.page-news__cta-banner-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--dark-background), #3f4e64); /* Darker gradient */
  color: var(--text-light);
  text-align: center;
}

.page-news__cta-banner-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-news__cta-banner-title {
  font-size: 2.8em;
  font-weight: bold;
  margin-bottom: 25px;
  color: var(--primary-color);
  line-height: 1.2;
}

.page-news__cta-banner-text {
  font-size: 1.3em;
  line-height: 1.6;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-news__cta-button--large {
  padding: 18px 45px;
  font-size: 1.3em;
  border-radius: 10px;
}

/* FAQ Section */
.page-news__faq-section {
  padding: 80px 0;
  background: var(--dark-background);
  color: var(--text-light);
}

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

.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.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;
  padding: 0 15px;
  opacity: 0;
}

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #2D3748; /* Slightly different background for open answer */
  border-radius: 0 0 5px 5px;
  color: #cccccc;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-news__faq-question:hover {
  background: #3f4e64;
  border-color: rgba(255, 255, 255, 0.2);
}

.page-news__faq-question:active {
  background: #4a5c75;
}

.page-news__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--primary-color);
}

.page-news__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-news__faq-item.active .page-news__faq-toggle {
  color: #FFC107;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: 2.8em;
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__cta-banner-title {
    font-size: 2.2em;
  }
  .page-news__list-item {
    flex-direction: column;
  }
  .page-news__list-image {
    width: 100%;
    height: 200px;
  }
  .page-news__list-content {
    padding: 15px;
  }
}

@media (max-width: 768px) {
  .page-news__hero-intro-section {
    padding-top: 100px !important; /* Mobile: Adjust based on shared header height */
    padding-bottom: 40px;
  }
  .page-news__main-title {
    font-size: 2.2em;
  }
  .page-news__intro-text {
    font-size: 1em;
  }
  .page-news__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-news__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-news__featured-news-section,
  .page-news__latest-articles-section,
  .page-news__categories-section,
  .page-news__cta-banner-section,
  .page-news__faq-section {
    padding: 40px 0;
  }
  .page-news__articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-news__article-image {
    height: 180px;
  }
  .page-news__article-title {
    font-size: 1.3em;
  }
  .page-news__article-excerpt {
    font-size: 0.9em;
  }
  .page-news__list-item {
    flex-direction: column;
  }
  .page-news__list-image {
    width: 100% !important;
    height: 180px !important;
  }
  .page-news__list-content {
    padding: 15px;
  }
  .page-news__list-title {
    font-size: 1.1em;
  }
  .page-news__list-excerpt {
    font-size: 0.85em;
  }
  .page-news__category-list {
    flex-direction: column;
    align-items: center;
  }
  .page-news__category-list li {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
  .page-news__cta-banner-title {
    font-size: 1.8em;
  }
  .page-news__cta-banner-text {
    font-size: 1.1em;
  }
  .page-news__cta-button--large {
    padding: 15px 30px;
    font-size: 1.1em;
  }
  .page-news__faq-question {
    padding: 15px;
  }
  .page-news__faq-question h3 {
    font-size: 1em;
  }
  .page-news__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  .page-news__faq-item.active .page-news__faq-answer {
    padding: 15px !important;
  }
  /* Ensure all images are responsive and prevent overflow */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-news__container, .page-news__articles-grid, .page-news__articles-list, .page-news__category-list, .page-news__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}