:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f9f9f9;
  --background-dark: #26A9E0; /* Using primary color for dark sections */
  --border-color: #e0e0e0;
  --login-button-color: #EA7C07;
}

.page-resources-security-fairness {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light backgrounds */
  background-color: var(--secondary-color); /* Default body background is white */
}

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

.page-resources-security-fairness__heading {
  font-size: 36px;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-resources-security-fairness__text-block {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify;
}

/* --- Hero Section --- */
.page-resources-security-fairness__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); /* Light blue to white gradient */
  color: var(--text-light); /* Text on hero should be light */
}

.page-resources-security-fairness__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-resources-security-fairness__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-resources-security-fairness__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-resources-security-fairness__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-resources-security-fairness__hero-content h1 {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: 700;
  color: var(--text-light); /* Ensure contrast on hero background */
}

.page-resources-security-fairness__hero-content p {
  font-size: 20px;
  margin-bottom: 30px;
  color: var(--text-light); /* Ensure contrast on hero background */
}

.page-resources-security-fairness__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--login-button-color); /* Login/Register color */
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-resources-security-fairness__cta-button:hover {
  background: #D46E06; /* Slightly darker shade of login-button-color */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* --- Section Styling (Light & Dark Backgrounds) --- */
.page-resources-security-fairness__introduction-section,
.page-resources-security-fairness__fairness-policy-section,
.page-resources-security-fairness__player-protection-section,
.page-resources-security-fairness__customer-support-section,
.page-resources-security-fairness__faq-section {
  background-color: var(--background-light); /* Light background for these sections */
  color: var(--text-dark);
  padding: 60px 0;
}

.page-resources-security-fairness__security-measures-section,
.page-resources-security-fairness__licensing-section,
.page-resources-security-fairness__payment-system-section {
  background-color: var(--background-dark); /* Dark background for these sections */
  color: var(--text-light);
  padding: 60px 0;
}

.page-resources-security-fairness__security-measures-section .page-resources-security-fairness__heading,
.page-resources-security-fairness__licensing-section .page-resources-security-fairness__heading,
.page-resources-security-fairness__payment-system-section .page-resources-security-fairness__heading {
  color: var(--text-light); /* Headings on dark background are white */
}

.page-resources-security-fairness__security-measures-section .page-resources-security-fairness__text-block,
.page-resources-security-fairness__licensing-section .page-resources-security-fairness__text-block,
.page-resources-security-fairness__payment-system-section .page-resources-security-fairness__text-block {
  color: var(--text-light);
}

/* --- Grid Layout for Cards --- */
.page-resources-security-fairness__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources-security-fairness__card {
  background-color: var(--secondary-color); /* White background for cards */
  color: var(--text-dark); /* Dark text for cards */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-resources-security-fairness__security-measures-section .page-resources-security-fairness__card,
.page-resources-security-fairness__licensing-section .page-resources-security-fairness__card,
.page-resources-security-fairness__payment-system-section .page-resources-security-fairness__card {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
  color: var(--text-light); /* Light text on these cards */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources-security-fairness__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-resources-security-fairness__card-image {
  width: 100%; /* Card images take full width of card */
  max-width: 400px; /* Max width for card image */
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

.page-resources-security-fairness__card-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary-color); /* Card titles use brand color */
}

.page-resources-security-fairness__security-measures-section .page-resources-security-fairness__card-title,
.page-resources-security-fairness__licensing-section .page-resources-security-fairness__card-title,
.page-resources-security-fairness__payment-system-section .page-resources-security-fairness__card-title {
  color: var(--text-light); /* Card titles on dark background cards are white */
}

.page-resources-security-fairness__card-text {
  font-size: 16px;
  line-height: 1.6;
  text-align: justify;
}

/* --- List Styling --- */
.page-resources-security-fairness__list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-resources-security-fairness__list-item {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
  text-align: justify;
}

.page-resources-security-fairness__list-item::before {
  content: "✅"; /* Checkmark icon */
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* --- Link Buttons --- */
.page-resources-security-fairness__link-button {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  margin-top: 30px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-resources-security-fairness__link-button:hover {
  background-color: #2298CC; /* Slightly darker shade of primary-color */
  transform: translateY(-2px);
}

/* --- Customer Support Section Specific --- */
.page-resources-security-fairness__support-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  margin-top: 40px;
}

.page-resources-security-fairness__support-image {
  flex: 1 1 400px;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

.page-resources-security-fairness__support-content .page-resources-security-fairness__list {
  flex: 1 1 400px;
  margin-top: 0;
}

/* --- FAQ Section --- */
.page-resources-security-fairness__faq-list {
  margin-top: 40px;
}

.page-resources-security-fairness__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-resources-security-fairness__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 15px;
  opacity: 0;
}

.page-resources-security-fairness__faq-item.active .page-resources-security-fairness__faq-answer {
  max-height: 2000px !important; /* Ensure enough height for content */
  padding: 20px 15px !important;
  opacity: 1;
  background: var(--secondary-color);
  border-radius: 0 0 5px 5px;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
}

.page-resources-security-fairness__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-resources-security-fairness__faq-question:hover {
  background: var(--background-light);
  border-color: #c0c0c0; /* Slightly darker border */
}

.page-resources-security-fairness__faq-question:active {
  background: #eeeeee; /* Even darker */
}

.page-resources-security-fairness__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-dark);
  pointer-events: none;
}

.page-resources-security-fairness__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-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: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--background-light);
  border: 1px solid var(--border-color);
}

.page-resources-security-fairness__faq-item.active .page-resources-security-fairness__faq-toggle {
  color: var(--text-light);
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  transform: rotate(45deg); /* Change + to X (rotated plus) */
}


/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-resources-security-fairness__hero-content h1 {
    font-size: 40px;
  }
  .page-resources-security-fairness__hero-content p {
    font-size: 18px;
  }
  .page-resources-security-fairness__heading {
    font-size: 30px;
  }
  .page-resources-security-fairness__card-title {
    font-size: 20px;
  }
  .page-resources-security-fairness__faq-question h3 {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .page-resources-security-fairness__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header spacing */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources-security-fairness__hero-content h1 {
    font-size: 32px;
  }
  .page-resources-security-fairness__hero-content p {
    font-size: 16px;
  }
  .page-resources-security-fairness__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-resources-security-fairness__container {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-resources-security-fairness__heading {
    font-size: 26px;
    margin-bottom: 30px;
  }

  .page-resources-security-fairness__text-block {
    font-size: 16px;
  }

  .page-resources-security-fairness__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-resources-security-fairness__card {
    padding: 20px;
  }

  .page-resources-security-fairness__card-image {
    min-width: 200px; /* Enforce min image size for mobile cards */
    min-height: 200px;
  }

  .page-resources-security-fairness__card-title {
    font-size: 18px;
  }

  .page-resources-security-fairness__list-item {
    font-size: 16px;
    padding-left: 25px;
    margin-bottom: 10px;
  }
}