.page-responsible-gambling {
  color: #ffffff; /* Light text for readability on dark background */
  background-color: var(--black-color, #1a1a1a); /* Use black-color from shared, fallback to dark grey */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-responsible-gambling__hero-section {
  background-color: #1a1a1a; /* Dark background for hero */
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-responsible-gambling__hero-content {
  max-width: 1200px;
  width: 100%; /* Ensure content takes full width within max-width */
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-responsible-gambling__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 */
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-responsible-gambling__description {
  font-size: 1.1rem;
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 30px;
}

.page-responsible-gambling__hero-video-wrapper {
  margin-bottom: 30px;
  width: 100%;
  max-width: 1200px;
  box-sizing: border-box;
  overflow: hidden;
}

.page-responsible-gambling__video-link {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
}

.page-responsible-gambling__hero-video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
}

.page-responsible-gambling__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* For mobile responsiveness */
}

.page-responsible-gambling__btn-primary,
.page-responsible-gambling__btn-secondary {
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
  display: inline-block; /* For proper padding/sizing */
}

.page-responsible-gambling__btn-primary {
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff;
  border: 2px solid transparent;
}

.page-responsible-gambling__btn-primary:hover {
  background-color: #1e87b7; /* Darker shade on hover */
}

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

.page-responsible-gambling__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
  border-color: #26A9E0;
}

.page-responsible-gambling__section {
  padding: 60px 20px;
  background-color: #222222; /* Slightly lighter dark background for sections */
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-responsible-gambling__section--alt {
  background-color: #1a1a1a; /* Alternating darker background */
}

.page-responsible-gambling__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 30px;
}

.page-responsible-gambling__section-subtitle {
  font-size: 1.8rem;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 20px;
}

.page-responsible-gambling__text-block {
  max-width: 900px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
  color: #f0f0f0;
  text-align: left;
}

.page-responsible-gambling__list {
  max-width: 800px;
  margin: 0 auto 30px;
  text-align: left;
  list-style: none;
  padding-left: 0;
}

.page-responsible-gambling__list-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: #f0f0f0;
}

.page-responsible-gambling__list-item::before {
  content: '✓';
  color: #26A9E0;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-responsible-gambling__image-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
}

.page-responsible-gambling__content-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-responsible-gambling__text-block--image-side {
  flex-grow: 1;
}

/* FAQ Section */
.page-responsible-gambling__faq-section {
  padding: 60px 20px;
  background-color: #1a1a1a;
  text-align: center;
}

.page-responsible-gambling__faq-list {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.page-responsible-gambling__faq-item {
  background-color: #222222;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-responsible-gambling__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  background-color: #26A9E0; /* Brand primary for question header */
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: background-color 0.3s ease;
}

.page-responsible-gambling__faq-question:hover {
  background-color: #1e87b7;
}

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

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

/* For <details> tag */
.page-responsible-gambling__faq-item summary {
  list-style: none;
}
.page-responsible-gambling__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-responsible-gambling__faq-answer {
  padding: 0 20px;
  font-size: 1rem;
  color: #f0f0f0;
  max-height: 0; /* Hidden by default */
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out; /* Smooth transition */
  background-color: #333333; /* Darker background for answer content */
}

.page-responsible-gambling__faq-item[open] .page-responsible-gambling__faq-answer {
  max-height: 500px; /* Adjust as needed for content */
  padding: 20px;
  transition: max-height 0.5s ease-in, padding 0.5s ease-in;
}

/* Copyright */
.page-responsible-gambling__copyright {
  text-align: center;
  padding: 30px 20px;
  font-size: 0.9rem;
  color: #aaaaaa;
  background-color: #111111;
}

/* Ensure no filter is used on images */
.page-responsible-gambling img {
  filter: none !important;
}

/* Enforce min-size for content images */
.page-responsible-gambling__content-image,
.page-responsible-gambling__hero-image,
.page-responsible-gambling__hero-video {
  min-width: 200px;
  min-height: 200px;
}

/* For any img within .page-responsible-gambling, ensure it's not too small */
.page-responsible-gambling img:not(.page-responsible-gambling__ignore-min-size) { 
  min-width: 200px;
  min-height: 200px;
}

/* Contrast fixes based on assumed dark body background */
.page-responsible-gambling__dark-bg {
  color: #ffffff; /* Deep dark background with light text */
  background: #1a1a1a;
}
.page-responsible-gambling__light-bg {
  color: #333333; /* This would be for a section with light background, not the main body */
  background: #ffffff;
}
.page-responsible-gambling__medium-bg {
  color: #000000;
  background: #FFFFFF;
}

/* Ensure all links have proper contrast */
.page-responsible-gambling a {
  color: #26A9E0; /* Brand color for links */
  text-decoration: underline;
}
.page-responsible-gambling a:hover {
  color: #1e87b7;
}

/* For headings, if they are links */
.page-responsible-gambling h2 a,
.page-responsible-gambling h3 a {
  color: #ffffff; /* Headings are white on dark background */
  text-decoration: none;
}
.page-responsible-gambling h2 a:hover,
.page-responsible-gambling h3 a:hover {
  color: #26A9E0;
}

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

  .page-responsible-gambling__hero-content {
    padding: 0;
  }

  .page-responsible-gambling__hero-video-wrapper {
    margin-bottom: 20px;
  }

  .page-responsible-gambling__main-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .page-responsible-gambling__description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

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

  .page-responsible-gambling__btn-primary,
  .page-responsible-gambling__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
  }

  .page-responsible-gambling__section-title {
    font-size: 2rem;
    margin-bottom: 20px;
  }

  .page-responsible-gambling__section-subtitle {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }

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

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

  /* Mandatory responsive image/video styles */
  .page-responsible-gambling img,
  .page-responsible-gambling video,
  .page-responsible-gambling__hero-video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-responsible-gambling__section,
  .page-responsible-gambling__card,
  .page-responsible-gambling__container,
  .page-responsible-gambling__faq-section,
  .page-responsible-gambling__faq-list,
  .page-responsible-gambling__image-content-wrapper,
  .page-responsible-gambling__hero-video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  .page-responsible-gambling__hero-section {
    padding-top: 10px !important; /* body handles --header-offset, this is for decoration */
  }

  .page-responsible-gambling__image-content-wrapper {
    flex-direction: column;
    gap: 20px;
  }
}

/* Desktop-specific adjustments for flex/grid containers */
@media (min-width: 769px) {
  .page-responsible-gambling__image-content-wrapper {
    flex-direction: row; /* Desktop: image and text side-by-side */
    justify-content: space-between;
    align-items: flex-start;
  }
  .page-responsible-gambling__image-content-wrapper.reverse {
    flex-direction: row-reverse;
  }
  .page-responsible-gambling__content-image {
    flex: 0 0 45%; /* Adjust width for side-by-side */
    max-width: 45%;
  }
  .page-responsible-gambling__text-block--image-side {
    flex: 0 0 50%;
    max-width: 50%;
    margin-bottom: 0;
    text-align: left;
  }
}