.page-resources {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Ensure consistency with body background */
}

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

.page-resources__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  min-height: 500px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

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

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

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

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

.page-resources__btn-primary,
.page-resources__btn-secondary,
.page-resources__card-button,
.page-resources__game-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

.page-resources__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

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

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

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

.page-resources__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
}

.page-resources__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-resources__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #26A9E0;
  margin: 15px auto 0;
}

.page-resources__intro-section,
.page-resources__getting-started,
.page-resources__game-strategies,
.page-resources__safety-support,
.page-resources__conclusion {
  padding: 60px 0;
}

.page-resources__intro-section,
.page-resources__game-strategies,
.page-resources__conclusion {
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-resources__getting-started,
.page-resources__safety-support {
  background-color: #1a1a1a; /* Lighter dark background for contrast */
  color: #ffffff;
}

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

.page-resources__grid-3-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources__card {
  background-color: #0a0a0a;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-resources__card-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-resources__card-description {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-resources__card-button {
  width: 100%;
  max-width: 200px;
}

.page-resources__grid-2-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.page-resources__game-item {
  background-color: #1a1a1a;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources__game-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.page-resources__game-title {
  font-size: 1.6em;
  color: #26A9E0;
  padding: 20px 25px 10px;
}

.page-resources__game-description {
  font-size: 1em;
  color: #f0f0f0;
  padding: 0 25px 20px;
  flex-grow: 1;
}

.page-resources__game-button {
  margin: 0 25px 25px;
}

.page-resources__promotions {
  padding: 60px 0;
  background-color: #26A9E0;
  color: #ffffff;
}

.page-resources__promotions .page-resources__section-title {
  color: #ffffff;
}

.page-resources__promotions .page-resources__section-title::after {
  background-color: #ffffff;
}

.page-resources__promotions .page-resources__text-block {
  color: #ffffff;
}

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

.page-resources__promo-card {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-resources__promo-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  object-fit: cover;
}

.page-resources__promo-title {
  font-size: 1.4em;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-resources__promo-description {
  font-size: 0.95em;
  color: #f0f0f0;
}

.page-resources__cta-promotions {
  margin-top: 50px;
  text-align: center;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-resources__faq-section {
  margin-top: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__faq-heading {
  font-size: 2em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 30px;
}

.page-resources__faq-item {
  background-color: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  background-color: #1a1a1a;
  transition: background-color 0.3s ease;
}

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

.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: #f0f0f0;
}

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

.page-resources__support-cta {
  margin-top: 50px;
  text-align: center;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-resources__app-download {
  padding: 80px 0;
  background-color: #26A9E0;
  color: #ffffff;
}

.page-resources__app-download .page-resources__section-title {
  color: #ffffff;
}

.page-resources__app-download .page-resources__section-title::after {
  background-color: #ffffff;
}

.page-resources__app-download .page-resources__text-block {
  color: #ffffff;
}

.page-resources__app-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 50px;
  margin-top: 40px;
}

.page-resources__app-text {
  flex: 1;
}

.page-resources__app-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-resources__app-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-resources__app-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 3em;
  }

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

  .page-resources__app-content {
    flex-direction: column;
  }

  .page-resources__app-image-wrapper {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding: 60px 20px;
  }

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

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

  .page-resources__btn-primary,
  .page-resources__btn-secondary,
  .page-resources__card-button,
  .page-resources__game-button {
    padding: 12px 20px;
    font-size: 0.9em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-resources__hero-actions,
  .page-resources__cta-promotions,
  .page-resources__support-cta,
  .page-resources__app-buttons,
  .page-resources__final-cta {
    flex-direction: column;
    gap: 10px;
  }

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

  .page-resources__text-block {
    font-size: 0.95em;
  }

  .page-resources__grid-3-col,
  .page-resources__grid-2-col,
  .page-resources__promotions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-resources__card,
  .page-resources__game-item,
  .page-resources__promo-card {
    padding: 20px;
  }

  .page-resources__card-title {
    font-size: 1.3em;
  }

  .page-resources__game-title {
    font-size: 1.4em;
  }

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

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

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

  /* Image responsive */
  .page-resources img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-resources__section,
  .page-resources__card,
  .page-resources__container,
  .page-resources__game-item,
  .page-resources__promo-card,
  .page-resources__app-content,
  .page-resources__app-text,
  .page-resources__app-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }

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

  /* Override specific padding for sections that already have it */
  .page-resources__intro-section .page-resources__container,
  .page-resources__getting-started .page-resources__container,
  .page-resources__game-strategies .page-resources__container,
  .page-resources__promotions .page-resources__container,
  .page-resources__safety-support .page-resources__container,
  .page-resources__app-download .page-resources__container,
  .page-resources__conclusion .page-resources__container {
    padding-left: 0;
    padding-right: 0;
  }

  .page-resources__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Custom color rules */
.page-resources a[href="login.html"].page-resources__btn-primary {
  background-color: #EA7C07;
  border-color: #EA7C07;
}

.page-resources a[href="login.html"].page-resources__btn-primary:hover {
  background-color: #c96a06;
  border-color: #c96a06;
}

/* Ensure text contrast for the entire page body, assuming dark body background */
.page-resources {
  color: #ffffff; 
}

.page-resources__light-bg {
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-resources__dark-bg {
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-resources__card, .page-resources__game-item, .page-resources__promo-card {
  color: #ffffff;
}

.page-resources__text-block strong {
  color: #26A9E0;
}