/* style/resources-safe-betting-practices.css */
.page-resources-safe-betting-practices {
  color: #ffffff; /* Default text color for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-resources-safe-betting-practices__dark-bg {
  background-color: #004aad;
  color: #ffffff;
}

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

.page-resources-safe-betting-practices__text-contrast-fix {
  color: #333333; /* For text on light background to ensure contrast */
}

.page-resources-safe-betting-practices__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  gap: 40px;
}

.page-resources-safe-betting-practices__hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-resources-safe-betting-practices__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #ffcc00; /* Accent color for title */
  line-height: 1.2;
}

.page-resources-safe-betting-practices__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
}

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

.page-resources-safe-betting-practices__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-top: 40px;
  overflow: hidden;
  box-sizing: border-box;
}

.page-resources-safe-betting-practices__hero-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.page-resources-safe-betting-practices__section {
  padding: 80px 20px;
  text-align: center;
}

.page-resources-safe-betting-practices__container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-resources-safe-betting-practices__section-title {
  font-size: 2.2em;
  margin-bottom: 40px;
  color: #ffcc00; /* Accent color for section titles */
}

.page-resources-safe-betting-practices__light-bg .page-resources-safe-betting-practices__section-title {
  color: #004aad; /* Main color for section titles on light background */
}

.page-resources-safe-betting-practices__text-block {
  font-size: 1.05em;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources-safe-betting-practices__list {
  list-style: none;
  padding: 0;
  text-align: left;
  max-width: 900px;
  margin: 0 auto 30px auto;
}

.page-resources-safe-betting-practices__list-item {
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 10px;
  padding: 15px 20px;
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  font-size: 1.05em;
}

.page-resources-safe-betting-practices__light-bg .page-resources-safe-betting-practices__list-item {
  background-color: #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-resources-safe-betting-practices__list-item strong {
  color: #ffcc00;
  flex-shrink: 0;
}

.page-resources-safe-betting-practices__light-bg .page-resources-safe-betting-practices__list-item strong {
  color: #004aad;
}

.page-resources-safe-betting-practices__list-item::before {
  content: '✔️';
  margin-right: 10px;
  color: #ffcc00;
  font-size: 1.2em;
  flex-shrink: 0;
}

.page-resources-safe-betting-practices__light-bg .page-resources-safe-betting-practices__list-item::before {
  color: #004aad;
}

.page-resources-safe-betting-practices__image-center {
  text-align: center;
  margin: 40px auto 0 auto;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-resources-safe-betting-practices__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-resources-safe-betting-practices__cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-resources-safe-betting-practices__card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-resources-safe-betting-practices__light-bg .page-resources-safe-betting-practices__card {
  background-color: #ffffff;
  color: #333333;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-resources-safe-betting-practices__card-title {
  font-size: 1.5em;
  color: #ffcc00;
  margin-bottom: 15px;
}

.page-resources-safe-betting-practices__light-bg .page-resources-safe-betting-practices__card-title {
  color: #004aad;
}

.page-resources-safe-betting-practices__card-description {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources-safe-betting-practices__btn-primary,
.page-resources-safe-betting-practices__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources-safe-betting-practices__btn-primary {
  background-color: #ffcc00;
  color: #004aad;
  border: 2px solid #ffcc00;
}

.page-resources-safe-betting-practices__btn-primary:hover {
  background-color: #e6b800;
  border-color: #e6b800;
}

.page-resources-safe-betting-practices__btn-secondary {
  background-color: transparent;
  color: #ffcc00;
  border: 2px solid #ffcc00;
}

.page-resources-safe-betting-practices__btn-secondary:hover {
  background-color: #ffcc00;
  color: #004aad;
}

.page-resources-safe-betting-practices__light-bg .page-resources-safe-betting-practices__btn-secondary {
  color: #004aad;
  border-color: #004aad;
}

.page-resources-safe-betting-practices__light-bg .page-resources-safe-betting-practices__btn-secondary:hover {
  background-color: #004aad;
  color: #ffffff;
}

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

.page-resources-safe-betting-practices__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-resources-safe-betting-practices__faq-item {
  background-color: #ffffff;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-resources-safe-betting-practices__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #004aad;
  color: #ffffff;
  font-size: 1.2em;
  font-weight: bold;
}

.page-resources-safe-betting-practices__faq-question:hover {
  background-color: #003a8d;
}

.page-resources-safe-betting-practices__faq-title {
  margin: 0;
  color: #ffffff;
}

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

.page-resources-safe-betting-practices__faq-item.active .page-resources-safe-betting-practices__faq-toggle {
  transform: rotate(45deg);
}

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

.page-resources-safe-betting-practices__faq-item.active .page-resources-safe-betting-practices__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to contain content */
  padding: 20px;
}

.page-resources-safe-betting-practices__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
}

.page-resources-safe-betting-practices__cta-section {
  padding: 80px 20px;
  text-align: center;
  background-color: #004aad;
  color: #ffffff;
}

.page-resources-safe-betting-practices__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-safe-betting-practices__hero-title {
    font-size: 2.5em;
  }
  .page-resources-safe-betting-practices__section-title {
    font-size: 2em;
  }
  .page-resources-safe-betting-practices__cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

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

  .page-resources-safe-betting-practices__hero-section {
    padding: 40px 15px;
  }

  .page-resources-safe-betting-practices__hero-title {
    font-size: 2em;
  }

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

  .page-resources-safe-betting-practices__hero-cta,
  .page-resources-safe-betting-practices__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  .page-resources-safe-betting-practices__btn-primary,
  .page-resources-safe-betting-practices__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-resources-safe-betting-practices__section {
    padding: 60px 15px;
  }

  .page-resources-safe-betting-practices__section-title {
    font-size: 1.8em;
  }

  .page-resources-safe-betting-practices__text-block,
  .page-resources-safe-betting-practices__list-item,
  .page-resources-safe-betting-practices__card-description,
  .page-resources-safe-betting-practices__faq-answer p {
    font-size: 0.95em;
  }

  .page-resources-safe-betting-practices__cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-resources-safe-betting-practices__card {
    padding: 25px;
  }

  .page-resources-safe-betting-practices__faq-question {
    padding: 15px;
    font-size: 1.1em;
  }

  .page-resources-safe-betting-practices__faq-answer {
    padding: 0 15px;
  }

  .page-resources-safe-betting-practices__faq-item.active .page-resources-safe-betting-practices__faq-answer {
    padding: 15px;
  }

  .page-resources-safe-betting-practices img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-resources-safe-betting-practices__hero-image-wrapper,
  .page-resources-safe-betting-practices__image-center,
  .page-resources-safe-betting-practices__container,
  .page-resources-safe-betting-practices__section,
  .page-resources-safe-betting-practices__card,
  .page-resources-safe-betting-practices__faq-list,
  .page-resources-safe-betting-practices__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
  
  /* Override padding for sections which already have it */
  .page-resources-safe-betting-practices__section {
    padding-left: 0;
    padding-right: 0;
  }
  
  .page-resources-safe-betting-practices__hero-section {
    padding-left: 0;
    padding-right: 0;
  }

  /* Ensure main content area does not cause horizontal scroll */
  .page-resources-safe-betting-practices {
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .page-resources-safe-betting-practices__hero-title {
    font-size: 1.8em;
  }
  .page-resources-safe-betting-practices__section-title {
    font-size: 1.6em;
  }
}