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

.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;
}

.page-download__dark-section {
  background-color: #1A237E; /* Main brand color */
  color: #ffffff; /* White text for dark background */
}

.page-download__light-bg {
  background-color: #f0f0f0;
  color: #333333; /* Dark text for light background */
}

.page-download__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #FFD700; /* Gold accent for titles */
  font-weight: bold;
}

.page-download__section-description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px;
}

/* Hero Section */
.page-download__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  padding-bottom: 60px;
  text-align: center;
  background-image: linear-gradient(rgba(26, 35, 126, 0.8), rgba(26, 35, 126, 0.8));
}

.page-download__hero-content {
  max-width: 900px;
  margin-bottom: 40px;
}

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

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

.page-download__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-download__hero-image-wrapper {
  width: 100%;
  max-width: 800px;
  margin-top: 40px;
}

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

/* Buttons */
.page-download__btn-primary,
.page-download__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  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;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-download__btn-primary {
  background-color: #FFD700;
  color: #1A237E;
  border: 2px solid #FFD700;
}

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

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

.page-download__btn-secondary:hover {
  background-color: #FFD700;
  color: #1A237E;
}

/* Why Download Section */
.page-download__why-download .page-download__section-title,
.page-download__why-download .page-download__section-description {
  color: #FFD700;
}

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

.page-download__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.page-download__feature-text {
  color: #f0f0f0;
}

/* How to Download Section */
.page-download__how-to-download .page-download__section-title,
.page-download__how-to-download .page-download__section-description {
  color: #1A237E;
}

.page-download__download-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  text-align: left;
  margin-top: 40px;
}

.page-download__platform-title {
  font-size: 1.8em;
  color: #1A237E;
  margin-bottom: 20px;
}

.page-download__step-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
}

.page-download__step-list li {
  counter-increment: step-counter;
  margin-bottom: 15px;
  position: relative;
  padding-left: 35px;
  color: #333333;
}

.page-download__step-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  background-color: #1A237E;
  color: #ffffff;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9em;
}

.page-download__qr-code-wrapper {
  margin-top: 60px;
  text-align: center;
}

.page-download__qr-code {
  width: 100%;
  max-width: 300px;
  height: auto;
  border: 5px solid #1A237E;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-download__qr-caption {
  margin-top: 20px;
  font-size: 1.1em;
  color: #1A237E;
  font-weight: bold;
}

.page-download__cta-bottom {
  margin-top: 40px;
}

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

.page-download__feature-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-download__feature-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px; /* Enforce min image size */
}

.page-download__feature-card-title {
  font-size: 1.4em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-download__feature-card-text {
  color: #f0f0f0;
  flex-grow: 1;
}

/* Compatibility Section */
.page-download__compatibility .page-download__section-title,
.page-download__compatibility .page-download__section-description {
  color: #1A237E;
}

.page-download__compatibility-grid {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 40px;
}

.page-download__os-info {
  text-align: left;
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  color: #333333;
}

.page-download__os-title {
  font-size: 1.6em;
  color: #1A237E;
  margin-bottom: 15px;
}

.page-download__requirements-list {
  list-style: disc;
  padding-left: 20px;
}

.page-download__requirements-list li {
  margin-bottom: 8px;
}

.page-download__compatibility-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  margin-top: 50px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Video Guide Section */
.page-download__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-download__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  cursor: pointer;
}

.page-download__cta-video {
  margin-top: 40px;
}

/* Security Section */
.page-download__security .page-download__section-title,
.page-download__security .page-download__section-description {
  color: #1A237E;
}

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

.page-download__security-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  color: #333333;
  height: 100%;
}

.page-download__security-title {
  font-size: 1.5em;
  color: #1A237E;
  margin-bottom: 15px;
}

.page-download__security-text {
  color: #555555;
}

.page-download__security-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  margin-top: 50px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* FAQ Section */
.page-download__faq-section .page-download__section-title,
.page-download__faq-section .page-download__section-description {
  color: #FFD700;
}

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

.page-download__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  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;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-download__faq-title {
  font-size: 1.2em;
  color: #FFD700;
  margin: 0;
}

.page-download__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #FFD700;
  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 show content */
  padding: 20px !important;
}

.page-download__faq-answer p {
  margin: 0;
}

/* Conclusion Section */
.page-download__conclusion .page-download__section-title,
.page-download__conclusion .page-download__section-description {
  color: #FFD700;
}

.page-download__cta-final {
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-download__hero-title {
    font-size: 3em;
  }
  .page-download__section-title {
    font-size: 2em;
  }
  .page-download__download-steps {
    grid-template-columns: 1fr;
  }
  .page-download__compatibility-grid {
    flex-direction: column;
    gap: 30px;
  }
  .page-download__os-info {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }
}

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

  .page-download__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 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;
    margin-bottom: 15px;
  }

  .page-download__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

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

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

  .page-download__hero-buttons,
  .page-download__cta-bottom,
  .page-download__cta-video,
  .page-download__cta-final {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
    flex-wrap: wrap !important; /* For button groups */
  }

  .page-download__features-grid,
  .page-download__features-showcase,
  .page-download__security-features {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .page-download__feature-item,
  .page-download__feature-card,
  .page-download__security-item,
  .page-download__os-info {
    padding: 20px;
    text-align: center;
  }

  .page-download__feature-image,
  .page-download__compatibility-image,
  .page-download__security-image,
  .page-download__hero-image,
  .page-download__qr-code {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-height: 200px !important; /* Enforce min size even on mobile */
  }

  .page-download__download-steps {
    padding: 0 15px;
  }

  .page-download__video-wrapper {
    margin-left: 15px;
    margin-right: 15px;
    max-width: calc(100% - 30px) !important;
    width: calc(100% - 30px) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-download__video {
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important; /* Will be managed by padding-bottom on wrapper */
  }

  .page-download__faq-list {
    padding: 0 15px;
  }

  .page-download__faq-question {
    padding: 15px;
  }

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