/* style/news.css */

/* Body background is #000000 (dark), so default text color should be light */
.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__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  background: linear-gradient(135deg, rgba(38, 169, 224, 0.2), rgba(0, 0, 0, 0.7));
  overflow: hidden;
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim the image for text readability, not color change */
}

.page-news__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin-top: -150px; /* Overlap slightly with image, but not covering text */
  padding: 0 20px;
}

.page-news__main-title {
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  max-width: 100%;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.page-news__hero-description {
  font-size: 1.15rem;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-news__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-news__section-title--light {
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

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

.page-news__section-description--light {
  color: #f0f0f0;
}

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

.page-news__news-card, .page-news__game-item {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark body bg */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff; /* Light text for dark card background */
}

.page-news__news-card:hover, .page-news__game-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

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

.page-news__game-image {
  height: 200px;
}

.page-news__card-content {
  padding: 20px;
}

.page-news__card-date {
  font-size: 0.9rem;
  color: #cccccc;
  margin-bottom: 10px;
  display: block;
}

.page-news__card-title, .page-news__game-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
}

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

.page-news__card-title a:hover, .page-news__game-title a:hover {
  color: #EA7C07; /* Login orange for hover */
}

.page-news__card-text, .page-news__game-text {
  font-size: 1rem;
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

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

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

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

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

.page-news__btn-secondary--light {
  color: #ffffff;
  border-color: #ffffff;
}

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

.page-news__button-container {
  text-align: center;
  margin-top: 40px;
}

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

.page-news__dark-section {
  background: #0d0d0d; /* Slightly lighter dark background for contrast */
  color: #ffffff;
}

.page-news__featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-news__featured-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

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

.page-news__featured-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: #26A9E0;
  margin: 20px 20px 10px 20px;
}

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

.page-news__featured-item .page-news__btn-secondary--light {
  margin: 0 20px 20px 20px;
  align-self: flex-start;
}

.page-news__game-item {
  text-align: center;
}

.page-news__game-item .page-news__game-title {
  margin-top: 15px;
  margin-bottom: 10px;
}

.page-news__game-item .page-news__game-text {
  margin-bottom: 0;
}

.page-news__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #26A9E0;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  list-style: none; /* For details/summary */
}

.page-news__faq-question::-webkit-details-marker {
  display: none; /* For details/summary */
}

.page-news__faq-item[open] .page-news__faq-question {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

.page-news__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  margin-left: 15px;
  color: #ffffff;
}

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

.page-news__faq-answer p {
  margin-bottom: 0;
  color: #f0f0f0;
}

.page-news__cta-section {
  background: linear-gradient(90deg, #26A9E0, #1e87b7);
  text-align: center;
  padding: 80px 20px;
}

.page-news__cta-section .page-news__section-title {
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-news__cta-section .page-news__section-description {
  color: #f0f0f0;
  margin-bottom: 50px;
}

.page-news__cta-section .page-news__btn-primary {
  background-color: #EA7C07; /* Login orange */
  border-color: #EA7C07;
}

.page-news__cta-section .page-news__btn-primary:hover {
  background-color: #d16b00;
  border-color: #d16b00;
}

.page-news__cta-section .page-news__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border-color: #ffffff;
}

.page-news__cta-section .page-news__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1e87b7;
  border-color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__hero-content {
    margin-top: -100px;
  }
  .page-news__featured-grid {
    grid-template-columns: 1fr;
  }
  .page-news__featured-image {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding-bottom: 40px;
  }
  .page-news__hero-content {
    margin-top: -80px;
    padding: 0 15px;
  }
  .page-news__main-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }
  .page-news__hero-description {
    font-size: 1rem;
  }
  .page-news__section-padding {
    padding: 40px 0;
  }
  .page-news__section-title {
    font-size: 2rem;
  }
  .page-news__section-description {
    font-size: 0.95rem;
  }
  .page-news__news-grid, .page-news__games-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-news__news-card, .page-news__game-item, .page-news__featured-item {
    margin: 0 15px;
  }
  .page-news__card-image, .page-news__game-image {
    height: 180px;
  }
  .page-news__featured-image {
    height: 250px;
  }
  .page-news__card-title, .page-news__game-title {
    font-size: 1.2rem;
  }
  .page-news__featured-title {
    font-size: 1.4rem;
  }
  .page-news__btn-primary,
  .page-news__btn-secondary {
    padding: 10px 20px;
    font-size: 0.9rem;
    width: 100% !important; /* Force full width on mobile */
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-news__button-group {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-news__faq-question {
    font-size: 1.1rem;
    padding: 15px 20px;
  }
  .page-news__faq-answer {
    padding: 10px 20px 15px 20px;
    font-size: 0.95rem;
  }

  /* Mobile image responsiveness */
  .page-news img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-news__hero-image-wrapper,
  .page-news__news-card,
  .page-news__game-item,
  .page-news__featured-item,
  .page-news__container,
  .page-news__section-padding,
  .page-news__dark-section,
  .page-news__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Adjust padding for specific sections if needed, avoid double padding */
  .page-news__hero-section,
  .page-news__latest-news-section,
  .page-news__featured-section,
  .page-news__games-overview,
  .page-news__faq-section,
  .page-news__cta-section {
    padding-left: 0; /* Container handles padding */
    padding-right: 0; /* Container handles padding */
  }

  .page-news__hero-content,
  .page-news__button-container {
    padding-left: 0;
    padding-right: 0;
  }
  .page-news__faq-list {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .page-news__hero-content {
    margin-top: -60px;
  }
  .page-news__main-title {
    font-size: clamp(1.8rem, 9vw, 2.5rem);
  }
  .page-news__section-title {
    font-size: 1.8rem;
  }
  .page-news__card-image, .page-news__game-image {
    height: 150px;
  }
  .page-news__featured-image {
    height: 200px;
  }
  .page-news__card-title, .page-news__game-title {
    font-size: 1.1rem;
  }
  .page-news__featured-title {
    font-size: 1.2rem;
  }
}