.page-resources {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #ffffff;
  --background-dark: #017439;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light background */
}

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

.page-resources__hero-section {
  position: relative;
  padding: 100px 20px 60px; /* Adjusted padding to accommodate header offset */
  color: var(--text-light);
  text-align: center;
  background: var(--background-dark);
  padding-top: var(--header-offset, 120px);
}

.page-resources__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-light);
}

.page-resources__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
}

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

.page-resources__section-title {
  font-size: 2.2em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  margin-top: 60px;
}

.page-resources__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  color: var(--text-dark);
}

.page-resources__subsection-title {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-resources__content-area {
  padding: 60px 20px;
}

.page-resources__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-resources__content-grid--reverse {
  grid-template-areas: "image text";
}

.page-resources__content-grid--reverse .page-resources__image-wrapper {
  grid-area: image;
}

.page-resources__content-grid--reverse .page-resources__text-block {
  grid-area: text;
}

.page-resources__text-block p {
  margin-bottom: 15px;
  color: var(--text-dark);
}

.page-resources__text-block--light p,
.page-resources__text-block--light li {
  color: var(--text-light);
}

.page-resources__image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-resources__feature-list,
.page-resources__security-list,
.page-resources__step-list,
.page-resources__guide-list,
.page-resources__game-type-list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.page-resources__feature-list li,
.page-resources__security-list li,
.page-resources__step-list li,
.page-resources__guide-list li,
.page-resources__game-type-list li {
  margin-bottom: 10px;
}

.page-resources__text-block--light .page-resources__feature-list,
.page-resources__text-block--light .page-resources__security-list,
.page-resources__text-block--light .page-resources__step-list,
.page-resources__text-block--light .page-resources__guide-list,
.page-resources__text-block--light .page-resources__game-type-list {
  color: var(--text-light);
}

.page-resources__dark-section {
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-resources__dark-section .page-resources__section-title,
.page-resources__dark-section .page-resources__subsection-title {
  color: var(--secondary-color);
}

.page-resources__dark-section .page-resources__text-block p,
.page-resources__dark-section .page-resources__feature-list li,
.page-resources__dark-section .page-resources__security-list li,
.page-resources__dark-section .page-resources__step-list li,
.page-resources__dark-section .page-resources__guide-list li,
.page-resources__dark-section .page-resources__game-type-list li {
  color: var(--text-light);
}

.page-resources__light-bg {
  background-color: var(--background-light);
  color: var(--text-dark);
}

.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources__btn-primary {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: 2px solid var(--primary-color);
}

.page-resources__btn-primary:hover {
  background-color: darken(var(--primary-color), 10%);
  border-color: darken(var(--primary-color), 10%);
}

.page-resources__btn-secondary {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.page-resources__hero-section .page-resources__btn-secondary {
  color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.page-resources__btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.page-resources__btn-primary--center,
.page-resources__btn-secondary--center {
  margin-top: 20px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__promo-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: var(--background-light);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-dark);
}

.page-resources__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Ensure images are not too small */
  min-height: 200px;
  object-fit: cover;
}

.page-resources__card-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-resources__card-text {
  margin-bottom: 20px;
  flex-grow: 1;
  color: var(--text-dark);
}

.page-resources__card .page-resources__btn-primary {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: 2px solid var(--primary-color);
  width: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.page-resources__card .page-resources__btn-primary:hover {
  background-color: darken(var(--primary-color), 10%);
  border-color: darken(var(--primary-color), 10%);
}

.page-resources__more-info {
  text-align: center;
  margin-top: 30px;
  font-size: 1.1em;
  color: var(--text-dark);
}

.page-resources__more-info a {
  color: var(--primary-color);
  text-decoration: underline;
}

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

.page-resources__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-light);
}

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

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

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

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

.page-resources__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-light);
}

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

.page-resources__faq-answer p {
  margin-bottom: 10px;
  color: var(--text-light);
}

.page-resources__faq-answer a {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-resources__contact-info {
  text-align: center;
  margin-top: 30px;
  font-size: 1.1em;
  color: var(--text-dark);
}

.page-resources__contact-info p {
  margin-bottom: 10px;
}

.page-resources__contact-info a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-resources__contact-info a:hover {
  text-decoration: underline;
}

.page-resources__contact-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

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

  .page-resources__hero-section {
    padding: 80px 15px 40px;
    padding-top: var(--header-offset, 120px) !important;
  }

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

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

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

  .page-resources__hero-cta-buttons .page-resources__btn-primary,
  .page-resources__hero-cta-buttons .page-resources__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-resources__section-title {
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 30px;
  }

  .page-resources__content-area {
    padding: 40px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-resources__content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    grid-template-areas: unset;
  }

  .page-resources__content-grid--reverse .page-resources__image-wrapper,
  .page-resources__content-grid--reverse .page-resources__text-block {
    grid-area: unset;
  }

  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-resources__promo-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-resources__card {
    padding: 20px;
  }

  .page-resources__card-image {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .page-resources__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }

  .page-resources__faq-answer {
    padding: 0 20px;
  }

  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px 20px;
  }

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

  .page-resources__contact-cta-buttons .page-resources__btn-primary,
  .page-resources__contact-cta-buttons .page-resources__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    padding: 10px 15px;
  }

  .page-resources__section,
  .page-resources__card,
  .page-resources__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-resources__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-resources__cta-button,
  .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__cta-buttons {
    display: flex;
    flex-direction: column;
  }
}