.page-responsible-gaming {
  color: #ffffff;
  background-color: #333;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px);
}

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

.page-responsible-gaming__hero-section {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
  padding-bottom: 60px; /* Adjust as needed, hero content will float over image */
}

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

.page-responsible-gaming__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  max-width: 900px;
  width: 90%;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
  border-radius: 10px;
}

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

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

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

.page-responsible-gaming__button {
  display: inline-block;
  padding: 14px 28px;
  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.2s ease;
  white-space: nowrap;
}

.page-responsible-gaming__button--primary {
  background-color: #FFD700; /* Gold */
  color: #8B0000; /* Dark Red */
  border: 2px solid #FFD700;
}

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

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

.page-responsible-gaming__button--secondary:hover {
  background-color: #FFD700;
  color: #8B0000;
  transform: translateY(-2px);
}

.page-responsible-gaming__button--link {
  background-color: #8B0000; /* Dark Red */
  color: #FFD700; /* Gold */
  border: 2px solid #8B0000;
}

.page-responsible-gaming__button--link:hover {
  background-color: #6a0000;
  color: #e6c200;
  transform: translateY(-2px);
}

.page-responsible-gaming__content-section {
  padding: 60px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-responsible-gaming__content-section:last-of-type {
  border-bottom: none;
}

.page-responsible-gaming__section-title {
  font-size: 2.5em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

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

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

.page-responsible-gaming__card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

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

.page-responsible-gaming__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

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

.page-responsible-gaming__card-description {
  font-size: 1em;
  color: #cccccc;
}

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

.page-responsible-gaming__resource-item {
  background-color: rgba(139, 0, 0, 0.2); /* Dark Red transparent */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-responsible-gaming__resource-item:hover {
  transform: translateY(-8px);
  background-color: rgba(139, 0, 0, 0.35);
}

.page-responsible-gaming__resource-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 215, 0, 0.5);
}

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

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

.page-responsible-gaming__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 40px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  border: 2px solid #FFD700;
}

.page-responsible-gaming__detail-card {
  background-color: rgba(255, 215, 0, 0.1);
  border-left: 5px solid #FFD700;
  padding: 30px;
  border-radius: 12px;
  margin-top: 40px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-responsible-gaming__detail-card-title {
  font-size: 2em;
  margin-bottom: 15px;
}

.page-responsible-gaming__detail-card-title a {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-responsible-gaming__detail-card-title a:hover {
  color: #e6c200;
  text-decoration: underline;
}

.page-responsible-gaming__detail-card-description {
  font-size: 1.1em;
  color: #cccccc;
  margin-bottom: 25px;
}

.page-responsible-gaming__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* Media Queries for responsiveness */
@media (max-width: 1024px) {
  .page-responsible-gaming__hero-title {
    font-size: 2.8em;
  }
  .page-responsible-gaming__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-responsible-gaming__hero-content {
    width: 95%;
    padding: 15px;
  }
  .page-responsible-gaming__hero-title {
    font-size: 2em;
    margin-bottom: 15px;
  }
  .page-responsible-gaming__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-responsible-gaming__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-responsible-gaming__button {
    width: 100%;
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-responsible-gaming__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-responsible-gaming__text {
    font-size: 1em;
  }
  .page-responsible-gaming__card, .page-responsible-gaming__resource-item {
    padding: 20px;
  }
  .page-responsible-gaming__card-title, .page-responsible-gaming__resource-title {
    font-size: 1.5em;
  }
  .page-responsible-gaming__card-image, .page-responsible-gaming__resource-image {
    height: 160px;
  }
  .page-responsible-gaming__image-full-width {
    max-width: 100%;
    height: auto;
  }
  .page-responsible-gaming__detail-card-title {
    font-size: 1.6em;
  }
  .page-responsible-gaming__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  /* Ensure content images are responsive and not too small */
  .page-responsible-gaming__content-section img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce minimum width for content images */
    min-height: 200px; /* Enforce minimum height for content images */
    object-fit: cover;
  }
}

@media (max-width: 480px) {
  .page-responsible-gaming__hero-title {
    font-size: 1.6em;
  }
  .page-responsible-gaming__hero-description {
    font-size: 0.9em;
  }
  .page-responsible-gaming__section-title {
    font-size: 1.5em;
  }
  .page-responsible-gaming__card-title, .page-responsible-gaming__resource-title {
    font-size: 1.3em;
  }
  .page-responsible-gaming__detail-card-title {
    font-size: 1.4em;
  }
  .page-responsible-gaming__card-image, .page-responsible-gaming__resource-image {
    height: 140px;
  }
}