.page-resources {
  color: #ffffff; /* Default text color for dark body background */
  font-family: 'Arial', sans-serif;
}

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

.page-resources__section {
  padding: 80px 0;
  text-align: center;
  position: relative;
}

.page-resources__dark-bg {
  background-color: #1a1a1a; /* Inherited from body, but explicitly set for sections */
  color: #ffffff;
}

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

.page-resources__section-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FFD700;
}

.page-resources__section-description {
  font-size: 1.1em;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 40px;
  color: inherit;
}

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensure content is not covered by fixed header */
}

.page-resources__hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 1;
  transform: translateX(-50%) translateY(-50%);
  object-fit: cover;
}

.page-resources__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2;
}

.page-resources__hero-content {
  position: relative;
  z-index: 3;
  color: #ffffff;
  max-width: 900px;
}

.page-resources__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.page-resources__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  line-height: 1.5;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

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

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

.page-resources__btn-primary {
  background-color: #FFD700;
  color: #1a1a1a; /* Dark text for golden background */
  border: 2px solid #FFD700;
}

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

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

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

.page-resources__btn-text {
  background: none;
  border: none;
  color: #8B0000;
  padding: 0;
  font-size: 1em;
  text-decoration: underline;
}

.page-resources__btn-text:hover {
  color: #FFD700;
}

/* Game Guides Section */
.page-resources__game-guides .page-resources__section-title,
.page-resources__game-guides .page-resources__section-description {
  color: #333333;
}

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

.page-resources__guide-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease;
  color: #333333;
}

.page-resources__guide-card:hover {
  transform: translateY(-5px);
}

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

.page-resources__guide-card-title {
  font-size: 1.5em;
  margin: 20px 20px 10px;
  color: #FFD700;
}

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

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

.page-resources__guide-card-text {
  font-size: 1em;
  line-height: 1.6;
  padding: 0 20px 20px;
  margin-bottom: 10px;
  color: #555555;
}

/* Strategy Tips Section */
.page-resources__tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-resources__tip-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px;
  text-align: left;
  transition: transform 0.3s ease;
  color: #ffffff;
}

.page-resources__tip-item:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-resources__tip-item-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-resources__tip-item-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #FFD700;
}

.page-resources__tip-item-text {
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
}

/* FAQ Section */
.page-resources__faq-section .page-resources__section-title,
.page-resources__faq-section .page-resources__section-description {
  color: #333333;
}

.page-resources__faq-list {
  max-width: 900px;
  margin: 50px auto 0;
  text-align: left;
}

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

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

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

.page-resources__faq-question h3 {
  margin: 0;
  color: #8B0000;
}

.page-resources__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #FFD700;
  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 25px;
}

.page-resources__faq-answer p {
  margin: 0;
  line-height: 1.6;
}

/* News & Updates Section */
.page-resources__news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-resources__news-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease;
  color: #ffffff;
}

.page-resources__news-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

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

.page-resources__news-card-title {
  font-size: 1.4em;
  margin: 20px 20px 10px;
}

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

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

.page-resources__news-card-text {
  font-size: 0.95em;
  line-height: 1.6;
  padding: 0 20px 20px;
  color: #f0f0f0;
}

/* Download App Section */
.page-resources__download-app .page-resources__section-title,
.page-resources__download-app .page-resources__section-description {
  color: #333333;
}

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

/* Contact Support Section */
.page-resources__contact-support .page-resources__btn-primary {
  margin-top: 40px;
}

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

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

@media (max-width: 768px) {
  .page-resources__hero-section {
    height: 60vh;
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important;
  }

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

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

  .page-resources__section {
    padding: 60px 0;
  }

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

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

  .page-resources__guide-grid,
  .page-resources__tips-grid,
  .page-resources__news-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 0 15px;
  }

  .page-resources__guide-card,
  .page-resources__tip-item,
  .page-resources__news-card {
    padding: 20px;
  }

  .page-resources__guide-card-image,
  .page-resources__tip-item-image,
  .page-resources__news-card-image {
    height: 180px;
  }

  .page-resources__guide-card-title,
  .page-resources__tip-item-title,
  .page-resources__news-card-title {
    font-size: 1.3em;
    margin-top: 15px;
  }

  .page-resources__faq-list {
    padding: 0 15px;
  }

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

  .page-resources__faq-question h3 {
    font-size: 1.1em;
  }

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

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

  .page-resources__download-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  /* Mobile image and video responsive adaptation */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-resources video,
  .page-resources__hero-video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-resources__section,
  .page-resources__container,
  .page-resources__guide-card,
  .page-resources__tip-item,
  .page-resources__news-card,
  .page-resources__faq-item,
  .page-resources__hero-content,
  .page-resources__download-buttons,
  .page-resources__hero-cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow-x: hidden !important;
  }

  .page-resources__download-buttons, .page-resources__hero-cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px !important;
  }
}

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

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

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