.page-download__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Clear fixed header */
  color: #ffffff;
  background-color: #017439;
  overflow: hidden;
}

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

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

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

.page-download__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.15; /* Subtle background image */
  z-index: 0;
}

.page-download__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%); /* Example to make it subtle, no color change */
}

.page-download__section-title {
  font-size: 2.8em;
  color: #017439;
  margin-bottom: 20px;
  text-align: center;
  font-weight: bold;
}

.page-download__section-description {
  font-size: 1.1em;
  color: #333333;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  line-height: 1.6;
}

.page-download__dark-bg .page-download__section-title,
.page-download__dark-bg .page-download__section-description {
  color: #ffffff;
}

.page-download__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
}

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

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

.page-download__btn-primary {
  background-color: #C30808; /* Custom color for login/register */
  color: #FFFF00; /* Custom font color */
  border: 2px solid #C30808;
}

.page-download__btn-primary:hover {
  background-color: #e02020;
  border-color: #e02020;
  transform: translateY(-2px);
}

.page-download__btn-secondary {
  background-color: transparent;
  color: #ffffff; /* Default for dark background */
  border: 2px solid #ffffff;
}

.page-download__light-bg .page-download__btn-secondary {
  color: #017439;
  border-color: #017439;
}

.page-download__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.page-download__light-bg .page-download__btn-secondary:hover {
  background-color: rgba(1, 116, 57, 0.1);
}

/* Why Download Section */
.page-download__why-download {
  background-color: #ffffff;
  color: #333333;
}

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

.page-download__feature-card {
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 200px; /* Ensure cards have minimum height */
}

.page-download__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-download__feature-icon {
  width: 100%;
  max-width: 250px; /* Adjusted to be larger, but still fit card */
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
  min-width: 200px;
  min-height: 150px;
  object-fit: cover;
}

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

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

/* How to Download Section */
.page-download__how-to-download {
  background-color: #017439;
  color: #ffffff;
}

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

.page-download__download-platform {
  background-color: #00602e; /* Slightly darker green */
  border-radius: 12px;
  padding: 40px;
  max-width: 550px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  flex: 1;
  min-width: 300px;
}

.page-download__platform-title {
  font-size: 2.2em;
  color: #ffffff;
  margin-bottom: 25px;
  text-align: center;
  font-weight: bold;
}

.page-download__platform-image {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  margin-bottom: 30px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-width: 200px;
  min-height: 150px;
}

.page-download__step-list {
  list-style-type: decimal;
  padding-left: 25px;
  margin-bottom: 30px;
  color: #f0f0f0;
  font-size: 1em;
  line-height: 1.8;
}

.page-download__step-list li {
  margin-bottom: 15px;
}

.page-download__step-list li strong {
  color: #FFFFFF;
}

.page-download__btn-platform {
  width: 100%;
  margin-top: 20px;
}

/* Features App Section */
.page-download__features-app {
  background-color: #ffffff;
  color: #333333;
}

.page-download__features-list {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.page-download__feature-item {
  display: flex;
  align-items: center;
  gap: 40px;
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-download__feature-item--reverse {
  flex-direction: row-reverse;
}

.page-download__feature-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px;
  min-height: 150px;
}

.page-download__feature-details {
  flex: 1;
  max-width: 50%;
}

.page-download__feature-heading {
  font-size: 2.2em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-download__feature-item .page-download__feature-text {
  font-size: 1.05em;
  color: #555555;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: left;
}

.page-download__btn-text {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
  border-bottom: 2px solid #017439;
  padding-bottom: 3px;
  transition: all 0.3s ease;
}

.page-download__btn-text:hover {
  color: #004d26;
  border-color: #004d26;
}

/* Security Section */
.page-download__security-section {
  background-color: #017439;
  color: #ffffff;
}

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

.page-download__security-item {
  background-color: #00602e;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-download__security-icon {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
  min-width: 200px;
  min-height: 150px;
  object-fit: cover;
}

.page-download__security-title {
  font-size: 1.8em;
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: bold;
}

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

.page-download__btn-learn-more {
  margin-top: 50px;
}

/* FAQ Section */
.page-download__faq-section {
  background-color: #ffffff;
  color: #333333;
}

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

.page-download__faq-item {
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 15px;
  padding-bottom: 15px;
}

.page-download__faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  cursor: pointer;
  font-size: 1.2em;
  color: #017439;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-download__faq-question:hover {
  color: #004d26;
}

.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(45deg);
}

.page-download__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 15px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
  line-height: 1.6;
  font-size: 1em;
}

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

/* Final CTA Section */
.page-download__cta-final {
  background-color: #017439;
  color: #ffffff;
  text-align: center;
  padding: 80px 20px;
}

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

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

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

  .page-download__feature-item,
  .page-download__feature-item--reverse {
    flex-direction: column;
    text-align: center;
  }

  .page-download__feature-image,
  .page-download__feature-details {
    max-width: 100%;
  }

  .page-download__feature-item .page-download__feature-text {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-download__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }

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

  .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%;
    padding: 12px 20px;
    font-size: 1em;
  }

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

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

  .page-download__content-area {
    padding: 40px 15px;
  }

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

  .page-download__section,
  .page-download__card,
  .page-download__container,
  .page-download__download-platform,
  .page-download__feature-item,
  .page-download__security-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-download__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-download__feature-image {
    min-width: unset;
    min-height: unset;
  }

  .page-download__security-icon {
    min-width: unset;
    min-height: unset;
  }

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