.page-responsible-gambling {
  color: #ffffff; /* Text color for dark body background */
  padding-top: var(--header-offset, 120px);
  background-color: #000000; /* Ensure main content background is consistent */
}

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

.page-responsible-gambling__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 20px 40px;
  background-color: #000000;
  position: relative;
  overflow: hidden;
}

.page-responsible-gambling__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.2;
}

.page-responsible-gambling__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-responsible-gambling__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

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

.page-responsible-gambling__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  line-height: 1.6;
  color: #f0f0f0;
}

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

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

.page-responsible-gambling__button--register {
  background-color: #FFFFFF;
  color: #000000;
}

.page-responsible-gambling__button--register:hover {
  background-color: #f0f0f0;
}

.page-responsible-gambling__button--login {
  background-color: #FCBC45;
  color: #000000;
}

.page-responsible-gambling__button--login:hover {
  background-color: #e0a53b;
}

.page-responsible-gambling__commitment-section,
.page-responsible-gambling__tools-section,
.page-responsible-gambling__self-exclusion-section,
.page-responsible-gambling__awareness-section,
.page-responsible-gambling__help-section,
.page-responsible-gambling__age-verification-section,
.page-responsible-gambling__faq-section {
  padding: 60px 0;
  background-color: #1a1a1a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-responsible-gambling__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #FCBC45;
}

.page-responsible-gambling__section-text {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #e0e0e0;
}

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

.page-responsible-gambling__tool-card,
.page-responsible-gambling__awareness-card,
.page-responsible-gambling__resource-card {
  background-color: #333333;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-responsible-gambling__tool-card img,
.page-responsible-gambling__awareness-card img {
  width: 100%;
  max-width: 400px; /* Ensure images are not too small */
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-responsible-gambling__tool-title,
.page-responsible-gambling__awareness-title,
.page-responsible-gambling__resource-title {
  font-size: 1.6em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FCBC45;
}

.page-responsible-gambling__tool-description,
.page-responsible-gambling__resource-description {
  font-size: 1em;
  line-height: 1.6;
  color: #cccccc;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-responsible-gambling__awareness-card ul {
  text-align: left;
  margin: 0;
  padding: 0 0 0 20px;
  list-style: disc;
  color: #e0e0e0;
}

.page-responsible-gambling__awareness-card li {
  margin-bottom: 8px;
  font-size: 1em;
}

.page-responsible-gambling__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-responsible-gambling__button--learn-more {
  background-color: #FCBC45;
  color: #000000;
}

.page-responsible-gambling__button--learn-more:hover {
  background-color: #e0a53b;
}

.page-responsible-gambling__button--faq {
  background-color: #555555;
  color: #FFFFFF;
}

.page-responsible-gambling__button--faq:hover {
  background-color: #777777;
}

.page-responsible-gambling__button--contact-support,
.page-responsible-gambling__button--contact-us {
  background-color: #FCBC45;
  color: #000000;
  margin-top: 30px;
}

.page-responsible-gambling__button--contact-support:hover,
.page-responsible-gambling__button--contact-us:hover {
  background-color: #e0a53b;
}

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

.page-responsible-gambling__button--external {
  background-color: #555555;
  color: #FFFFFF;
  margin-top: auto; /* Push button to bottom */
}

.page-responsible-gambling__button--external:hover {
  background-color: #777777;
}

.page-responsible-gambling__additional-support {
  background-color: #333333;
  border-radius: 10px;
  padding: 40px;
  text-align: center;
  margin-top: 60px;
}

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

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

.page-responsible-gambling__faq-question {
  background-color: #444444;
  color: #FCBC45;
  padding: 20px 25px;
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

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

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

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

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

.page-responsible-gambling__faq-answer p {
  font-size: 1.05em;
  line-height: 1.6;
  color: #cccccc;
}

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

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

  .page-responsible-gambling__tool-card img,
  .page-responsible-gambling__awareness-card img {
    max-width: 350px;
  }
}

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

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

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

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

  .page-responsible-gambling__button {
    width: 100%;
    padding: 12px 20px;
  }

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

  .page-responsible-gambling__section-text {
    font-size: 0.95em;
  }

  .page-responsible-gambling__tools-grid,
  .page-responsible-gambling__awareness-grid,
  .page-responsible-gambling__help-resources {
    grid-template-columns: 1fr;
  }

  .page-responsible-gambling__tool-card img,
  .page-responsible-gambling__awareness-card img {
    max-width: 100%;
    height: auto;
  }

  .page-responsible-gambling__button-group {
    flex-direction: column;
  }

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

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

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

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

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