.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: #111; /* Ensure consistency with body background */
}

.page-resources-online-betting-safety-guide__dark-bg {
  background-color: #000080; /* Auxiliary color for dark sections */
  color: #ffffff;
}

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

.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: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure header offset is applied */
  overflow: hidden;
  background-color: #000080; /* Dark blue background for hero */
  color: #ffffff;
}

.page-resources-online-betting-safety-guide__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.2; /* Subtle background image */
}

.page-resources-online-betting-safety-guide__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-resources-online-betting-safety-guide__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.page-resources-online-betting-safety-guide__hero-title {
  font-size: 3.2em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFD700; /* Gold for emphasis */
}

.page-resources-online-betting-safety-guide__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
}

.page-resources-online-betting-safety-guide__btn-primary {
  display: inline-block;
  background-color: #FFD700; /* Gold button */
  color: #000080; /* Dark blue text for contrast */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid #FFD700;
}

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

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

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

.page-resources-online-betting-safety-guide__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #FFD700; /* Gold for main titles in dark sections */
}

.page-resources-online-betting-safety-guide__light-bg .page-resources-online-betting-safety-guide__section-title {
  color: #000080; /* Dark blue for main titles in light sections */
}

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

.page-resources-online-betting-safety-guide__image-and-text {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

.page-resources-online-betting-safety-guide__image-and-text--reverse {
  flex-direction: row-reverse;
}

.page-resources-online-betting-safety-guide__content-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

.page-resources-online-betting-safety-guide__text-content {
  flex: 1;
}

.page-resources-online-betting-safety-guide__sub-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFD700; /* Gold for sub-titles in dark sections */
}

.page-resources-online-betting-safety-guide__light-bg .page-resources-online-betting-safety-guide__sub-title {
  color: #000080; /* Dark blue for sub-titles in light sections */
}

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

.page-resources-online-betting-safety-guide__list-item {
  font-size: 1.1em;
  margin-bottom: 10px;
  position: relative;
  padding-left: 30px;
}

.page-resources-online-betting-safety-guide__list-item::before {
  content: '✓';
  color: #FFD700; /* Gold checkmark */
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-resources-online-betting-safety-guide__light-bg .page-resources-online-betting-safety-guide__list-item::before {
  color: #000080; /* Dark blue checkmark in light sections */
}

.page-resources-online-betting-safety-guide__video-section {
  padding: 60px 20px;
  text-align: center;
  position: relative;
}

.page-resources-online-betting-safety-guide__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px; /* Max width for video */
  margin: 0 auto;
  aspect-ratio: 16/9; /* Maintain 16:9 aspect ratio */
  background-color: #000;
  border-radius: 10px;
  overflow: hidden;
}

.page-resources-online-betting-safety-guide__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  cursor: pointer;
}

.page-resources-online-betting-safety-guide__video-overlay-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  cursor: pointer;
}

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

.page-resources-online-betting-safety-guide__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-resources-online-betting-safety-guide__faq-item {
  background-color: #f8f8f8;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  color: #333333; /* Dark text for light background */
}

.page-resources-online-betting-safety-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #000080; /* Dark blue for question text */
  transition: background-color 0.3s ease;
}

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

.page-resources-online-betting-safety-guide__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #FFD700; /* Gold for toggle icon */
  transition: transform 0.3s ease;
}

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

.page-resources-online-betting-safety-guide__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-resources-online-betting-safety-guide__faq-item.active .page-resources-online-betting-safety-guide__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px 20px;
}

.page-resources-online-betting-safety-guide__faq-answer p {
  margin-bottom: 0;
  font-size: 1.05em;
}

.page-resources-online-betting-safety-guide__cta-section {
  background-color: #000080; /* Dark blue background */
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
}

.page-resources-online-betting-safety-guide__cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-resources-online-betting-safety-guide__cta-title {
  font-size: 2.8em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFD700; /* Gold for CTA title */
}

.page-resources-online-betting-safety-guide__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
}

/* Responsive Design */
@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: 2.2em;
  }
  .page-resources-online-betting-safety-guide__sub-title {
    font-size: 1.6em;
  }
  .page-resources-online-betting-safety-guide__image-and-text {
    flex-direction: column;
    text-align: center;
  }
  .page-resources-online-betting-safety-guide__image-and-text--reverse {
    flex-direction: column;
  }
  .page-resources-online-betting-safety-guide__content-image {
    max-width: 80%;
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .page-resources-online-betting-safety-guide {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-resources-online-betting-safety-guide__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset is applied on mobile */
  }
  .page-resources-online-betting-safety-guide__hero-title {
    font-size: 2em;
  }
  .page-resources-online-betting-safety-guide__hero-description {
    font-size: 1.1em;
  }
  .page-resources-online-betting-safety-guide__content-section {
    padding: 40px 15px;
  }
  .page-resources-online-betting-safety-guide__container {
    padding: 0;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-resources-online-betting-safety-guide__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-resources-online-betting-safety-guide__sub-title {
    font-size: 1.4em;
  }
  .page-resources-online-betting-safety-guide__text-block, .page-resources-online-betting-safety-guide__list-item {
    font-size: 1em;
  }

  /* Mobile Image Responsive Adaptation */
  .page-resources-online-betting-safety-guide img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
    padding: 0 15px; /* Add padding to prevent edge-to-edge images */
  }
  .page-resources-online-betting-safety-guide__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 auto 20px auto !important;
    padding: 0 15px; /* Ensure padding for content images */
  }
  
  /* Mobile Video Responsive Adaptation */
  .page-resources-online-betting-safety-guide video,
  .page-resources-online-betting-safety-guide__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources-online-betting-safety-guide__video-section,
  .page-resources-online-betting-safety-guide__video-container,
  .page-resources-online-betting-safety-guide__video-wrapper {
    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__video-wrapper {
    aspect-ratio: 16/9; /* Maintain aspect ratio */
  }

  /* Mobile Button Responsive Adaptation */
  .page-resources-online-betting-safety-guide__btn-primary,
  .page-resources-online-betting-safety-guide__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 15px 15px !important; /* Adjust padding for full width */
  }
  .page-resources-online-betting-safety-guide__cta-section .page-resources-online-betting-safety-guide__container {
    padding: 0 15px;
  }

  .page-resources-online-betting-safety-guide__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-resources-online-betting-safety-guide__faq-answer {
    padding: 0 20px;
  }
  .page-resources-online-betting-safety-guide__faq-item.active .page-resources-online-betting-safety-guide__faq-answer {
    padding: 10px 20px 15px;
  }
  .page-resources-online-betting-safety-guide__cta-title {
    font-size: 2em;
  }
  .page-resources-online-betting-safety-guide__cta-description {
    font-size: 1.1em;
  }
}