:root {
  --primary-color: #FF4500;
  --secondary-color: #1E90FF;
  --accent-color: #FFD700;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --background-color-light: #f9f9f9;
  --card-background-light: #ffffff;
  --border-color: #e0e0e0;
}

.page-resources-guide-to-safe-betting {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark);
  background-color: var(--background-color-light);
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

.page-resources-guide-to-safe-betting__content-wrapper {
  max-width: 800px; /* Fluid layout for article content */
  margin: 0 auto;
  padding: 0 20px;
}

.page-resources-guide-to-safe-betting__hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  padding: 80px 20px;
  text-align: center;
  color: var(--text-color-light);
  position: relative;
  overflow: hidden; /* Ensure image doesn't overflow */
}

.page-resources-guide-to-safe-betting__hero-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

.page-resources-guide-to-safe-betting__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  color: var(--text-color-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-resources-guide-to-safe-betting__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources-guide-to-safe-betting__hero-image {
  width: 100%;
  max-width: 1000px; /* Constrain hero image width */
  height: auto;
  display: block;
  margin: 40px auto 0 auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-resources-guide-to-safe-betting__cta-button {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--text-color-dark);
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  margin-top: 30px;
}

.page-resources-guide-to-safe-betting__cta-button:hover {
  background-color: #e6c200; /* Slightly darker gold */
  transform: translateY(-3px);
}

.page-resources-guide-to-safe-betting__cta-button--primary {
  background-color: var(--primary-color);
  color: var(--text-color-light);
}

.page-resources-guide-to-safe-betting__cta-button--primary:hover {
  background-color: #cc3700; /* Darker primary */
}

.page-resources-guide-to-safe-betting__cta-button--secondary {
  background-color: var(--secondary-color);
  color: var(--text-color-light);
}

.page-resources-guide-to-safe-betting__cta-button--secondary:hover {
  background-color: #166bb3; /* Darker secondary */
}

.page-resources-guide-to-safe-betting__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-top: 60px;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-resources-guide-to-safe-betting__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--text-color-dark);
}

.page-resources-guide-to-safe-betting__back-link {
  display: inline-block;
  margin-top: 30px;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-resources-guide-to-safe-betting__back-link:hover {
  color: var(--primary-color);
}

.page-resources-guide-to-safe-betting__key-principles {
  padding: 60px 0;
  background-color: #f0f8ff; /* Light blue tint for this section */
}

.page-resources-guide-to-safe-betting__principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources-guide-to-safe-betting__principle-card {
  background-color: var(--card-background-light);
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-resources-guide-to-safe-betting__principle-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.page-resources-guide-to-safe-betting__principle-image {
  width: 100%;
  max-width: 250px; /* Cards images should be larger than 200px */
  height: auto;
  margin-bottom: 20px;
  border-radius: 10px;
}

.page-resources-guide-to-safe-betting__card-title {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-resources-guide-to-safe-betting__card-description {
  font-size: 1em;
  color: var(--text-color-dark);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources-guide-to-safe-betting__card-button {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--text-color-light);
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  transition: background-color 0.3s ease;
}

.page-resources-guide-to-safe-betting__card-button:hover {
  background-color: #166bb3;
}

.page-resources-guide-to-safe-betting__tools-support {
  padding: 60px 0;
}

.page-resources-guide-to-safe-betting__support-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-resources-guide-to-safe-betting__tools-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-resources-guide-to-safe-betting__list-item {
  background-color: var(--card-background-light);
  margin-bottom: 15px;
  padding: 20px;
  border-left: 5px solid var(--primary-color);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  font-size: 1.1em;
}

.page-resources-guide-to-safe-betting__list-item strong {
  color: var(--primary-color);
}

.page-resources-guide-to-safe-betting__faq-section {
  padding: 60px 0;
  background-color: #f0f8ff;
}

.page-resources-guide-to-safe-betting__faq-list {
  margin-top: 40px;
}

.page-resources-guide-to-safe-betting__faq-item {
  background-color: var(--card-background-light);
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.page-resources-guide-to-safe-betting__faq-question {
  font-size: 1.4em;
  color: var(--secondary-color);
  padding: 20px;
  margin: 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.page-resources-guide-to-safe-betting__faq-question:hover {
  background-color: #e9f7ff;
}

.page-resources-guide-to-safe-betting__faq-question::after {
  content: '+';
  font-size: 1.2em;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.page-resources-guide-to-safe-betting__faq-item.active .page-resources-guide-to-safe-betting__faq-question::after {
  content: '-';
  transform: rotate(180deg);
}

.page-resources-guide-to-safe-betting__faq-answer {
  padding: 0 20px 20px 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
}

.page-resources-guide-to-safe-betting__faq-item.active .page-resources-guide-to-safe-betting__faq-answer {
  max-height: 500px; /* Adjust as needed for content */
}

.page-resources-guide-to-safe-betting__faq-link {
  display: inline-block;
  margin-top: 15px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-resources-guide-to-safe-betting__faq-link:hover {
  color: var(--secondary-color);
}

.page-resources-guide-to-safe-betting__call-to-action {
  background-color: var(--primary-color);
  padding: 80px 20px;
  text-align: center;
  color: var(--text-color-light);
}

.page-resources-guide-to-safe-betting__call-to-action .page-resources-guide-to-safe-betting__section-title {
  color: var(--text-color-light);
}

.page-resources-guide-to-safe-betting__call-to-action .page-resources-guide-to-safe-betting__paragraph {
  color: var(--text-color-light);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-guide-to-safe-betting__hero-title {
    font-size: 2.8em;
  }

  .page-resources-guide-to-safe-betting__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-resources-guide-to-safe-betting__hero-title {
    font-size: 2.2em;
  }

  .page-resources-guide-to-safe-betting__hero-description {
    font-size: 1em;
  }

  .page-resources-guide-to-safe-betting__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-resources-guide-to-safe-betting__principles-grid {
    grid-template-columns: 1fr;
  }

  .page-resources-guide-to-safe-betting__section-title {
    font-size: 1.8em;
  }

  .page-resources-guide-to-safe-betting__paragraph,
  .page-resources-guide-to-safe-betting__list-item,
  .page-resources-guide-to-safe-betting__card-description {
    font-size: 0.95em;
  }

  /* Ensure images do not overflow on mobile */
  .page-resources-guide-to-safe-betting__hero-image,
  .page-resources-guide-to-safe-betting__principle-image,
  .page-resources-guide-to-safe-betting__support-image {
    max-width: 100%;
    height: auto;
  }

  /* Content area images must be >= 200px. This ensures they don't shrink below that. */
  .page-resources-guide-to-safe-betting img {
    min-width: 200px;
    min-height: 200px;
  }

  .page-resources-guide-to-safe-betting__faq-question {
    font-size: 1.2em;
  }
}

@media (max-width: 480px) {
  .page-resources-guide-to-safe-betting__hero-title {
    font-size: 1.8em;
  }

  .page-resources-guide-to-safe-betting__section-title {
    font-size: 1.6em;
  }

  .page-resources-guide-to-safe-betting__hero-section {
    padding: 60px 15px;
  }

  .page-resources-guide-to-safe-betting__content-wrapper {
    padding: 0 15px;
  }
}