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

.page-download__dark-bg {
  background-color: #121212;
  color: #ffffff;
}

.page-download__light-bg {
  background-color: #f8f9fa;
  color: #333333;
}

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

.page-download__hero-section {
  position: relative;
  padding: 100px 20px 60px; /* Base padding */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px);
}

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

.page-download__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-download__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  color: #f0f0f0;
}

.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;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

.page-download__btn-primary {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
}

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

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

.page-download__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
  transform: translateY(-2px);
}

.page-download__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: inherit;
}

.page-download__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
  color: inherit;
}

.page-download__why-app-section,
.page-download__features-app-section,
.page-download__download-guide-section,
.page-download__security-section,
.page-download__promotions-section,
.page-download__faq-section,
.page-download__cta-bottom-section {
  padding: 80px 0;
}

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

.page-download__feature-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: #333333;
}

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

.page-download__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-download__image-wrapper {
  flex: 1;
  min-width: 300px;
}

.page-download__content-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-download__text-content {
  flex: 1;
  color: #f0f0f0;
}

.page-download__feature-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-download__feature-list li {
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
}

.page-download__feature-list li::before {
  content: '✓';
  color: #017439;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

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

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

.page-download__guide-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #333333;
  text-align: center;
}

.page-download__guide-subtitle {
  font-size: 1.8em;
  color: #017439;
  margin-bottom: 20px;
}

.page-download__qr-code-wrapper {
  margin: 20px auto;
  max-width: 200px;
}

.page-download__qr-code-image {
  width: 100%;
  height: auto;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.page-download__btn-small {
  padding: 10px 20px;
  font-size: 1em;
  margin-top: 20px;
}

.page-download__video-section {
  margin-top: 60px;
  background-color: rgba(1, 116, 57, 0.1); /* Slightly transparent brand color */
  padding: 40px;
  border-radius: 10px;
  text-align: center;
  color: #ffffff;
}

.page-download__video-title {
  color: #ffffff;
}

.page-download__video-description {
  max-width: 800px;
  margin: 0 auto 30px;
}

.page-download__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 10px;
}

.page-download__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block; /* Ensure it's treated as a block element */
}

.page-download__video-link-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  cursor: pointer;
}

.page-download__security-content {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-download__security-image {
  flex: 1;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-download__security-list {
  flex: 1;
  list-style: none;
  padding: 0;
}

.page-download__security-list li {
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
  color: #f0f0f0;
}

.page-download__security-list li::before {
  content: '🛡️';
  position: absolute;
  left: 0;
  top: 0;
}

.page-download__security-footer {
  margin-top: 40px;
  text-align: center;
  font-size: 1.1em;
  color: #f0f0f0;
}

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

.page-download__promo-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: #333333;
}

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

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

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

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: rgba(1, 116, 57, 0.3);
  color: #ffffff;
  font-weight: bold;
  font-size: 1.1em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-download__faq-question:hover {
  background-color: rgba(1, 116, 57, 0.5);
}

.page-download__faq-title {
  margin: 0;
  color: #ffffff;
}

.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 20px;
  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 accommodate content */
  padding: 20px;
}

.page-download__cta-bottom-section {
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-download__hero-title {
    font-size: 2.5em;
  }
  .page-download__section-title {
    font-size: 2em;
  }
  .page-download__content-grid,
  .page-download__security-content {
    flex-direction: column;
    text-align: center;
  }
  .page-download__security-image,
  .page-download__content-image {
    margin-bottom: 30px;
  }
  .page-download__security-list,
  .page-download__feature-list {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .page-download__hero-section {
    padding: 80px 15px 40px; /* Adjust padding for mobile */
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-download__hero-title {
    font-size: 2em;
  }
  .page-download__hero-description {
    font-size: 1em;
  }
  .page-download__section-title {
    font-size: 1.8em;
  }
  .page-download__section-description {
    font-size: 0.95em;
  }
  .page-download__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-download__btn-primary,
  .page-download__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-download__container {
    padding: 0 15px;
  }
  .page-download__why-app-section,
  .page-download__features-app-section,
  .page-download__download-guide-section,
  .page-download__security-section,
  .page-download__promotions-section,
  .page-download__faq-section,
  .page-download__cta-bottom-section {
    padding: 50px 0;
  }

  /* Mobile image responsiveness */
  .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__image-wrapper,
  .page-download__qr-code-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-download__qr-code-wrapper {
    margin: 20px auto;
  }

  /* Mobile video responsiveness */
  .page-download video,
  .page-download__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-download__video-section,
  .page-download__video-container,
  .page-download__video-wrapper {
    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: 40px !important; /* Adjust if header offset is already applied to main */
    margin-top: 30px; /* Adjusted margin */
  }
  .page-download__video-wrapper {
    padding-bottom: 56.25% !important; /* Maintain aspect ratio */
  }

  .page-download__faq-question {
    font-size: 1em;
    padding: 15px;
  }
  .page-download__faq-answer {
    padding: 0 15px;
  }
  .page-download__faq-item.active .page-download__faq-answer {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .page-download__hero-title {
    font-size: 1.8em;
  }
  .page-download__section-title {
    font-size: 1.5em;
  }
  .page-download__feature-title,
  .page-download__guide-subtitle,
  .page-download__promo-title {
    font-size: 1.3em;
  }
}