.page-resources-download-guide {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background-color: #FFFFFF;
}

.page-resources-download-guide__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.page-resources-download-guide__hero-section {
  padding-top: var(--header-offset, 120px); /* Apply header offset here if shared doesn't do it on body */
  padding-bottom: 80px;
  background-color: #017439;
  color: #ffffff;
  display: flex;
  align-items: center;
  text-align: center;
}

.page-resources-download-guide__hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-resources-download-guide__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  color: #FFFF00; /* Custom color for H1 */
}

.page-resources-download-guide__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

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

.page-resources-download-guide__hero-image-wrapper {
  display: none; /* Hidden on desktop, shown on mobile for visual */
}

.page-resources-download-guide__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* General Section Styles */
.page-resources-download-guide__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #017439;
  font-weight: bold;
}

.page-resources-download-guide__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources-download-guide__dark-bg .page-resources-download-guide__section-title,
.page-resources-download-guide__dark-bg .page-resources-download-guide__section-description {
  color: #ffffff;
}

/* Why Download Section */
.page-resources-download-guide__why-download-section {
  padding: 80px 0;
  background-color: #ffffff;
}

.page-resources-download-guide__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-resources-download-guide__feature-card {
  background-color: #f8f8f8;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources-download-guide__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.page-resources-download-guide__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

.page-resources-download-guide__feature-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 15px;
}

.page-resources-download-guide__feature-description {
  font-size: 1em;
  color: #555555;
}

/* Download Guide Section */
.page-resources-download-guide__download-guide-section {
  padding: 80px 0;
  background-color: #017439;
}

.page-resources-download-guide__step-by-step {
  max-width: 900px;
  margin: 0 auto;
}

.page-resources-download-guide__step-title {
  font-size: 2em;
  color: #FFFF00;
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-resources-download-guide__step-content {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 30px;
  color: #ffffff;
}

.page-resources-download-guide__step-content p {
  margin-bottom: 15px;
  font-size: 1.1em;
}

.page-resources-download-guide__step-content ol,
.page-resources-download-guide__step-content ul {
  margin-left: 25px;
  margin-bottom: 15px;
}

.page-resources-download-guide__step-content li {
  margin-bottom: 10px;
  font-size: 1.1em;
}

.page-resources-download-guide__step-content a {
  color: #FFFF00; /* Link color for steps */
  text-decoration: underline;
}

.page-resources-download-guide__step-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

/* App Features Section */
.page-resources-download-guide__features-app-section {
  padding: 80px 0;
  background-color: #ffffff;
}

.page-resources-download-guide__app-features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-resources-download-guide__app-feature-item {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.page-resources-download-guide__app-feature-title {
  font-size: 1.6em;
  color: #017439;
  margin-bottom: 15px;
}

.page-resources-download-guide__app-feature-item p {
  color: #555555;
}

/* Game Showcase Section */
.page-resources-download-guide__game-showcase-section {
  padding: 80px 0;
  background-color: #017439;
}

.page-resources-download-guide__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-resources-download-guide__game-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-align: center;
  color: #ffffff;
}

.page-resources-download-guide__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

.page-resources-download-guide__game-title {
  font-size: 1.4em;
  margin: 20px 15px 10px;
  color: #FFFF00;
}

.page-resources-download-guide__game-link {
  color: #FFFF00;
  text-decoration: none;
}

.page-resources-download-guide__game-link:hover {
  text-decoration: underline;
}

.page-resources-download-guide__game-description {
  font-size: 0.95em;
  padding: 0 15px 20px;
  color: #f0f0f0;
}

/* Security Section */
.page-resources-download-guide__security-section {
  padding: 80px 0;
  background-color: #ffffff;
}

.page-resources-download-guide__security-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-resources-download-guide__security-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

.page-resources-download-guide__security-text {
  flex: 1;
  text-align: left;
}

.page-resources-download-guide__security-text p {
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #333333;
}

.page-resources-download-guide__security-text ul {
  margin-left: 25px;
  margin-bottom: 20px;
}

.page-resources-download-guide__security-text li {
  margin-bottom: 10px;
  font-size: 1.05em;
  color: #333333;
}

/* FAQ Section */
.page-resources-download-guide__faq-section {
  padding: 80px 0;
  background-color: #017439;
  color: #ffffff;
}

.page-resources-download-guide__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-resources-download-guide__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-resources-download-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #ffffff;
  transition: background-color 0.3s ease;
}

.page-resources-download-guide__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.page-resources-download-guide__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-resources-download-guide__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

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

.page-resources-download-guide__faq-answer p {
  margin-bottom: 10px;
}

/* CTA Section */
.page-resources-download-guide__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #ffffff;
}

/* Buttons */
.page-resources-download-guide__btn-primary,
.page-resources-download-guide__btn-secondary,
.page-resources-download-guide a[class*="button"],
.page-resources-download-guide a[class*="btn"] {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure button max width */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources-download-guide__btn-primary {
  background-color: #C30808; /* Custom color for primary CTA */
  color: #FFFF00; /* Custom font color */
  border: 2px solid #C30808;
}

.page-resources-download-guide__btn-primary:hover {
  background-color: #a30606;
  border-color: #a30606;
}

.page-resources-download-guide__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-resources-download-guide__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.page-resources-download-guide__dark-bg .page-resources-download-guide__btn-secondary {
  color: #ffffff;
  border-color: #ffffff;
}

.page-resources-download-guide__dark-bg .page-resources-download-guide__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Image global styles */
.page-resources-download-guide img {
  max-width: 100%;
  height: auto;
  display: block;
  /* Ensure minimum size for all content images */
  min-width: 200px;
  min-height: 200px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-resources-download-guide__hero-title {
    font-size: 2.8em;
  }

  .page-resources-download-guide__hero-description {
    font-size: 1.2em;
  }

  .page-resources-download-guide__section-title {
    font-size: 2em;
  }

  .page-resources-download-guide__security-content {
    flex-direction: column;
    text-align: center;
  }

  .page-resources-download-guide__security-image {
    max-width: 80%;
    margin-bottom: 30px;
  }
}

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

  .page-resources-download-guide__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    padding-bottom: 40px;
    flex-direction: column;
  }

  .page-resources-download-guide__hero-content {
    padding: 0 15px;
  }

  .page-resources-download-guide__hero-title {
    font-size: 2em !important;
    margin-bottom: 15px;
  }

  .page-resources-download-guide__hero-description {
    font-size: 1em !important;
    margin-bottom: 30px;
  }

  .page-resources-download-guide__hero-cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-resources-download-guide__btn-primary,
  .page-resources-download-guide__btn-secondary,
  .page-resources-download-guide a[class*="button"],
  .page-resources-download-guide a[class*="btn"] {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-resources-download-guide__hero-image-wrapper {
    display: block;
    width: 100%;
    padding: 20px 15px 0;
    box-sizing: border-box;
  }

  .page-resources-download-guide__section-title {
    font-size: 1.8em !important;
    margin-bottom: 30px;
    padding: 0 15px;
  }

  .page-resources-download-guide__section-description {
    font-size: 0.95em !important;
    padding: 0 15px;
  }

  .page-resources-download-guide__why-download-section,
  .page-resources-download-guide__download-guide-section,
  .page-resources-download-guide__features-app-section,
  .page-resources-download-guide__game-showcase-section,
  .page-resources-download-guide__security-section,
  .page-resources-download-guide__faq-section,
  .page-resources-download-guide__cta-section {
    padding: 40px 0;
  }

  .page-resources-download-guide__container {
    padding: 0 15px;
  }

  /* General image and container responsiveness */
  .page-resources-download-guide img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-resources-download-guide__feature-icon,
  .page-resources-download-guide__content-image,
  .page-resources-download-guide__security-image,
  .page-resources-download-guide__game-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-resources-download-guide__security-content {
    flex-direction: column;
  }

  .page-resources-download-guide__security-image {
    max-width: 100%;
    margin-bottom: 20px;
  }

  .page-resources-download-guide__step-title {
    font-size: 1.5em !important;
    margin-top: 30px;
  }

  .page-resources-download-guide__step-content,
  .page-resources-download-guide__app-feature-item,
  .page-resources-download-guide__game-card,
  .page-resources-download-guide__faq-item {
    padding: 20px 15px !important;
    margin-left: 0;
    margin-right: 0;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-resources-download-guide__faq-question {
    font-size: 1.1em !important;
  }

  .page-resources-download-guide__faq-answer {
    padding: 0 15px !important;
  }

  .page-resources-download-guide__faq-item.active .page-resources-download-guide__faq-answer {
    padding: 10px 15px 15px !important;
  }

  /* Ensure no horizontal scrolling */
  .page-resources-download-guide__hero-section,
  .page-resources-download-guide__why-download-section,
  .page-resources-download-guide__download-guide-section,
  .page-resources-download-guide__features-app-section,
  .page-resources-download-guide__game-showcase-section,
  .page-resources-download-guide__security-section,
  .page-resources-download-guide__faq-section,
  .page-resources-download-guide__cta-section {
    overflow-x: hidden !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .page-resources-download-guide__hero-cta-buttons,
  .page-resources-download-guide__button-group,
  .page-resources-download-guide__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  /* Games grid specific for mobile: 2x2 for first 4, then single column */
  .page-resources-download-guide__games-grid {
    grid-template-columns: 1fr;
  }
  .page-resources-download-guide__games-grid > *:nth-child(odd):nth-child(-n+4) {
    /* For first 4, make them 2x2 if possible, but overall layout is 1 column */
    /* This is a more complex media query scenario, simpler to just make them 1 column */
    grid-column: span 1;
  }
  /* Reset to single column for all on mobile */
  .page-resources-download-guide__games-grid {
      grid-template-columns: 1fr;
  }
}