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

.page-resources__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); /* Ensure space for fixed header */
  min-height: 500px;
  background-color: #017439; /* Brand color as hero background */
  color: #ffffff;
  overflow: hidden;
}

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

.page-resources__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.page-resources__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-resources__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

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

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

.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-block {
  width: 100%;
  max-width: 300px;
  margin-top: 20px;
}

.page-resources__btn-large {
    padding: 18px 40px;
    font-size: 1.3em;
}

.page-resources__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #1a1a2e; /* Dark background from shared.css */
  color: #ffffff; /* Light text for dark background */
}

.page-resources__light-bg {
  background-color: #ffffff; /* Explicitly light background for some sections */
  color: #333333; /* Dark text for light background */
}

.page-resources__dark-bg {
  background-color: #017439; /* Brand color background */
  color: #ffffff; /* Light text for dark background */
}

.page-resources__section-title {
  font-size: 2.5em;
  margin-top: 60px;
  margin-bottom: 30px;
  text-align: center;
  color: #017439; /* Brand color for titles in light sections */
}

.page-resources__light-bg .page-resources__section-title {
    color: #017439;
}

.page-resources__dark-bg .page-resources__section-title,
.page-resources__dark-bg .page-resources__sub-title {
    color: #ffffff;
}

.page-resources__sub-title {
  font-size: 1.8em;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #017439; /* Brand color for sub-titles in light sections */
}

.page-resources__sub-title--center {
    text-align: center;
}

.page-resources__paragraph {
  font-size: 1.1em;
  margin-bottom: 15px;
  line-height: 1.7;
}

.page-resources__paragraph--center {
    text-align: center;
}

.page-resources__image-text-block {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
  margin-bottom: 50px;
}

.page-resources__image-text-block--reverse {
  flex-direction: row-reverse;
}

.page-resources__image-text-block img {
  flex: 1;
  min-width: 400px; /* Minimum size for content images */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  max-width: 100%;
  height: auto;
  display: block;
}

.page-resources__image-text-block > div {
  flex: 1;
}

.page-resources__list,
.page-resources__ordered-list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  font-size: 1.1em;
}

.page-resources__ordered-list {
  list-style-type: decimal;
}

.page-resources__list-item {
  margin-bottom: 10px;
}

.page-resources__video-section {
  padding: 60px 20px;
  background-color: #017439; /* Brand color background */
  color: #ffffff;
  text-align: center;
}

.page-resources__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 30px auto;
  background-color: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.page-resources__video-link-wrapper {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.page-resources__video {
  width: 100%;
  height: auto;
  display: block;
}

.page-resources__game-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
  margin-bottom: 50px;
}

.page-resources__card {
  background-color: #ffffff; /* White background for cards */
  color: #333333; /* Dark text for white background */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease;
  min-height: 450px; /* Ensure cards have enough height */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-resources__card:hover {
  transform: translateY(-5px);
}

.page-resources__card-image {
  width: 100%;
  height: 200px; /* Fixed height for card images */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-resources__card-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #017439; /* Brand color for card titles */
}

.page-resources__card-text {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.page-resources__faq-item {
  background-color: #ffffff; /* White background for FAQ items */
  color: #333333; /* Dark text for white background */
  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;
  cursor: pointer;
  background-color: #f8f8f8;
  border-bottom: 1px solid #eee;
  transition: background-color 0.3s ease;
}

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

.page-resources__faq-title {
  font-size: 1.2em;
  margin: 0;
  color: #017439; /* Brand color for FAQ questions */
}

.page-resources__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #017439;
  transition: transform 0.3s ease;
}