/* style/news.css */
.page-news {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

.page-news__link {
  color: #FFFF00; /* Yellow for links on dark background */
  text-decoration: none;
}

.page-news__link:hover {
  text-decoration: underline;
}

.page-news__section {
  padding: 60px 0;
  margin-bottom: 20px;
}

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

.page-news__section-title {
  font-size: 2.5em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

/* Hero Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 70vh;
  min-height: 500px;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-news__hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6); /* Darken image for text readability */
}

.page-news__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
}

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

.page-news__hero-description {
  font-size: 1.4em;
  color: #f0f0f0;
  margin-bottom: 40px;
  line-height: 1.5;
}

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

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-news__btn-primary {
  background-color: #C30808; /* Register/Login button color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

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

.page-news__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #FFFF00;
}

.page-news__btn-secondary:hover {
  background-color: #FFFF00;
  color: #C30808;
}

/* Article Grid */
.page-news__latest-articles {
  background-color: #0a0a0a;
}

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

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

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

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

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

.page-news__article-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  line-height: 1.3;
  font-weight: bold;
}

.page-news__article-title a {
  color: #ffffff;
  text-decoration: none;
}

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

.page-news__article-meta {
  font-size: 0.9em;
  color: #bbb;
  margin-bottom: 15px;
}

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

.page-news__read-more {
  color: #FFFF00;
  text-decoration: none;
  font-weight: bold;
}

.page-news__read-more:hover {
  text-decoration: underline;
}

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

/* Dark Section Styling */
.page-news__dark-section {
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
}

.page-news__dark-section .page-news__section-title,
.page-news__dark-section .page-news__section-description {
  color: #ffffff;
}

.page-news__dark-section .page-news__link {
  color: #FFFF00;
}

/* Platform Updates */
.page-news__update-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-news__update-item {
  background-color: rgba(0, 0, 0, 0.2); /* Semi-transparent background */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-news__update-image {
  width: 100%;
  max-width: 400px;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-news__update-title {
  font-size: 1.5em;
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-news__update-text {
  font-size: 1em;
  color: #e0e0e0;
}

/* Game Guides */
.page-news__game-guides {
  background-color: #0a0a0a;
}

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

.page-news__guide-item {
  background-color: #1a1a1a;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.page-news__guide-title {
  font-size: 1.3em;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-news__guide-title a {
  color: #ffffff;
  text-decoration: none;
}

.page-news__guide-title a:hover {
  color: #FFFF00;
  text-decoration: underline;
}

.page-news__guide-text {
  font-size: 0.95em;
  color: #e0e0e0;
  flex-grow: 1;
}

/* Promotions */
.page-news__promotions {
  background-color: #017439;
}

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

.page-news__promo-card {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

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

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

.page-news__promo-title {
  font-size: 1.4em;
  color: #ffffff;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-news__promo-text {
  font-size: 1em;
  color: #e0e0e0;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* CTA Section */
.page-news__cta-section {
  background-color: #0a0a0a;
  text-align: center;
}

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

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

@media (max-width: 768px) {
  .page-news {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-news__hero-section {
    height: auto;
    min-height: 400px;
    padding: 100px 0 60px 0;
    padding-top: var(--header-offset, 120px) !important;
  }

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

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

  .page-news__hero-cta-buttons,
  .page-news__cta-buttons {
    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: 1em;
    margin: 0 auto; /* Center buttons */
  }

  .page-news__container {
    padding: 0 15px;
  }

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

  .page-news__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-news__article-grid,
  .page-news__update-grid,
  .page-news__guide-list,
  .page-news__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-news__article-image,
  .page-news__update-image,
  .page-news__promo-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-news__article-card,
  .page-news__update-item,
  .page-news__guide-item,
  .page-news__promo-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 15px;
  }

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

  .page-news__article-title,
  .page-news__update-title,
  .page-news__guide-title,
  .page-news__promo-title {
    font-size: 1.2em;
  }

  .page-news__article-excerpt,
  .page-news__update-text,
  .page-news__guide-text,
  .page-news__promo-text {
    font-size: 0.9em;
  }
}