.page-download {
  color: #333333;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-download__hero-section {
  background-color: #000000;
  color: #FFFFFF;
  padding: 80px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.page-download__hero-container {
  max-width: 900px;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

.page-download__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FCBC45; /* Login button color for accent */
  line-height: 1.2;
}

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

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

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

.page-download__button--primary {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-download__button--primary:hover {
  background-color: #e0a73b;
  border-color: #e0a73b;
}

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

.page-download__button--secondary:hover {
  background-color: #f0f0f0;
  border-color: #f0f0f0;
}

.page-download__hero-image-wrapper {
  width: 100%;
  max-width: 1000px;
  margin-top: 40px;
  position: relative;
  z-index: 1;
}

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

.page-download__section-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin: 60px 0 40px;
  position: relative;
}

.page-download__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #FCBC45;
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-download__content-area,
.page-download__why-app-section,
.page-download__download-methods-section,
.page-download__pre-install-section,
.page-download__faq-section,
.page-download__cta-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

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

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

.page-download__feature-item:hover,
.page-download__method-item:hover,
.page-download__note-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-download__feature-icon {
  width: 100%; /* Ensure images are not tiny */
  max-width: 200px; /* Min size 200px */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-download__feature-title,
.page-download__method-title,
.page-download__note-title {
  font-size: 1.8em;
  color: #000000;
  margin-bottom: 15px;
}

.page-download__feature-description,
.page-download__note-description {
  font-size: 1em;
  color: #555555;
}

.page-download__qr-code {
  width: 100%; /* Ensure images are not tiny */
  max-width: 250px; /* Min size 200px */
  height: auto;
  margin: 20px auto;
  display: block;
  border: 5px solid #000000;
  border-radius: 8px;
}

.page-download__instructions-list {
  list-style: none;
  padding: 0;
  text-align: left;
  margin-bottom: 30px;
}

.page-download__instructions-list li {
  margin-bottom: 10px;
  font-size: 1em;
  color: #333333;
  position: relative;
  padding-left: 25px;
}

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

.page-download__method-item .page-download__button {
  width: auto;
  margin-top: 20px;
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
}

.page-download__method-item .page-download__button:hover {
  background-color: #333333;
  border-color: #333333;
}

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

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

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1em;
  font-weight: bold;
  color: #000000;
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
}

.page-download__faq-item[open] .page-download__faq-question {
  background-color: #f0f0f0;
  border-bottom-color: transparent;
}

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

.page-download__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #FCBC45;
}

.page-download__faq-item[open] .page-download__faq-toggle {
  transform: rotate(45deg);
}

.page-download__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #555555;
  line-height: 1.8;
}

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

.page-download__cta-section {
  background-color: #000000;
  color: #FFFFFF;
  padding: 80px 20px;
  text-align: center;
  margin-top: 60px;
  border-radius: 12px;
}

.page-download__cta-title {
  font-size: 2.8em;
  color: #FCBC45;
  margin-bottom: 20px;
}

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

.page-download__cta-section .page-download__button--primary {
  font-size: 1.2em;
  padding: 18px 35px;
}

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

@media (max-width: 768px) {
  .page-download__hero-section {
    padding: 60px 15px;
  }
  .page-download__hero-title {
    font-size: 2.2em;
  }
  .page-download__hero-description {
    font-size: 1.1em;
  }
  .page-download__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-download__button {
    width: 100%;
    max-width: 300px;
  }
  .page-download__section-title {
    font-size: 2em;
    margin: 40px 0 30px;
  }
  .page-download__content-area,
  .page-download__why-app-section,
  .page-download__download-methods-section,
  .page-download__pre-install-section,
  .page-download__faq-section,
  .page-download__cta-section {
    padding: 30px 15px;
  }
  .page-download__feature-title,
  .page-download__method-title,
  .page-download__note-title {
    font-size: 1.6em;
  }
  .page-download__feature-icon,
  .page-download__qr-code {
    max-width: 180px;
  }
  .page-download__cta-title {
    font-size: 2.2em;
  }
  .page-download__cta-description {
    font-size: 1.1em;
  }
  /* Ensure content images do not overflow on mobile */
  .page-download img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-download__hero-title {
    font-size: 1.8em;
  }
  .page-download__hero-description {
    font-size: 1em;
  }
  .page-download__section-title {
    font-size: 1.8em;
  }
  .page-download__cta-title {
    font-size: 1.8em;
  }
  .page-download__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-download__faq-answer {
    padding: 15px 20px;
  }
  .page-download__button {
    font-size: 1em;
    padding: 12px 25px;
  }
}