.page-responsible-gambling {
  color: #ffffff; /* Light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-responsible-gambling__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #0A2342;
  color: #ffffff;
  overflow: hidden;
  min-height: 500px;
}

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

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

.page-responsible-gambling__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 40px 20px;
}

.page-responsible-gambling__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-responsible-gambling__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-responsible-gambling__button--primary {
  background-color: #FFD700;
  color: #0A2342;
}

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

.page-responsible-gambling__button--secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-responsible-gambling__button--secondary:hover {
  background-color: #FFD700;
  color: #0A2342;
  transform: translateY(-2px);
}

.page-responsible-gambling__button--link {
  background-color: transparent;
  color: #FFD700;
  border: 1px solid #FFD700;
  padding: 10px 20px;
  font-size: 1em;
}

.page-responsible-gambling__button--link:hover {
  background-color: #FFD700;
  color: #0A2342;
  transform: translateY(-1px);
}

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

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

.page-responsible-gambling__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #FFD700;
  margin: 15px auto 0;
  border-radius: 2px;
}

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

.page-responsible-gambling__text-content--callout {
  font-style: italic;
  text-align: center;
  font-size: 1.2em;
  color: #FFD700;
  margin-top: 30px;
}

.page-responsible-gambling__overview-section,
.page-responsible-gambling__tools-section,
.page-responsible-gambling__problem-gambling-section,
.page-responsible-gambling__support-section,
.page-responsible-gambling__underage-section,
.page-responsible-gambling__jili58-commitment-section,
.page-responsible-gambling__faq-section,
.page-responsible-gambling__resources-section {
  padding: 60px 0;
  background-color: #000000; /* Dark background from body */
}

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

.page-responsible-gambling__tool-card,
.page-responsible-gambling__support-card,
.page-responsible-gambling__method-item,
.page-responsible-gambling__detail-card {
  background-color: rgba(10, 35, 66, 0.7); /* Translucent dark blue */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-responsible-gambling__tool-card img,
.page-responsible-gambling__support-card img,
.page-responsible-gambling__method-item img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  object-fit: cover;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

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

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

.page-responsible-gambling__checklist {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.page-responsible-gambling__checklist-item {
  background-color: rgba(10, 35, 66, 0.7);
  padding: 15px 20px;
  border-left: 5px solid #FFD700;
  border-radius: 5px;
  font-size: 1.05em;
  color: #f0f0f0;
}

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

.page-responsible-gambling__action-center--bottom {
  margin-top: 80px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

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

.page-responsible-gambling__faq-item {
  background-color: rgba(10, 35, 66, 0.7);
  border-radius: 8px;
  margin-bottom: 20px;
  padding: 25px;
}

.page-responsible-gambling__faq-question {
  font-size: 1.4em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-responsible-gambling__faq-answer {
  font-size: 1em;
  color: #f0f0f0;
}

.page-responsible-gambling__detail-card a {
  text-decoration: none;
}

.page-responsible-gambling__detail-title a {
  color: #FFD700;
}

.page-responsible-gambling__detail-title a:hover {
  text-decoration: underline;
}

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

@media (max-width: 768px) {
  .page-responsible-gambling {
    padding-top: var(--header-offset, 120px);
  }
  .page-responsible-gambling__hero-title {
    font-size: 2.5em;
  }
  .page-responsible-gambling__hero-description {
    font-size: 1em;
  }
  .page-responsible-gambling__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-responsible-gambling__button {
    width: 100%;
    max-width: 300px;
  }
  .page-responsible-gambling__tools-grid,
  .page-responsible-gambling__support-grid,
  .page-responsible-gambling__prevention-methods {
    grid-template-columns: 1fr;
  }
  .page-responsible-gambling__section-title {
    font-size: 1.8em;
  }
  .page-responsible-gambling__tool-card img,
  .page-responsible-gambling__support-card img,
  .page-responsible-gambling__method-item img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure images are not too small */
    min-height: 200px; /* Ensure images are not too small */
  }
  .page-responsible-gambling__container img {
    max-width: 100%;
    height: auto;
  }
  .page-responsible-gambling__action-center--bottom {
    flex-direction: column;
    align-items: center;
  }
  .page-responsible-gambling__action-center--bottom .page-responsible-gambling__button {
    width: 80%;
  }
}

@media (max-width: 480px) {
  .page-responsible-gambling__hero-title {
    font-size: 2em;
  }
  .page-responsible-gambling__hero-description {
    font-size: 0.9em;
  }
  .page-responsible-gambling__section-title {
    font-size: 1.5em;
  }
  .page-responsible-gambling__text-content {
    font-size: 0.95em;
  }
  .page-responsible-gambling__tool-title,
  .page-responsible-gambling__support-card-title,
  .page-responsible-gambling__method-title,
  .page-responsible-gambling__detail-title {
    font-size: 1.5em;
  }
  .page-responsible-gambling__faq-question {
    font-size: 1.2em;
  }
}