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

.page-resources-online-betting-safety-guide__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  overflow: hidden;
  background-color: #f0f8f0; /* Light green tint for hero background */
}

.page-resources-online-betting-safety-guide__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-resources-online-betting-safety-guide__hero-image {
  width: 100%;
  margin-bottom: 30px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-resources-online-betting-safety-guide__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.page-resources-online-betting-safety-guide__hero-image img:hover {
  transform: scale(1.03);
}

.page-resources-online-betting-safety-guide__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 90%;
  max-width: 800px;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  background-color: #ffffff;
  margin-top: -80px; /* Overlap with image for visual appeal */
}

.page-resources-online-betting-safety-guide__main-title {
  font-size: 3.2em;
  color: #017439;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-resources-online-betting-safety-guide__intro-text {
  font-size: 1.2em;
  color: #555555;
  margin-bottom: 30px;
  line-height: 1.8;
}

.page-resources-online-betting-safety-guide__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources-online-betting-safety-guide__cta-button:hover {
  background: #a30606;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-resources-online-betting-safety-guide__content-area {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-resources-online-betting-safety-guide__section-title {
  font-size: 2.2em;
  color: #017439;
  margin-top: 50px;
  margin-bottom: 25px;
  font-weight: 700;
  border-bottom: 3px solid #017439;
  padding-bottom: 10px;
}

.page-resources-online-betting-safety-guide__paragraph {
  font-size: 1.05em;
  line-height: 1.8;
  color: #444444;
  margin-bottom: 20px;
}

.page-resources-online-betting-safety-guide__list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  padding: 0;
}

.page-resources-online-betting-safety-guide__list-item {
  font-size: 1.05em;
  line-height: 1.8;
  color: #444444;
  margin-bottom: 10px;
}

.page-resources-online-betting-safety-guide__image-wrapper {
  margin: 40px 0;
  text-align: center;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-resources-online-betting-safety-guide__image-wrapper img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 12px;
  margin: 0 auto;
  min-width: 200px;
  min-height: 200px;
}

/* FAQ Section */
.page-resources-online-betting-safety-guide__faq-container {
  margin-top: 40px;
}

.page-resources-online-betting-safety-guide__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-resources-online-betting-safety-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #f7f7f7;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-resources-online-betting-safety-guide__faq-question:hover {
  background: #eeeeee;
  border-color: #d0d0d0;
}

.page-resources-online-betting-safety-guide__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  color: #333333;
  pointer-events: none;
}

.page-resources-online-betting-safety-guide__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #017439;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-resources-online-betting-safety-guide__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: #ffffff;
}

.page-resources-online-betting-safety-guide__faq-item.active .page-resources-online-betting-safety-guide__faq-question {
  border-radius: 8px 8px 0 0;
  background-color: #e6f2e6; /* Lighter green for active question */
}

.page-resources-online-betting-safety-guide__faq-item.active .page-resources-online-betting-safety-guide__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-top: none;
  border-radius: 0 0 8px 8px;
}

.page-resources-online-betting-safety-guide__faq-item.active .page-resources-online-betting-safety-guide__faq-toggle {
  color: #C30808;
  transform: rotate(0deg);
}

/* Call to Action Section */
.page-resources-online-betting-safety-guide__cta-section {
  background: #017439; /* Main brand color */
  color: #ffffff;
  text-align: center;
  padding: 80px 20px;
  border-radius: 12px;
  margin: 60px auto;
  max-width: 1200px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

.page-resources-online-betting-safety-guide__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  line-height: 1.7;
  color: #f0f0f0;
}

.page-resources-online-betting-safety-guide__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-resources-online-betting-safety-guide__btn-primary,
.page-resources-online-betting-safety-guide__btn-secondary {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources-online-betting-safety-guide__btn-primary {
  background: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid transparent;
}

.page-resources-online-betting-safety-guide__btn-primary:hover {
  background: #a30606;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-resources-online-betting-safety-guide__btn-secondary:hover {
  background: #f0f8f0;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Global image rules for content area - min-size 200px */
.page-resources-online-betting-safety-guide img {
  min-width: 200px;
  min-height: 200px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-online-betting-safety-guide__main-title {
    font-size: 2.8em;
  }

  .page-resources-online-betting-safety-guide__intro-text {
    font-size: 1.1em;
  }

  .page-resources-online-betting-safety-guide__section-title {
    font-size: 2em;
  }

  .page-resources-online-betting-safety-guide__cta-title {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  .page-resources-online-betting-safety-guide__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-resources-online-betting-safety-guide__hero-content {
    padding: 30px;
    margin-top: -60px;
    width: 95%;
  }

  .page-resources-online-betting-safety-guide__main-title {
    font-size: 2.2em;
  }

  .page-resources-online-betting-safety-guide__intro-text {
    font-size: 1em;
  }

  .page-resources-online-betting-safety-guide__cta-button {
    padding: 12px 30px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-resources-online-betting-safety-guide__content-area {
    padding: 40px 15px;
  }

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

  .page-resources-online-betting-safety-guide__paragraph,
  .page-resources-online-betting-safety-guide__list-item {
    font-size: 0.95em;
  }

  .page-resources-online-betting-safety-guide__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-resources-online-betting-safety-guide__faq-question h3 {
    font-size: 1em;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-resources-online-betting-safety-guide__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-resources-online-betting-safety-guide__faq-answer {
    padding: 0 15px;
  }
  
  .page-resources-online-betting-safety-guide__faq-item.active .page-resources-online-betting-safety-guide__faq-answer {
    padding: 15px !important;
  }

  .page-resources-online-betting-safety-guide__cta-section {
    padding: 60px 15px;
  }

  .page-resources-online-betting-safety-guide__cta-title {
    font-size: 2em;
  }

  .page-resources-online-betting-safety-guide__cta-description {
    font-size: 1em;
  }

  .page-resources-online-betting-safety-guide__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources-online-betting-safety-guide__btn-primary,
  .page-resources-online-betting-safety-guide__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
  }

  /* 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__section,
  .page-resources-online-betting-safety-guide__card,
  .page-resources-online-betting-safety-guide__container,
  .page-resources-online-betting-safety-guide__image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources-online-betting-safety-guide__hero-image {
    padding-left: 0;
    padding-right: 0;
  }
  .page-resources-online-betting-safety-guide__hero-container {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Color contrast safeguarding */
.page-resources-online-betting-safety-guide__light-bg {
  color: #333333; /* For light backgrounds */
  background: #ffffff;
}

.page-resources-online-betting-safety-guide__dark-bg {
  color: #ffffff; /* For dark backgrounds */
  background: #017439;
}

.page-resources-online-betting-safety-guide__content-area,
.page-resources-online-betting-safety-guide__text-block {
  color: #333333;
  background: #ffffff;
}

.page-resources-online-betting-safety-guide p,
.page-resources-online-betting-safety-guide li {
  color: #333333;
}

.page-resources-online-betting-safety-guide__card {
  background: #ffffff;
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-resources-online-betting-safety-guide__dark-section {
  background: #017439;
  color: #ffffff;
}

.page-resources-online-betting-safety-guide__btn-primary {
  background: #C30808;
  color: #FFFF00;
  border: 2px solid transparent;
}

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

/* Contrast fix classes */
.page-resources-online-betting-safety-guide__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-resources-online-betting-safety-guide__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}