.page-responsible-gambling {
  color: #333333; /* Dark text for default light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensures content starts below fixed header */
}

.page-responsible-gambling__hero-section {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
  padding: 0;
  background-color: #003366; /* Fallback background color */
}

.page-responsible-gambling__hero-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-responsible-gambling__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Darken image slightly for text contrast */
}

.page-responsible-gambling__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
  border-radius: 8px;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

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

.page-responsible-gambling__hero-cta-button {
  display: inline-block;
  background-color: #FFCC00; /* Auxiliary color */
  color: #003366; /* Main color for text */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-responsible-gambling__hero-cta-button:hover {
  background-color: #e6b800;
  transform: translateY(-2px);
}

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

.page-responsible-gambling__section-title {
  font-size: 2.2em;
  color: #003366; /* Main color */
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 10px;
}

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

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

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

.page-responsible-gambling__tool-card {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-responsible-gambling__tool-card-image {
  width: 100%; /* Ensure images are not tiny */
  max-width: 400px; /* Example max-width, adjust as needed */
  height: auto;
  min-height: 200px; /* Minimum height for content images */
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-responsible-gambling__tool-card-title {
  font-size: 1.5em;
  color: #003366; /* Main color */
  margin-bottom: 15px;
}

.page-responsible-gambling__tool-card-description {
  font-size: 0.95em;
  color: #555555;
}

.page-responsible-gambling__support-section {
  background-color: #003366;
  color: #ffffff;
  padding: 60px 20px;
  text-align: center;
}

.page-responsible-gambling__support-section .page-responsible-gambling__section-title {
  color: #FFCC00;
}

.page-responsible-gambling__support-section .page-responsible-gambling__section-title::after {
  background-color: #ffffff;
}

.page-responsible-gambling__support-section .page-responsible-gambling__text-content {
  color: #f0f0f0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-responsible-gambling__support-link-button {
  display: inline-block;
  background-color: #FFCC00;
  color: #003366;
  padding: 15px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}

.page-responsible-gambling__support-link-button:hover {
  background-color: #e6b800;
  transform: translateY(-2px);
}

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

.page-responsible-gambling__tip-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-left: 5px solid #003366;
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.03);
}

.page-responsible-gambling__tip-highlight {
  color: #003366;
  font-size: 1.1em;
}

.page-responsible-gambling__faq-items {
  margin-top: 30px;
}

.page-responsible-gambling__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  padding: 20px;
}

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

.page-responsible-gambling__faq-answer {
  font-size: 0.95em;
  color: #555555;
}

.page-responsible-gambling__call-to-action-section {
  background-color: #FFCC00;
  color: #003366;
  padding: 60px 20px;
  text-align: center;
}

.page-responsible-gambling__call-to-action-section .page-responsible-gambling__section-title {
  color: #003366;
}

.page-responsible-gambling__call-to-action-section .page-responsible-gambling__section-title::after {
  background-color: #003366;
}

.page-responsible-gambling__call-to-action-section .page-responsible-gambling__text-content {
  color: #333333;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
}

.page-responsible-gambling__cta-button {
  display: inline-block;
  background-color: #003366;
  color: #FFCC00;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin: 0 10px;
}

.page-responsible-gambling__cta-button:hover {
  background-color: #001f3f;
  transform: translateY(-2px);
}

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

@media (max-width: 768px) {
  .page-responsible-gambling__hero-title {
    font-size: 1.8em;
  }
  .page-responsible-gambling__hero-description {
    font-size: 0.95em;
  }
  .page-responsible-gambling__hero-content {
    max-width: 90%;
    padding: 15px;
  }
  .page-responsible-gambling__hero-cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-responsible-gambling__container {
    padding: 20px 15px;
  }
  .page-responsible-gambling__section-title {
    font-size: 1.8em;
  }
  .page-responsible-gambling__tools-grid {
    grid-template-columns: 1fr;
  }
  .page-responsible-gambling__tool-card-image {
    max-width: 100%;
    height: auto;
    min-height: 200px; /* Maintain minimum height for content images */
  }
  .page-responsible-gambling__support-links {
    flex-direction: column;
    gap: 15px;
  }
  .page-responsible-gambling__cta-button {
    margin: 10px 0;
    width: 90%;
  }
  /* Ensure all images within main content are responsive and not smaller than 200px */
  .page-responsible-gambling img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure images do not shrink below 200px */
    min-height: 200px; /* Ensure images do not shrink below 200px */
    object-fit: cover;
  }
  .page-responsible-gambling__tool-card-image {
    min-width: 200px;
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-responsible-gambling__hero-title {
    font-size: 1.5em;
  }
  .page-responsible-gambling__hero-description {
    font-size: 0.9em;
  }
  .page-responsible-gambling__section-title {
    font-size: 1.5em;
  }
  .page-responsible-gambling__hero-cta-button {
    width: 100%;
    margin-bottom: 15px;
  }
  .page-responsible-gambling__support-link-button {
    width: 100%;
  }
  .page-responsible-gambling__cta-button {
    width: 100%;
  }
}