.page-resources-online-gambling-safety {
  color: #ffffff; /* Light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-resources-online-gambling-safety__hero-section {
  position: relative;
  overflow: hidden;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px; /* Minimum height for hero */
}

.page-resources-online-gambling-safety__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-resources-online-gambling-safety__hero-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for readability */
  border-radius: 10px;
}

.page-resources-online-gambling-safety__hero-title {
  font-size: 3.5em;
  color: #FFD700; /* Gold primary color */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-resources-online-gambling-safety__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  max-width: 800px;
  margin-bottom: 30px;
}

.page-resources-online-gambling-safety__hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-resources-online-gambling-safety__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-resources-online-gambling-safety__button--primary {
  background-color: #FFD700; /* Gold primary color */
  color: #1A1A1A;
}

.page-resources-online-gambling-safety__button--primary:hover {
  background-color: #e6c200;
}

.page-resources-online-gambling-safety__button--secondary {
  background-color: #1A1A1A; /* Dark auxiliary color */
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-resources-online-gambling-safety__button--secondary:hover {
  background-color: #333333;
  color: #e6c200;
}

.page-resources-online-gambling-safety__content-area {
  max-width: 900px; /* Content width for readability */
  margin: 40px auto;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05); /* Slightly transparent light background for content area */
  border-radius: 10px;
}

.page-resources-online-gambling-safety__table-of-contents {
  background-color: rgba(26, 26, 26, 0.8); /* Darker background for TOC */
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 40px;
  border-left: 5px solid #FFD700;
}

.page-resources-online-gambling-safety__table-of-contents ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-resources-online-gambling-safety__table-of-contents li {
  margin-bottom: 10px;
}

.page-resources-online-gambling-safety__toc-link {
  color: #FFD700;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-resources-online-gambling-safety__toc-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.page-resources-online-gambling-safety__article-section {
  margin-bottom: 50px;
  padding-bottom: 20px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
}

.page-resources-online-gambling-safety__section-title {
  font-size: 2.5em;
  color: #FFD700;
  margin-bottom: 25px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.page-resources-online-gambling-safety__subsection-title {
  font-size: 1.8em;
  color: #f0f0f0;
  margin-top: 35px;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.3);
  padding-bottom: 8px;
}

.page-resources-online-gambling-safety__article p {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-resources-online-gambling-safety__article ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-resources-online-gambling-safety__article li {
  margin-bottom: 10px;
  font-size: 1.1em;
}

.page-resources-online-gambling-safety__article-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Enforce min-width */
  min-height: 200px; /* Enforce min-height */
}

.page-resources-online-gambling-safety__text-link {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
}

.page-resources-online-gambling-safety__text-link:hover {
  text-decoration: underline;
}

.page-resources-online-gambling-safety__call-to-action {
  text-align: center;
  background-color: #1A1A1A;
  padding: 40px;
  border-radius: 10px;
  margin-top: 50px;
  border: 1px solid #FFD700;
}

.page-resources-online-gambling-safety__cta-text {
  font-size: 1.5em;
  margin-bottom: 25px;
  color: #ffffff;
  font-weight: bold;
}

.page-resources-online-gambling-safety__button--cta {
  padding: 18px 40px;
  font-size: 1.2em;
  background-color: #FFD700;
  color: #1A1A1A;
}

.page-resources-online-gambling-safety__button--cta:hover {
  background-color: #e6c200;
}

.page-resources-online-gambling-safety__related-resources {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
}

.page-resources-online-gambling-safety__resource-list {
  list-style: none;
  padding: 0;
}

.page-resources-online-gambling-safety__resource-list li {
  margin-bottom: 15px;
}

.page-resources-online-gambling-safety__resource-link {
  font-size: 1.2em;
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources-online-gambling-safety__resource-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.page-resources-online-gambling-safety__back-to-resources {
  display: inline-block;
  margin-top: 40px;
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: color 0.3s ease;
}

.page-resources-online-gambling-safety__back-to-resources:hover {
  color: #ffffff;
  text-decoration: underline;
}

.page-resources-online-gambling-safety__back-to-resources--bottom {
  margin-top: 20px;
  display: block;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-online-gambling-safety__hero-title {
    font-size: 3em;
  }
  .page-resources-online-gambling-safety__hero-description {
    font-size: 1.2em;
  }
  .page-resources-online-gambling-safety__section-title {
    font-size: 2em;
  }
  .page-resources-online-gambling-safety__subsection-title {
    font-size: 1.6em;
  }
}

@media (max-width: 768px) {
  .page-resources-online-gambling-safety {
    padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile */
  }
  .page-resources-online-gambling-safety__hero-container {
    padding: 40px 15px;
  }
  .page-resources-online-gambling-safety__hero-title {
    font-size: 2.2em;
  }
  .page-resources-online-gambling-safety__hero-description {
    font-size: 1em;
  }
  .page-resources-online-gambling-safety__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources-online-gambling-safety__button {
    width: 100%;
    padding: 12px 20px;
  }
  .page-resources-online-gambling-safety__content-area {
    margin: 20px auto;
    padding: 15px;
  }
  .page-resources-online-gambling-safety__section-title {
    font-size: 1.8em;
  }
  .page-resources-online-gambling-safety__subsection-title {
    font-size: 1.4em;
  }
  .page-resources-online-gambling-safety__article p,
  .page-resources-online-gambling-safety__article li {
    font-size: 1em;
  }
  .page-resources-online-gambling-safety__article-image {
    max-width: 100%;
    height: auto; /* Ensure images are responsive and don't overflow */
    min-width: 200px; /* Maintain min-width */
    min-height: 200px; /* Maintain min-height */
  }
  .page-resources-online-gambling-safety__cta-text {
    font-size: 1.2em;
  }
  .page-resources-online-gambling-safety__button--cta {
    padding: 15px 30px;
    font-size: 1.1em;
  }
  /* Ensure content area does not cause horizontal scroll */
  .page-resources-online-gambling-safety__content-area {
    max-width: 100%;
    overflow-x: hidden;
  }
  .page-resources-online-gambling-safety__article-section,
  .page-resources-online-gambling-safety__related-resources {
    margin-bottom: 30px;
  }
}

@media (max-width: 480px) {
  .page-resources-online-gambling-safety__hero-title {
    font-size: 1.8em;
  }
  .page-resources-online-gambling-safety__hero-description {
    font-size: 0.9em;
  }
  .page-resources-online-gambling-safety__section-title {
    font-size: 1.5em;
  }
  .page-resources-online-gambling-safety__subsection-title {
    font-size: 1.2em;
  }
}