.page-download {
  --primary-color: #0A192F;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-light: #f5f5f5;
  --bg-dark: #0A192F;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--primary-color);
}

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

.page-download__section {
  padding: 60px 0;
  text-align: center;
  color: var(--text-dark); /* Default for light sections */
  background-color: var(--bg-light);
}

.page-download__dark-bg {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-download__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.page-download__section-description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-download__hero-section {
  padding: 100px 0 60px;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  text-align: left;
  display: flex;
  align-items: center;
  min-height: 70vh;
}

.page-download__hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.page-download__hero-content {
  flex: 1;
  min-width: 300px;
  margin-right: 40px;
}

.page-download__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-light);
}

.page-download__hero-description {
  font-size: 1.2em;
  line-height: 1.8;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-download__cta-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  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, 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: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--secondary-color);
}

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

.page-download__btn-secondary {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.page-download__btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.page-download__hero-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: right;
}

.page-download__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: block;
  margin-left: auto;
}

/* Why Download Section */
.page-download__why-download .page-download__section-title,
.page-download__why-download .page-download__section-description {
  color: var(--text-dark);
}

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

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

.page-download__feature-item:hover {
  transform: translateY(-10px);
}

.page-download__feature-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-download__feature-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

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

/* How to Download Section */
.page-download__how-to-download .page-download__section-title,
.page-download__how-to-download .page-download__section-description {
  color: var(--text-light);
}

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

.page-download__step-block {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  text-align: left;
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  color: var(--text-light);
}

.page-download__step-title {
  font-size: 1.8em;
  color: var(--secondary-color);
  margin-bottom: 25px;
}

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

.page-download__step-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  font-size: 1.1em;
  line-height: 1.6;
}

.page-download__step-number {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 15px;
  flex-shrink: 0;
}

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

.page-download__video-wrapper {
  margin-top: 60px;
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-download__video-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
}

.page-download__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

.page-download__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  font-weight: bold;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.page-download__video-link:hover .page-download__video-overlay {
  opacity: 0;
}

/* App Features Section */
.page-download__app-features .page-download__section-title,
.page-download__app-features .page-download__section-description {
  color: var(--text-dark);
}

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

.page-download__feature-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  overflow: hidden;
  transition: transform 0.3s ease;
  color: var(--text-dark);
}

.page-download__feature-card:hover {
  transform: translateY(-10px);
}

.page-download__feature-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-download__feature-card-title {
  font-size: 1.6em;
  color: var(--primary-color);
  margin: 20px 20px 10px;
}

.page-download__feature-card-text {
  font-size: 1em;
  line-height: 1.6;
  color: #555;
  padding: 0 20px 20px;
}

/* Security and Trust Section */
.page-download__security-trust .page-download__section-title,
.page-download__security-trust .page-download__section-description {
  color: var(--text-light);
}

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

.page-download__security-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  color: var(--text-light);
  text-align: center;
}

.page-download__security-icon {
  width: 100%;
  max-width: 150px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-download__security-title {
  font-size: 1.5em;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

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

/* FAQ Section */
.page-download__faq-section {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.page-download__faq-section .page-download__section-title,
.page-download__faq-section .page-download__section-description {
  color: var(--text-dark);
}

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

.page-download__faq-item {
  margin-bottom: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  background-color: #ffffff;
  color: var(--text-dark);
  text-align: left;
}

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  background-color: #f9f9f9;
  font-weight: bold;
  font-size: 1.1em;
  color: var(--primary-color);
  transition: background-color 0.3s ease;
}

.page-download__faq-question:hover {
  background-color: #f0f0f0;
}

.page-download__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  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 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555;
  line-height: 1.6;
}

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

/* Final CTA Section */
.page-download__cta-final {
  padding: 80px 0;
}

.page-download__cta-final .page-download__section-title,
.page-download__cta-final .page-download__section-description {
  color: var(--text-light);
}

.page-download__cta-final .page-download__cta-buttons {
  justify-content: center;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-download__hero-title {
    font-size: 3em;
  }
  .page-download__section-title {
    font-size: 2em;
  }
  .page-download__hero-content,
  .page-download__hero-image-wrapper {
    margin-right: 0;
    flex-basis: 100%;
    text-align: center;
  }
  .page-download__hero-image {
    margin-top: 40px;
    margin-left: auto;
    margin-right: auto;
  }
  .page-download__cta-buttons {
    justify-content: center;
  }
  .page-download__download-steps {
    flex-direction: column;
    align-items: center;
  }
  .page-download__step-block {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-download {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-download__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    min-height: auto;
    padding: 80px 0 40px;
  }
  .page-download__hero-title {
    font-size: 2.2em;
  }
  .page-download__hero-description {
    font-size: 1em;
  }
  .page-download__section {
    padding: 40px 0;
  }
  .page-download__section-title {
    font-size: 1.8em;
  }
  .page-download__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .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;
  }
  .page-download__container {
    padding: 0 15px;
  }

  /* Image responsiveness */
  .page-download img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-download__hero-image-wrapper,
  .page-download__feature-item,
  .page-download__feature-card,
  .page-download__security-item,
  .page-download__faq-item,
  .page-download__step-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-download__feature-icon,
  .page-download__security-icon {
    max-width: 100%;
  }

  /* Video responsiveness */
  .page-download video,
  .page-download__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-download__video-wrapper,
  .page-download__video-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-download__video-overlay {
    font-size: 1.5em;
  }

  /* FAQ responsiveness */
  .page-download__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-download__faq-answer {
    padding: 0 20px;
  }
  .page-download__faq-item.active .page-download__faq-answer {
    padding: 10px 20px;
  }
}

@media (max-width: 480px) {
  .page-download__hero-title {
    font-size: 1.8em;
  }
  .page-download__section-title {
    font-size: 1.5em;
  }
  .page-download__hero-section {
    padding: 60px 0 30px;
  }
  .page-download__btn-primary,
  .page-download__btn-secondary {
    font-size: 0.95em;
  }
  .page-download__feature-title,
  .page-download__security-title {
    font-size: 1.3em;
  }
  .page-download__feature-card-title {
    font-size: 1.4em;
  }
}