.page-resources {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Inherited from body, but explicitly set for clarity */
}

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

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background-color: #017439; /* Brand primary color for hero */
  color: #ffffff;
  overflow: hidden;
}

.page-resources__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.page-resources__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
}

.page-resources__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-resources__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.page-resources__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.15; /* Subtle overlay */
  overflow: hidden;
}

.page-resources__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(50%); /* Subtle effect, not changing original color */
}

/* General Section Styles */
.page-resources__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-resources__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

/* Color Contrast Handling */
.page-resources__light-bg {
  background-color: #ffffff;
  color: #333333;
  padding: 60px 0;
}

.page-resources__dark-bg {
  background-color: #017439;
  color: #ffffff;
  padding: 60px 0;
}

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: nowrap; /* Prevent text wrapping for desktop */
  cursor: pointer;
}

.page-resources__btn-primary {
  background-color: #C30808; /* Custom Register/Login color */
  color: #FFFF00; /* Custom Register/Login font color */
  border: 2px solid #C30808;
}

.page-resources__btn-primary:hover {
  background-color: #e02a2a;
  border-color: #e02a2a;
}

.page-resources__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-resources__btn-secondary:hover {
  background-color: #ffffff;
  color: #017439;
}

.page-resources__btn-register {
  background-color: #C30808;
  color: #FFFF00;
  border-color: #C30808;
}

.page-resources__btn-login {
  background-color: #C30808;
  color: #FFFF00;
  border-color: #C30808;
}

/* Advantage Grid */
.page-resources__advantage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources__advantage-card {
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  background-color: #ffffff; /* Light background for card */
  color: #333333; /* Dark text for light background */
}

.page-resources__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-resources__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-resources__card-title a {
  color: #017439; /* Brand color for link in title */
  text-decoration: none;
}

.page-resources__card-title a:hover {
  text-decoration: underline;
}

.page-resources__card-text {
  font-size: 1em;
  margin-bottom: 20px;
}

/* Game Types */
.page-resources__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources__game-card {
  background-color: #f8f8f8;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-resources__game-card .page-resources__card-image {
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
}

/* Getting Started Steps */
.page-resources__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources__step-card {
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
  color: #333333;
}

.page-resources__step-card .page-resources__card-title {
  font-size: 1.6em;
  color: #017439;
}

/* Policies Section */
.page-resources__policy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources__policy-item {
  background-color: #f0f0f0;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-resources__policy-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-resources__policy-title a {
  color: #017439;
  text-decoration: none;
}

.page-resources__policy-title a:hover {
  text-decoration: underline;
}

.page-resources__policy-text {
  font-size: 0.95em;
}

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

.page-resources__faq-item {
  background-color: #ffffff;
  color: #333333;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #f5f5f5;
  border-bottom: 1px solid #eee;
  color: #017439;
  list-style: none; /* For details/summary */
}

.page-resources__faq-question::-webkit-details-marker {
  display: none;
}

.page-resources__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
}

.page-resources__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1.05em;
  color: #555555;
}

.page-resources__faq-item[open] .page-resources__faq-question {
  border-bottom: 1px solid #ddd;
}

.page-resources__faq-item[open] .page-resources__faq-toggle {
  content: '−';
}

.page-resources__faq-answer p {
  margin-top: 15px;
}

/* CTA Section */
.page-resources__cta-section {
  text-align: center;
  padding: 80px 20px;
  background-color: #f0f0f0;
  color: #333333;
}

.page-resources__cta-section .page-resources__section-title {
  color: #017439;
}

.page-resources__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

/* Images responsiveness */
.page-resources img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-resources {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-resources__container {
    padding: 0 15px;
  }

  .page-resources__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

  .page-resources__hero-title {
    font-size: 2.5em;
  }

  .page-resources__hero-description {
    font-size: 1em;
  }

  .page-resources__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources__btn-primary,
  .page-resources__btn-secondary,
  .page-resources a[class*="button"],
  .page-resources a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-resources__cta-buttons,
  .page-resources__button-group,
  .page-resources__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-resources__section-title {
    font-size: 2em;
  }

  .page-resources__light-bg,
  .page-resources__dark-bg {
    padding: 40px 0;
  }

  .page-resources__advantage-card,
  .page-resources__game-card,
  .page-resources__step-card,
  .page-resources__policy-item,
  .page-resources__faq-item {
    padding: 20px;
  }

  .page-resources__advantage-grid,
  .page-resources__game-grid,
  .page-resources__steps-grid,
  .page-resources__policy-grid {
    gap: 20px;
  }

  .page-resources__card-image {
    height: auto; /* Allow auto height for mobile images */
  }

  .page-resources__faq-question {
    font-size: 1.1em;
  }

  .page-resources__faq-answer {
    font-size: 0.95em;
  }

  /* Ensure all content containers are responsive */
  .page-resources__introduction .page-resources__container,
  .page-resources__advantages .page-resources__container,
  .page-resources__game-types .page-resources__container,
  .page-resources__getting-started .page-resources__container,
  .page-resources__policies .page-resources__container,
  .page-resources__faq-section .page-resources__container,
  .page-resources__cta-section .page-resources__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  /* Content area image size constraints for mobile */
  .page-resources__advantage-card img,
  .page-resources__game-card img,
  .page-resources__step-card img,
  .page-resources__policy-item img {
    min-width: 200px;
    min-height: 200px;
    max-width: 100% !important;
    height: auto !important;
  }
}

/* Global image size constraint for content area (not header/footer) */
.page-resources img {
  min-width: 200px;
  min-height: 200px;
}