.page-download {
  color: #333333; /* Dark text for default light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px);
}

.page-download__hero-section {
  background: linear-gradient(135deg, #CC3333, #FFCC00);
  padding: 80px 20px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

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

.page-download__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

.page-download__download-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: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Ensure button minimum width */
  text-align: center;
}

.page-download__button--primary {
  background-color: #FFCC00; /* Accent color */
  color: #CC3333; /* Main color for text */
}

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

.page-download__button--secondary {
  background-color: #CC3333; /* Main color */
  color: #ffffff;
  border: 2px solid #FFCC00;
}

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

.page-download__hero-image {
  max-width: 800px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  margin-top: 30px;
  display: block; /* Ensure it's a block element */
  margin-left: auto;
  margin-right: auto;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

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

.page-download__section-title {
  font-size: 2.5em;
  color: #CC3333;
  text-align: center;
  margin-bottom: 25px;
  font-weight: bold;
}

.page-download__section-intro {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 50px;
  color: #555555;
}

.page-download__why-app-section {
  background-color: #f9f9f9;
  padding: 60px 0;
}

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

.page-download__benefit-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

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

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

.page-download__benefit-description {
  color: #666666;
}

.page-download__benefits-image {
  max-width: 900px;
  height: auto;
  display: block;
  margin: 50px auto 0;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

.page-download__download-methods-section {
  padding: 60px 0;
}

.page-download__method-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.page-download__method-title {
  font-size: 2em;
  color: #CC3333;
  margin-bottom: 20px;
  text-align: center;
}

.page-download__method-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.page-download__method-list {
  flex: 1;
  list-style: none;
  padding: 0;
  margin: 0;
  min-width: 300px;
}

.page-download__method-list li {
  font-size: 1.1em;
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
  color: #444444;
}

.page-download__method-list li strong {
  color: #333333;
}

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

.page-download__method-image {
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

.page-download__button--inline {
  margin-top: 20px;
  background-color: #CC3333;
  color: #ffffff;
  border: none;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.page-download__button--inline:hover {
  background-color: #a32929;
}

.page-download__pre-installation-section {
  background-color: #f0f0f0;
  padding: 60px 0;
}

.page-download__notes-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

.page-download__notes-list li {
  background-color: #ffffff;
  padding: 20px 25px;
  margin-bottom: 15px;
  border-left: 5px solid #FFCC00;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  font-size: 1.05em;
  color: #444444;
}

.page-download__notes-list li strong {
  color: #333333;
}

.page-download__notes-image {
  max-width: 900px;
  height: auto;
  display: block;
  margin: 40px auto 0;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

.page-download__faq-section {
  padding: 60px 0;
}

.page-download__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

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

.page-download__faq-question {
  display: block;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #CC3333;
  cursor: pointer;
  position: relative;
  user-select: none;
  padding-right: 50px;
}

.page-download__faq-toggle {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5em;
  line-height: 1;
  color: #FFCC00;
}

.page-download__faq-item[open] .page-download__faq-toggle {
  content: '-';
}

.page-download__faq-answer {
  padding: 0 20px 20px;
  font-size: 1.05em;
  color: #555555;
}

.page-download__cta-section {
  background: linear-gradient(135deg, #FFCC00, #CC3333);
  padding: 80px 20px;
  text-align: center;
  color: #ffffff;
}

.page-download__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

.page-download__button--large {
  padding: 18px 40px;
  font-size: 1.3em;
  background-color: #FFCC00; /* Accent color */
  color: #CC3333; /* Main color for text */
}

.page-download__button--large:hover {
  background-color: #e6b800;
}

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

  .page-download__hero-description,
  .page-download__section-intro,
  .page-download__cta-description {
    font-size: 1em;
  }

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

  .page-download__button {
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }

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

  .page-download__benefits-grid {
    grid-template-columns: 1fr;
  }

  .page-download__method-content {
    flex-direction: column;
    text-align: center;
  }

  .page-download__method-list {
    min-width: unset;
    width: 100%;
  }

  .page-download__method-image {
    max-width: 300px;
    width: 100%; /* Ensure mobile images don't overflow */
    height: auto;
  }

  .page-download__button--inline {
    width: 100%;
    max-width: 250px;
  }

  .page-download__notes-image {
    max-width: 100%;
    width: 100%; /* Ensure mobile images don't overflow */
    height: auto;
  }

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

  .page-download__button--large {
    width: 100%;
    max-width: 300px;
  }

  /* Ensure all images in content area are responsive and not smaller than 200px */
  .page-download img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Still enforce minimum size even on mobile */
    min-height: 200px; /* Still enforce minimum size even on mobile */
  }
  .page-download__hero-image,
  .page-download__benefits-image,
  .page-download__method-image,
  .page-download__notes-image {
    max-width: 100%;
    height: auto;
  }
  .page-download {
    overflow-x: hidden;
  }
}

@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: 1.8em;
  }

  .page-download__button {
    font-size: 1em;
    padding: 12px 25px;
  }
}