.page-resources-security-guide {
  --primary-color: #FFD700;
  --secondary-color: #8B0000;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark-card: rgba(255, 255, 255, 0.1);
  color: var(--text-light); /* Default text color for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

.page-resources-security-guide__hero-section {
  position: relative;
  padding: 120px 0 60px; /* Adjusted padding-top to account for header offset */
  background: linear-gradient(135deg, var(--secondary-color) 0%, #000000 100%);
  text-align: center;
  color: var(--text-light);
  overflow: hidden;
}

.page-resources-security-guide__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources-security-guide__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-resources-security-guide__hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.page-resources-security-guide__btn-primary,
.page-resources-security-guide__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources-security-guide__btn-primary {
  background-color: var(--primary-color);
  color: var(--text-dark);
  border: 2px solid var(--primary-color);
}

.page-resources-security-guide__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  transform: translateY(-2px);
}

.page-resources-security-guide__btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-resources-security-guide__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-dark);
  transform: translateY(-2px);
}

.page-resources-security-guide__section {
  padding: 60px 0;
  background-color: var(--dark-bg-1); /* Assumed dark background */
  color: var(--text-light);
}

.page-resources-security-guide__section:nth-of-type(even) {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter dark background for contrast */
}

.page-resources-security-guide__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.page-resources-security-guide__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-resources-security-guide__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  object-fit: cover;
}

/* FAQ Section */
.page-resources-security-guide__faq {
  background-color: var(--dark-bg-1);
  padding: 80px 0;
}

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

.page-resources-security-guide__faq-item {
  background-color: var(--bg-dark-card);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-resources-security-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--primary-color);
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

.page-resources-security-guide__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

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

.page-resources-security-guide__faq-item.active .page-resources-security-guide__faq-toggle {
  transform: rotate(45deg);
}

.page-resources-security-guide__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
  background-color: rgba(255, 255, 255, 0.02);
}

.page-resources-security-guide__faq-item.active .page-resources-security-guide__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to contain content */
  padding: 15px 25px 20px !important;
}

/* CTA Section */
.page-resources-security-guide__cta {
  text-align: center;
  padding: 80px 0;
  background: linear-gradient(135deg, #000000 0%, var(--secondary-color) 100%);
}

.page-resources-security-guide__cta-content {
  max-width: 900px;
}

.page-resources-security-guide__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-resources-security-guide__hero-title {
    font-size: 2.8em;
  }

  .page-resources-security-guide__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-resources-security-guide__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
  }

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

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

  .page-resources-security-guide__hero-buttons,
  .page-resources-security-guide__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources-security-guide__btn-primary,
  .page-resources-security-guide__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
  }

  .page-resources-security-guide__section,
  .page-resources-security-guide__faq,
  .page-resources-security-guide__cta {
    padding: 40px 0;
  }

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

  .page-resources-security-guide__text-block {
    font-size: 0.95em;
  }

  .page-resources-security-guide__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-resources-security-guide__faq-answer {
    padding: 0 20px;
  }

  .page-resources-security-guide__faq-item.active .page-resources-security-guide__faq-answer {
    padding: 10px 20px 15px !important;
  }

  /* Mobile image and container responsiveness */
  .page-resources-security-guide img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-resources-security-guide__section,
  .page-resources-security-guide__card,
  .page-resources-security-guide__container,
  .page-resources-security-guide__hero-section,
  .page-resources-security-guide__data-protection,
  .page-resources-security-guide__fair-play,
  .page-resources-security-guide__fraud-prevention,
  .page-resources-security-guide__responsible-gaming,
  .page-resources-security-guide__customer-support,
  .page-resources-security-guide__faq,
  .page-resources-security-guide__cta,
  .page-resources-security-guide__cta-content,
  .page-resources-security-guide__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
}

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

  .page-resources-security-guide__section-title {
    font-size: 1.5em;
  }

  .page-resources-security-guide__faq-question {
    font-size: 1em;
  }
}