.page-resources-online-betting-safety-guide {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000000; /* Body background is dark */
}

.page-resources-online-betting-safety-guide__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-resources-online-betting-safety-guide__hero-section {
  position: relative;
  padding: 120px 0 60px; /* Adjusted padding-top to account for header offset */
  text-align: center;
  background-color: #017439; /* Primary brand color for hero background */
  color: #ffffff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.page-resources-online-betting-safety-guide__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-resources-online-betting-safety-guide__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-resources-online-betting-safety-guide__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-resources-online-betting-safety-guide__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.3;
}

.page-resources-online-betting-safety-guide__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(50%); /* Allowed for decorative effect, not color change */
}

.page-resources-online-betting-safety-guide__content-section {
  padding: 60px 0;
}

.page-resources-online-betting-safety-guide__dark-bg {
  background-color: #0d0d0d; /* Slightly lighter dark background for contrast with primary brand color */
  color: #ffffff;
}

.page-resources-online-betting-safety-guide__light-bg {
  background-color: #f8f8f8;
  color: #333333;
}

.page-resources-online-betting-safety-guide__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  text-align: center;
  color: #017439;
}

.page-resources-online-betting-safety-guide__dark-bg .page-resources-online-betting-safety-guide__section-title {
  color: #ffffff;
}

.page-resources-online-betting-safety-guide__sub-title {
  font-size: 1.8em;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #017439;
}

.page-resources-online-betting-safety-guide__dark-bg .page-resources-online-betting-safety-guide__sub-title {
  color: #ffffff;
}

.page-resources-online-betting-safety-guide__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
}

.page-resources-online-betting-safety-guide__text-block a {
  color: #017439;
  text-decoration: underline;
}

.page-resources-online-betting-safety-guide__dark-bg .page-resources-online-betting-safety-guide__text-block a {
  color: #FFFF00;
}

.page-resources-online-betting-safety-guide__btn-primary {
  display: inline-block;
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: 2px solid transparent;
}

.page-resources-online-betting-safety-guide__btn-primary:hover {
  background-color: #a30606;
  color: #ffffff;
}

.page-resources-online-betting-safety-guide__btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  border: 2px solid #ffffff;
}

.page-resources-online-betting-safety-guide__btn-secondary:hover {
  background-color: #ffffff;
  color: #017439;
  border-color: #ffffff;
}

.page-resources-online-betting-safety-guide__light-bg .page-resources-online-betting-safety-guide__btn-secondary {
  color: #017439;
  border-color: #017439;
}

.page-resources-online-betting-safety-guide__light-bg .page-resources-online-betting-safety-guide__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}

.page-resources-online-betting-safety-guide__image-wrapper {
  margin: 40px auto;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-resources-online-betting-safety-guide__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin: 0 auto;
}

.page-resources-online-betting-safety-guide__faq-section {
  padding: 60px 0;
}

.page-resources-online-betting-safety-guide__faq-list {
  margin-top: 40px;
}

.page-resources-online-betting-safety-guide__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-resources-online-betting-safety-guide__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-weight: bold;
  font-size: 1.1em;
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
  list-style: none;
  color: #017439;
}

.page-resources-online-betting-safety-guide__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-resources-online-betting-safety-guide__faq-qtext {
  flex-grow: 1;
}

.page-resources-online-betting-safety-guide__faq-toggle {
  font-size: 1.5em;
  margin-left: 10px;
  color: #017439;
}

.page-resources-online-betting-safety-guide__faq-answer {
  padding: 20px;
  font-size: 1em;
  color: #555555;
}

.page-resources-online-betting-safety-guide__faq-answer p {
  margin-bottom: 0;
  color: #555555;
}

.page-resources-online-betting-safety-guide__faq-answer a {
  color: #017439;
  text-decoration: underline;
}

.page-resources-online-betting-safety-guide__cta-section {
  background-color: #017439;
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
}

.page-resources-online-betting-safety-guide__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-resources-online-betting-safety-guide__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-resources-online-betting-safety-guide__cta-description a {
  color: #FFFF00;
  text-decoration: underline;
}

.page-resources-online-betting-safety-guide__cta-button {
  margin-top: 20px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-resources-online-betting-safety-guide__hero-title {
    font-size: 2.8em;
  }
  .page-resources-online-betting-safety-guide__section-title {
    font-size: 2em;
  }
  .page-resources-online-betting-safety-guide__sub-title {
    font-size: 1.6em;
  }
  .page-resources-online-betting-safety-guide__cta-title {
    font-size: 2.4em;
  }
}

@media (max-width: 768px) {
  .page-resources-online-betting-safety-guide__hero-section {
    padding: var(--header-offset, 120px) 20px 40px;
  }
  .page-resources-online-betting-safety-guide__hero-title {
    font-size: 2em;
  }
  .page-resources-online-betting-safety-guide__hero-description {
    font-size: 1em;
  }
  .page-resources-online-betting-safety-guide__hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  .page-resources-online-betting-safety-guide__btn-primary,
  .page-resources-online-betting-safety-guide__btn-secondary {
    width: 100%;
    max-width: 300px;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
  }
  .page-resources-online-betting-safety-guide__section-title {
    font-size: 1.8em;
  }
  .page-resources-online-betting-safety-guide__sub-title {
    font-size: 1.4em;
  }
  .page-resources-online-betting-safety-guide__cta-title {
    font-size: 2em;
  }
  .page-resources-online-betting-safety-guide__faq-item summary {
    font-size: 1em;
    padding: 15px;
  }
  .page-resources-online-betting-safety-guide__faq-answer {
    padding: 15px;
  }
  
  /* Mobile image responsiveness */
  .page-resources-online-betting-safety-guide img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-resources-online-betting-safety-guide__image-wrapper,
  .page-resources-online-betting-safety-guide__content-section,
  .page-resources-online-betting-safety-guide__cta-section,
  .page-resources-online-betting-safety-guide__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-resources-online-betting-safety-guide__hero-image-wrapper {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 480px) {
  .page-resources-online-betting-safety-guide__hero-title {
    font-size: 1.8em;
  }
  .page-resources-online-betting-safety-guide__section-title {
    font-size: 1.6em;
  }
  .page-resources-online-betting-safety-guide__sub-title {
    font-size: 1.2em;
  }
  .page-resources-online-betting-safety-guide__cta-title {
    font-size: 1.8em;
  }
  .page-resources-online-betting-safety-guide__hero-buttons {
    gap: 10px;
  }
}