.page-responsible-gaming {
  color: #ffffff; /* Body background is dark, so use light text */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #0a0a0a; /* Ensure consistency with body background */
}

.page-responsible-gaming__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); /* Apply header offset */
  background-color: #1A2A3A; /* Main brand color for hero */
  color: #ffffff;
  overflow: hidden;
}

.page-responsible-gaming__hero-content {
  max-width: 900px;
  z-index: 1;
  margin-bottom: 40px;
}

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

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

.page-responsible-gaming__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0.2;
}

.page-responsible-gaming__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(50%);
}

.page-responsible-gaming__btn-primary {
  display: inline-block;
  background-color: #FFD700; /* Auxiliary color for primary action */
  color: #1A2A3A; /* Dark text for light button */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-responsible-gaming__btn-primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-responsible-gaming__btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: #FFD700; /* Auxiliary color for text */
  border: 2px solid #FFD700;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.page-responsible-gaming__btn-secondary:hover {
  background-color: #FFD700;
  color: #1A2A3A;
  transform: translateY(-2px);
}

.page-responsible-gaming__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-responsible-gaming__section-title {
  font-size: 2.5em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-responsible-gaming__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FFD700;
  border-radius: 2px;
}

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

.page-responsible-gaming__introduction-section,
.page-responsible-gaming__signs-section,
.page-responsible-gaming__conclusion-section {
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-responsible-gaming__tools-section,
.page-responsible-gaming__advice-section,
.page-responsible-gaming__faq-section {
  background-color: #1A2A3A;
  color: #ffffff;
}

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

.page-responsible-gaming__tool-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

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

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

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

.page-responsible-gaming__card-description {
  font-size: 1em;
  color: #f0f0f0;
  text-align: justify;
}

.page-responsible-gaming__list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 30px;
}

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

.page-responsible-gaming__list-item::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: #FFD700;
  font-weight: bold;
}

.page-responsible-gaming__faq-list {
  margin-top: 30px;
}

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

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

.page-responsible-gaming__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  color: #ffffff;
  font-size: 1.2em;
  font-weight: bold;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-responsible-gaming__faq-question:hover {
  color: #FFD700;
}

.page-responsible-gaming__faq-question h3 {
  margin: 0;
  color: inherit;
  font-size: 1.2em;
}

.page-responsible-gaming__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #FFD700;
  transition: transform 0.3s ease;
}

.page-responsible-gaming__faq-item.active .page-responsible-gaming__faq-toggle {
  transform: rotate(45deg); /* Change to X or rotate for active state */
  content: '−'; /* Change to minus sign */
}

.page-responsible-gaming__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  color: #f0f0f0;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 1em;
}

.page-responsible-gaming__faq-item.active .page-responsible-gaming__faq-answer {
  max-height: 1000px !important; /* Ensure enough height for content */
  padding: 15px 25px 20px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-responsible-gaming__hero-title {
    font-size: 2.8em;
  }
  .page-responsible-gaming__section-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-responsible-gaming__hero-section {
    flex-direction: column;
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Apply header offset for mobile */
  }
  .page-responsible-gaming__hero-title {
    font-size: 2.2em;
  }
  .page-responsible-gaming__hero-description {
    font-size: 1em;
  }
  .page-responsible-gaming__btn-primary,
  .page-responsible-gaming__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 15px;
  }
  .page-responsible-gaming__hero-content {
    margin-bottom: 20px;
  }
  .page-responsible-gaming__section-title {
    font-size: 1.8em;
  }
  .page-responsible-gaming__container {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-responsible-gaming__tool-card {
    padding: 20px;
  }
  .page-responsible-gaming__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-responsible-gaming__faq-question h3 {
    font-size: 1.1em;
  }
  .page-responsible-gaming__faq-answer {
    padding: 10px 20px 15px;
  }
  /* Ensure all images are responsive */
  .page-responsible-gaming img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  /* Ensure image containers are responsive */
  .page-responsible-gaming__hero-image-wrapper,
  .page-responsible-gaming__tool-card,
  .page-responsible-gaming__grid-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-responsible-gaming__tool-image {
    height: auto; /* Allow height to adjust for mobile */
  }
}

@media (max-width: 480px) {
  .page-responsible-gaming__hero-title {
    font-size: 1.8em;
  }
  .page-responsible-gaming__section-title {
    font-size: 1.5em;
  }
  .page-responsible-gaming__hero-section {
    padding: 40px 10px;
    padding-top: var(--header-offset, 120px) !important; /* Apply header offset for mobile */
  }
  .page-responsible-gaming__container {
    padding: 20px 10px;
  }
  .page-responsible-gaming__list-item {
    font-size: 1em;
    padding-left: 25px;
  }
}