.page-resources {
  color: #ffffff; /* Body background is dark, so text should be light */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 60px; /* Space for footer */
}

.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;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px 60px; /* Adjusted padding for hero section */
  background-color: #017439; /* Brand color */
  color: #ffffff;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

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

.page-resources__hero-section .page-resources__container {
  position: relative;
  z-index: 1;
}

.page-resources__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-resources__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
}

.page-resources__section-title {
  font-size: 2.5em;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
  font-weight: bold;
}

.page-resources__introduction-section, 
.page-resources__download-guide-section,
.page-resources__troubleshooting-section,
.page-resources__registration-section,
.page-resources__promotions-section,
.page-resources__games-overview-section,
.page-resources__video-section,
.page-resources__faq-section,
.page-resources__conclusion-section {
  padding: 60px 0;
  background-color: #f8f8f8; /* Light background for content sections */
  color: #333333; /* Dark text for light background */
}

.page-resources__introduction-section,
.page-resources__registration-section,
.page-resources__conclusion-section {
  background-color: #ffffff;
}

.page-resources__text-block {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
}

.page-resources__cta-button {
  display: inline-block;
  background-color: #C30808; /* Red for CTA */
  color: #FFFF00; /* Yellow text for CTA */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-resources__cta-button:hover {
  background-color: #a30606;
  transform: translateY(-2px);
}

.page-resources__guide-item {
  margin-bottom: 50px;
  text-align: center;
}

.page-resources__guide-title {
  font-size: 1.8em;
  color: #017439;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-resources__guide-image, .page-resources__trouble-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__guide-list, .page-resources__registration-list {
  text-align: left;
  list-style-type: decimal;
  padding-left: 40px;
  margin-top: 20px;
  font-size: 1.1em;
  line-height: 1.8;
}

.page-resources__guide-list li, .page-resources__registration-list li {
  margin-bottom: 15px;
}

.page-resources__troubleshooting-section {
  background-color: #f0f0f0;
}

.page-resources__trouble-item {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-resources__trouble-title {
  font-size: 1.6em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

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

.page-resources__card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
  color: #333333;
}

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

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

.page-resources__card-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-resources__card-text {
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
}

.page-resources__game-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-resources__game-item {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 30px;
  margin-bottom: 20px;
}

.page-resources__game-subtitle {
  font-size: 1.6em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-resources__video-section {
  background-color: #f0f0f0;
  padding-top: 60px; /* Default desktop padding, mobile will override */
}

.page-resources__video-container {
  text-align: center;
}

.page-resources__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 10px;
  margin-top: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-resources__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  max-width: 100%; /* Ensure video does not overflow */
  height: auto; /* Maintain aspect ratio */
  display: block;
}

.page-resources__faq-section {
  background-color: #ffffff;
}

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

.page-resources__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 15px;
  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;
  color: #017439;
  cursor: pointer;
  background-color: #e8f5e9;
  border-bottom: 1px solid #e0e0e0;
  list-style: none; /* For details summary */
}

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

.page-resources__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

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

.page-resources__faq-answer {
  padding: 20px 25px;
  font-size: 1.1em;
  line-height: 1.7;
  color: #555555;
  background-color: #ffffff;
}

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

.page-resources__conclusion-section {
  text-align: center;
  background-color: #017439; /* Brand color */
  color: #ffffff;
}

.page-resources__conclusion-section .page-resources__section-title {
  color: #ffffff;
}

.page-resources__conclusion-section .page-resources__text-block {
  color: #f0f0f0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .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__text-block {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-resources {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-resources__hero-section {
    padding: 80px 15px 40px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
  }
  .page-resources__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-resources__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-resources__cta-button {
    padding: 12px 25px;
    font-size: 1.1em;
  }
  .page-resources__section-title {
    font-size: 1.8em;
    padding-top: 30px;
    margin-bottom: 30px;
  }
  .page-resources__container {
    padding: 0 15px;
  }
  .page-resources__guide-item,
  .page-resources__trouble-item,
  .page-resources__card,
  .page-resources__game-item,
  .page-resources__faq-item {
    padding: 20px;
    margin-bottom: 20px;
  }
  .page-resources__guide-title,
  .page-resources__trouble-title,
  .page-resources__card-title,
  .page-resources__game-subtitle {
    font-size: 1.4em;
  }
  .page-resources__guide-list,
  .page-resources__registration-list {
    padding-left: 25px;
    font-size: 0.95em;
  }
  .page-resources__promotion-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile video section padding */
  }
  /* Mobile image responsiveness */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources__section,
  .page-resources__card,
  .page-resources__container,
  .page-resources__video-section,
  .page-resources__video-container,
  .page-resources__video-wrapper,
  .page-resources__cta-buttons,
  .page-resources__button-group,
  .page-resources__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  /* Mobile video responsiveness */
  .page-resources video,
  .page-resources__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  /* Mobile button responsiveness */
  .page-resources__cta-button,
  .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;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources__cta-buttons,
  .page-resources__button-group,
  .page-resources__btn-container {
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column; /* Stack buttons vertically on mobile */
  }
}