.page-resources {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000000; /* Body background from shared.css */
}

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

.page-resources__hero-section {
  position: relative;
  width: 100%;
  height: 100vh; /* Full viewport height */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: #ffffff; /* Light text for dark hero */
}

.page-resources__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-resources__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 2;
}

.page-resources__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
}

.page-resources__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

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

.page-resources__section {
  padding: 80px 0;
}

.page-resources__introduction.page-resources__light-bg,
.page-resources__games.page-resources__light-bg,
.page-resources__security.page-resources__light-bg,
.page-resources__faq.page-resources__light-bg {
  background-color: #ffffff;
  color: #333333; /* Dark text for light background */
}

.page-resources__guide.page-resources__dark-bg,
.page-resources__promotions.page-resources__dark-bg,
.page-resources__support.page-resources__dark-bg,
.page-resources__conclusion.page-resources__dark-bg {
  background-color: #017439; /* Primary brand color */
  color: #ffffff; /* Light text for dark background */
}

.page-resources__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: inherit;
}

.page-resources__sub-title {
  font-size: 1.8em;
  margin-top: 40px;
  margin-bottom: 20px;
  color: inherit;
}

.page-resources__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.7;
  color: inherit;
}

.page-resources__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-resources__ordered-list {
  list-style-type: decimal;
  margin-left: 20px;
  margin-bottom: 30px;
  color: inherit;
}

.page-resources__ordered-list li {
  margin-bottom: 10px;
  font-size: 1.1em;
}

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

.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources__btn-primary {
  background-color: #C30808; /* Register/Login button color */
  color: #000000; /* Black text for WCAG AA contrast on #C30808 */
  border: 2px solid #C30808;
}

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

.page-resources__btn-secondary {
  background-color: transparent;
  color: #017439; /* Primary brand color text */
  border: 2px solid #017439;
}

.page-resources__guide .page-resources__btn-secondary,
.page-resources__promotions .page-resources__btn-secondary,
.page-resources__support .page-resources__btn-secondary,
.page-resources__conclusion .page-resources__btn-secondary {
  color: #ffffff; /* White text for secondary buttons on dark backgrounds */
  border-color: #ffffff;
}

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

.page-resources__guide .page-resources__btn-secondary:hover,
.page-resources__promotions .page-resources__btn-secondary:hover,
.page-resources__support .page-resources__btn-secondary:hover,
.page-resources__conclusion .page-resources__btn-secondary:hover {
  background-color: #ffffff;
  color: #017439;
}

.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: #f9f9f9;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
  color: #333333;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-resources__game-card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #017439;
}

.page-resources__game-card-text {
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources__faq-list {
  margin-top: 40px;
}

.page-resources__faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  background-color: #fefefe;
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: #f5f5f5;
  cursor: pointer;
  font-weight: bold;
  color: #333333;
  transition: background-color 0.3s ease;
}

.page-resources__faq-question:hover {
  background-color: #e0e0e0;
}

.page-resources__faq-heading {
  margin: 0;
  font-size: 1.2em;
  color: inherit;
}

.page-resources__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-resources__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 20px;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }
  .page-resources__hero-description {
    font-size: 1.1em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__sub-title {
    font-size: 1.6em;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    height: 70vh;
  }
  .page-resources__hero-title {
    font-size: 2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.9em;
  }
  .page-resources__section {
    padding: 60px 0;
  }
  .page-resources__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-resources__sub-title {
    font-size: 1.4em;
    margin-top: 30px;
  }
  .page-resources__text-block,
  .page-resources__ordered-list li {
    font-size: 1em;
  }
  .page-resources__game-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__game-card {
    padding: 20px;
  }
  .page-resources__game-card-title {
    font-size: 1.3em;
  }
  .page-resources__faq-question {
    padding: 12px 15px;
  }
  .page-resources__faq-heading {
    font-size: 1.1em;
  }
  .page-resources__faq-answer {
    padding: 0 15px;
  }
  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 12px 15px;
  }

  /* Mobile image responsiveness */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  /* Mobile container responsiveness */
  .page-resources__section,
  .page-resources__container,
  .page-resources__game-grid,
  .page-resources__game-card,
  .page-resources__faq-list,
  .page-resources__faq-item,
  .page-resources__hero-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
  /* Specific override for hero section padding-top if needed, but var should handle */
  .page-resources__hero-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-resources__hero-content {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

/* Ensuring content area images are not too small */
.page-resources__image {
    min-width: 200px;
    min-height: 200px;
}

/* Color contrast fix for buttons - WCAG AA compliance */
.page-resources__btn-primary {
  background-color: #C30808; /* Register/Login button color */
  color: #000000; /* Black text for WCAG AA contrast on #C30808 */
  border: 2px solid #C30808;
}

.page-resources__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
  color: #ffffff; /* White text on hover for better contrast with darker red */
}