.page-news {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Main text color for dark background */
  background-color: #08160F; /* Main background color */
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image above content */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small padding, body handles --header-offset */
  padding-bottom: 60px;
  overflow: hidden;
  background-color: #08160F; /* Ensure background matches */
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-width: 1920px; /* Max width of the image wrapper */
  margin-bottom: 30px; /* Space between image and content */
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Minimum image size */
}

.page-news__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  z-index: 1; /* Ensure content is above any potential background effects */
  color: #F2FFF6; /* Light text on dark background */
}

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

.page-news__hero-description {
  font-size: 1.1rem;
  color: #A7D9B8; /* Secondary text color */
  margin-bottom: 30px;
}

.page-news__hero-cta {
  margin-top: 30px;
}

/* General Section Styling */
.page-news__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  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: #F2FFF6; /* Default for dark sections */
}

.page-news__section-description {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 40px;
  color: #A7D9B8;
}

/* Backgrounds for sections */
.page-news__dark-bg {
  background-color: #08160F;
  color: #F2FFF6;
}

.page-news__light-bg {
  background-color: #11271B; /* Card BG as a lighter section background */
  color: #F2FFF6; /* Still light text for contrast */
}

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

.page-news__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-news__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
  transform: translateY(-2px);
}

.page-news__btn-secondary {
  background-color: transparent;
  color: #57E38D; /* Glow color */
  border: 2px solid #2E7A4E; /* Border color */
}

.page-news__btn-secondary:hover {
  background-color: rgba(46, 122, 78, 0.2); /* Slightly transparent green */
  color: #F2FFF6;
  border-color: #57E38D;
  transform: translateY(-2px);
}

.page-news__cta-button-wrapper {
  text-align: center;
  margin-top: 40px;
}

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

/* Keyword highlight */
.page-news__keyword {
  color: #57E38D; /* Glow color for keywords */
  font-weight: 600;
}

/* Latest News Section */
.page-news__news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-news__news-card {
  background-color: #11271B; /* Card BG color */
  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;
  display: flex;
  flex-direction: column;
}

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

.page-news__news-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  min-height: 200px; /* Enforce min size */
}

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

.page-news__news-card-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
}

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

.page-news__news-card-title a:hover {
  color: #57E38D; /* Glow color */
}

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

.page-news__news-card-excerpt {
  font-size: 1rem;
  color: #A7D9B8;
  margin-bottom: 20px;
  flex-grow: 1; /* Allow excerpt to take available space */
}

.page-news__news-card-link {
  display: inline-block;
  color: #57E38D;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  margin-top: auto; /* Push to bottom */
}

.page-news__news-card-link:hover {
  color: #F2FFF6;
}

/* Promotions Section */
.page-news__promo-banner {
  width: 100%;
  margin-bottom: 40px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-news__promo-image {
  width: 100%;
  height: auto;
  display: block;
  min-height: 200px; /* Enforce min size */
}

.page-news__content-block {
  background-color: #0A4B2C; /* Deep Green */
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  color: #F2FFF6;
}

.page-news__content-block-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #F2FFF6;
  margin-bottom: 20px;
  text-align: left;
}

.page-news__content-block p {
  font-size: 1.05rem;
  margin-bottom: 15px;
  color: #A7D9B8;
}

.page-news__list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-news__list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  font-size: 1.05rem;
  color: #A7D9B8;
}

.page-news__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #57E38D; /* Glow color for bullet */
  font-weight: bold;
}

.page-news__list-item-highlight {
  color: #F2FFF6;
  font-weight: 600;
}

/* Game Updates Section */
.page-news__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-top: 25px;
  margin-bottom: 25px;
  min-height: 200px; /* Enforce min size */
}

/* Security Section */
.page-news__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-news__security-item {
  background-color: #0A4B2C;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-news__security-icon {
  width: 100%;
  max-width: 250px; /* Example size for icon */
  height: auto;
  margin-bottom: 20px;
  min-height: 200px; /* Enforce min size */
}

/* FAQ Section */
.page-news__faq-list {
  margin-top: 40px;
}

.page-news__faq-item {
  background-color: #11271B; /* Card BG color */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #F2FFF6;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  color: #F2FFF6;
  background-color: #0A4B2C; /* Deep Green for question header */
}

.page-news__faq-question:hover {
  background-color: #0A4B2C; /* Slightly darker on hover */
  color: #57E38D;
}

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

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

.page-news__faq-item[open] .page-news__faq-toggle {
  content: '−';
}

.page-news__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: #A7D9B8;
  background-color: #11271B; /* Card BG for answer content */
}

/* Remove default details arrow */
.page-news__faq-item summary {
  list-style: none;
}
.page-news__faq-item summary::-webkit-details-marker {
  display: none;
}

/* Final CTA Section */
.page-news__cta-final {
  padding-bottom: 80px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-news__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding-bottom: 40px;
  }
  .page-news__hero-content {
    padding: 0 15px;
  }
  .page-news__hero-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }
  .page-news__hero-description {
    font-size: 1rem;
  }
  .page-news__container {
    padding: 30px 15px;
  }
  .page-news__section-title {
    font-size: clamp(1.6rem, 6vw, 2rem);
  }
  .page-news__section-description {
    font-size: 0.95rem;
  }
  .page-news__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-news__content-block {
    padding: 20px;
  }
  .page-news__content-block-title {
    font-size: 1.5rem;
  }
  .page-news__list li,
  .page-news__content-block p {
    font-size: 0.95rem;
  }
  .page-news__security-features {
    grid-template-columns: 1fr;
  }
  .page-news__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-news__faq-answer {
    padding: 15px 20px;
    font-size: 0.95rem;
  }
  .page-news__cta-buttons-wrapper {
    flex-direction: column;
    gap: 15px;
  }
  .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; /* Add padding for mobile buttons */
    padding-right: 15px; /* Add padding for mobile buttons */
  }

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

  /* Containers for images/content */
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__hero-section,
  .page-news__latest-section,
  .page-news__promotions-section,
  .page-news__game-updates-section,
  .page-news__security-section,
  .page-news__faq-section,
  .page-news__cta-final,
  .page-news__promo-banner,
  .page-news__content-block,
  .page-news__security-item,
  .page-news__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }

  /* Specific padding adjustments for sections that already have some */
  .page-news__hero-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-news__hero-content {
     padding-left: 15px !important;
     padding-right: 15px !important;
  }
  .page-news__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .page-news__hero-section {
    padding-top: 10px !important; /* body already has offset */
  }
}

/* Contrast Fixes */
.page-news__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-news__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}