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

.page-responsible-gambling__hero-section {
  background-color: #001f3f; /* Main brand color for hero background */
  color: #ffffff; /* White text for dark background */
  padding: 80px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.page-responsible-gambling__hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-responsible-gambling__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffc107; /* Accent color for title */
  font-weight: bold;
  line-height: 1.2;
}

.page-responsible-gambling__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-responsible-gambling__hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-responsible-gambling__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  min-width: 180px;
  text-align: center;
}

.page-responsible-gambling__button--primary {
  background-color: #ffc107; /* Accent color */
  color: #001f3f; /* Dark text for accent background */
  border: 2px solid #ffc107;
}

.page-responsible-gambling__button--primary:hover {
  background-color: #e0a800;
  border-color: #e0a800;
  transform: translateY(-2px);
}

.page-responsible-gambling__button--secondary {
  background-color: transparent;
  color: #ffc107; /* Accent color text */
  border: 2px solid #ffc107;
}

.page-responsible-gambling__button--secondary:hover {
  background-color: #ffc107;
  color: #001f3f;
  transform: translateY(-2px);
}

.page-responsible-gambling__hero-image-wrapper {
  margin-top: 40px;
  max-width: 1000px; /* Constrain hero image width */
  width: 100%;
}

.page-responsible-gambling__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-responsible-gambling__content-area {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
}

.page-responsible-gambling__content-area:last-of-type {
  border-bottom: none;
}

.page-responsible-gambling__section-title {
  font-size: 2.5em;
  color: #001f3f; /* Main brand color for titles */
  margin-bottom: 30px;
  text-align: center;
  font-weight: bold;
}

.page-responsible-gambling__subsection-title {
  font-size: 1.8em;
  color: #001f3f;
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-responsible-gambling__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #333333;
}

.page-responsible-gambling__list {
  list-style: disc inside;
  margin-bottom: 20px;
  padding-left: 20px;
}

.page-responsible-gambling__list-item {
  font-size: 1.1em;
  margin-bottom: 10px;
  color: #333333;
}

.page-responsible-gambling__list-item strong {
  color: #001f3f;
}

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

.page-responsible-gambling__tool-card {
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-responsible-gambling__tool-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-responsible-gambling__tool-icon {
  width: 250px; /* Minimum 200px requirement met */
  height: 187px; /* Maintain aspect ratio for 400x300 image, will be 250x187.5 */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #e0e0e0;
}

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

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

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

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

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

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

  .page-responsible-gambling__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-responsible-gambling__button {
    width: 100%;
    max-width: 280px;
  }

  .page-responsible-gambling__content-area {
    padding: 40px 15px;
  }

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

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

  .page-responsible-gambling__paragraph,
  .page-responsible-gambling__list-item,
  .page-responsible-gambling__tool-description {
    font-size: 0.95em;
  }

  .page-responsible-gambling__tool-grid {
    grid-template-columns: 1fr;
  }

  .page-responsible-gambling__tool-icon {
    width: 250px; /* Ensure images are not too small but still responsive */
    height: auto;
  }

  /* Ensure all content area images are responsive and do not overflow */
  .page-responsible-gambling img {
    max-width: 100%;
    height: auto;
  }
}

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

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