.page-resources-safe-responsible-gaming {
  color: #333333; /* Default text color for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-resources-safe-responsible-gaming__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #0A2463; /* Primary brand color for hero background */
  padding-bottom: 40px;
}

.page-resources-safe-responsible-gaming__hero-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.page-resources-safe-responsible-gaming__hero-image {
  width: 100%;
  height: auto;
  display: block;
  max-height: 600px; /* Limit hero image height for better content visibility */
  object-fit: cover;
  filter: brightness(0.7); /* Darken image slightly for text readability, not changing color */
}

.page-resources-safe-responsible-gaming__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #ffffff;
  max-width: 900px;
  padding: 20px;
  box-sizing: border-box;
  z-index: 2;
}

.page-resources-safe-responsible-gaming__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #E0B342; /* Auxiliary color for hero title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources-safe-responsible-gaming__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-resources-safe-responsible-gaming__hero-button {
  display: inline-block;
  background-color: #E0B342; /* Auxiliary color for button */
  color: #0A2463; /* Primary color for button text */
  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;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-resources-safe-responsible-gaming__hero-button:hover {
  background-color: #f5db9c; /* Lighter shade for hover */
  transform: translateY(-2px);
}

.page-resources-safe-responsible-gaming__article-section {
  padding: 60px 20px;
  background-color: #f8f8f8;
}

.page-resources-safe-responsible-gaming__article-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: #ffffff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-resources-safe-responsible-gaming__back-link-wrapper {
  margin-bottom: 30px;
  text-align: left;
}

.page-resources-safe-responsible-gaming__back-link {
  color: #0A2463;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-resources-safe-responsible-gaming__back-link:hover {
  color: #E0B342;
}

.page-resources-safe-responsible-gaming__article-heading {
  font-size: 2.2em;
  color: #0A2463;
  margin-bottom: 25px;
  text-align: center;
}

.page-resources-safe-responsible-gaming__sub-heading {
  font-size: 1.8em;
  color: #0A2463;
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-resources-safe-responsible-gaming__mini-heading {
  font-size: 1.4em;
  color: #0A2463;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-resources-safe-responsible-gaming__article-content p {
  margin-bottom: 1em;
  font-size: 1.1em;
}

.page-resources-safe-responsible-gaming__article-content ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 1.5em;
}

.page-resources-safe-responsible-gaming__list-item {
  margin-bottom: 0.8em;
}

.page-resources-safe-responsible-gaming__text-link {
  color: #0A2463;
  text-decoration: underline;
  font-weight: bold;
}

.page-resources-safe-responsible-gaming__text-link:hover {
  color: #E0B342;
}

.page-resources-safe-responsible-gaming__article-image {
  display: block;
  margin: 40px auto;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  min-height: 200px;
}

.page-resources-safe-responsible-gaming__cta-wrapper {
  text-align: center;
  margin-top: 50px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.page-resources-safe-responsible-gaming__cta-button {
  display: inline-block;
  background-color: #0A2463; /* Primary color */
  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;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-resources-safe-responsible-gaming__cta-button:hover {
  background-color: #1f4cbd; /* Slightly lighter primary for hover */
  transform: translateY(-2px);
}

.page-resources-safe-responsible-gaming__cta-button--secondary {
  background-color: #E0B342; /* Auxiliary color */
  color: #0A2463;
}

.page-resources-safe-responsible-gaming__cta-button--secondary:hover {
  background-color: #f5db9c; /* Lighter auxiliary for hover */
}

.page-resources-safe-responsible-gaming__cta-button--tertiary {
  background-color: #6c7ca1; /* A neutral tone from the palette */
  color: #ffffff;
}

.page-resources-safe-responsible-gaming__cta-button--tertiary:hover {
  background-color: #546692;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-resources-safe-responsible-gaming__hero-title {
    font-size: 2.2em;
  }
  .page-resources-safe-responsible-gaming__hero-description {
    font-size: 1em;
  }
  .page-resources-safe-responsible-gaming__article-heading {
    font-size: 1.8em;
  }
  .page-resources-safe-responsible-gaming__sub-heading {
    font-size: 1.5em;
  }
}

@media (max-width: 768px) {
  .page-resources-safe-responsible-gaming {
    padding-top: var(--header-offset, 80px); /* Adjust for mobile header height */
  }
  .page-resources-safe-responsible-gaming__hero-content {
    position: static;
    transform: none;
    padding: 20px;
    background-color: rgba(10, 36, 99, 0.8); /* Dark overlay for text on mobile */
  }
  .page-resources-safe-responsible-gaming__hero-image {
    filter: brightness(0.5); /* Darken image more on mobile if content is on top */
  }
  .page-resources-safe-responsible-gaming__hero-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-resources-safe-responsible-gaming__hero-description {
    font-size: 0.9em;
    margin-bottom: 20px;
  }
  .page-resources-safe-responsible-gaming__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-resources-safe-responsible-gaming__article-section {
    padding: 40px 15px;
  }
  .page-resources-safe-responsible-gaming__article-container {
    padding: 25px;
  }
  .page-resources-safe-responsible-gaming__article-heading {
    font-size: 1.5em;
  }
  .page-resources-safe-responsible-gaming__sub-heading {
    font-size: 1.3em;
  }
  .page-resources-safe-responsible-gaming__mini-heading {
    font-size: 1.1em;
  }
  .page-resources-safe-responsible-gaming__article-content p,
  .page-resources-safe-responsible-gaming__list-item {
    font-size: 1em;
  }
  .page-resources-safe-responsible-gaming__article-image {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure images are not too small */
    min-height: 200px;
  }
  .page-resources-safe-responsible-gaming__cta-wrapper {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources-safe-responsible-gaming__cta-button {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  /* Ensure content area does not cause horizontal scroll */
  .page-resources-safe-responsible-gaming {
    overflow-x: hidden;
  }
  .page-resources-safe-responsible-gaming__article-container {
    max-width: 100%;
    padding: 20px;
    box-sizing: border-box;
  }
  .page-resources-safe-responsible-gaming__hero-section {
    padding-top: 0; /* Hero image will fill top, content is inside hero-content */
  }
  .page-resources-safe-responsible-gaming__hero-image {
    height: 300px; /* Adjust hero image height for mobile */
  }
  .page-resources-safe-responsible-gaming__hero-content {
    position: relative; /* Position relative to hero-section */
    transform: none; /* Reset transform */
    top: auto;
    left: auto;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  .page-resources-safe-responsible-gaming__hero-title {
    font-size: 1.5em;
  }
  .page-resources-safe-responsible-gaming__hero-description {
    font-size: 0.85em;
  }
  .page-resources-safe-responsible-gaming__hero-button {
    font-size: 0.9em;
    padding: 10px 20px;
  }
  .page-resources-safe-responsible-gaming__article-heading {
    font-size: 1.3em;
  }
  .page-resources-safe-responsible-gaming__sub-heading {
    font-size: 1.1em;
  }
  .page-resources-safe-responsible-gaming__mini-heading {
    font-size: 1em;
  }
}