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

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

.page-responsible-gambling__hero-section {
  position: relative;
  text-align: center;
  padding: 80px 20px;
  background-color: #1A1A1A; /* Auxiliary dark background for hero section */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px; /* Ensure hero section has a minimum height */
}

.page-responsible-gambling__hero-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  filter: brightness(0.5); /* Darken image for text readability, but not changing color */
  z-index: 0;
}

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

.page-responsible-gambling__hero-title {
  font-size: 3.2em;
  color: #FFD700; /* Gold for main title */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-responsible-gambling__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

.page-responsible-gambling__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: 1.1em;
  text-align: center;
  min-width: 150px; /* Ensure button minimum size for touch */
}

.page-responsible-gambling__btn--primary {
  background-color: #FFD700; /* Gold primary button */
  color: #1A1A1A;
}

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

.page-responsible-gambling__btn--secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text on dark background */
  border: 2px solid #FFD700;
}

.page-responsible-gambling__btn--secondary:hover {
  background-color: #FFD700;
  color: #1A1A1A;
}

.page-responsible-gambling__btn--small {
  padding: 10px 20px;
  font-size: 0.9em;
  min-width: 120px;
}

.page-responsible-gambling__section-title {
  font-size: 2.5em;
  color: #FFD700; /* Gold for section titles */
  text-align: center;
  margin-bottom: 30px;
  margin-top: 60px;
}

.page-responsible-gambling__subsection-title {
  font-size: 1.8em;
  color: #FFD700; /* Gold for sub-section titles */
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-responsible-gambling__section-text {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 20px;
  text-align: justify;
}

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

.page-responsible-gambling__tool-card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark background */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-responsible-gambling__tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-responsible-gambling__tool-image {
  width: 400px; /* Min 200px, setting to 400px for card */
  height: 300px; /* Min 200px, setting to 300px for card */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-responsible-gambling__tool-title {
  font-size: 1.5em;
  color: #FFD700; /* Gold for tool titles */
  margin-bottom: 15px;
}

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

.page-responsible-gambling__checklist {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  text-align: left;
}

.page-responsible-gambling__checklist-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-left: 4px solid #FFD700; /* Gold accent */
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 5px;
  color: #f0f0f0;
  font-size: 1.1em;
}

.page-responsible-gambling__support-resources {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  margin-top: 40px;
}

.page-responsible-gambling__resource-list {
  list-style: disc;
  margin-left: 20px;
  color: #f0f0f0;
  font-size: 1.1em;
  margin-bottom: 20px;
}

.page-responsible-gambling__resource-item {
  margin-bottom: 10px;
}

.page-responsible-gambling__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-responsible-gambling__tips-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-left: 4px solid #FFD700;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 5px;
  color: #f0f0f0;
  font-size: 1.1em;
}

.page-responsible-gambling__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  transition: background-color 0.3s ease;
}

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

.page-responsible-gambling__faq-question {
  font-size: 1.3em;
  color: #FFD700;
  margin-bottom: 10px;
  cursor: pointer;
  position: relative;
  padding-right: 30px;
}

.page-responsible-gambling__faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.2em;
  color: #FFD700;
  transition: transform 0.3s ease;
}

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

.page-responsible-gambling__faq-answer {
  color: #cccccc;
  font-size: 1em;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
  opacity: 0;
  padding-top: 0;
}

.page-responsible-gambling__faq-answer.active {
  max-height: 200px; /* Max height for content, adjust as needed */
  opacity: 1;
  padding-top: 15px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-responsible-gambling__hero-title {
    font-size: 2.8em;
  }
  .page-responsible-gambling__hero-description {
    font-size: 1.2em;
  }
  .page-responsible-gambling__section-title {
    font-size: 2.2em;
  }
  .page-responsible-gambling__tool-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-responsible-gambling__hero-section {
    padding: 60px 15px;
    min-height: 400px;
  }
  .page-responsible-gambling__hero-title {
    font-size: 2.2em;
  }
  .page-responsible-gambling__hero-description {
    font-size: 1.1em;
  }
  .page-responsible-gambling__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-responsible-gambling__btn {
    width: 100%;
    max-width: 300px;
  }
  .page-responsible-gambling__section-title {
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 20px;
  }
  .page-responsible-gambling__subsection-title {
    font-size: 1.5em;
  }
  .page-responsible-gambling__section-text,
  .page-responsible-gambling__tool-description,
  .page-responsible-gambling__checklist-item,
  .page-responsible-gambling__resource-item,
  .page-responsible-gambling__tips-item,
  .page-responsible-gambling__faq-answer {
    font-size: 0.95em;
  }
  .page-responsible-gambling__tool-grid {
    grid-template-columns: 1fr;
  }
  .page-responsible-gambling__tool-image {
    width: 100%; /* Ensure images are responsive */
    height: auto;
    max-width: 400px; /* Ensure content area image min-size is respected */
    min-width: 200px;
    min-height: 200px;
  }
  .page-responsible-gambling__container {
    padding: 0 15px;
  }
  /* Content area image min-size enforcement */
  .page-responsible-gambling img {
    max-width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-responsible-gambling__hero-title {
    font-size: 1.8em;
  }
  .page-responsible-gambling__hero-description {
    font-size: 1em;
  }
  .page-responsible-gambling__btn {
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-responsible-gambling__section-title {
    font-size: 1.6em;
  }
}