.page-responsible-gambling {
  color: #ffffff; /* Default text color for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 60px; /* Space for footer */
}

.page-responsible-gambling__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background: linear-gradient(135deg, #017439, #005a2e); /* Brand green gradient */
  color: #ffffff;
  overflow: hidden;
}

.page-responsible-gambling__hero-content {
  max-width: 900px;
  z-index: 1;
}

.page-responsible-gambling__main-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-responsible-gambling__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  opacity: 0.9;
}

.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;
  opacity: 0.15; /* Subtle background image */
}

.page-responsible-gambling__section {
  padding: 60px 20px;
}

.page-responsible-gambling__dark-bg {
  background: var(--dark-bg-1, #0d0d0d); /* Use shared dark background variable */
  color: #ffffff;
}

.page-responsible-gambling__light-bg {
  background: #ffffff;
  color: #333333;
}

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

.page-responsible-gambling__section-title {
  font-size: 2.2em;
  text-align: center;
  margin-bottom: 40px;
  color: inherit;
}

.page-responsible-gambling__text-block {
  font-size: 1.1em;
  margin-bottom: 25px;
  text-align: justify;
}

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

.page-responsible-gambling__card {
  background: rgba(255, 255, 255, 0.08); /* Slightly transparent white for dark bg */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-responsible-gambling__light-bg .page-responsible-gambling__card {
  background: #f8f8f8;
  color: #333333;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
}

.page-responsible-gambling__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-responsible-gambling__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-responsible-gambling__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: inherit;
}

.page-responsible-gambling__card-text {
  font-size: 1em;
  opacity: 0.8;
}

.page-responsible-gambling__content-flex {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-responsible-gambling__content-flex--reverse {
  flex-direction: row-reverse;
}

.page-responsible-gambling__content-block {
  flex: 1;
}

.page-responsible-gambling__image-block {
  flex: 1;
  min-width: 300px; /* Ensure image block has a minimum width */
}

.page-responsible-gambling__content-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-responsible-gambling__sub-title {
  font-size: 1.8em;
  margin-bottom: 20px;
  color: #017439; /* Brand green for sub-titles */
}

.page-responsible-gambling__dark-bg .page-responsible-gambling__sub-title {
  color: #FFFF00; /* Yellow for sub-titles on dark background for contrast */
}

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

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

.page-responsible-gambling__list-highlight {
  color: #FFFF00; /* Yellow highlight */
}

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

.page-responsible-gambling__tool-card {
  background: #f0f0f0; /* Light background for tools */
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-responsible-gambling__tool-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: #017439; /* Brand green for tool titles */
}

.page-responsible-gambling__tool-description {
  font-size: 0.95em;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-responsible-gambling__btn-primary,
.page-responsible-gambling__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
}

.page-responsible-gambling__btn-primary {
  background: #017439;
  color: #ffffff;
  border: 2px solid #017439;
}

.page-responsible-gambling__btn-primary:hover {
  background: #005a2e;
  border-color: #005a2e;
}

.page-responsible-gambling__btn-secondary {
  background: #ffffff;
  color: #017439;
  border: 2px solid #017439;
}

.page-responsible-gambling__btn-secondary:hover {
  background: #e0e0e0;
  color: #005a2e;
  border-color: #005a2e;
}

.page-responsible-gambling__protection-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 30px;
  justify-content: center;
}

.page-responsible-gambling__protection-item {
  flex: 1 1 300px;
  max-width: 380px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-responsible-gambling__protection-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-responsible-gambling__protection-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #FFFF00; /* Yellow for titles on dark bg */
}

.page-responsible-gambling__protection-text {
  font-size: 1em;
  opacity: 0.8;
}

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

.page-responsible-gambling__help-card {
  background: #f0f0f0;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-responsible-gambling__dark-bg .page-responsible-gambling__help-card {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-responsible-gambling__help-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #017439; /* Brand green for titles */
}

.page-responsible-gambling__dark-bg .page-responsible-gambling__help-title {
  color: #FFFF00; /* Yellow for titles on dark bg */
}

.page-responsible-gambling__help-text {
  font-size: 1.0em;
  margin-bottom: 20px;
}

.page-responsible-gambling__external-links {
  list-style-type: none;
  padding: 0;
}

.page-responsible-gambling__external-links li {
  margin-bottom: 10px;
}

.page-responsible-gambling__external-links a {
  color: #017439;
  text-decoration: underline;
}

.page-responsible-gambling__dark-bg .page-responsible-gambling__external-links a {
  color: #FFFF00;
}

.page-responsible-gambling__external-links a:hover {
  text-decoration: none;
}

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

.page-responsible-gambling__faq-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-responsible-gambling__light-bg .page-responsible-gambling__faq-item {
  background: #f8f8f8;
  border: 1px solid #e0e0e0;
}

.page-responsible-gambling__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #ffffff;
  background: #017439; /* Brand green for FAQ questions */
  transition: background-color 0.3s ease;
}

.page-responsible-gambling__light-bg .page-responsible-gambling__faq-question {
  color: #ffffff;
  background: #017439;
}

.page-responsible-gambling__faq-question:hover {
  background-color: #005a2e;
}

.page-responsible-gambling__faq-qtext {
  flex-grow: 1;
}

.page-responsible-gambling__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
}

.page-responsible-gambling__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.0em;
  line-height: 1.7;
  color: #ffffff;
}

.page-responsible-gambling__light-bg .page-responsible-gambling__faq-answer {
  color: #333333;
}

.page-responsible-gambling__faq-item[open] .page-responsible-gambling__faq-question {
  background-color: #005a2e;
}

.page-responsible-gambling__faq-item[open] .page-responsible-gambling__faq-toggle {
  content: '−';
}

.page-responsible-gambling__advice-list {
  list-style-type: decimal;
  margin-left: 25px;
  margin-bottom: 40px;
}

.page-responsible-gambling__advice-list li {
  margin-bottom: 12px;
  font-size: 1.05em;
  line-height: 1.6;
}

.page-responsible-gambling__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .page-responsible-gambling {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-responsible-gambling__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }

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

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

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

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

  .page-responsible-gambling__content-flex {
    flex-direction: column;
    gap: 30px;
  }

  .page-responsible-gambling__content-flex--reverse {
    flex-direction: column;
  }

  .page-responsible-gambling__content-image,
  .page-responsible-gambling__card-image,
  .page-responsible-gambling__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-responsible-gambling__card,
  .page-responsible-gambling__tool-card,
  .page-responsible-gambling__protection-item,
  .page-responsible-gambling__help-card,
  .page-responsible-gambling__faq-item,
  .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__btn-primary,
  .page-responsible-gambling__btn-secondary,
  .page-responsible-gambling a[class*="button"],
  .page-responsible-gambling a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-responsible-gambling__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-responsible-gambling__tool-card,
  .page-responsible-gambling__protection-item,
  .page-responsible-gambling__help-card {
    padding: 20px;
  }

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

  .page-responsible-gambling__tool-title,
  .page-responsible-gambling__protection-title,
  .page-responsible-gambling__help-title {
    font-size: 1.3em;
  }

  .page-responsible-gambling__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-responsible-gambling__faq-answer {
    padding: 0 20px 15px;
  }
}