.page-resources {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark background */
  background-color: var(--dark-bg); /* Inherit from shared.css */
}

.page-resources__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 600px;
  padding: 80px 20px;
  overflow: hidden;
  color: #ffffff;
  background-color: #26A9E0; /* Brand color as background */
}

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

.page-resources__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6); /* Slightly darken image for text readability */
}

.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;
  color: #ffffff;
  line-height: 1.2;
}

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

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

.page-resources__section {
  padding: 80px 20px;
  text-align: center;
}

.page-resources__dark-bg {
  background-color: #0d0d0d; /* Darker background for contrast */
  color: #ffffff;
}

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

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

.page-resources__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
}

.page-resources__section-description {
  font-size: 1.1em;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-resources__game-card,
.page-resources__article-card,
.page-resources__promotion-card,
.page-resources__feature-card,
.page-resources__safety-card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background sections */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-resources__light-bg .page-resources__game-card,
.page-resources__light-bg .page-resources__article-card,
.page-resources__light-bg .page-resources__promotion-card,
.page-resources__light-bg .page-resources__feature-card,
.page-resources__light-bg .page-resources__safety-card {
  background-color: #ffffff; /* White background for light background sections */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-resources__game-card-image,
.page-resources__promotion-card-image,
.page-resources__feature-card-image,
.page-resources__safety-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.page-resources__game-card-title,
.page-resources__article-card-title,
.page-resources__promotion-card-title,
.page-resources__feature-card-title,
.page-resources__safety-card-title {
  font-size: 1.5em;
  margin: 20px 20px 10px;
  line-height: 1.3;
}

.page-resources__game-card-title a,
.page-resources__article-card-title a,
.page-resources__promotion-card-title a,
.page-resources__feature-card-title a,
.page-resources__safety-card-title a {
  color: #26A9E0; /* Brand color for titles */
  text-decoration: none;
}

.page-resources__game-card-title a:hover,
.page-resources__article-card-title a:hover,
.page-resources__promotion-card-title a:hover,
.page-resources__feature-card-title a:hover,
.page-resources__safety-card-title a:hover {
  text-decoration: underline;
}

.page-resources__game-card-text,
.page-resources__article-card-text,
.page-resources__promotion-card-text,
.page-resources__feature-card-text,
.page-resources__safety-card-text {
  margin: 0 20px 20px;
  flex-grow: 1;
  color: inherit;
}

.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  margin: 0 20px 20px;
}

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

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

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

.page-resources__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1a8ccb;
  border-color: #1a8ccb;
}

.page-resources__btn-text {
  display: inline-block;
  margin: 0 20px 20px;
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-resources__btn-text:hover {
  color: #1a8ccb;
  text-decoration: underline;
}

.page-resources__faq-section {
  text-align: left;
}

.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.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-resources__light-bg .page-resources__faq-item {
  background-color: #f9f9f9;
}

.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;
  color: #ffffff;
  transition: background-color 0.3s ease;
}

.page-resources__light-bg .page-resources__faq-question {
  color: #333333;
}

.page-resources__faq-item[open] .page-resources__faq-question {
  background-color: #26A9E0; /* Brand color when open */
  color: #ffffff;
}

.page-resources__light-bg .page-resources__faq-item[open] .page-resources__faq-question {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-resources__faq-question:hover {
  background-color: rgba(38, 169, 224, 0.2);
}

.page-resources__light-bg .page-resources__faq-question:hover {
  background-color: #e0f2f7;
}

.page-resources__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
}

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

.page-resources__light-bg .page-resources__faq-answer {
  color: #555555;
}

.page-resources__faq-answer p {
  margin-bottom: 10px;
}

.page-resources__faq-answer a {
  color: #26A9E0;
  text-decoration: none;
}

.page-resources__faq-answer a:hover {
  text-decoration: underline;
}

/* Details element specific styles for native accordion */
.page-resources__faq-item summary {
  list-style: none;
}

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

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

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

  .page-resources__hero-section {
    min-height: 500px;
    padding: 60px 15px;
  }

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

  .page-resources__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

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

  .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;
    margin: 0 auto;
    padding: 12px 15px;
  }

  .page-resources__section {
    padding: 40px 15px;
  }

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

  .page-resources__section-description {
    font-size: 0.95em;
    margin-bottom: 40px;
  }

  .page-resources__game-grid,
  .page-resources__article-grid,
  .page-resources__promotion-grid,
  .page-resources__features-grid,
  .page-resources__safety-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-resources__game-card-image,
  .page-resources__promotion-card-image,
  .page-resources__feature-card-image,
  .page-resources__safety-card-image {
    height: 200px;
  }

  .page-resources__game-card-title,
  .page-resources__article-card-title,
  .page-resources__promotion-card-title,
  .page-resources__feature-card-title,
  .page-resources__safety-card-title {
    font-size: 1.3em;
    margin: 15px 15px 8px;
  }

  .page-resources__game-card-text,
  .page-resources__article-card-text,
  .page-resources__promotion-card-text,
  .page-resources__feature-card-text,
  .page-resources__safety-card-text {
    margin: 0 15px 15px;
  }

  .page-resources__btn-text {
    margin: 0 15px 15px;
  }

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

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

  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .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__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__section-title {
    font-size: 1.6em;
  }
}