.page-news {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main-color);
  background-color: var(--background-color);
}

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

.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 60px;
  padding-top: 10px; /* Small top padding as body handles --header-offset */
  overflow: hidden;
  color: var(--text-main-color);
  background: linear-gradient(180deg, #0A4B2C 0%, #08160F 100%);
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* 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;
}

.page-news__hero-content {
  position: relative;
  z-index: 10;
  padding: 30px 15px;
  max-width: 900px;
}

.page-news__main-title {
  color: var(--gold-color);
  font-size: clamp(2em, 4vw, 3.5em);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.page-news__hero-description {
  font-size: 1.1em;
  color: var(--text-secondary-color);
  margin-bottom: 30px;
}

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: nowrap;
}

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

.page-news__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.page-news__btn-secondary {
  background: transparent;
  color: var(--text-main-color);
  border: 2px solid var(--border-color);
  margin-left: 15px;
}

.page-news__btn-secondary:hover {
  background: var(--deep-green-color);
  color: #F2FFF6;
}

.page-news__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  color: var(--text-main-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.page-news__section-description {
  font-size: 1.05em;
  color: var(--text-secondary-color);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Latest News Section */
.page-news__latest-news-section,
.page-news__promotions-highlight-section,
.page-news__game-updates-section,
.page-news__faq-section {
  padding: 80px 0;
  background-color: var(--background-color);
}

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

.page-news__news-card,
.page-news__promo-card,
.page-news__game-card {
  background-color: var(--card-bg-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-news__news-card:hover,
.page-news__promo-card:hover,
.page-news__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.page-news__news-card-image,
.page-news__promo-card-image,
.page-news__game-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-news__news-card-content,
.page-news__promo-card-content,
.page-news__game-card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-news__news-card-title,
.page-news__promo-card-title,
.page-news__game-card-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  font-weight: 600;
  line-height: 1.4;
}

.page-news__news-card-title a,
.page-news__promo-card-title a,
.page-news__game-card-title a {
  color: var(--text-main-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__news-card-title a:hover,
.page-news__promo-card-title a:hover,
.page-news__game-card-title a:hover {
  color: var(--glow-color);
}

.page-news__news-card-date {
  font-size: 0.9em;
  color: var(--text-secondary-color);
  margin-bottom: 15px;
}

.page-news__news-card-excerpt,
.page-news__promo-card-excerpt,
.page-news__game-card-excerpt {
  font-size: 1em;
  color: var(--text-secondary-color);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__cta-container {
  text-align: center;
  margin-top: 50px;
}

/* Security & Trust Section */
.page-news__security-trust-section {
  padding: 80px 0;
  background-color: var(--deep-green-color);
  color: #F2FFF6; /* Forced light text for dark background */
}

.page-news__security-trust-section .page-news__section-title,
.page-news__security-trust-section .page-news__section-description {
  color: #F2FFF6;
}

.page-news__security-text {
  font-size: 1.05em;
  color: var(--text-secondary-color);
  max-width: 900px;
  margin: 0 auto 40px auto;
  text-align: center;
}

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

.page-news__faq-item {
  background-color: var(--card-bg-color);
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-news__faq-item details {
  padding: 0;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: var(--text-main-color);
  cursor: pointer;
  background-color: var(--card-bg-color);
  border-bottom: 1px solid var(--divider-color);
  list-style: none; /* For details/summary */
}

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

.page-news__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--glow-color);
  transition: transform 0.3s ease;
}

.page-news__faq-item[open] .page-news__faq-toggle {
  transform: rotate(45deg);
}

.page-news__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: var(--text-secondary-color);
  line-height: 1.7;
}

/* Final CTA Section */
.page-news__cta-final-section {
  padding: 80px 0;
  background-color: var(--deep-green-color);
  color: #F2FFF6; /* Forced light text for dark background */
  text-align: center;
}

.page-news__cta-final-section .page-news__section-title,
.page-news__cta-final-section .page-news__section-description {
  color: #F2FFF6;
}

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

/* Custom Colors */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg-color: #11271B;
  --background-color: #08160F;
  --text-main-color: #F2FFF6;
  --text-secondary-color: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
}

/* Ensure contrast for general text on default background */
.page-news p,
.page-news li,
.page-news span {
  color: var(--text-secondary-color);
}

/* Ensure main titles are visible */
.page-news h1,
.page-news h2,
.page-news h3,
.page-news h4,
.page-news h5,
.page-news h6 {
  color: var(--text-main-color);
}

/* Specific overrides for dark sections to ensure text color */
.page-news__dark-section p,
.page-news__dark-section li,
.page-news__dark-section span {
  color: #A7D9B8; /* Ensure secondary text is visible on deep green */
}

.page-news__dark-section h1,
.page-news__dark-section h2,
.page-news__dark-section h3,
.page-news__dark-section h4,
.page-news__dark-section h5,
.page-news__dark-section h6 {
  color: #F2FFF6; /* Ensure main text is visible on deep green */
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-news__section-title {
    font-size: clamp(1.6em, 4.5vw, 2.5em);
  }
  .page-news__news-grid,
  .page-news__promo-grid,
  .page-news__game-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }
  .page-news__hero-content {
    padding: 20px 15px;
  }
  .page-news__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }
  .page-news__hero-description {
    font-size: 1em;
  }
  .page-news__btn-primary,
  .page-news__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 15px 0 !important;
    padding: 15px 20px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-news__cta-buttons {
    flex-direction: column;
    gap: 0;
    padding: 0 15px;
  }
  .page-news__section-title {
    font-size: clamp(1.5em, 6vw, 2em);
  }
  .page-news__section-description,
  .page-news__security-text {
    font-size: 0.95em;
    padding: 0 10px;
  }
  .page-news__news-grid,
  .page-news__promo-grid,
  .page-news__game-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-news__news-card-image,
  .page-news__promo-card-image,
  .page-news__game-card-image {
    height: 180px;
  }
  .page-news__news-card-title a,
  .page-news__promo-card-title a,
  .page-news__game-card-title a {
    font-size: 1.2em;
  }
  .page-news__faq-question {
    font-size: 1em;
    padding: 18px 20px;
  }
  .page-news__faq-answer {
    padding: 12px 20px 15px;
  }
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-news__hero-image-wrapper,
  .page-news__news-card,
  .page-news__promo-card,
  .page-news__game-card,
  .page-news__faq-item,
  .page-news__cta-buttons,
  .page-news__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-news__hero-section .page-news__hero-image-wrapper {
    padding-left: 0;
    padding-right: 0;
  }
  .page-news__hero-section {
    padding-left: 0;
    padding-right: 0;
  }
  .page-news__latest-news-section,
  .page-news__promotions-highlight-section,
  .page-news__game-updates-section,
  .page-news__security-trust-section,
  .page-news__faq-section,
  .page-news__cta-final-section {
    padding-left: 0;
    padding-right: 0;
  }
}