/* style/news.css */
.page-news {
  color: #ffffff;
  background-color: var(--neon-dark-bg-1);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-news__hero-banner {
  width: 100%;
  padding-top: 10px; /* Account for fixed header */
  padding-bottom: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color-dark));
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-news__hero-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-news__hero-title {
  font-size: 3.2em;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
}

.page-news__hero-description {
  font-size: 1.2em;
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto;
}

.page-news__content-wrapper {
  max-width: 1400px;
  margin: 40px auto;
  padding: 20px;
  display: grid;
  grid-template-columns: 2.5fr 1fr;
  gap: 30px;
}

.page-news__articles-main {
  width: 100%;
}

.page-news__section-title {
  font-size: 2.2em;
  color: var(--secondary-color);
  margin-bottom: 30px;
  font-weight: 700;
  text-align: left;
}

.page-news__section-title--spacing {
  margin-top: 60px;
}

.page-news__featured-article {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__featured-article:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

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

.page-news__featured-article-image {
  width: 100%;
  height: 450px;
  overflow: hidden;
}

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

.page-news__featured-article-content {
  padding: 30px;
}

.page-news__featured-article-title {
  font-size: 1.8em;
  color: #ffffff;
  margin-bottom: 15px;
  line-height: 1.3;
  font-weight: 600;
}

.page-news__featured-article-summary {
  font-size: 1.1em;
  color: #cccccc;
  margin-bottom: 20px;
}

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

.page-news__read-more:hover {
  color: var(--secondary-color-dark);
}

.page-news__latest-news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.page-news__article-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

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

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

.page-news__article-card-title {
  font-size: 1.3em;
  color: #ffffff;
  margin-bottom: 10px;
  line-height: 1.4;
  font-weight: 600;
}

.page-news__article-card-summary {
  font-size: 0.95em;
  color: #bbbbbb;
  margin-bottom: 15px;
  height: 70px; /* Fixed height for summary */
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Limit to 3 lines */
  -webkit-box-orient: vertical;
}

.page-news__pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 60px;
  gap: 10px;
}

.page-news__pagination-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-news__pagination-item:hover {
  background: var(--secondary-color);
  color: var(--primary-color-dark);
}

.page-news__pagination-item--active {
  background: var(--secondary-color);
  color: var(--primary-color-dark);
}

.page-news__pagination-item--next {
  width: auto;
  border-radius: 20px;
  padding: 0 15px;
}

.page-news__sidebar {
  width: 100%;
}

.page-news__promo-cta,
.page-news__categories,
.page-news__popular-posts {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.page-news__sidebar-title {
  font-size: 1.6em;
  color: var(--secondary-color);
  margin-bottom: 20px;
  font-weight: 600;
}

.page-news__promo-title {
  font-size: 1.8em;
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: 700;
  text-align: center;
}

.page-news__promo-text {
  font-size: 1.1em;
  color: #cccccc;
  margin-bottom: 25px;
  text-align: center;
}

.page-news__promo-button {
  display: block;
  width: fit-content;
  margin: 0 auto;
  padding: 12px 25px;
  background: var(--secondary-color);
  color: var(--primary-color-dark);
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-news__promo-button:hover {
  background-color: var(--secondary-color-dark);
  transform: translateY(-2px);
}

.page-news__category-list,
.page-news__popular-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-news__category-list li,
.page-news__popular-list li {
  margin-bottom: 10px;
}

.page-news__category-list a,
.page-news__popular-list a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.05em;
  transition: color 0.3s ease;
  display: block;
  padding: 5px 0;
}

.page-news__category-list a:hover,
.page-news__popular-list a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* FAQ Section */
.page-news__faq-section {
  width: 100%;
  padding: 80px 20px;
  background-color: var(--neon-dark-bg-2);
}

.page-news__faq-container {
  max-width: 1000px;
  margin: 0 auto;
}

.page-news__faq-list {
  margin-top: 40px;
}

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

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

.page-news__faq-question:hover {
  background: var(--primary-color-dark);
  border-color: var(--primary-color-darker);
}

.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;
}

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

.page-news__faq-item.active .page-news__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg);
}

.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 25px;
  opacity: 0;
  background: rgba(255, 255, 255, 0.05);
  border-top: none;
  color: #cccccc;
}

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  border-radius: 0 0 8px 8px;
}

.page-news__faq-answer p {
  margin: 0;
  padding: 0;
  font-size: 1em;
  line-height: 1.7;
}

/* Final CTA */
.page-news__final-cta {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(90deg, var(--primary-color-dark), var(--secondary-color-dark));
  margin-top: 60px;
  border-radius: 12px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

.page-news__final-cta-title {
  font-size: 2.5em;
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-news__final-cta-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__final-cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #ffffff;
  color: var(--primary-color-dark);
  text-decoration: none;
  border-radius: 10px;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.page-news__final-cta-button:hover {
  background-color: var(--secondary-color);
  color: #ffffff;
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .page-news__content-wrapper {
    grid-template-columns: 1fr;
  }
  .page-news__sidebar {
    margin-top: 40px;
  }
}

@media (max-width: 768px) {
  .page-news {
    font-size: 15px;
  }

  .page-news__hero-banner {
    padding-bottom: 40px;
    padding-top: 10px !important; /* Ensure mobile padding-top for fixed header */
  }

  .page-news__hero-title {
    font-size: 2.2em;
  }

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

  .page-news__content-wrapper {
    padding: 15px;
    gap: 20px;
  }

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

  .page-news__section-title--spacing {
    margin-top: 40px;
  }

  .page-news__featured-article-image {
    height: 300px;
  }

  .page-news__featured-article-content {
    padding: 20px;
  }

  .page-news__featured-article-title {
    font-size: 1.4em;
  }

  .page-news__featured-article-summary {
    font-size: 0.9em;
  }

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

  .page-news__article-card-image {
    height: 200px;
  }

  .page-news__article-card-content {
    padding: 15px;
  }

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

  .page-news__article-card-summary {
    font-size: 0.85em;
    height: 60px; /* Adjust height for mobile */
    -webkit-line-clamp: 3;
  }

  .page-news__pagination {
    margin-top: 40px;
  }

  .page-news__promo-cta,
  .page-news__categories,
  .page-news__popular-posts {
    padding: 20px;
    margin-bottom: 20px;
  }

  .page-news__sidebar-title {
    font-size: 1.4em;
  }

  .page-news__promo-title {
    font-size: 1.5em;
  }

  .page-news__promo-text {
    font-size: 1em;
  }

  .page-news__promo-button {
    padding: 10px 20px;
    font-size: 1em;
  }

  .page-news__category-list a,
  .page-news__popular-list a {
    font-size: 1em;
  }

  .page-news__faq-section {
    padding: 50px 15px;
  }

  .page-news__faq-question {
    padding: 15px 20px;
  }

  .page-news__faq-question h3 {
    font-size: 1em;
  }

  .page-news__faq-toggle {
    font-size: 24px;
    width: 25px;
    height: 25px;
    margin-left: 15px;
  }

  .page-news__faq-item.active .page-news__faq-answer {
    padding: 15px 20px !important;
  }

  .page-news__final-cta {
    padding: 40px 15px;
  }

  .page-news__final-cta-title {
    font-size: 1.8em;
  }

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

  .page-news__final-cta-button {
    padding: 12px 30px;
    font-size: 1.1em;
  }
  
  /* Responsive image rules */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-news__hero-container,
  .page-news__content-wrapper,
  .page-news__articles-main,
  .page-news__featured-article,
  .page-news__latest-news-grid,
  .page-news__article-card,
  .page-news__sidebar,
  .page-news__promo-cta,
  .page-news__categories,
  .page-news__popular-posts,
  .page-news__faq-container,
  .page-news__final-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-news__hero-banner,
  .page-news__faq-section {
    padding-left: 0;
    padding-right: 0;
  }
}