.page-responsible-gambling {
  color: #333333; /* Dark text for light body background */
  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 {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px 40px;
  background-color: #000000; /* Dark background for hero */
  color: #FFFFFF; /* Light text on dark background */
  position: relative;
  overflow: hidden;
}

.page-responsible-gambling__hero-content {
  z-index: 2;
  max-width: 800px;
  margin-bottom: 40px;
}

.page-responsible-gambling__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FCBC45; /* Login color for emphasis */
  line-height: 1.2;
}

.page-responsible-gambling__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  line-height: 1.6;
}

.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;
}

.page-responsible-gambling__button--register {
  background-color: #FFFFFF; /* Register color */
  color: #000000;
  border: 2px solid #FFFFFF;
}

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

.page-responsible-gambling__button--login {
  background-color: #FCBC45; /* Login color */
  color: #000000;
  border: 2px solid #FCBC45;
}

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

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

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

.page-responsible-gambling__intro-section,
.page-responsible-gambling__tools-section,
.page-responsible-gambling__problem-gambling-section,
.page-responsible-gambling__support-section,
.page-responsible-gambling__safe-play-tips-section,
.page-responsible-gambling__commitment-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

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

.page-responsible-gambling__text-content {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-responsible-gambling__card,
.page-responsible-gambling__resource-card {
  background-color: #f8f8f8;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-responsible-gambling__card-image,
.page-responsible-gambling__resource-image {
  width: 100%; /* Ensures image takes full card width */
  max-width: 400px; /* Max width to prevent overly large images */
  height: auto; /* Maintain aspect ratio */
  min-height: 200px; /* Enforce minimum height */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
}

.page-responsible-gambling__card-title,
.page-responsible-gambling__resource-title {
  font-size: 1.6em;
  color: #000000;
  margin-bottom: 15px;
}

.page-responsible-gambling__card-description,
.page-responsible-gambling__resource-description {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
  flex-grow: 1; /* Allow description to take available space */
  margin-bottom: 25px;
}

.page-responsible-gambling__button--details,
.page-responsible-gambling__button--secondary {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
  padding: 10px 20px;
  font-size: 0.95em;
  border-radius: 6px;
  margin-top: auto; /* Push button to the bottom of the card */
}

.page-responsible-gambling__button--details:hover,
.page-responsible-gambling__button--secondary:hover {
  background-color: #333333;
  transform: translateY(-1px);
}

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

.page-responsible-gambling__button--primary {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
  padding: 15px 30px;
  font-size: 1.1em;
  border-radius: 8px;
}

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

.page-responsible-gambling__list {
  list-style: none;
  padding-left: 0;
  max-width: 900px;
  margin: 40px auto;
}

.page-responsible-gambling__list-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.1em;
  line-height: 1.6;
  color: #333333;
}

.page-responsible-gambling__list-item::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: #FCBC45; /* Checkmark color */
  font-weight: bold;
}

.page-responsible-gambling__list--tips .page-responsible-gambling__list-item::before {
  content: '💡';
}

.page-responsible-gambling__text-content--more-info,
.page-responsible-gambling__text-content--important {
  text-align: center;
  font-weight: bold;
  margin-top: 40px;
}

.page-responsible-gambling__commitment-section {
  background-color: #000000;
  color: #FFFFFF;
}

.page-responsible-gambling__commitment-section .page-responsible-gambling__section-title {
  color: #FCBC45;
}

.page-responsible-gambling__commitment-section .page-responsible-gambling__text-content {
  color: #e0e0e0;
}

.page-responsible-gambling__button--register-footer {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
  padding: 15px 30px;
  font-size: 1.1em;
  border-radius: 8px;
  margin-top: 30px;
}

.page-responsible-gambling__button--register-footer:hover {
  background-color: #e0a53a;
  transform: translateY(-2px);
}

/* Responsive adjustments */
@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: 2em;
  }
  .page-responsible-gambling__text-content {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-responsible-gambling__hero-title {
    font-size: 2.2em;
  }
  .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__section-title {
    font-size: 1.8em;
  }
  .page-responsible-gambling__tool-cards,
  .page-responsible-gambling__support-resources {
    grid-template-columns: 1fr;
  }
  .page-responsible-gambling__card-image,
  .page-responsible-gambling__resource-image {
    max-width: 100%; /* Ensure images don't overflow */
    height: auto; /* Maintain aspect ratio */
    min-height: 200px; /* Ensure images are not too small */
  }
  .page-responsible-gambling__list-item {
    font-size: 1em;
  }
  /* Mobile content area image protection */
  .page-responsible-gambling img {
    max-width: 100% !important;
    height: auto !important;
  }
  .page-responsible-gambling__container {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .page-responsible-gambling__hero-title {
    font-size: 1.8em;
  }
  .page-responsible-gambling__section-title {
    font-size: 1.5em;
  }
  .page-responsible-gambling__hero-section {
    padding: 40px 15px 30px;
  }
  .page-responsible-gambling__intro-section,
  .page-responsible-gambling__tools-section,
  .page-responsible-gambling__problem-gambling-section,
  .page-responsible-gambling__support-section,
  .page-responsible-gambling__safe-play-tips-section,
  .page-responsible-gambling__commitment-section {
    padding: 50px 0;
  }
}