.page-resources {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: #121212; /* Body background color 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;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 600px;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  background: linear-gradient(135deg, rgba(0, 0, 128, 0.9), rgba(255, 215, 0, 0.7)); /* Midnight Blue and Gold */
}

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

.page-resources__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-resources__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px;
}

.page-resources__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFD700; /* Gold */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  line-height: 1.5;
  color: #f0f0f0;
}

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

.page-resources__section-title {
  font-size: 2.5em;
  color: #FFD700; /* Gold */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 60px;
}

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

.page-resources__introduction-section, .page-resources__guide-section, .page-resources__security-section, .page-resources__faq-section, .page-resources__cta-section {
  padding: 60px 0;
  background-color: #1a1a1a;
}

.page-resources__games-section {
  padding: 60px 0;
  background-color: #000080; /* Midnight Blue */
}

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

.page-resources__game-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #f0f0f0;
}

.page-resources__game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

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

.page-resources__game-title {
  font-size: 1.5em;
  color: #FFD700; /* Gold */
  margin: 15px 15px 10px;
}

.page-resources__game-title a {
  color: #FFD700;
  text-decoration: none;
}

.page-resources__game-title a:hover {
  text-decoration: underline;
}

.page-resources__game-description {
  font-size: 0.95em;
  margin: 0 15px 20px;
  color: #cccccc;
}

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

.page-resources__guide-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-left: 5px solid #FFD700; /* Gold accent */
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-resources__guide-step-title {
  font-size: 1.4em;
  color: #FFD700; /* Gold */
  margin-bottom: 15px;
}

.page-resources__guide-text {
  font-size: 1em;
  color: #e0e0e0;
  text-align: justify;
}

.page-resources__cta-buttons--center {
  text-align: center;
  margin-top: 40px;
}

.page-resources__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.page-resources__feature-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  color: #f0f0f0;
}

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

.page-resources__feature-title {
  font-size: 1.5em;
  color: #FFD700; /* Gold */
  margin-bottom: 10px;
}

.page-resources__feature-description {
  font-size: 0.95em;
  color: #cccccc;
}

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

.page-resources__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  color: #ffffff;
  font-size: 1.1em;
  font-weight: bold;
  background-color: #000080; /* Midnight Blue */
  border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

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

.page-resources__faq-title {
  color: #FFD700; /* Gold */
  margin: 0;
}

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

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

.page-resources__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #e0e0e0;
  background-color: #1a1a1a;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 20px;
}

.page-resources__faq-text {
  margin: 0;
  text-align: justify;
}

/* Buttons */
.page-resources__btn-primary, .page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-resources__btn-primary {
  background-color: #FFD700; /* Gold */
  color: #000080; /* Midnight Blue */
  border: 2px solid #FFD700;
}

.page-resources__btn-primary:hover {
  background-color: #e6c200;
  color: #000055;
}

.page-resources__btn-secondary {
  background-color: transparent;
  color: #FFD700; /* Gold */
  border: 2px solid #FFD700;
}

.page-resources__btn-secondary:hover {
  background-color: #FFD700;
  color: #000080;
}

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

@media (max-width: 768px) {
  .page-resources__hero-section {
    min-height: 500px;
  }
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-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;
  }

  .page-resources__container {
    padding: 0 15px !important;
  }
  
  .page-resources__hero-section,
  .page-resources__introduction-section,
  .page-resources__games-section,
  .page-resources__guide-section,
  .page-resources__security-section,
  .page-resources__faq-section,
  .page-resources__cta-section {
    padding: 40px 0 !important;
  }

  /* Mobile image responsiveness */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-resources__game-card, .page-resources__guide-item, .page-resources__feature-item, .page-resources__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-resources__game-grid, .page-resources__guide-steps, .page-resources__security-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-resources__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure space for fixed header */
  }
}

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