.page-responsible-gambling {
  color: #ffffff; /* Body background is #000, so use light text */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px);
}

.page-responsible-gambling__hero-section {
  position: relative;
  overflow: hidden;
  background-color: #0A1931; /* Dark background for hero */
}

.page-responsible-gambling__hero-image {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.7; /* Slightly dim the image to make text pop */
  object-fit: cover;
}

.page-responsible-gambling__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  max-width: 900px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  width: 90%;
}

.page-responsible-gambling__hero-title {
  font-size: 2.8em;
  color: #FFD700;
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-responsible-gambling__hero-description {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

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

.page-responsible-gambling__button {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  white-space: nowrap;
}

.page-responsible-gambling__button--primary {
  background-color: #FFD700;
  color: #0A1931;
  border: 2px solid #FFD700;
}

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

.page-responsible-gambling__button--secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-responsible-gambling__button--secondary:hover {
  background-color: #FFD700;
  color: #0A1931;
  transform: translateY(-2px);
}

.page-responsible-gambling__section {
  padding: 60px 20px;
  background-color: #0A1931;
}

.page-responsible-gambling__section--dark {
  background-color: #1a2a46; /* Slightly lighter dark for contrast */
}

.page-responsible-gambling__container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-responsible-gambling__section-title {
  font-size: 2.2em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.page-responsible-gambling__subsection-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-top: 30px;
  margin-bottom: 20px;
}

.page-responsible-gambling__text-content {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #ffffff;
}

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

.page-responsible-gambling__feature-card, .page-responsible-gambling__resource-card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for cards */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-responsible-gambling__feature-image, .page-responsible-gambling__resource-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Ensure images are not too small */
  min-height: 200px;
}

.page-responsible-gambling__feature-title, .page-responsible-gambling__resource-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-responsible-gambling__feature-description, .page-responsible-gambling__resource-description {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-responsible-gambling__list {
  list-style-type: disc;
  padding-left: 25px;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-responsible-gambling__numbered-list {
  list-style-type: decimal;
  padding-left: 25px;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-responsible-gambling__list-item {
  margin-bottom: 10px;
  font-size: 1em;
}

.page-responsible-gambling__button--tertiary {
  background-color: #0A1931;
  color: #FFD700;
  border: 2px solid #0A1931;
  margin-top: auto;
}

.page-responsible-gambling__button--tertiary:hover {
  background-color: #FFD700;
  color: #0A1931;
  border-color: #FFD700;
}

.page-responsible-gambling__action-center {
  text-align: center;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-responsible-gambling__commitment-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-responsible-gambling__commitment-title {
  font-size: 1.6em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-responsible-gambling__inline-link {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
}

.page-responsible-gambling__inline-link:hover {
  text-decoration: underline;
}

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

.page-responsible-gambling__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-responsible-gambling__faq-question {
  font-size: 1.2em;
  color: #FFD700;
  padding: 20px 25px;
  cursor: pointer;
  position: relative;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-responsible-gambling__faq-question::after {
  content: '+';
  font-size: 1.5em;
  color: #FFD700;
  transition: transform 0.3s ease;
}

.page-responsible-gambling__faq-question.active::after {
  content: '-';
  transform: rotate(180deg);
}

.page-responsible-gambling__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #f0f0f0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-responsible-gambling__faq-answer.open {
  max-height: 200px; /* Adjust as needed for content */
  padding: 0 25px 20px;
}

.page-responsible-gambling__call-to-action {
  background-color: #FFD700;
  padding: 80px 20px;
  text-align: center;
  color: #0A1931;
}

.page-responsible-gambling__call-to-action-title {
  font-size: 2.5em;
  color: #0A1931;
  margin-bottom: 20px;
}

.page-responsible-gambling__call-to-action-description {
  font-size: 1.2em;
  color: #333;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-responsible-gambling__call-to-action-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.page-responsible-gambling__call-to-action-buttons .page-responsible-gambling__button--primary {
  background-color: #0A1931;
  color: #FFD700;
  border-color: #0A1931;
}

.page-responsible-gambling__call-to-action-buttons .page-responsible-gambling__button--primary:hover {
  background-color: #1a2a46;
  border-color: #1a2a46;
}

.page-responsible-gambling__call-to-action-buttons .page-responsible-gambling__button--secondary {
  background-color: transparent;
  color: #0A1931;
  border-color: #0A1931;
}

.page-responsible-gambling__call-to-action-buttons .page-responsible-gambling__button--secondary:hover {
  background-color: #0A1931;
  color: #FFD700;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-responsible-gambling__hero-title {
    font-size: 2.2em;
  }
  .page-responsible-gambling__section-title {
    font-size: 2em;
  }
  .page-responsible-gambling__call-to-action-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-responsible-gambling__hero-content {
    padding: 15px;
  }
  .page-responsible-gambling__hero-title {
    font-size: 1.8em;
  }
  .page-responsible-gambling__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-responsible-gambling__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-responsible-gambling__button {
    width: 100%;
    padding: 10px 20px;
  }
  .page-responsible-gambling__section {
    padding: 40px 15px;
  }
  .page-responsible-gambling__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-responsible-gambling__subsection-title {
    font-size: 1.5em;
  }
  .page-responsible-gambling__feature-grid, .page-responsible-gambling__resource-grid, .page-responsible-gambling__commitment-details {
    grid-template-columns: 1fr;
  }
  .page-responsible-gambling__feature-image, .page-responsible-gambling__resource-image {
    max-width: 100%;
    height: auto;
  }
  .page-responsible-gambling__call-to-action-title {
    font-size: 1.8em;
  }
  .page-responsible-gambling__call-to-action-description {
    font-size: 1em;
  }
  .page-responsible-gambling__call-to-action-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-responsible-gambling__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-responsible-gambling__faq-answer {
    padding: 0 20px 15px;
  }
  .page-responsible-gambling__hero-image img, .page-responsible-gambling__feature-image img, .page-responsible-gambling__resource-image img {
    max-width: 100%;
    height: auto;
  }
  /* Ensure all content images within the main content area are responsive and don't overflow */
  .page-responsible-gambling img {
    max-width: 100%;
    height: auto;
  }
  .page-responsible-gambling__feature-image, .page-responsible-gambling__resource-image {
    height: auto; /* Allow height to adjust for responsiveness */
  }
}