/* style/download.css */

/* Base styles for the page */
.page-download {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for the page, as body is dark */
  background-color: transparent; /* Body background from shared.css */
}

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

.page-download__dark-bg {
  background-color: #017439; /* Brand primary color for dark sections */
  color: #ffffff;
}

.page-download__light-bg {
  background-color: #ffffff; /* White background for light sections */
  color: #333333;
}

/* Hero Section */
.page-download__hero-section {
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  position: relative;
  overflow: hidden;
}

.page-download__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFFF00; /* Yellow for prominence */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

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

.page-download__btn-primary {
  background-color: #C30808; /* Red for call to action */
  color: #FFFF00; /* Yellow text for contrast */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 300px;
  width: 100%;
}

.page-download__btn-primary:hover {
  background-color: #a00606;
}

.page-download__hero-image-wrapper {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

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

/* General Section Styles */
.page-download__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  text-align: center;
  color: inherit; /* Inherit from section background */
}

.page-download__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

.page-download__subsection-title {
  font-size: 1.8em;
  margin-top: 40px;
  margin-bottom: 20px;
  color: inherit;
  text-align: center;
}

/* Why App Section */
.page-download__why-app-section {
  padding: 60px 20px;
}

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

.page-download__feature-card {
  background-color: #f0f0f0;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  color: #333333;
}

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

.page-download__feature-icon {
  width: 150px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-download__feature-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #017439;
}

.page-download__feature-text {
  font-size: 1em;
  color: #555555;
}

/* App Features Section */
.page-download__app-features {
  padding: 60px 20px;
}

.page-download__feature-list {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
}

.page-download__list-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-download__list-title {
  font-size: 1.6em;
  margin-bottom: 10px;
  color: #FFFF00; /* Yellow for highlight */
}

.page-download__list-text {
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-download__video-wrapper {
  margin-top: 40px;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.page-download__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  cursor: pointer;
}

.page-download__video-caption {
  text-align: center;
  margin-top: 15px;
  font-style: italic;
  color: #ffffff;
  font-size: 0.9em;
}

/* How to Install Section */
.page-download__how-to-install {
  padding: 60px 20px;
}

.page-download__install-steps {
  list-style: decimal;
  padding-left: 20px;
  margin-bottom: 40px;
  font-size: 1.1em;
  color: #333333;
}

.page-download__install-steps li {
  margin-bottom: 15px;
}

.page-download__install-steps strong {
  color: #017439;
}

.page-download__qr-code-wrapper {
  text-align: center;
  margin: 20px 0;
}

.page-download__qr-code {
  width: 200px;
  height: 200px;
  border: 5px solid #017439;
  border-radius: 5px;
  display: block;
  margin: 0 auto 10px auto;
}

.page-download__qr-code-wrapper p {
  color: #555555;
  font-size: 0.9em;
}

.page-download__cta-section {
  text-align: center;
  margin-top: 50px;
  padding: 30px;
  background-color: #f0f0f0;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #333333;
}

.page-download__cta-section p {
  font-size: 1.2em;
  margin-bottom: 20px;
  font-weight: bold;
}

/* System Requirements Section */
.page-download__system-requirements {
  padding: 60px 20px;
}

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

.page-download__requirement-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-download__requirement-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #FFFF00;
}

.page-download__requirement-item ul {
  list-style: disc;
  padding-left: 20px;
  font-size: 1.1em;
}

.page-download__requirement-item li {
  margin-bottom: 10px;
}

.page-download__note {
  text-align: center;
  margin-top: 40px;
  font-style: italic;
  font-size: 1em;
  color: #f0f0f0;
}

/* Security and Trust Section */
.page-download__security-trust {
  padding: 60px 20px;
}

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

.page-download__security-card {
  background-color: #f0f0f0;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #333333;
}

.page-download__security-icon {
  width: 150px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-download__security-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #017439;
}

.page-download__security-text {
  font-size: 1em;
  color: #555555;
}

.page-download__disclaimer {
  text-align: center;
  margin-top: 40px;
  font-style: italic;
  font-size: 1em;
  color: #555555;
}

/* Promotions Section */
.page-download__promotions {
  padding: 60px 20px;
}

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

.page-download__promo-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: #ffffff;
}

.page-download__promo-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-download__promo-title {
  font-size: 1.6em;
  margin-bottom: 10px;
  color: #FFFF00;
}

.page-download__promo-text {
  font-size: 1.1em;
  color: #f0f0f0;
}

/* FAQ Section */
.page-download__faq-section {
  padding: 60px 20px;
}

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

.page-download__faq-item {
  background-color: #f0f0f0;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: #333333;
}

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #e8e8e8;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
}

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

.page-download__faq-title {
  font-size: 1.3em;
  margin: 0;
  color: #017439;
}

.page-download__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #017439;
  transition: transform 0.3s ease;
}

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

.page-download__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.0s ease, padding 0.0s ease; /* Set to 0s for immediate collapse on toggle, JS will handle smooth transition to max-height */
  background-color: #ffffff;
  color: #555555;
}

.page-download__faq-item.active .page-download__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show all content */
  padding: 20px !important;
  transition: max-height 0.5s ease, padding 0.5s ease;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-download__hero-title {
    font-size: 2.8em;
  }
  .page-download__section-title {
    font-size: 2em;
  }
  .page-download__hero-image {
    width: 80%;
  }
}

@media (max-width: 768px) {
  .page-download {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-download__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

  .page-download__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-download__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
  }

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

  .page-download__btn-primary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-download__hero-image-wrapper,
  .page-download__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-download__hero-image,
  .page-download__feature-icon,
  .page-download__qr-code,
  .page-download__security-icon,
  .page-download__promo-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-download__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-download__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-download__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-download__subsection-title {
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-download__feature-grid,
  .page-download__requirements-grid,
  .page-download__security-features,
  .page-download__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-download__feature-card,
  .page-download__requirement-item,
  .page-download__security-card,
  .page-download__promo-card,
  .page-download__list-item,
  .page-download__faq-item,
  .page-download__cta-section {
    padding: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-left: auto;
    margin-right: auto;
  }

  .page-download__container {
    padding: 0 15px;
  }
  
  .page-download__faq-question,
  .page-download__faq-answer {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .page-download__faq-item.active .page-download__faq-answer {
    padding: 15px !important;
  }
  .page-download__faq-title {
    font-size: 1.1em;
  }
}

@media (max-width: 480px) {
  .page-download__hero-title {
    font-size: 1.8em;
  }
  .page-download__section-title {
    font-size: 1.6em;
  }
  .page-download__hero-description {
    font-size: 0.95em;
  }
  .page-download__btn-primary {
    font-size: 0.9em;
  }
}