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

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

.page-download__hero-section {
  background-color: #8B0000; /* Deep red for hero background */
  padding-top: var(--header-offset, 120px); /* Account for fixed header */
  padding-bottom: 60px;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.page-download__hero-container {
  position: relative;
  z-index: 1;
}

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

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

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

.page-download__button {
  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.2s ease;
  cursor: pointer;
  border: none;
}

.page-download__button--primary {
  background-color: #FFD700; /* Gold button */
  color: #8B0000; /* Deep red text */
}

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

.page-download__button--secondary {
  background-color: #ffffff;
  color: #8B0000; /* Deep red text */
  border: 2px solid #FFD700;
}

.page-download__button--secondary:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

.page-download__button--cta {
  background-color: #8B0000; /* Deep red CTA button */
  color: #FFD700; /* Gold text */
  padding: 18px 35px;
  font-size: 1.2em;
  border: 2px solid #FFD700;
}

.page-download__button--cta:hover {
  background-color: #a00000;
  transform: translateY(-2px);
}

.page-download__button--small {
  padding: 10px 20px;
  font-size: 0.9em;
  background-color: #FFD700;
  color: #8B0000;
  margin-top: 20px;
}

.page-download__button--small:hover {
  background-color: #e6c200;
}

.page-download__hero-image {
  max-width: 1000px; /* Adjust max-width for display */
  height: auto;
  display: block;
  margin: 40px auto 0;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  width: 1000px;
  height: 563px; /* Maintain aspect ratio for 16:9 */
}

.page-download__section-title {
  font-size: 2.5em;
  color: #8B0000; /* Deep red for section titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

.page-download__why-app-section,
.page-download__download-methods-section,
.page-download__pre-install-section,
.page-download__faq-section {
  padding: 80px 0;
}

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

.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;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

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

.page-download__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  width: 400px; /* Placeholder size for large image */
  height: 300px; /* Placeholder size for large image */
}

.page-download__feature-title {
  font-size: 1.5em;
  color: #FFD700; /* Gold for feature titles */
  margin-bottom: 15px;
  font-weight: bold;
}

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

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

.page-download__method-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.page-download__method-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  width: 600px; /* Placeholder size */
  height: 400px; /* Placeholder size */
}

.page-download__method-title {
  font-size: 1.8em;
  color: #8B0000; /* Deep red for method titles */
  margin-bottom: 20px;
  font-weight: bold;
}

.page-download__method-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  text-align: left;
  color: #555555;
}

.page-download__method-steps li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
  line-height: 1.5;
}

.page-download__method-steps li::before {
  content: '\2713'; /* Checkmark icon */
  color: #FFD700; /* Gold checkmark */
  position: absolute;
  left: 0;
  font-weight: bold;
}

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

.page-download__note-item {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.page-download__note-title {
  font-size: 1.6em;
  color: #FFD700; /* Gold for note titles */
  margin-bottom: 15px;
  font-weight: bold;
}

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

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

.page-download__faq-item {
  background-color: #ffffff;
  border-radius: 12px;
  margin-bottom: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.page-download__faq-question {
  width: 100%;
  padding: 20px 30px;
  background-color: #FFD700; /* Gold background for question */
  color: #8B0000; /* Deep red text for question */
  font-size: 1.2em;
  font-weight: bold;
  text-align: left;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

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

.page-download__faq-icon {
  font-size: 1.5em;
  transition: transform 0.3s ease;
}

.page-download__faq-item.is-active .page-download__faq-icon {
  transform: rotate(180deg);
}

.page-download__faq-answer {
  padding: 0 30px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  background-color: #fcfcfc;
}

.page-download__faq-answer.page-download__faq-answer--hidden {
  padding-top: 0;
  padding-bottom: 0;
}

.page-download__faq-answer p {
  padding: 20px 0;
  margin: 0;
  line-height: 1.6;
  color: #555555;
}

.page-download__faq-item.is-active .page-download__faq-answer {
  max-height: 200px; /* Adjust as needed for content */
  padding-top: 10px;
  padding-bottom: 10px;
}

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

  .page-download__hero-image {
    max-width: 800px;
    width: 800px;
    height: 450px; /* Adjust to 16:9 for 800px width */
  }

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

  .page-download__feature-title {
    font-size: 1.3em;
  }

  .page-download__method-title {
    font-size: 1.5em;
  }
}

@media (max-width: 768px) {
  .page-download__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensure mobile header offset */
    padding-bottom: 40px;
  }

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

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

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

  .page-download__button {
    width: 80%;
    margin: 0 auto;
  }

  .page-download__hero-image {
    max-width: 100%;
    height: auto;
    margin: 30px auto 0;
    width: 100%;
    height: auto;
  }

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

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

  .page-download__why-app-section,
  .page-download__download-methods-section,
  .page-download__pre-install-section,
  .page-download__faq-section {
    padding: 60px 0;
  }

  .page-download__features-grid,
  .page-download__method-cards,
  .page-download__notes-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-download__feature-item,
  .page-download__method-card,
  .page-download__note-item {
    padding: 25px;
  }

  .page-download__feature-icon {
    width: 80px;
    height: 80px;
    width: 100%;
    height: auto;
  }

  .page-download__faq-question {
    font-size: 1.1em;
    padding: 18px 25px;
  }

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

  /* Ensure all images within .page-download are responsive and do not overflow */
  .page-download img {
    max-width: 100%;
    height: auto;
  }

  /* Content area image size lower bound */
  .page-download__hero-image,
  .page-download__feature-icon,
  .page-download__method-image {
    min-width: 200px;
    min-height: 200px;
    width: 100%; /* Override fixed width for responsiveness */
    height: auto; /* Override fixed height for responsiveness */
  }
}

@media (max-width: 480px) {
  .page-download__hero-title {
    font-size: 1.8em;
  }

  .page-download__download-buttons {
    gap: 10px;
  }

  .page-download__button {
    width: 90%;
    padding: 12px 20px;
    font-size: 1em;
  }

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

  .page-download__section-intro {
    font-size: 0.9em;
  }

  .page-download__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
}