/* style/download.css */
.page-download {
  color: #333333; /* Dark text for light background */
  background-color: #FFFFFF; /* Page background color */
  padding-top: var(--header-offset, 120px); /* Required for fixed header */
  overflow-x: hidden; /* Prevent horizontal scroll on main content */
}

.page-download__hero-section {
  text-align: center;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  background-color: #000000; /* Dark background for hero to contrast with page */
  color: #FFFFFF; /* Light text for dark hero background */
}

.page-download__hero-container {
  max-width: 800px;
  margin: 0 auto;
}

.page-download__hero-title {
  font-size: 2.8em;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #FCBC45; /* Highlight title with a golden hue */
}

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

.page-download__hero-actions {
  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, color 0.3s ease, border-color 0.3s ease;
  min-width: 180px;
  text-align: center;
}

.page-download__button--primary {
  background-color: #FCBC45; /* Login color */
  color: #000000; /* Dark text for golden button */
  border: 2px solid #FCBC45;
}

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

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

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

.page-download__hero-image-wrapper {
  margin-top: 40px;
  max-width: 100%; /* Ensure it doesn't overflow */
}

.page-download__hero-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Min image size rule */
  min-height: 200px; /* Min image size rule */
}

.page-download__section-title {
  font-size: 2.2em;
  text-align: center;
  margin-bottom: 40px;
  color: #000000; /* Dark text for light background */
  position: relative;
  padding-bottom: 10px;
}

.page-download__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FCBC45;
  border-radius: 2px;
}

/* Why App Section */
.page-download__why-app-section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-download__why-app-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-download__app-benefit {
  background-color: #f8f8f8;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-download__app-benefit:hover {
  transform: translateY(-5px);
}

.page-download__app-benefit-icon {
  width: 100%;
  max-width: 250px; /* Ensure images are not too small */
  height: auto;
  margin-bottom: 20px;
  min-width: 200px; /* Min image size rule */
  min-height: 200px; /* Min image size rule */
  border-radius: 8px;
}

.page-download__app-benefit-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #000000;
}

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

/* Download Methods Section */
.page-download__methods-section {
  padding: 80px 20px;
  background-color: #000000; /* Dark background for this section */
  color: #FFFFFF; /* Light text for dark background */
}

.page-download__methods-section .page-download__section-title {
  color: #FFFFFF; /* Light title for dark background */
}

.page-download__methods-section .page-download__section-title::after {
  background-color: #FCBC45;
}

.page-download__methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.page-download__method-card {
  background-color: #1a1a1a;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-download__method-qr {
  width: 100%;
  max-width: 280px;
  height: auto;
  margin-bottom: 25px;
  border: 5px solid #FCBC45;
  border-radius: 8px;
  min-width: 200px; /* Min image size rule */
  min-height: 200px; /* Min image size rule */
}

.page-download__method-description {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #cccccc;
}

/* Pre-installation Notes Section */
.page-download__notes-section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.page-download__note-item {
  background-color: #f8f8f8;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.page-download__note-icon {
  width: 100%;
  max-width: 200px; /* Adjusted to fit the example HTML width/height */
  height: auto;
  margin-bottom: 20px;
  min-width: 200px; /* Min image size rule */
  min-height: 150px; /* Min image size rule (based on 250x188 aspect ratio) */
  border-radius: 8px;
}

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

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

/* FAQ Section */
.page-download__faq-section {
  padding: 80px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.page-download__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-download__faq-item {
  background-color: #f8f8f8;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #000000;
  cursor: pointer;
  background-color: #FCBC45; /* Golden background for questions */
  color: #000000; /* Dark text for golden background */
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

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

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

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

.page-download__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
  background-color: #FFFFFF; /* White background for answers */
}

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

/* CTA Section */
.page-download__cta-section {
  background-color: #000000; /* Dark background */
  color: #FFFFFF; /* Light text */
  padding: 80px 20px;
  text-align: center;
}

.page-download__cta-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #FCBC45; /* Golden highlight */
}

.page-download__cta-description {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 40px;
  color: #f0f0f0;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .page-download__hero-title {
    font-size: 2.5em;
  }
  .page-download__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-download__hero-title {
    font-size: 2em;
  }
  .page-download__hero-description {
    font-size: 1em;
  }
  .page-download__hero-actions {
    flex-direction: column;
  }
  .page-download__button {
    width: 100%;
    max-width: 300px;
  }
  .page-download__hero-image-wrapper {
    margin-top: 20px;
  }
  .page-download__hero-image {
    width: 100%;
    height: auto;
  }
  .page-download__why-app-content,
  .page-download__methods-grid,
  .page-download__notes-content {
    grid-template-columns: 1fr;
  }
  .page-download__app-benefit-icon,
  .page-download__method-qr,
  .page-download__note-icon {
    max-width: 100%; /* Ensure images are responsive */
    width: 100%;
    height: auto;
    min-width: 200px; /* Maintain minimum size */
    min-height: 150px; /* Maintain minimum size, adjust as needed */
  }

  /* Mandatory for mobile: constrain all images in content area */
  .page-download img {
    max-width: 100%;
    height: auto;
  }

  /* Ensure content area does not cause horizontal scroll */
  .page-download {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-download__hero-section,
  .page-download__why-app-section,
  .page-download__methods-section,
  .page-download__notes-section,
  .page-download__faq-section,
  .page-download__cta-section {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-download__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-download__faq-answer {
    padding: 15px 20px;
  }
}

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