:root {
  --primary-color: #007bff;
  --secondary-color: #ffc107;
  --text-color-light: #ffffff;
  --text-color-dark: #333333;
  --background-dark: #121212;
  --background-light: #f8f9fa;
  --card-background-dark: rgba(255, 255, 255, 0.1);
  --border-color: #e0e0e0;
}

.page-resources-safe-betting-guide {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color-light); /* Body background is dark, so text is light */
  background-color: var(--background-dark);
  padding-top: 120px; /* Adjust for fixed header */
}

.page-resources-safe-betting-guide__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-resources-safe-betting-guide__hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, darken(var(--primary-color), 15%) 100%);
  padding: 80px 0;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-resources-safe-betting-guide__subtitle {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

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

.page-resources-safe-betting-guide__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  text-align: center;
}

.page-resources-safe-betting-guide__cta-button--primary {
  background: var(--secondary-color);
  color: var(--text-color-dark);
}

.page-resources-safe-betting-guide__cta-button--primary:hover {
  background: darken(var(--secondary-color), 10%);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.page-resources-safe-betting-guide__cta-button--secondary {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.page-resources-safe-betting-guide__cta-button--secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.page-resources-safe-betting-guide__section {
  padding: 60px 0;
}

.page-resources-safe-betting-guide__section:nth-of-type(odd) {
  background-color: var(--background-dark);
}

.page-resources-safe-betting-guide__section:nth-of-type(even) {
  background-color: lighten(var(--background-dark), 5%);
}

.page-resources-safe-betting-guide__section-title {
  font-size: 2.5em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 25px;
  font-weight: 700;
}

.page-resources-safe-betting-guide__section-description {
  font-size: 1.1em;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

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

.page-resources-safe-betting-guide__feature-item,
.page-resources-safe-betting-guide__payment-item {
  background: var(--card-background-dark);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-color-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources-safe-betting-guide__feature-item:hover,
.page-resources-safe-betting-guide__payment-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-resources-safe-betting-guide__feature-icon,
.page-resources-safe-betting-guide__payment-icon {
  width: 100px;
  height: auto;
  margin-bottom: 20px;
  max-width: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-resources-safe-betting-guide__feature-title,
.page-resources-safe-betting-guide__payment-title {
  font-size: 1.6em;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-resources-safe-betting-guide__feature-text,
.page-resources-safe-betting-guide__payment-text {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.7);
}

.page-resources-safe-betting-guide__steps-list,
.page-resources-safe-betting-guide__responsible-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-resources-safe-betting-guide__step-item,
.page-resources-safe-betting-guide__responsible-list li {
  background: var(--card-background-dark);
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: var(--text-color-light);
  border-left: 5px solid var(--primary-color);
}

.page-resources-safe-betting-guide__step-title {
  font-size: 1.5em;
  color: var(--secondary-color);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-resources-safe-betting-guide__step-item p,
.page-resources-safe-betting-guide__responsible-list p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.page-resources-safe-betting-guide__inline-link {
  color: var(--secondary-color);
  text-decoration: underline;
  font-weight: bold;
}

.page-resources-safe-betting-guide__inline-link:hover {
  color: lighten(var(--secondary-color), 10%);
}

.page-resources-safe-betting-guide__cta-center {
  text-align: center;
  margin-top: 40px;
}

.page-resources-safe-betting-guide__section--conclusion {
  text-align: center;
  padding-bottom: 80px;
}

.page-resources-safe-betting-guide__section--conclusion .page-resources-safe-betting-guide__section-description {
  margin-bottom: 30px;
}

/* FAQ Section */
.page-resources-safe-betting-guide__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources-safe-betting-guide__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-resources-safe-betting-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--primary-color);
  color: #ffffff;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
  position: relative;
}

.page-resources-safe-betting-guide__faq-question:hover {
  background: lighten(var(--primary-color), 5%);
}

.page-resources-safe-betting-guide__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
}

.page-resources-safe-betting-guide__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.page-resources-safe-betting-guide__faq-item.active .page-resources-safe-betting-guide__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg);
  background-color: var(--secondary-color);
}

.page-resources-safe-betting-guide__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: lighten(var(--background-dark), 5%);
  color: rgba(255, 255, 255, 0.7);
  border-radius: 0 0 8px 8px;
}

.page-resources-safe-betting-guide__faq-item.active .page-resources-safe-betting-guide__faq-answer {
  max-height: 2000px !important; /* Ensure enough height for content */
  padding: 20px 25px !important;
  opacity: 1;
}

/* General image styling for responsiveness */
.page-resources-safe-betting-guide img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-resources-safe-betting-guide {
    padding-top: 100px !important; /* Adjust for mobile fixed header */
    font-size: 15px;
  }

  .page-resources-safe-betting-guide__container {
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

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

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

  .page-resources-safe-betting-guide__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 25px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-resources-safe-betting-guide__section {
    padding: 40px 0;
  }

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

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

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

  .page-resources-safe-betting-guide__feature-item,
  .page-resources-safe-betting-guide__payment-item {
    padding: 25px;
  }

  .page-resources-safe-betting-guide__feature-icon,
  .page-resources-safe-betting-guide__payment-icon {
    width: 80px;
  }

  .page-resources-safe-betting-guide__feature-title,
  .page-resources-safe-betting-guide__payment-title {
    font-size: 1.4em;
  }

  .page-resources-safe-betting-guide__step-item,
  .page-resources-safe-betting-guide__responsible-list li {
    padding: 20px;
  }

  .page-resources-safe-betting-guide__step-title {
    font-size: 1.3em;
  }

  /* FAQ Mobile */
  .page-resources-safe-betting-guide__faq-question {
    padding: 15px 20px;
  }
  
  .page-resources-safe-betting-guide__faq-question h3 {
    font-size: 1em;
  }
  
  .page-resources-safe-betting-guide__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  
  .page-resources-safe-betting-guide__faq-answer {
    padding: 15px 20px !important;
  }
}