:root {
  --primary-color: #FFD700;
  --secondary-color: #8B0000;
  --text-color-dark-bg: #ffffff;
  --text-color-light-bg: #333333;
  --background-dark: #000000; /* From shared.css body background */
  --background-light: #f9f9f9;
  --border-color: #e0e0e0;
}

/* Base styles for the page content */
.page-resources-online-gambling-safety {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark-bg); /* Default text color for dark body background */
  background-color: var(--background-dark); /* Ensure consistency */
}

/* Padding for main content to clear fixed header */
.page-resources-online-gambling-safety__hero-section {
  padding-top: 120px; /* Desktop: Adjust based on actual header height */
  padding-bottom: 60px;
  background: var(--background-dark);
  color: var(--text-color-dark-bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-resources-online-gambling-safety__hero-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-resources-online-gambling-safety__main-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources-online-gambling-safety__hero-description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-resources-online-gambling-safety__cta-button {
  display: inline-block;
  padding: 15px 35px;
  background: var(--primary-color);
  color: var(--background-dark);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources-online-gambling-safety__cta-button:hover {
  background: var(--secondary-color);
  color: var(--text-color-dark-bg);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-resources-online-gambling-safety__content-section {
  background: var(--background-light);
  color: var(--text-color-light-bg);
  padding: 60px 0;
}

.page-resources-online-gambling-safety__container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-resources-online-gambling-safety__article {
  background: #ffffff;
  padding: 40px;
  margin-bottom: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
}

.page-resources-online-gambling-safety__article-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 25px;
  color: var(--secondary-color);
  text-align: center;
}

.page-resources-online-gambling-safety__article-subtitle {
  font-size: 24px;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-resources-online-gambling-safety__article p {
  margin-bottom: 15px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-color-light-bg);
}

.page-resources-online-gambling-safety__article ul {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 15px;
  color: var(--text-color-light-bg);
}

.page-resources-online-gambling-safety__article li {
  margin-bottom: 8px;
  font-size: 17px;
  line-height: 1.6;
}

.page-resources-online-gambling-safety__article strong {
  color: var(--secondary-color);
}

.page-resources-online-gambling-safety__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 30px auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-resources-online-gambling-safety__image--full-width {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
}

.page-resources-online-gambling-safety__image--left {
  float: left;
  margin-right: 30px;
  margin-bottom: 15px;
  width: 40%;
  max-width: 400px;
}

.page-resources-online-gambling-safety__image--right {
  float: right;
  margin-left: 30px;
  margin-bottom: 15px;
  width: 40%;
  max-width: 400px;
}

.page-resources-online-gambling-safety__cta-section {
  background: var(--secondary-color);
  color: var(--text-color-dark-bg);
  padding: 80px 20px;
  text-align: center;
}

.page-resources-online-gambling-safety__cta-container {
  max-width: 800px;
  margin: 0 auto;
}

.page-resources-online-gambling-safety__cta-title {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 25px;
  color: var(--primary-color);
}

.page-resources-online-gambling-safety__cta-description {
  font-size: 20px;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-resources-online-gambling-safety__cta-button--large {
  padding: 18px 45px;
  font-size: 20px;
  border-radius: 10px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-online-gambling-safety__hero-section {
    padding-top: 100px; /* Adjust for tablets */
    padding-bottom: 50px;
  }

  .page-resources-online-gambling-safety__main-title {
    font-size: 38px;
  }

  .page-resources-online-gambling-safety__hero-description,
  .page-resources-online-gambling-safety__article p,
  .page-resources-online-gambling-safety__article li {
    font-size: 16px;
  }

  .page-resources-online-gambling-safety__article-title {
    font-size: 28px;
  }

  .page-resources-online-gambling-safety__article-subtitle {
    font-size: 22px;
  }

  .page-resources-online-gambling-safety__image--left,
  .page-resources-online-gambling-safety__image--right {
    width: 45%;
    margin-left: 20px;
    margin-right: 20px;
  }

  .page-resources-online-gambling-safety__cta-title {
    font-size: 34px;
  }

  .page-resources-online-gambling-safety__cta-description {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .page-resources-online-gambling-safety__hero-section {
    padding-top: 100px !important; /* Mobile: Adjust based on actual header height */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-resources-online-gambling-safety__hero-container {
    padding: 0 15px;
  }

  .page-resources-online-gambling-safety__main-title {
    font-size: 30px;
    line-height: 1.3;
  }

  .page-resources-online-gambling-safety__hero-description {
    font-size: 15px;
  }

  .page-resources-online-gambling-safety__cta-button {
    padding: 12px 25px;
    font-size: 16px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-resources-online-gambling-safety__content-section {
    padding: 40px 0;
  }

  .page-resources-online-gambling-safety__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-resources-online-gambling-safety__article {
    padding: 25px;
    margin-bottom: 30px;
  }

  .page-resources-online-gambling-safety__article-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .page-resources-online-gambling-safety__article-subtitle {
    font-size: 19px;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-resources-online-gambling-safety__article p,
  .page-resources-online-gambling-safety__article li {
    font-size: 15px;
    line-height: 1.6;
  }

  .page-resources-online-gambling-safety__image {
    margin: 20px auto;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    float: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }

  .page-resources-online-gambling-safety__image--left,
  .page-resources-online-gambling-safety__image--right {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .page-resources-online-gambling-safety__cta-section {
    padding: 50px 15px;
  }

  .page-resources-online-gambling-safety__cta-title {
    font-size: 28px;
  }

  .page-resources-online-gambling-safety__cta-description {
    font-size: 16px;
  }

  .page-resources-online-gambling-safety__cta-button--large {
    padding: 15px 30px;
    font-size: 18px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Ensure all images are responsive and do not use filter */
.page-resources-online-gambling-safety img {
  max-width: 100%;
  height: auto;
  display: block;
  /* filter properties are strictly forbidden */
}

/* Specific color contrast classes for intelligent handling */
.page-resources-online-gambling-safety__dark-bg {
  background-color: var(--background-dark);
  color: var(--text-color-dark-bg);
}

.page-resources-online-gambling-safety__light-bg {
  background-color: var(--background-light);
  color: var(--text-color-light-bg);
}

/* Emergency contrast fix, if needed */
.page-resources-online-gambling-safety__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-resources-online-gambling-safety__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}