/* style/resources-safe-betting-guide.css */

/* Base styles for the page content area */
.page-resources-safe-betting-guide {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #1a1a1a; /* Explicitly set for clarity, matches shared.css body */
}

/* Container for content sections */
.page-resources-safe-betting-guide__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-resources-safe-betting-guide__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  min-height: 500px;
  background-color: #017439; /* Brand primary color for hero */
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.page-resources-safe-betting-guide__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin-bottom: 40px;
}

.page-resources-safe-betting-guide__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
}

.page-resources-safe-betting-guide__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

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

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

/* General Section Styling */
.page-resources-safe-betting-guide__content-section {
  padding: 60px 0;
}

.page-resources-safe-betting-guide__dark-bg {
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-resources-safe-betting-guide__light-bg {
  background-color: #ffffff;
  color: #333333; /* Dark text for light background */
}

.page-resources-safe-betting-guide__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: inherit; /* Inherit color from parent section */
}

.page-resources-safe-betting-guide__subsection-title {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 15px;
  color: inherit;
}

.page-resources-safe-betting-guide__text-block {
  margin-bottom: 20px;
  font-size: 1.1em;
  color: inherit;
}

/* Image styling within content sections */
.page-resources-safe-betting-guide__image-wrapper {
  margin: 30px auto;
  max-width: 800px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  overflow: hidden;
}

.page-resources-safe-betting-guide__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

/* Button styles */
.page-resources-safe-betting-guide__btn-primary,
.page-resources-safe-betting-guide__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  text-align: center;
}

/* Specific button colors based on requirements */
.page-resources-safe-betting-guide__btn-primary {
  background-color: #017439; /* Primary brand color */
  color: #ffffff;
  border: 2px solid #017439;
}

.page-resources-safe-betting-guide__btn-primary:hover {
  background-color: #005a2e; /* Darker green on hover */
  border-color: #005a2e;
}

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

.page-resources-safe-betting-guide__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005a2e;
  border-color: #005a2e;
}

/* FAQ Section */
.page-resources-safe-betting-guide__faq-section {
  padding: 60px 0;
}

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

.page-resources-safe-betting-guide__faq-item {
  background-color: #f8f8f8; /* Light background for FAQ items */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333; /* Dark text for light background */
  border: 1px solid #e0e0e0;
}

.page-resources-safe-betting-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #e9e9e9;
  border-bottom: 1px solid #dcdcdc;
  transition: background-color 0.3s ease;
}

.page-resources-safe-betting-guide__faq-question:hover {
  background-color: #e0e0e0;
}

.page-resources-safe-betting-guide__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-resources-safe-betting-guide__faq-item.active .page-resources-safe-betting-guide__faq-toggle {
  transform: rotate(45deg); /* Plus sign rotates to form an X or minus */
}

.page-resources-safe-betting-guide__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #ffffff;
}

.page-resources-safe-betting-guide__faq-item.active .page-resources-safe-betting-guide__faq-answer {
  max-height: 1000px !important; /* Ensure it expands sufficiently */
  padding: 20px 25px;
}

.page-resources-safe-betting-guide__faq-answer p {
  margin: 0;
  padding-bottom: 10px; /* Add some spacing */
  color: #333333; /* Dark text for FAQ answer */
}

/* Conclusion Section */
.page-resources-safe-betting-guide__conclusion-section {
  text-align: center;
  padding: 60px 0;
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
}

.page-resources-safe-betting-guide__conclusion-cta {
  margin-top: 40px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-resources-safe-betting-guide__hero-title {
    font-size: 2.8em;
  }
  .page-resources-safe-betting-guide__section-title {
    font-size: 2em;
  }
  .page-resources-safe-betting-guide__subsection-title {
    font-size: 1.6em;
  }
}

@media (max-width: 768px) {
  .page-resources-safe-betting-guide {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-resources-safe-betting-guide__hero-section {
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Important for mobile fixed header */
  }

  .page-resources-safe-betting-guide__hero-title {
    font-size: 2.2em;
  }

  .page-resources-safe-betting-guide__hero-description {
    font-size: 1em;
  }

  .page-resources-safe-betting-guide__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 300px; /* Constrain button group width */
  }

  .page-resources-safe-betting-guide__btn-primary,
  .page-resources-safe-betting-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;
    font-size: 1em;
  }
  
  .page-resources-safe-betting-guide__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-resources-safe-betting-guide__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-resources-safe-betting-guide__subsection-title {
    font-size: 1.4em;
  }

  /* Mobile image responsiveness */
  .page-resources-safe-betting-guide img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-resources-safe-betting-guide__image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* FAQ mobile adjustments */
  .page-resources-safe-betting-guide__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-resources-safe-betting-guide__faq-answer {
    padding: 0 20px;
  }
  .page-resources-safe-betting-guide__faq-item.active .page-resources-safe-betting-guide__faq-answer {
    padding: 15px 20px;
  }
}