/* style/news.css */

/* Base styles for the news page, ensuring light text on dark body background */
.page-news {
  color: #ffffff; /* Light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Rely on body background from shared.css */
}

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

/* Hero Section */
.page-news__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  padding-top: 10px; /* Small top padding, body handles header offset */
  text-align: center;
  overflow: hidden;
  background: #0d0d0d; /* Slightly lighter dark for hero background */
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  max-width: 1920px;
  min-width: 200px;
  min-height: 200px;
}

.page-news__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 30px 20px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
  margin-top: -100px; /* Pull content slightly over image for visual flow */
  border-radius: 8px;
}

.page-news__main-title {
  color: #FFFFFF;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  /* clamp for responsive font size, avoiding fixed large values */
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

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

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

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-news__btn-primary {
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

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

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

.page-news__btn-secondary:hover {
  background-color: #26A9E0;
  color: #FFFFFF;
}

/* Section Titles and Descriptions */
.page-news__section-title {
  color: #FFFFFF;
  text-align: center;
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: bold;
}

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

/* Latest News Section */
.page-news__latest-news-section {
  padding: 60px 0;
  background-color: #0a0a0a; /* Dark background from body */
}

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

.page-news__news-card {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark background */
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-width: 200px;
  min-height: 200px;
}

.page-news__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

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

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

.page-news__card-title {
  font-size: 1.4rem;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__card-link {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__card-link:hover {
  color: #FFFFFF;
}

.page-news__card-meta {
  font-size: 0.9rem;
  color: #999999;
  margin-bottom: 15px;
}

.page-news__card-text {
  font-size: 1rem;
  color: #cccccc;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

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

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

/* Platform Updates Section */
.page-news__dark-section {
  background-color: #1a1a1a; /* Darker background for contrast */
  padding: 60px 0;
  color: #ffffff;
}

.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: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 30px;
  min-width: 200px;
  min-height: 200px;
}

.page-news__update-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
  min-width: 200px;
  min-height: 200px;
}

.page-news__update-title {
  font-size: 1.5rem;
  color: #FFFFFF;
  margin-bottom: 15px;
}

.page-news__update-text {
  font-size: 1rem;
  color: #cccccc;
}

/* Promotions & Events Section */
.page-news__promotions-events-section {
  padding: 60px 0;
  background-color: #0a0a0a; /* Dark background from body */
}

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

.page-news__promo-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 200px;
  min-height: 200px;
}

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

.page-news__promo-title {
  font-size: 1.4rem;
  color: #FFFFFF;
  padding: 20px 25px 10px;
  line-height: 1.3;
}

.page-news__promo-text {
  font-size: 1rem;
  color: #cccccc;
  padding: 0 25px 20px;
  flex-grow: 1;
}

/* Game News & Strategies Section */
.page-news__game-strategies-section {
  padding: 60px 0;
  background-color: #1a1a1a; /* Darker background for contrast */
}

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

.page-news__strategy-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 200px;
  min-height: 200px;
}

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

.page-news__strategy-title {
  font-size: 1.4rem;
  color: #FFFFFF;
  padding: 20px 25px 10px;
  line-height: 1.3;
}

.page-news__strategy-text {
  font-size: 1rem;
  color: #cccccc;
  padding: 0 25px 20px;
  flex-grow: 1;
}

/* FAQ Section */
.page-news__faq-section {
  padding: 60px 0;
  background-color: #0a0a0a; /* Dark background from body */
}

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

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

.page-news__faq-item details > summary {
  list-style: none;
}

.page-news__faq-item details > summary::-webkit-details-marker {
  display: none;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: bold;
  color: #FFFFFF;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

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

.page-news__faq-qtext {
  flex-grow: 1;
}

.page-news__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
}

.page-news__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: #cccccc;
}

/* Call to Action Bottom Section */
.page-news__cta-bottom-section {
  padding: 60px 0;
  background-color: #1a1a1a; /* Darker background for contrast */
  text-align: center;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-news__hero-content {
    margin-top: -50px;
  }
}

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

  .page-news__hero-section {
    padding: 40px 0;
    padding-top: 10px !important; /* body handles --header-offset */
  }

  .page-news__hero-content {
    margin-top: 0;
    padding: 20px 15px;
  }

  .page-news__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

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

  .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 15px !important;
    font-size: 1rem;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-news__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-news__section-title {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
  }

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

  .page-news__news-card,
  .page-news__update-item,
  .page-news__promo-item,
  .page-news__strategy-item {
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-news__card-image,
  .page-news__promo-image,
  .page-news__strategy-image,
  .page-news__update-image,
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__hero-section,
  .page-news__latest-news-section,
  .page-news__platform-updates-section,
  .page-news__promotions-events-section,
  .page-news__game-strategies-section,
  .page-news__faq-section,
  .page-news__cta-bottom-section,
  .page-news__hero-image-wrapper,
  .page-news__cta-buttons,
  .page-news__view-all-button-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-news__card-content,
  .page-news__update-item,
  .page-news__promo-title,
  .page-news__promo-text,
  .page-news__strategy-title,
  .page-news__strategy-text,
  .page-news__faq-question,
  .page-news__faq-answer {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

/* Ensure images in content areas are not too small */
.page-news img {
  min-width: 200px;
  min-height: 200px;
}

/* No filter on images */
.page-news img { 
  filter: none;
}