.page-responsible-gambling {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Inherited from body, explicit for context */
}

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

.page-responsible-gambling__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 100px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure spacing below header */
  min-height: 600px;
  overflow: hidden;
  color: #ffffff;
  background-color: #017439; /* Primary brand color for hero background */
}

.page-responsible-gambling__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3; /* Blend with background color */
}

.page-responsible-gambling__hero-section .page-responsible-gambling__container {
  position: relative;
  z-index: 1;
}

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

.page-responsible-gambling__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 800px;
  color: #ffffff;
}

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

.page-responsible-gambling__btn-primary:hover {
  background-color: #a00606;
}

.page-responsible-gambling__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  color: #ffffff; /* Text color for content area */
  background-color: #0a0a0a; /* Body background color */
}

.page-responsible-gambling__section-title {
  font-size: 2.2em;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #017439; /* Primary brand color for titles */
  font-weight: bold;
}

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

.page-responsible-gambling__text-block a {
  color: #FFFF00; /* Highlight links */
  text-decoration: underline;
}

.page-responsible-gambling__text-block a:hover {
  color: #ffd700;
}

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

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

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

.page-responsible-gambling__content-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 30px 0;
  display: block;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
}

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

.page-responsible-gambling__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter background for FAQ item */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-responsible-gambling__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #ffffff;
  transition: background-color 0.3s ease;
}

.page-responsible-gambling__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-responsible-gambling__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #017439;
}

.page-responsible-gambling__faq-item.active .page-responsible-gambling__faq-toggle {
  transform: rotate(45deg); /* Plus sign rotates to form an X or minus */
}

.page-responsible-gambling__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-responsible-gambling__faq-item.active .page-responsible-gambling__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px;
  color: #ffffff;
}

.page-responsible-gambling__faq-answer p {
  margin: 0;
  color: #ffffff;
  font-size: 1.05em;
}

.page-responsible-gambling__faq-answer p a {
  color: #FFFF00;
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-responsible-gambling__hero-title {
    font-size: 3em;
  }

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

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

  .page-responsible-gambling__text-block,
  .page-responsible-gambling__list-item,
  .page-responsible-gambling__faq-question,
  .page-responsible-gambling__faq-answer p {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-responsible-gambling__hero-section {
    padding: 80px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    min-height: 450px;
  }

  .page-responsible-gambling__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-responsible-gambling__hero-description {
    font-size: 0.95em;
    margin-bottom: 20px;
  }

  .page-responsible-gambling__btn-primary {
    padding: 12px 25px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

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

  .page-responsible-gambling__text-block,
  .page-responsible-gambling__list-item,
  .page-responsible-gambling__faq-question,
  .page-responsible-gambling__faq-answer p {
    font-size: 0.95em;
  }

  /* Image responsiveness */
  .page-responsible-gambling img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  .page-responsible-gambling__section,
  .page-responsible-gambling__card,
  .page-responsible-gambling__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-responsible-gambling__hero-section {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-responsible-gambling__faq-answer {
    padding: 0 15px;
  }
  .page-responsible-gambling__faq-item.active .page-responsible-gambling__faq-answer {
    padding: 15px;
  }
}