.page-download {
  color: #333333; /* Dark text for light body background #f4f4f4 */
}

.page-download__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background-color: #0A246A; /* Main brand color for hero background */
  color: #ffffff;
  text-align: center;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.page-download__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.page-download__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: #F3C70E; /* Accent color for title */
}

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

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

.page-download__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}

.page-download__button--primary {
  background-color: #F3C70E; /* Accent color for primary button */
  color: #0A246A;
  border: 2px solid #F3C70E;
}

.page-download__button--primary:hover {
  background-color: #e0b40a;
  transform: translateY(-3px);
}

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

.page-download__button--secondary:hover {
  background-color: rgba(243, 199, 14, 0.1);
  transform: translateY(-3px);
}

.page-download__hero-image {
  width: 100%;
  max-width: 1000px; /* Constrain hero image width */
  height: auto;
  display: block;
  margin: 40px auto 0;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-download__content-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-download__section-title {
  font-size: 2.5em;
  color: #0A246A;
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
}

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

.page-download__why-app-section,
.page-download__methods-section,
.page-download__pre-install-section,
.page-download__faq-section,
.page-download__cta-section {
  padding: 60px 0;
  background-color: #ffffff;
  border-bottom: 1px solid #eeeeee;
}

.page-download__why-app-section {
  background-color: #f9f9f9;
}

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

.page-download__feature-item,
.page-download__note-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-download__feature-item:hover,
.page-download__note-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-download__feature-icon {
  width: 250px; /* Minimum 200px */
  height: 167px; /* Minimum 200px, maintaining aspect ratio */
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-download__feature-title,
.page-download__note-title {
  font-size: 1.6em;
  color: #0A246A;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-download__feature-description,
.page-download__note-description {
  font-size: 1em;
  line-height: 1.7;
  color: #666666;
}

.page-download__download-option {
  background-color: #f0f5f9;
  padding: 40px;
  border-radius: 12px;
  margin-bottom: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-download__option-title {
  font-size: 2em;
  color: #0A246A;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 700;
}

.page-download__option-description {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 30px;
  text-align: center;
  color: #555555;
}

.page-download__download-steps ol {
  list-style-type: decimal;
  padding-left: 25px;
  margin-bottom: 30px;
}

.page-download__download-steps li {
  margin-bottom: 15px;
  font-size: 1em;
  line-height: 1.6;
  color: #444444;
}

.page-download__download-steps li strong {
  color: #0A246A;
}

.page-download__qr-code-section {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 20px;
}

.page-download__qr-code {
  width: 250px;
  height: 250px;
  border: 5px solid #F3C70E;
  border-radius: 8px;
  display: block;
  margin: 0 auto 15px;
}

.page-download__qr-text {
  font-size: 1.1em;
  font-weight: 600;
  color: #0A246A;
}

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

.page-download__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-download__faq-question {
  display: block;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: #0A246A;
  cursor: pointer;
  position: relative;
  user-select: none;
  background-color: #F9F9F9;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease;
}

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

.page-download__faq-question .page-download__faq-toggle {
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #F3C70E;
}

.page-download__faq-item[open] .page-download__faq-question {
  background-color: #F3C70E;
  color: #0A246A;
  border-bottom-color: #e0e0e0;
}

.page-download__faq-item[open] .page-download__faq-question .page-download__faq-toggle {
  transform: translateY(-50%) rotate(45deg);
  color: #0A246A;
}

.page-download__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  line-height: 1.7;
  color: #444444;
  background-color: #ffffff;
}

.page-download__cta-section {
  text-align: center;
  padding: 80px 20px;
  background-color: #0A246A;
  color: #ffffff;
}

.page-download__cta-section .page-download__section-title {
  color: #F3C70E;
  margin-bottom: 25px;
}

.page-download__cta-section .page-download__section-intro {
  color: #cccccc;
  margin-bottom: 40px;
}

.page-download__button--large {
  padding: 18px 40px;
  font-size: 1.3em;
  border-width: 3px;
}

.page-download__small-text {
  margin-top: 30px;
  font-size: 0.9em;
  color: #aaaaaa;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-download__hero-title {
    font-size: 2.8em;
  }
  .page-download__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-download__hero-section {
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px); /* Ensure mobile also respects header offset */
  }
  .page-download__hero-title {
    font-size: 2.2em;
  }
  .page-download__hero-description {
    font-size: 1em;
  }
  .page-download__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-download__button {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  .page-download__section-title {
    font-size: 1.8em;
  }
  .page-download__section-intro {
    font-size: 0.95em;
  }
  .page-download__content-container {
    padding: 20px 15px;
  }
  .page-download__features-grid, .page-download__notes-grid {
    grid-template-columns: 1fr;
  }
  .page-download__feature-item, .page-download__note-item {
    padding: 25px;
  }
  .page-download__feature-title, .page-download__note-title {
    font-size: 1.4em;
  }
  .page-download__option-title {
    font-size: 1.8em;
  }
  .page-download__option-description {
    font-size: 1em;
  }
  .page-download__download-option {
    padding: 30px;
  }
  .page-download__faq-question {
    font-size: 1.1em;
    padding: 18px 20px;
  }
  .page-download__faq-question .page-download__faq-toggle {
    right: 20px;
  }
  .page-download__faq-answer {
    padding: 18px 20px;
  }
  .page-download__cta-section {
    padding: 60px 15px;
  }
  .page-download__button--large {
    font-size: 1.1em;
    padding: 15px 30px;
  }

  /* Mobile content area images must not overflow */
  .page-download img {
    max-width: 100%;
    height: auto;
    display: block; /* Ensure images are block level for max-width */
  }
  .page-download__feature-icon {
    width: 100%; /* Ensure feature icons are responsive */
    max-width: 250px; /* Still respecting minimum size logic */
    height: auto;
  }
  .page-download__qr-code {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 480px) {
  .page-download__hero-title {
    font-size: 1.8em;
  }
  .page-download__section-title {
    font-size: 1.6em;
  }
  .page-download__feature-title, .page-download__note-title {
    font-size: 1.2em;
  }
  .page-download__option-title {
    font-size: 1.6em;
  }
  .page-download__qr-code {
    width: 180px;
    height: 180px;
  }
}