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

.page-resources__hero-section {
  position: relative;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: #ffffff;
  min-height: 600px;
  background: linear-gradient(135deg, #26A9E0 0%, #1a1a2e 100%); /* Blend brand color with body background */
}

.page-resources__hero-container {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin-bottom: 40px;
}

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

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

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

.page-resources__section {
  padding: 60px 20px;
  position: relative;
}

.page-resources__dark-bg {
  background-color: #1a1a2e;
  color: #ffffff;
}

.page-resources__light-bg {
  background-color: #f8f9fa;
  color: #333333;
}

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

.page-resources__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: inherit;
}

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

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

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

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

.page-resources__card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for dark sections */
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  color: #ffffff; /* Default for cards on dark background */
}

.page-resources__light-bg .page-resources__card {
  background-color: #ffffff; /* White for cards on light background */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #333333;
}

.page-resources__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

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

.page-resources__card-text {
  font-size: 1em;
  color: inherit;
  flex-grow: 1;
}

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

.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons are responsive */
  white-space: normal;
  word-wrap: break-word;
}

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

.page-resources__btn-primary:hover {
  background-color: #1a8cc4;
  border-color: #1a8cc4;
  transform: translateY(-2px);
}

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

.page-resources__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
  transform: translateY(-2px);
}

.page-resources__text-link {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-resources__dark-bg .page-resources__text-link {
  color: #87CEEB; /* Lighter blue for dark backgrounds */
}

.page-resources__text-link:hover {
  text-decoration: underline;
  color: #1a8cc4;
}

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

.page-resources__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
  transition: background-color 0.3s ease;
}

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

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  list-style: none; /* For details/summary */
  color: #ffffff;
}

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

.page-resources__faq-qtext {
  flex-grow: 1;
}

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

.page-resources__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-resources__cta-bottom {
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-resources__cta-image {
  max-width: 100%;
  height: auto;
  margin-top: 50px;
  border-radius: 12px;
  object-fit: cover;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-resources__grid-2-cols {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
  .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__section-intro {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  /* Fixed header offset for mobile, applied to main content area or first section */
  .page-resources__hero-section {
    padding-top: calc(var(--header-offset, 120px) + 40px) !important; /* Add some extra padding */
    padding-bottom: 40px !important;
  }

  .page-resources__hero-title {
    font-size: 2.2em !important;
  }
  .page-resources__hero-description {
    font-size: 1em !important;
  }
  .page-resources__section-title {
    font-size: 1.8em !important;
  }
  .page-resources__section-intro {
    font-size: 0.95em !important;
  }

  .page-resources__grid-3-cols,
  .page-resources__grid-2-cols {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .page-resources__card {
    padding: 20px !important;
  }
  .page-resources__card-title {
    font-size: 1.3em !important;
  }
  .page-resources__card-text {
    font-size: 0.95em !important;
  }

  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
  }

  .page-resources__cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
  }

  .page-resources__faq-question {
    padding: 15px 20px !important;
    font-size: 1.1em !important;
  }
  .page-resources__faq-answer {
    padding: 0 20px 15px 20px !important;
    font-size: 1em !important;
  }

  /* Image, video, and container responsiveness */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources__section,
  .page-resources__container,
  .page-resources__card,
  .page-resources__hero-container,
  .page-resources__faq-item,
  .page-resources__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important;
  }
  .page-resources__hero-section,
  .page-resources__safety-security,
  .page-resources__game-strategies,
  .page-resources__promotions-offers,
  .page-resources__faq,
  .page-resources__cta-bottom {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em !important;
  }
  .page-resources__section-title {
    font-size: 1.5em !important;
  }
  .page-resources__section-intro {
    font-size: 0.9em !important;
  }
}