/* General styling for the news page */
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Changed to column for image-then-text flow */
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding for visual separation, body handles header offset */
  background-color: #0A4B2C; /* Deep Green */
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-news__hero-content {
  position: relative; /* Changed from absolute to relative for natural flow */
  z-index: 1;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
  color: #F2FFF6;
}

.page-news__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #F2C14E; /* Gold */
}

.page-news__intro-text {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: #A7D9B8; /* Text Secondary */
}

/* General Section Styling */
.page-news__section {
  padding: 60px 20px;
  background-color: #08160F; /* Background */
  color: #F2FFF6;
}

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

.page-news__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #F2C14E; /* Gold */
}

.page-news__section-description {
  font-size: 1.05rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #A7D9B8; /* Text Secondary */
}

/* Call to Action Button */
.page-news__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%; /* For responsiveness */
  box-sizing: border-box; /* For responsiveness */
  white-space: normal; /* For responsiveness */
  word-wrap: break-word; /* For responsiveness */
}

.page-news__cta-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

/* News Grid */
.page-news__latest-updates {
  background-color: #11271B; /* Card BG */
}

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

.page-news__news-card {
  background-color: #08160F; /* Background */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 15px #57E38D; /* Glow */
}

.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: 1.4rem;
  margin-bottom: 10px;
  line-height: 1.3;
  flex-grow: 1;
}

.page-news__card-title a {
  color: #F2FFF6; /* Text Main */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__card-title a:hover {
  color: #F2C14E; /* Gold */
}

.page-news__card-meta {
  font-size: 0.9rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 15px;
}

.page-news__card-text {
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
}

.page-news__read-more {
  display: inline-block;
  color: #2AD16F; /* Main color */
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: color 0.3s ease;
  margin-top: auto; /* Push to bottom */
}

.page-news__read-more:hover {
  color: #F2C14E; /* Gold */
}

.page-news__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-news__button-group--center {
  text-align: center;
}

/* Game Guides Section */
.page-news__game-guides {
  background-color: #0A4B2C; /* Deep Green */
}

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

.page-news__guide-card {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  border: 1px solid #2E7A4E; /* Border */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-news__guide-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 15px #57E38D; /* Glow */
}

.page-news__guide-title {
  font-size: 1.5rem;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-news__guide-text {
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
}

/* FAQ Section */
.page-news__faq {
  background-color: #08160F; /* Background */
}

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

.page-news__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  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: 1.15rem;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  background-color: #11271B; /* Card BG */
  position: relative;
  list-style: none; /* For details/summary */
}

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

.page-news__faq-qtext {
  flex-grow: 1;
  padding-right: 15px;
}

.page-news__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: #2AD16F; /* Main color */
  transition: transform 0.3s ease;
}

.page-news__faq-item[open] .page-news__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to become cross */
}

.page-news__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  border-top: 1px solid #2E7A4E; /* Divider */
}

.page-news__faq-answer p {
  margin-top: 15px;
}

.page-news__faq-answer a {
  color: #2AD16F;
  text-decoration: none;
}

.page-news__faq-answer a:hover {
  text-decoration: underline;
}

/* CTA Section at bottom */
.page-news__cta-section .page-news__container {
  background-color: #0A4B2C; /* Deep Green */
  border-radius: 10px;
  padding: 40px;
  text-align: center;
  border: 1px solid #2E7A4E;
}

.page-news__cta-section .page-news__section-title {
  color: #F2C14E; /* Gold */
}

.page-news__cta-section .page-news__section-description {
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

.page-news__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
}

.page-news__btn-secondary {
  background: #11271B; /* Card BG */
  color: #2AD16F; /* Main color */
  border: 2px solid #2AD16F;
}

.page-news__btn-secondary:hover {
  background: #08160F; /* Background */
  border-color: #F2C14E; /* Gold */
  color: #F2C14E;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-news__hero-content {
    padding: 30px 15px;
  }

  .page-news__main-title {
    font-size: 2.2rem;
  }

  .page-news__intro-text {
    font-size: 1rem;
  }

  .page-news__section {
    padding: 40px 15px;
  }

  .page-news__section-title {
    font-size: 1.8rem;
  }

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

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

  .page-news__card-title {
    font-size: 1.2rem;
  }

  .page-news__card-meta,
  .page-news__card-text {
    font-size: 0.9rem;
  }

  .page-news__read-more {
    font-size: 0.95rem;
  }

  .page-news__grid-2-col {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-news__guide-title {
    font-size: 1.3rem;
  }

  .page-news__guide-text {
    font-size: 0.95rem;
  }

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

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

  .page-news__cta-section .page-news__container {
    padding: 30px 20px;
  }

  .page-news__button-group {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .page-news__cta-button,
  .page-news__btn-primary,
  .page-news__btn-secondary {
    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;
  }

  /* Image responsive rules */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-news__section,
  .page-news__container,
  .page-news__hero-section,
  .page-news__news-card,
  .page-news__guide-card,
  .page-news__faq-item,
  .page-news__cta-section .page-news__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }

  .page-news__hero-section {
    padding-top: 10px !important; /* body handles --header-offset, this is decorative */
  }
}