.page-responsible-gambling {
  color: #ffffff; /* Light text on dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content clears fixed header */
}

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

.page-responsible-gambling__hero-section {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  padding-bottom: 60px; /* Space for content below image */
}

.page-responsible-gambling__hero-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-responsible-gambling__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Darken image slightly for text readability */
}

.page-responsible-gambling__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 800px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background for text */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.page-responsible-gambling__hero-title {
  font-size: 2.8em;
  color: #FFD700; /* Gold accent */
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-responsible-gambling__hero-button,
.page-responsible-gambling__action-button,
.page-responsible-gambling__support-button,
.page-responsible-gambling__contact-button {
  display: inline-block;
  background-color: #FFD700; /* Gold button */
  color: #8B0000; /* Deep red text */
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid #FFD700;
}

.page-responsible-gambling__hero-button:hover,
.page-responsible-gambling__action-button:hover,
.page-responsible-gambling__support-button:hover,
.page-responsible-gambling__contact-button:hover {
  background-color: #8B0000; /* Deep red on hover */
  color: #FFD700; /* Gold text on hover */
  transform: translateY(-3px);
  border-color: #8B0000;
}

.page-responsible-gambling__introduction-section,
.page-responsible-gambling__tools-section,
.page-responsible-gambling__signs-section,
.page-responsible-gambling__support-section,
.page-responsible-gambling__faq-section,
.page-responsible-gambling__contact-section {
  padding: 60px 0;
  background-color: #1a1a1a;
}

.page-responsible-gambling__section-title {
  font-size: 2.2em;
  color: #FFD700; /* Gold accent */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-responsible-gambling__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #8B0000; /* Deep red underline */
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-responsible-gambling__section-text {
  font-size: 1.05em;
  color: #f0f0f0;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px;
}

.page-responsible-gambling__section-text--emphasized {
  font-weight: bold;
  color: #FFD700;
  margin-top: 40px;
}

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

.page-responsible-gambling__tool-card,
.page-responsible-gambling__support-card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter card background */
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-responsible-gambling__tool-card:hover,
.page-responsible-gambling__support-card:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-responsible-gambling__tool-image,
.page-responsible-gambling__support-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
}

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

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

.page-responsible-gambling__action-area {
  text-align: center;
  margin-top: 50px;
}

.page-responsible-gambling__action-text {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-responsible-gambling__signs-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 40px auto;
}

.page-responsible-gambling__signs-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-left: 5px solid #8B0000; /* Deep red highlight */
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 1.05em;
  color: #e0e0e0;
}

.page-responsible-gambling__faq-accordion {
  max-width: 900px;
  margin: 40px auto;
}

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

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

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

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

.page-responsible-gambling__faq-item.active .page-responsible-gambling__faq-question::after {
  transform: rotate(45deg);
}

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

.page-responsible-gambling__faq-item.active .page-responsible-gambling__faq-answer {
  max-height: 200px; /* Adjust as needed for content */
  padding: 10px 20px 20px;
}

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

.page-responsible-gambling__contact-section {
  text-align: center;
}

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

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

  .page-responsible-gambling__hero-content {
    max-width: 90%;
    padding: 15px;
  }

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

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

  .page-responsible-gambling__hero-button,
  .page-responsible-gambling__action-button,
  .page-responsible-gambling__support-button,
  .page-responsible-gambling__contact-button {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-responsible-gambling__tools-grid,
  .page-responsible-gambling__support-grid {
    grid-template-columns: 1fr;
  }

  .page-responsible-gambling__tool-image,
  .page-responsible-gambling__support-image {
    height: 200px; /* Smaller height for mobile */
  }

  /* Ensure content area images do not overflow */
  .page-responsible-gambling img {
    max-width: 100%;
    height: auto;
  }

  .page-responsible-gambling__tool-card,
  .page-responsible-gambling__support-card {
    padding: 20px;
  }

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

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

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

  .page-responsible-gambling__hero-content {
    padding: 10px;
  }

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

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