.page-resources-safe-betting-guide {
  color: #333333; /* Deep dark grey for text on light background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-resources-safe-betting-guide__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  background-color: #0A2463; /* Main brand color */
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-bottom: 40px;
}

.page-resources-safe-betting-guide__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

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

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

.page-resources-safe-betting-guide__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FFD700; /* Auxiliary brand color */
  font-weight: bold;
}

.page-resources-safe-betting-guide__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources-safe-betting-guide__hero-button {
  display: inline-block;
  background-color: #FFD700; /* Auxiliary brand color */
  color: #0A2463; /* Main brand color */
  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;
}

.page-resources-safe-betting-guide__hero-button:hover {
  background-color: #e6c200;
  color: #000000;
}

.page-resources-safe-betting-guide__content-area {
  max-width: 800px; /* Content width for comfortable reading */
  margin: 0 auto;
  padding: 40px 20px;
}

.page-resources-safe-betting-guide__back-link {
  display: inline-block;
  margin-bottom: 30px;
  color: #0A2463; /* Main brand color */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-resources-safe-betting-guide__back-link:hover {
  color: #FFD700; /* Auxiliary brand color */
}

.page-resources-safe-betting-guide__article-heading {
  font-size: 2em;
  color: #0A2463; /* Main brand color */
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 2px solid #FFD700; /* Auxiliary brand color */
  padding-bottom: 10px;
}

.page-resources-safe-betting-guide__article-paragraph {
  margin-bottom: 20px;
  font-size: 1.1em;
  line-height: 1.7;
}

.page-resources-safe-betting-guide__image-container {
  text-align: center;
  margin: 30px 0;
}

.page-resources-safe-betting-guide__image-container img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-resources-safe-betting-guide__call-to-action {
  background-color: #0A2463;
  color: #ffffff;
  padding: 50px 30px;
  text-align: center;
  border-radius: 12px;
  margin-top: 60px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-resources-safe-betting-guide__call-to-action-title {
  font-size: 2.5em;
  color: #FFD700;
  margin-bottom: 20px;
}

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

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

.page-resources-safe-betting-guide__action-button {
  display: inline-block;
  background-color: #FFD700; /* Auxiliary brand color */
  color: #0A2463; /* Main brand color */
  padding: 15px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  min-width: 180px;
}

.page-resources-safe-betting-guide__action-button:hover {
  background-color: #e6c200;
  color: #000000;
  transform: translateY(-3px);
}

.page-resources-safe-betting-guide__action-button--secondary {
  background-color: transparent;
  border: 2px solid #FFD700;
  color: #FFD700;
}

.page-resources-safe-betting-guide__action-button--secondary:hover {
  background-color: #FFD700;
  color: #0A2463;
}

.page-resources-safe-betting-guide__action-button--promo {
  background-color: #e040fb; /* A vibrant color for promotions */
  color: #ffffff;
}

.page-resources-safe-betting-guide__action-button--promo:hover {
  background-color: #c700d8;
}

.page-resources-safe-betting-guide__related-resources {
  background-color: #f8f8f8;
  padding: 60px 20px;
  text-align: center;
  margin-top: 60px;
}

.page-resources-safe-betting-guide__related-heading {
  font-size: 2.2em;
  color: #0A2463;
  margin-bottom: 40px;
}

.page-resources-safe-betting-guide__resource-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-resources-safe-betting-guide__resource-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-resources-safe-betting-guide__resource-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.page-resources-safe-betting-guide__resource-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-resources-safe-betting-guide__resource-card-title {
  font-size: 1.4em;
  color: #0A2463;
  margin: 20px 20px 10px 20px;
  line-height: 1.3;
}

.page-resources-safe-betting-guide__resource-card-title a {
  color: #0A2463;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources-safe-betting-guide__resource-card-title a:hover {
  color: #FFD700;
}

.page-resources-safe-betting-guide__resource-card-description {
  font-size: 0.95em;
  color: #555555;
  padding: 0 20px 20px 20px;
  flex-grow: 1;
}

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

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

  .page-resources-safe-betting-guide__article-heading {
    font-size: 1.6em;
  }

  .page-resources-safe-betting-guide__article-paragraph {
    font-size: 1em;
  }

  .page-resources-safe-betting-guide__call-to-action-title {
    font-size: 2em;
  }

  .page-resources-safe-betting-guide__call-to-action-description {
    font-size: 1em;
  }

  .page-resources-safe-betting-guide__button-group {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources-safe-betting-guide__action-button {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .page-resources-safe-betting-guide__resource-list {
    grid-template-columns: 1fr;
  }

  .page-resources-safe-betting-guide__content-area, .page-resources-safe-betting-guide__related-resources {
    padding: 20px 15px;
  }

  /* Mobile image scaling */
  .page-resources-safe-betting-guide__image-container img,
  .page-resources-safe-betting-guide__resource-card img {
    max-width: 100%;
    height: auto; /* Ensure images scale down */
  }
}

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

  .page-resources-safe-betting-guide__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-resources-safe-betting-guide__call-to-action-title {
    font-size: 1.8em;
  }

  .page-resources-safe-betting-guide__action-button {
    font-size: 1em;
    padding: 12px 25px;
  }
}