.page-download {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Inherited from shared.css body */
}

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

/* Hero Section */
.page-download__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  min-height: 600px;
  overflow: hidden;
  color: #ffffff;
  background-color: #017439; /* Brand primary color for hero */
}

.page-download__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.page-download__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFF00; /* Register/Login font color for highlight */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-download__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #ffffff;
}

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

.page-download__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* CTA Buttons */
.page-download__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

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

.page-download__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-download__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-download__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #FFFF00;
}

.page-download__btn-secondary:hover {
  background-color: #FFFF00;
  color: #C30808;
}

/* Section Titles and Descriptions */
.page-download__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #FFFF00; /* Highlight color for titles */
}

.page-download__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #f0f0f0;
}

/* Benefits Section */
.page-download__benefits-section {
  padding: 80px 0;
  background-color: #0a0a0a; /* Dark background */
  color: #ffffff;
}

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

.page-download__benefit-card {
  background-color: rgba(255, 255, 255, 0.1); /* Light background for card on dark body */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-download__benefit-icon {
  width: 100%; /* Ensure image fills card area responsively */
  height: auto;
  max-height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-download__benefit-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #FFFF00;
}

.page-download__benefit-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* How to Download Section */
.page-download__how-to-download-section {
  padding: 80px 0;
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
}

.page-download__download-steps {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-download__platform-guide {
  background-color: rgba(255, 255, 255, 0.15);
  padding: 30px;
  border-radius: 12px;
  max-width: 500px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.page-download__platform-title {
  font-size: 1.8em;
  margin-bottom: 25px;
  color: #FFFF00;
}

.page-download__step-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
  text-align: left;
}

.page-download__step-list li {
  margin-bottom: 15px;
  font-size: 1.05em;
  color: #f0f0f0;
  position: relative;
  padding-left: 25px;
}

.page-download__step-list li::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  background-color: #FFFF00;
  color: #017439;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8em;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 2px;
}

.page-download__step-highlight {
  color: #FFFF00;
}

.page-download__btn-download-android,
.page-download__btn-download-ios {
  width: fit-content;
  margin-top: auto; /* Pushes button to the bottom */
}

/* Features Section */
.page-download__features-section {
  padding: 80px 0;
  background-color: #0a0a0a; /* Dark background */
  color: #ffffff;
}

.page-download__features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-download__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-download__feature-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #FFFF00;
}

.page-download__feature-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* FAQ Section */
.page-download__faq-section {
  padding: 80px 0;
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
}

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

.page-download__faq-item {
  background-color: rgba(255, 255, 255, 0.15);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.page-download__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

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

.page-download__faq-item.active .page-download__faq-toggle {
  transform: rotate(0deg);
}

.page-download__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

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

.page-download__faq-answer p {
  margin: 0;
  padding-bottom: 10px; /* Add some padding to the last paragraph in answer */
}

/* Bottom CTA Section */
.page-download__cta-bottom-section {
  padding: 80px 0;
  background-color: #0a0a0a; /* Dark background */
  color: #ffffff;
}

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

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

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

  .page-download__hero-section {
    padding: 60px 20px;
    min-height: 500px;
  }

  .page-download__hero-title {
    font-size: 2.5em;
  }

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

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

  .page-download__btn-primary,
  .page-download__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

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

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

  .page-download__benefits-section,
  .page-download__how-to-download-section,
  .page-download__features-section,
  .page-download__faq-section,
  .page-download__cta-bottom-section {
    padding: 50px 0;
  }

  .page-download__benefits-grid,
  .page-download__features-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-download__platform-guide {
    max-width: 100%;
    padding: 25px;
  }

  .page-download__download-steps {
    flex-direction: column;
    gap: 30px;
  }

  .page-download img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-download__section,
  .page-download__card,
  .page-download__container,
  .page-download__hero-section,
  .page-download__benefits-section,
  .page-download__how-to-download-section,
  .page-download__features-section,
  .page-download__faq-section,
  .page-download__cta-bottom-section,
  .page-download__cta-buttons,
  .page-download__download-steps {
    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-download__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-download__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }

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

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