/* style/news.css */
:root {
  --primary-color: #1A73E8;
  --secondary-color: #F2994A;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-dark: #000000;
  --bg-light: #f1f3f5;
  --border-color: #e0e0e0;
}

.page-news {
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--bg-dark); /* Inherits from body */
  padding-top: 120px; /* Desktop: Adjust for fixed header */
}

@media (max-width: 768px) {
  .page-news {
    padding-top: 100px; /* Mobile: Adjust for fixed header */
  }
}

/* HERO Banner for News Page */
.page-news__hero-banner {
  position: relative;
  width: 100%;
  padding: 60px 20px;
  background: linear-gradient(135deg, var(--primary-color), #0a47a1); /* Darker gradient for contrast */
  text-align: center;
  overflow: hidden;
}

.page-news__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.page-news__hero-image {
  width: 100%;
  max-width: 800px; /* Adjust image size for visual balance */
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  margin-bottom: 30px;
  object-fit: cover;
}

.page-news__hero-content {
  color: var(--text-light);
  text-align: center;
}

.page-news__hero-title {
  font-size: 3.2em;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.2;
  color: var(--text-light);
}

.page-news__hero-description {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 800px;
  color: var(--text-light);
}

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

.page-news__hero-link:hover {
  color: #fff;
}

.page-news__hero-cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-news__hero-cta-button:hover {
  background: #e08e3e;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* General Container and Section Titles */
.page-news__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

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

/* Latest Articles Section */
.page-news__latest-articles {
  background-color: var(--bg-dark);
  padding: 60px 0;
}

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

.page-news__article-card {
  background: #1a1a1a; /* Darker card background for contrast on dark body */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--text-light);
}

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

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

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

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

.page-news__article-link {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__article-link:hover {
  color: var(--secondary-color);
}

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

.page-news__article-date {
  font-size: 0.85em;
  color: #999999;
  margin-bottom: 15px;
}

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

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

.page-news__view-all-button-wrapper {
  text-align: center;
  margin-top: 50px;
}

.page-news__view-all-button {
  display: inline-block;
  padding: 14px 35px;
  background: var(--secondary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-news__view-all-button:hover {
  background: #e08e3e;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Featured Reviews Section */
.page-news__featured-reviews {
  background-color: #0d0d0d; /* Slightly different dark background */
  padding: 60px 0;
}

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

.page-news__review-card {
  background: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--text-light);
}

.page-news__review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-news__review-image {
  width: 100%;
  height: 180px;
  object-fit: contain; /* Use contain for game logos/icons */
  background-color: #2a2a2a;
  padding: 15px;
  box-sizing: border-box;
}

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

.page-news__review-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.4;
  color: var(--text-light);
}

.page-news__review-link {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__review-link:hover {
  color: var(--secondary-color);
}

.page-news__review-summary {
  font-size: 0.95em;
  line-height: 1.6;
  margin-bottom: 15px;
  flex-grow: 1;
  color: #cccccc;
}

.page-news__review-button {
  display: inline-block;
  padding: 10px 20px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.9em;
  font-weight: 600;
  align-self: flex-start;
  transition: background-color 0.3s ease;
}

.page-news__review-button:hover {
  background: #0a47a1;
}

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

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

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

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #1a1a1a; /* Darker background for question */
  border: 1px solid #333333;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-light);
}

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

.page-news__faq-question:active {
  background: #3a3a3a;
}

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

.page-news__faq-toggle {
  font-size: 2em;
  font-weight: bold;
  line-height: 1;
  color: #888888;
  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: 30px;
  height: 30px;
}

.page-news__faq-item.active .page-news__faq-toggle {
  color: var(--secondary-color);
  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: #222222; /* Darker background for answer */
  border-radius: 0 0 8px 8px;
  color: #cccccc;
}

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

.page-news__faq-answer p {
  margin-bottom: 1em;
  line-height: 1.6;
}

.page-news__faq-answer p:last-child {
  margin-bottom: 0;
}

.page-news__faq-link {
  color: var(--secondary-color);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-news__faq-link:hover {
  color: #fff;
}

/* Call to Action Section */
.page-news__cta-section {
  background: linear-gradient(135deg, #0a47a1, var(--primary-color));
  padding: 80px 0;
  text-align: center;
  color: var(--text-light);
}

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

.page-news__cta-title {
  font-size: 2.8em;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.3;
  color: var(--text-light);
}

.page-news__cta-description {
  font-size: 1.2em;
  line-height: 1.7;
  margin-bottom: 40px;
  color: #e0e0e0;
}

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

.page-news__cta-link:hover {
  color: #fff;
}

.page-news__cta-button.page-news__btn-primary {
  display: inline-block;
  padding: 18px 45px;
  background: var(--secondary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 10px;
  font-size: 1.2em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: none;
}

.page-news__cta-button.page-news__btn-primary:hover {
  background: #e08e3e;
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 2.8em;
  }
  .page-news__hero-description {
    font-size: 1.1em;
  }
  .page-news__section-title {
    font-size: 2.2em;
  }
  .page-news__cta-title {
    font-size: 2.4em;
  }
}

@media (max-width: 768px) {
  .page-news__hero-banner {
    padding: 40px 15px;
  }
  .page-news__hero-title {
    font-size: 2em;
  }
  .page-news__hero-description {
    font-size: 1em;
  }
  .page-news__hero-cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }

  .page-news__container {
    padding: 15px;
  }
  .page-news__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
    padding-top: 20px;
  }

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

  .page-news__article-image {
    height: 180px;
  }
  .page-news__article-title {
    font-size: 1.2em;
  }
  .page-news__article-summary {
    font-size: 0.9em;
  }

  .page-news__review-image {
    height: 150px;
  }
  .page-news__review-title {
    font-size: 1.1em;
  }
  .page-news__review-summary {
    font-size: 0.9em;
  }

  .page-news__faq-question {
    padding: 15px 20px;
  }
  .page-news__faq-question h3 {
    font-size: 1em;
  }
  .page-news__faq-toggle {
    font-size: 1.8em;
    width: 25px;
    height: 25px;
  }
  .page-news__faq-answer {
    padding: 0 20px;
  }
  .page-news__faq-item.active .page-news__faq-answer {
    padding: 15px 20px !important;
  }

  .page-news__cta-section {
    padding: 50px 15px;
  }
  .page-news__cta-title {
    font-size: 2em;
  }
  .page-news__cta-description {
    font-size: 1em;
  }
  .page-news__cta-button.page-news__btn-primary {
    padding: 15px 35px;
    font-size: 1.1em;
  }
  
  /* Ensure all images are responsive and prevent overflow */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__articles-grid,
  .page-news__reviews-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-news__hero-title {
    font-size: 1.8em;
  }
  .page-news__hero-cta-button {
    padding: 10px 25px;
    font-size: 0.9em;
  }
  .page-news__section-title {
    font-size: 1.6em;
  }
  .page-news__article-title {
    font-size: 1.1em;
  }
  .page-news__review-title {
    font-size: 1em;
  }
  .page-news__cta-title {
    font-size: 1.8em;
  }
  .page-news__cta-button.page-news__btn-primary {
    padding: 12px 30px;
    font-size: 1em;
  }
}