/* style/news.css */
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is dark (#121212), so text must be light */
  background-color: #121212; /* Ensure consistency, though shared.css sets body */
}

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

/* Hero Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Ensure header offset */
  background-color: #333333;
  overflow: hidden;
}

.page-news__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  color: #ffffff;
  padding: 20px;
}

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

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

.page-news__hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

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

.page-news__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Subtle overlay */
}

/* Section Titles and Descriptions */
.page-news__section-title {
  font-size: 2.5em;
  color: #E44D26;
  text-align: center;
  margin-bottom: 20px;
  padding-top: 60px;
}

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

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Ensure padding doesn't affect total width */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  text-align: center;
}

.page-news__btn-primary {
  background-color: #E44D26;
  color: #ffffff;
  border: 2px solid #E44D26;
}

.page-news__btn-primary:hover {
  background-color: #ff6633;
  border-color: #ff6633;
}

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

.page-news__btn-secondary:hover {
  background-color: #E44D26;
  color: #ffffff;
}

/* Latest Articles Section */
.page-news__latest-articles-section {
  padding: 60px 0;
  background-color: #1a1a1a;
}

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

.page-news__article-card {
  background-color: #333333;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  color: #ffffff; /* Ensure light text on dark card */
}

.page-news__article-card:hover {
  transform: translateY(-5px);
}

.page-news__article-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  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.3;
}

.page-news__article-title a {
  color: #E44D26;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

.page-news__read-more {
  color: #E44D26;
  text-decoration: none;
  font-weight: bold;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

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

.page-news__arrow {
  margin-left: 8px;
  font-size: 1.2em;
  line-height: 1;
}

/* Game Updates Section */
.page-news__game-updates-section {
  padding: 60px 0;
  background-color: #333333; /* Dark background for this section */
}

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

.page-news__game-card {
  background-color: #444444;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  color: #ffffff;
}

.page-news__game-card:hover {
  transform: translateY(-5px);
}

.page-news__game-image {
  width: 100%;
  height: 180px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-news__game-info {
  padding: 20px;
}

.page-news__game-title {
  font-size: 1.2em;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__game-title a {
  color: #E44D26;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__game-title a:hover {
  color: #ff6633;
}

.page-news__game-description {
  font-size: 0.9em;
  color: #cccccc;
}


/* CTA Banner */
.page-news__cta-banner {
  padding: 80px 0;
  text-align: center;
  background-color: #E44D26; /* Brand primary color as background */
  color: #ffffff; /* White text for contrast */
}

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

.page-news__cta-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* FAQ Section */
.page-news__faq-section {
  padding: 60px 0;
  background-color: #1a1a1a;
}

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

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

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

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

.page-news__faq-heading {
  margin: 0;
  font-size: 1.2em;
  color: #E44D26;
}

.page-news__faq-toggle {
  font-size: 1.8em;
  line-height: 1;
  width: 30px;
  text-align: center;
  color: #E44D26;
  transition: transform 0.3s ease;
}

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

.page-news__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #444444; /* Slightly lighter background for answer */
  color: #cccccc;
}

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

.page-news__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
  color: #cccccc;
}

.page-news__faq-answer a {
  color: #E44D26;
  text-decoration: underline;
}

.page-news__faq-answer a:hover {
  color: #ff6633;
}

/* Contact CTA Section */
.page-news__contact-cta {
    padding: 80px 0;
    text-align: center;
    background-color: #1a1a1a;
}

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

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

@media (max-width: 768px) {
  .page-news__container {
    padding: 0 15px;
  }

  .page-news__hero-section {
    min-height: 450px;
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for mobile */
  }

  .page-news__hero-content {
    padding: 15px;
  }

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

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

  .page-news__hero-cta {
    flex-direction: column;
    gap: 15px;
  }

  .page-news__btn-primary,
  .page-news__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95em;
  }

  .page-news__section-title {
    font-size: 1.8em;
    padding-top: 40px;
  }

  .page-news__section-description {
    font-size: 0.95em;
  }

  .page-news__articles-grid,
  .page-news__game-updates-grid {
    grid-template-columns: 1fr;
  }

  .page-news__article-card,
  .page-news__game-card {
    margin-bottom: 20px;
  }

  .page-news__cta-banner {
    padding: 60px 0;
  }

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

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

  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-news__faq-section {
    padding: 40px 0;
  }

  .page-news__faq-question {
    padding: 18px 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 20px;
  }

  /* Images and Video responsiveness */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Ensure all containers with images/videos are responsive */
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__hero-section,
  .page-news__latest-articles-section,
  .page-news__cta-banner,
  .page-news__faq-section,
  .page-news__contact-cta,
  .page-news__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
}