.page-responsible-gambling {
  color: #333333; /* Dark text for light body background */
  background-color: #FFFFFF;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

.page-responsible-gambling__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  background-color: #000000; /* Main color for hero background */
  color: #FFFFFF; /* Light text for dark background */
  position: relative;
  overflow: hidden;
}

.page-responsible-gambling__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-responsible-gambling__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image to ensure text readability */
}

.page-responsible-gambling__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

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

.page-responsible-gambling__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  line-height: 1.5;
  color: #f0f0f0;
}

.page-responsible-gambling__hero-button {
  display: inline-block;
  background-color: #FCBC45; /* Login color for CTA */
  color: #000000;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

.page-responsible-gambling__hero-button:hover {
  background-color: #e0a53b;
}

.page-responsible-gambling__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  line-height: 1.7;
}

.page-responsible-gambling__section-title {
  font-size: 2.5em;
  color: #000000;
  margin-top: 50px;
  margin-bottom: 25px;
  text-align: center;
  font-weight: bold;
}

.page-responsible-gambling__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

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

.page-responsible-gambling__tool-card {
  background-color: #f8f8f8;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

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

.page-responsible-gambling__tool-title {
  font-size: 1.5em;
  color: #000000;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-responsible-gambling__tool-description {
  font-size: 1em;
  color: #555555;
}

.page-responsible-gambling__action-center {
  text-align: center;
  margin-top: 50px;
  margin-bottom: 50px;
}

.page-responsible-gambling__action-center--final {
    margin-top: 80px;
}

.page-responsible-gambling__button {
  display: inline-block;
  background-color: #000000; /* Main color for buttons */
  color: #FFFFFF;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: background-color 0.3s ease;
}

.page-responsible-gambling__button:hover {
  background-color: #333333;
}

.page-responsible-gambling__list {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 20px;
  font-size: 1.1em;
  color: #333333;
}

.page-responsible-gambling__list-item {
  margin-bottom: 10px;
}

.page-responsible-gambling__support-resources {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-responsible-gambling__resource-card {
  text-align: center;
  padding: 30px;
  border: 1px solid #eeeeee;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  background-color: #ffffff;
}

.page-responsible-gambling__resource-icon {
  width: 200px; /* Minimum 200px */
  height: auto;
  margin-bottom: 20px;
  border-radius: 5px;
}

.page-responsible-gambling__resource-title {
  font-size: 1.4em;
  color: #000000;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-responsible-gambling__resource-description {
  font-size: 0.95em;
  color: #666666;
}

.page-responsible-gambling__faq-container {
  margin-top: 40px;
}

.page-responsible-gambling__faq-item {
  background-color: #f8f8f8;
  border-radius: 8px;
  margin-bottom: 15px;
  padding: 20px;
}

.page-responsible-gambling__faq-question {
  font-size: 1.2em;
  color: #000000;
  margin-bottom: 10px;
  cursor: pointer;
  font-weight: bold;
}

.page-responsible-gambling__faq-answer {
  font-size: 1em;
  color: #555555;
  display: none; /* Hidden by default, toggled by JS */
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-responsible-gambling__hero-section {
    padding: 40px 15px;
  }

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

  .page-responsible-gambling__hero-description {
    font-size: 1em;
  }

  .page-responsible-gambling__section-title {
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 20px;
  }

  .page-responsible-gambling__paragraph {
    font-size: 1em;
  }

  .page-responsible-gambling__tools-grid,
  .page-responsible-gambling__support-resources {
    grid-template-columns: 1fr;
  }

  /* Ensure images do not overflow on mobile */
  .page-responsible-gambling img {
    max-width: 100%;
    height: auto;
  }

  .page-responsible-gambling__resource-icon {
    width: 100%; /* Ensures it scales down but still meets min 200px display by layout */
    max-width: 300px; /* Example max-width to prevent stretching on very small screens */
    height: auto;
    margin: 0 auto 20px auto;
  }
}

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

  .page-responsible-gambling__hero-button {
    padding: 12px 20px;
    font-size: 0.9em;
  }

  .page-responsible-gambling__section-title {
    font-size: 1.5em;
  }

  .page-responsible-gambling__list {
    margin-left: 0;
    padding-left: 15px;
  }
}