.page-news {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Ensure consistency with body background if not set by shared */
}

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

/* Hero Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background-color: #017439; /* Brand color as background */
  color: #ffffff;
  overflow: hidden; /* Ensure image doesn't overflow */
}

.page-news__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin-bottom: 30px;
}

.page-news__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
  line-height: 1.2;
}

.page-news__intro-text {
  font-size: 1.2em;
  margin-bottom: 30px;
}

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

.page-news__hero-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.2; /* Subtle background image */
  overflow: hidden;
}

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

/* General Section Styling */
.page-news__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #ffffff; /* Default for dark background */
}

.page-news__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

/* Background colors for sections */
.page-news__dark-bg {
  background-color: #0d0d0d; /* Slightly darker than body for contrast */
  color: #ffffff;
}

.page-news__light-bg {
  background-color: #1a1a1a; /* Lighter than dark-bg but still dark */
  color: #ffffff;
}

/* Latest Articles */
.page-news__latest-articles {
  padding: 60px 20px;
}

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

.page-news__article-card {
  background-color: #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  color: #ffffff;
  display: flex;
  flex-direction: column;
}

.page-news__article-card:hover {
  transform: translateY(-5px);
}

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

.page-news__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-news__article-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-news__article-title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__article-title a:hover {
  color: #017439; /* Brand color on hover */
}

.page-news__article-excerpt {
  font-size: 0.95em;
  color: #e0e0e0;
  margin-bottom: 20px;
}

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

.page-news__read-more-btn:hover {
  background-color: #005a2e; /* Darker green on hover */
}

/* Strategy Tips */
.page-news__strategy-tips {
  padding: 60px 20px;
}

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

.page-news__strategy-item {
  background-color: #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  text-align: center;
  color: #ffffff;
}

.page-news__strategy-item:hover {
  transform: translateY(-5px);
}

.page-news__strategy-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-news__strategy-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 15px;
  padding: 0 20px;
}

.page-news__strategy-title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__strategy-title a:hover {
  color: #017439;
}

.page-news__strategy-text {
  font-size: 0.95em;
  color: #e0e0e0;
  padding: 0 20px 25px 20px;
}

/* Promotions & Events */
.page-news__promotions-events {
  padding: 60px 20px;
}

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

.page-news__promo-item {
  background-color: #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  color: #ffffff;
  display: flex;
  flex-direction: column;
}

.page-news__promo-item:hover {
  transform: translateY(-5px);
}

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

.page-news__promo-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-news__promo-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-news__promo-title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__promo-title a:hover {
  color: #017439;
}

.page-news__promo-text {
  font-size: 0.95em;
  color: #e0e0e0;
  margin-bottom: 20px;
}

.page-news__full-promotions-cta {
  text-align: center;
  margin-top: 50px;
}

/* Responsible Gaming */
.page-news__responsible-gaming {
  padding: 60px 20px;
}

.page-news__responsible-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: center;
}

.page-news__responsible-image {
  max-width: 100%;
  width: 500px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: block;
}

.page-news__responsible-text-block {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

.page-news__responsible-text-block p {
  margin-bottom: 20px;
  color: #e0e0e0;
}

/* CTA Section */
.page-news__cta-section {
  padding: 60px 20px;
  text-align: center;
}

.page-news__cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

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

.page-news__cta-image {
  max-width: 100%;
  width: 800px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: block;
}

/* Buttons */
.page-news__btn-primary {
  display: inline-block;
  background-color: #C30808; /* Custom color for Register/Login */
  color: #FFFF00; /* Custom font color for Register/Login */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-news__btn-primary:hover {
  background-color: #a00606; /* Darker red on hover */
  transform: translateY(-2px);
}

.page-news__btn-secondary {
  display: inline-block;
  background-color: #017439; /* Brand green */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-news__btn-secondary:hover {
  background-color: #005a2e; /* Darker green on hover */
  transform: translateY(-2px);
}

/* FAQ Section */
.page-news__faq-section {
  padding: 60px 20px;
}

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

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

.page-news__faq-item summary {
  list-style: none; /* Hide default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #3a3a3a;
  transition: background-color 0.3s ease;
}

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

.page-news__faq-item summary:hover {
  background-color: #4a4a4a;
}

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

.page-news__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #017439; /* Brand color for toggle icon */
  transition: transform 0.3s ease;
}

.page-news__faq-item[open] .page-news__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-news__faq-answer {
  padding: 20px 25px;
  background-color: #2a2a2a;
  font-size: 1em;
  color: #e0e0e0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-news__faq-answer p {
  margin-bottom: 10px;
}
.page-news__faq-answer p:last-child {
  margin-bottom: 0;
}

/* Floating Buttons */
.page-news__floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-news__floating-btn {
  display: block;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.page-news__floating-btn--register {
  background-color: #C30808; /* Custom register color */
  color: #FFFF00; /* Custom font color */
}

.page-news__floating-btn--register:hover {
  background-color: #a00606;
  transform: translateY(-3px);
}

.page-news__floating-btn--login {
  background-color: #017439; /* Brand green for login */
  color: #ffffff;
}

.page-news__floating-btn--login:hover {
  background-color: #005a2e;
  transform: translateY(-3px);
}


/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: 2.8em;
  }

  .page-news__hero-content {
    padding: 0 15px;
  }

  .page-news__section-title {
    font-size: 2em;
  }

  .page-news__articles-grid,
  .page-news__strategy-grid,
  .page-news__promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .page-news__responsible-content {
    flex-direction: column;
  }

  .page-news__responsible-image {
    width: 100%;
    max-width: 600px;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }

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

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

  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 300px; /* Constrain button group width */
  }

  .page-news__btn-primary,
  .page-news__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-news__container,
  .page-news__latest-articles,
  .page-news__strategy-tips,
  .page-news__promotions-events,
  .page-news__responsible-gaming,
  .page-news__cta-section,
  .page-news__faq-section {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-news__articles-grid,
  .page-news__strategy-grid,
  .page-news__promo-grid {
    grid-template-columns: 1fr;
  }

  .page-news__article-card,
  .page-news__strategy-item,
  .page-news__promo-item {
    width: 100%;
    max-width: 100%;
  }

  .page-news__article-image,
  .page-news__strategy-image,
  .page-news__promo-image,
  .page-news__responsible-image,
  .page-news__cta-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-news__responsible-text-block {
    min-width: unset;
    width: 100%;
  }

  .page-news__cta-buttons-bottom {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }

  .page-news__floating-buttons {
    flex-direction: row;
    bottom: 15px;
    right: 15px;
    left: 15px;
    justify-content: space-around;
    gap: 10px;
  }

  .page-news__floating-btn {
    flex: 1;
    padding: 10px 15px;
    font-size: 0.9em;
  }

  .page-news__faq-item summary {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-news__faq-answer {
    padding: 15px 20px;
  }

  /* Content area images CSS dimensions lower than 200px rule */
  /* This rule explicitly ensures content area images are not scaled down below 200px */
  .page-news__article-image,
  .page-news__strategy-image,
  .page-news__promo-image,
  .page-news__responsible-image,
  .page-news__cta-image {
    min-width: 200px;
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-news__main-title {
    font-size: 1.8em;
  }

  .page-news__section-title {
    font-size: 1.6em;
  }

  .page-news__intro-text,
  .page-news__section-description {
    font-size: 0.9em;
  }

  .page-news__btn-primary,
  .page-news__btn-secondary {
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-news__floating-btn {
    padding: 8px 12px;
    font-size: 0.8em;
  }
}

/* Contrast Fixes (design aims for good contrast with light text on dark backgrounds) */
.page-news__dark-bg .page-news__section-title,
.page-news__dark-bg .page-news__section-description,
.page-news__dark-bg .page-news__article-title a,
.page-news__dark-bg .page-news__article-excerpt,
.page-news__dark-bg .page-news__strategy-title a,
.page-news__dark-bg .page-news__strategy-text,
.page-news__dark-bg .page-news__promo-title a,
.page-news__dark-bg .page-news__promo-text,
.page-news__dark-bg .page-news__responsible-text-block p,
.page-news__dark-bg .page-news__faq-qtext,
.page-news__dark-bg .page-news__faq-answer p {
  color: #ffffff;
}

.page-news__light-bg .page-news__section-title,
.page-news__light-bg .page-news__section-description,
.page-news__light-bg .page-news__article-title a,
.page-news__light-bg .page-news__article-excerpt,
.page-news__light-bg .page-news__strategy-title a,
.page-news__light-bg .page-news__strategy-text,
.page-news__light-bg .page-news__promo-title a,
.page-news__light-bg .page-news__promo-text,
.page-news__light-bg .page-news__responsible-text-block p,
.page-news__light-bg .page-news__faq-qtext,
.page-news__light-bg .page-news__faq-answer p {
  color: #ffffff; /* Still light, as light-bg is also dark */
}

/* Ensure images do not use filter */
.page-news img {
  filter: none !important;
}