/* style/resources-online-betting-safety.css */

/* Base styles for the page content, ensuring contrast with dark body background */
.page-resources-online-betting-safety {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Inherit from body or shared, ensuring text contrast */
}

/* Fixed header offset */
.page-resources-online-betting-safety__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

/* General section styling */
.page-resources-online-betting-safety__section {
  padding: 60px 20px;
  text-align: center;
}

.page-resources-online-betting-safety__dark-bg {
  background-color: #0a0a0a; /* Dark background from shared.css body */
  color: #ffffff; /* Light text for this dark section */
}

.page-resources-online-betting-safety__light-bg {
  background-color: #ffffff; /* Light background for cards within dark sections */
  color: #333333; /* Dark text for light cards */
}

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

/* Hero Section */
.page-resources-online-betting-safety__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 600px;
  background-color: #0a0a0a; /* Fallback, but hero image will cover */
}

.page-resources-online-betting-safety__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.page-resources-online-betting-safety__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
  /* NO filter for color change, only brightness is allowed for readability */
}

.page-resources-online-betting-safety__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 40px 20px;
  color: #ffffff;
}

.page-resources-online-betting-safety__hero-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
}

.page-resources-online-betting-safety__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
}

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

/* Section Titles and Text Blocks */
.page-resources-online-betting-safety__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  color: #26A9E0; /* Brand primary color for titles */
}

.page-resources-online-betting-safety__text-block {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #f0f0f0; /* Slightly off-white for body text */
}

/* Cards */
.page-resources-online-betting-safety__features-grid,
.page-resources-online-betting-safety__tips-grid,
.page-resources-online-betting-safety__support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources-online-betting-safety__card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards on dark background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff; /* Light text for cards */
}

.page-resources-online-betting-safety__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #26A9E0; /* Brand primary for card titles */
}

.page-resources-online-betting-safety__card-image {
  width: 100%;
  height: 200px; /* Example fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-top: 20px;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

/* List Items */
.page-resources-online-betting-safety__feature-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 0 auto 40px auto;
  text-align: left;
}

.page-resources-online-betting-safety__list-item {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for list items */
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  color: #f0f0f0;
}

.page-resources-online-betting-safety__list-title {
  font-size: 1.3em;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-resources-online-betting-safety__content-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  margin: 40px auto 0 auto;
  display: block;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

/* Buttons */
.page-resources-online-betting-safety__btn-primary,
.page-resources-online-betting-safety__btn-secondary,
.page-resources-online-betting-safety__btn-link {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-width: 150px; /* Ensure buttons are not too small */
  text-align: center;
  box-sizing: border-box;
}

.page-resources-online-betting-safety__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-resources-online-betting-safety__btn-primary:hover {
  background-color: #1e87b9;
  border-color: #1e87b9;
}

.page-resources-online-betting-safety__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-resources-online-betting-safety__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-resources-online-betting-safety__btn-link {
  background-color: transparent;
  color: #26A9E0;
  border: none;
  padding: 0;
  text-decoration: underline;
  margin-top: 15px;
}

.page-resources-online-betting-safety__btn-link:hover {
  color: #1e87b9;
}


/* CTA Section */
.page-resources-online-betting-safety__cta-section {
  background-color: #26A9E0; /* Brand primary color for CTA background */
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
}

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

.page-resources-online-betting-safety__cta-description {
  font-size: 1.2em;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.page-resources-online-betting-safety__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}


/* FAQ Section */
.page-resources-online-betting-safety__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-resources-online-betting-safety__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  color: #f0f0f0;
}

.page-resources-online-betting-safety__faq-item summary {
  list-style: none; /* Remove default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #26A9E0; /* Brand primary for FAQ questions */
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.page-resources-online-betting-safety__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-resources-online-betting-safety__faq-item summary:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

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

.page-resources-online-betting-safety__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
}

.page-resources-online-betting-safety__faq-answer {
  padding: 15px 20px 20px;
  font-size: 1.1em;
  color: #f0f0f0;
}

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

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

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

@media (max-width: 768px) {
  /* Mobile content area overflow prevention */
  .page-resources-online-betting-safety {
    overflow-x: hidden;
    font-size: 16px;
    line-height: 1.6;
  }

  .page-resources-online-betting-safety__container,
  .page-resources-online-betting-safety__hero-content,
  .page-resources-online-betting-safety__section,
  .page-resources-online-betting-safety__cta-section,
  .page-resources-online-betting-safety__card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-resources-online-betting-safety__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    min-height: 400px;
  }

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

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

  .page-resources-online-betting-safety__hero-cta {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources-online-betting-safety__btn-primary,
  .page-resources-online-betting-safety__btn-secondary,
  .page-resources-online-betting-safety__btn-link,
  .page-resources-online-betting-safety a[class*="button"],
  .page-resources-online-betting-safety a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-resources-online-betting-safety__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
  }

  .page-resources-online-betting-safety__section-title {
    font-size: 1.8em;
  }

  .page-resources-online-betting-safety__cta-title {
    font-size: 1.8em;
  }

  .page-resources-online-betting-safety__features-grid,
  .page-resources-online-betting-safety__tips-grid,
  .page-resources-online-betting-safety__support-grid {
    grid-template-columns: 1fr;
  }

  /* Mobile image responsive adaptation */
  .page-resources-online-betting-safety img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Content area image CSS size lower bound for mobile */
  .page-resources-online-betting-safety__card-image,
  .page-resources-online-betting-safety__content-image {
    min-width: 200px !important;
    min-height: 200px !important;
    width: 100% !important; /* Ensure it takes full width of parent */
    height: auto !important; /* Maintain aspect ratio */
  }

  .page-resources-online-betting-safety__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }
}

/* Ensure all text elements have appropriate contrast */
.page-resources-online-betting-safety h1,
.page-resources-online-betting-safety h2,
.page-resources-online-betting-safety h3,
.page-resources-online-betting-safety h4,
.page-resources-online-betting-safety h5,
.page-resources-online-betting-safety h6 {
  color: #ffffff; /* Default light for titles on dark background */
}
.page-resources-online-betting-safety__section-title,
.page-resources-online-betting-safety__card-title,
.page-resources-online-betting-safety__list-title,
.page-resources-online-betting-safety__faq-item summary {
  color: #26A9E0; /* Specific brand color for these, still good contrast on dark */
}

.page-resources-online-betting-safety p,
.page-resources-online-betting-safety li {
  color: #f0f0f0; /* Slightly off-white for body text on dark background */
}

/* Ensure light-bg cards have dark text */
.page-resources-online-betting-safety__card.page-resources-online-betting-safety__light-bg {
  background-color: #ffffff;
  color: #333333;
}
.page-resources-online-betting-safety__card.page-resources-online-betting-safety__light-bg .page-resources-online-betting-safety__card-title {
  color: #26A9E0; /* Brand color on light background */
}