/* style/news.css */
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
}

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

.page-news__dark-bg {
  background-color: #0A1931;
  color: #ffffff;
}

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

.page-news__hero-section {
  position: relative;
  padding: 80px 0 40px;
  text-align: center;
  padding-top: var(--header-offset, 120px);
  overflow: hidden;
}

.page-news__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3;
}

.page-news__hero-section .page-news__container {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.page-news__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFD700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-news__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 30px;
  color: #0A1931;
}

.page-news__dark-bg .page-news__section-title {
  color: #FFD700;
}

.page-news__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
}

.page-news__featured-news, .page-news__new-games, .page-news__analysis-tips, .page-news__faq-section, .page-news__cta-banner {
  padding: 60px 0;
}

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

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

.page-news__dark-bg .page-news__article-card, .page-news__dark-bg .page-news__game-card {
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

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

.page-news__article-image, .page-news__game-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

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

.page-news__article-title, .page-news__game-title {
  font-size: 1.5em;
  margin-bottom: 10px;
}

.page-news__article-title a, .page-news__game-title a {
  color: #0A1931;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__dark-bg .page-news__article-title a, .page-news__dark-bg .page-news__game-title a {
  color: #FFD700;
}

.page-news__article-title a:hover, .page-news__game-title a:hover {
  color: #FFD700;
}

.page-news__dark-bg .page-news__article-title a:hover, .page-news__dark-bg .page-news__game-title a:hover {
  color: #ffffff;
}

.page-news__article-excerpt, .page-news__game-description {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 20px;
}

.page-news__dark-bg .page-news__article-excerpt, .page-news__dark-bg .page-news__game-description {
  color: #cccccc;
}

.page-news__read-more {
  display: inline-block;
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

.page-news__dark-bg .page-news__read-more:hover {
  color: #ffffff;
}

.page-news__btn-primary, .page-news__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
}

.page-news__btn-primary {
  background-color: #FFD700;
  color: #0A1931;
  border: 2px solid #FFD700;
}

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

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

.page-news__btn-secondary:hover {
  background-color: #FFD700;
  color: #0A1931;
}

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

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

.page-news__dark-bg .page-news__faq-item {
  border-color: rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.05);
}

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

.page-news__dark-bg .page-news__faq-question {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

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

.page-news__dark-bg .page-news__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-news__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  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;
  color: #f0f0f0;
}

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

.page-news__cta-banner {
  position: relative;
  padding: 80px 0;
  text-align: center;
  overflow: hidden;
}

.page-news__cta-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.2;
}

.page-news__cta-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

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

@media (max-width: 768px) {
  .page-news {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-news__hero-section {
    padding: 60px 0 30px;
  }
  .page-news__hero-title {
    font-size: 2.2em;
  }
  .page-news__hero-description {
    font-size: 1em;
  }
  .page-news__section-title {
    font-size: 1.8em;
  }
  .page-news__section-description {
    font-size: 0.95em;
  }
  .page-news__featured-news, .page-news__new-games, .page-news__analysis-tips, .page-news__faq-section, .page-news__cta-banner {
    padding: 40px 0;
  }
  .page-news__articles-grid, .page-news__games-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-news__article-card, .page-news__game-card {
    margin: 0 15px;
  }
  .page-news__container {
    padding: 0 15px;
  }
  
  /* Images responsive */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers with images/content responsive */
  .page-news__hero-section,
  .page-news__featured-news,
  .page-news__new-games,
  .page-news__analysis-tips,
  .page-news__faq-section,
  .page-news__cta-banner,
  .page-news__article-card,
  .page-news__game-card,
  .page-news__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left and padding-right are handled by page-news__container */
  }

  /* Buttons responsive */
  .page-news__btn-primary,
  .page-news__btn-secondary,
  .page-news a[class*="button"],
  .page-news a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
  }
  .page-news__hero-section .page-news__btn-primary,
  .page-news__cta-banner .page-news__btn-primary {
    max-width: 300px !important; /* Limit width for main CTA buttons */
    width: 100% !important;
  }

  /* Button groups for mobile */
  .page-news__cta-buttons,
  .page-news__button-group,
  .page-news__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .page-news__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for mobile */
  }
}

@media (max-width: 480px) {
  .page-news__hero-title {
    font-size: 1.8em;
  }
  .page-news__section-title {
    font-size: 1.5em;
  }
  .page-news__faq-question {
    padding: 15px 20px;
  }
  .page-news__faq-answer {
    padding: 10px 20px;
  }
}