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

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

.page-resources__hero-section {
  position: relative;
  padding: 100px 20px 60px; /* Adjusted padding to account for header offset */
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  text-align: center;
  background-color: #26A9E0; /* Brand main color for hero */
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

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

.page-resources__intro-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #ffffff;
}

.page-resources__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  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;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  box-sizing: border-box;
}

.page-resources__btn-primary {
  background-color: #EA7C07; /* Login color for primary CTA */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

.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__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  color: inherit;
}

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

.page-resources__content-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background for content */
  color: #333333;
}

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

.page-resources__article-card {
  background-color: #f8f8f8;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  color: #333333;
}

.page-resources__article-card:hover {
  transform: translateY(-10px);
}

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

.page-resources__article-content {
  padding: 25px;
}

.page-resources__article-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.3;
}

.page-resources__article-title a {
  color: #26A9E0; /* Brand color for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__article-title a:hover {
  color: #1e87b6;
}

.page-resources__article-text {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
}

.page-resources__read-more {
  display: inline-block;
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  border-bottom: 2px solid #26A9E0;
  padding-bottom: 3px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-resources__read-more:hover {
  color: #1e87b6;
  border-color: #1e87b6;
}

.page-resources__featured-games {
  padding: 80px 0;
  background-color: #1a1a1a; /* Dark background for featured games */
  color: #ffffff;
}

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

.page-resources__game-card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for cards on dark background */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease;
  color: #ffffff;
}

.page-resources__game-card:hover {
  transform: translateY(-10px);
}

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

.page-resources__game-title {
  font-size: 1.4em;
  margin: 20px 0 10px;
  font-weight: bold;
}

.page-resources__game-title a {
  color: #26A9E0; /* Brand color for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__game-title a:hover {
  color: #4ac0f2;
}

.page-resources__game-text {
  font-size: 0.95em;
  color: #cccccc;
  padding: 0 20px 20px;
}

.page-resources__cta-bottom {
  text-align: center;
  margin-top: 50px;
}

.page-resources__faq-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background for FAQ */
  color: #333333;
}

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

.page-resources__faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  background-color: #f8f8f8;
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: bold;
  cursor: pointer;
  background-color: #f0f0f0;
  color: #333333;
  transition: background-color 0.3s ease;
}

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

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

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

.page-resources__contact-cta {
  padding: 80px 0;
  text-align: center;
  background-color: #26A9E0; /* Brand main color */
  color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__main-title {
    font-size: 2.8em;
  }

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

  .page-resources__article-image {
    height: 220px;
  }

  .page-resources__game-image {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure space for fixed header on mobile */
    min-height: 350px;
  }

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

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

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

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

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

  .page-resources__section-description {
    font-size: 0.95em;
  }

  .page-resources__article-grid,
  .page-resources__game-categories {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-resources__article-image {
    height: 200px;
  }

  .page-resources__game-image {
    height: 160px;
  }

  .page-resources__article-title,
  .page-resources__game-title {
    font-size: 1.3em;
  }

  .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: 15px 20px;
  }

  /* Mobile image and video responsive adaptation */
  .page-resources img {
    max-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__container,
  .page-resources__section,
  .page-resources__card,
  .page-resources__article-card,
  .page-resources__game-card,
  .page-resources__faq-item,
  .page-resources__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-resources__hero-section,
  .page-resources__content-section,
  .page-resources__featured-games,
  .page-resources__faq-section,
  .page-resources__contact-cta {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-resources__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }

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