/* style/news.css */

/* Base styles for page-news */
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is #121212 (dark), so use light text */
  background-color: transparent; /* Main content background will be handled by sections */
}

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

.page-news__section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  text-align: center;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

/* Hero Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  overflow: hidden;
  color: #ffffff;
}

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

.page-news__hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.5); /* Darken video for text readability */
}

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

.page-news__hero-title {
  font-size: clamp(36px, 5vw, 58px); /* Using clamp for responsive H1 */
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-news__hero-description {
  font-size: clamp(18px, 2vw, 22px);
  color: #f0f0f0;
  margin-bottom: 40px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.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: 14px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

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

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

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

/* Latest News Section */
.page-news__latest-news-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Slightly lighter dark background */
  color: #ffffff;
}

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

.page-news__news-card {
  background-color: #262626;
  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__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

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

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

.page-news__card-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.3;
}

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

.page-news__card-title a:hover {
  color: #ffffff;
}

.page-news__card-date {
  font-size: 14px;
  color: #999999;
  margin-bottom: 15px;
}

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

.page-news__read-more-btn {
  display: inline-block;
  padding: 8px 15px;
  background-color: #26A9E0;
  color: #ffffff;
  border-radius: 5px;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  align-self: flex-start;
  transition: background-color 0.3s ease;
}

.page-news__read-more-btn:hover {
  background-color: #1e87c0;
}

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

/* Promotions Section */
.page-news__promotions-section {
  padding: 80px 0;
  background-color: #26A9E0; /* Brand color as background */
  color: #ffffff;
}

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

.page-news__promotions-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 40px;
  display: block;
}

/* Game Ecosystem Section */
.page-news__game-ecosystem-section {
  padding: 80px 0;
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-news__game-ecosystem-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 40px;
  display: block;
}

.page-news__game-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.page-news__game-link {
  display: inline-block;
  padding: 12px 25px;
  background-color: #333333;
  color: #ffffff;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-news__game-link:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

/* FAQ Section */
.page-news__faq-section {
  padding: 80px 0;
  background-color: #262626;
  color: #ffffff;
}

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

.page-news__faq-item {
  background-color: #333333;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

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

.page-news__faq-item[open] .page-news__faq-question {
  border-bottom-color: transparent;
}

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

.page-news__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
}

.page-news__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 16px;
  color: #cccccc;
}

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

/* Details element specific styling */
.page-news__faq-item summary {
  list-style: none;
}

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

/* CTA Banner */
.page-news__cta-banner {
  padding: 60px 0;
  background: linear-gradient(90deg, #26A9E0, #1e87c0);
  color: #ffffff;
  text-align: center;
}

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

.page-news__cta-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-news__cta-description {
  font-size: 18px;
  margin-bottom: 30px;
}

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

/* Image sizing for content images */
.page-news img {
  max-width: 100%;
  height: auto;
  display: block;
  /* Ensure content images are not too small */
  min-width: 200px;
  min-height: 200px;
}

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

  .page-news__hero-section {
    min-height: 400px;
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-news__hero-title {
    font-size: 32px;
  }

  .page-news__hero-description {
    font-size: 16px;
  }

  .page-news__hero-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: 16px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-news__section-title {
    font-size: 28px;
  }

  .page-news__section-description {
    font-size: 16px;
  }

  .page-news__latest-news-section,
  .page-news__promotions-section,
  .page-news__game-ecosystem-section,
  .page-news__faq-section,
  .page-news__cta-banner {
    padding: 50px 0;
  }

  .page-news__news-grid {
    grid-template-columns: 1fr;
  }

  .page-news__card-image {
    height: 180px;
  }

  .page-news__card-title {
    font-size: 18px;
  }

  .page-news__card-excerpt {
    font-size: 14px;
  }

  .page-news__game-link {
    padding: 10px 20px;
    font-size: 14px;
  }

  .page-news__faq-question {
    font-size: 16px;
    padding: 15px;
  }

  .page-news__faq-answer {
    font-size: 14px;
    padding: 0 15px 15px 15px;
  }

  .page-news__cta-title {
    font-size: 28px;
  }

  .page-news__cta-description {
    font-size: 16px;
  }

  /* Force responsive for all images, videos, and containers */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important; /* Ensure images take full width of their container */
    height: auto !important;
    display: block !important;
  }

  .page-news video,
  .page-news__hero-video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__hero-section,
  .page-news__hero-video-wrapper,
  .page-news__hero-content-container,
  .page-news__latest-news-section,
  .page-news__promotions-section,
  .page-news__game-ecosystem-section,
  .page-news__faq-section,
  .page-news__cta-banner,
  .page-news__news-grid,
  .page-news__game-links,
  .page-news__faq-list,
  .page-news__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-news__hero-section,
  .page-news__latest-news-section,
  .page-news__promotions-section,
  .page-news__game-ecosystem-section,
  .page-news__faq-section,
  .page-news__cta-banner {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .page-news__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}