/* style/download.css */
.page-download {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark background */
  background-color: var(--bg-dark); /* Inherited from shared.css, assumed dark */
}

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

/* Hero Section */
.page-download__hero-section {
  position: relative;
  padding: 80px 0 40px; /* Adjust top padding for header offset */
  padding-top: var(--header-offset, 120px); /* Ensure header offset */
  text-align: center;
  background-color: #017439; /* Primary brand color for hero background */
  color: #ffffff;
  overflow: hidden;
}

.page-download__main-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FFFF00; /* Register/Login font color for emphasis */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: bold;
}

.page-download__intro-text {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #ffffff;
}

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

.page-download__btn-primary,
.page-download__btn-secondary {
  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;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-download__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

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

.page-download__btn-secondary {
  background-color: #ffffff;
  color: #017439; /* Primary brand color */
  border: 2px solid #017439;
}

.page-download__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005a2d;
  border-color: #005a2d;
}

.page-download__hero-image-wrapper {
  margin-top: 30px;
}

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

/* General Section Styles */
.page-download__section-title {
  font-size: 2.2em;
  margin-bottom: 20px;
  text-align: center;
  font-weight: bold;
}

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

/* Why Download Section */
.page-download__why-download-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background */
  color: #333333; /* Dark text for light background */
}

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

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

.page-download__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-download__feature-icon {
  width: 200px; /* Min size */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

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

.page-download__feature-text {
  font-size: 1em;
  line-height: 1.7;
}

/* Download Guide Section */
.page-download__download-guide-section {
  padding: 80px 0;
  background-color: #017439; /* Primary brand color for dark background */
  color: #ffffff;
}

.page-download__platform-guide {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 40px;
}

.page-download__guide-card {
  background-color: #ffffff;
  color: #333333;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.page-download__guide-title {
  font-size: 1.8em;
  margin-bottom: 30px;
  color: #017439;
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: bold;
}

.page-download__platform-icon {
  width: 64px;
  height: 64px;
  min-width: 64px; /* Ensure icon is not too small */
  min-height: 64px;
  border-radius: 50%;
  object-fit: contain;
  background-color: #f0f0f0;
  padding: 5px;
}

.page-download__guide-steps {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-download__step-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  font-size: 1.1em;
  line-height: 1.7;
}

.page-download__step-number {
  font-size: 1.5em;
  font-weight: bold;
  color: #C30808; /* Register/Login color for step numbers */
  margin-right: 15px;
  flex-shrink: 0;
}

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

.page-download__qr-code {
  width: 250px;
  height: 250px;
  max-width: 100%;
  height: auto;
  border: 5px solid #017439;
  border-radius: 8px;
}

.page-download__btn-platform {
  width: fit-content;
  margin: 0 auto;
  display: block;
}

/* Features Showcase Section */
.page-download__features-showcase-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background */
  color: #333333; /* Dark text for light background */
}

.page-download__features-list {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.page-download__feature-item-large {
  display: flex;
  align-items: center;
  gap: 40px;
  background-color: #ffffff;
  color: #333333;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-download__feature-item-large.page-download__feature-item-reverse {
  flex-direction: row-reverse;
}

.page-download__feature-image-large {
  width: 50%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Minimum size */
  min-height: 200px;
  object-fit: cover;
}

.page-download__feature-content {
  width: 50%;
}

/* FAQ Section */
.page-download__faq-section {
  padding: 80px 0;
  background-color: #017439; /* Primary brand color for dark background */
  color: #ffffff;
}

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

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

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #f5f5f5;
  color: #017439;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-download__faq-question::-webkit-details-marker {
  display: none; /* For details/summary */
}

.page-download__faq-item[open] .page-download__faq-question {
  background-color: #e0e0e0;
  color: #005a2d;
}

.page-download__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #017439;
  margin-left: 15px;
}

.page-download__faq-item[open] .page-download__faq-toggle {
  color: #C30808;
}

.page-download__faq-answer {
  padding: 20px 25px;
  font-size: 1.1em;
  line-height: 1.7;
  color: #333333;
  background-color: #ffffff;
}

/* Conclusion Section */
.page-download__conclusion-section {
  padding: 80px 0;
  text-align: center;
  background-color: #ffffff; /* Light background */
  color: #333333; /* Dark text for light background */
}

.page-download__btn-register {
  background-color: #C30808; /* Register color */
  color: #FFFF00; /* Register font color */
  border: 2px solid #C30808;
}

.page-download__btn-login {
  background-color: #017439; /* Primary brand color */
  color: #ffffff;
  border: 2px solid #017439;
}

.page-download__btn-login:hover {
  background-color: #005a2d;
  border-color: #005a2d;
}

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

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

  .page-download__feature-item-large {
    flex-direction: column;
    text-align: center;
  }

  .page-download__feature-item-large.page-download__feature-item-reverse {
    flex-direction: column;
  }

  .page-download__feature-image-large,
  .page-download__feature-content {
    width: 100%;
  }
}

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

  .page-download__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 30px;
  }

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

  .page-download__intro-text {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-download__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-download__btn-primary,
  .page-download__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

  .page-download__why-download-section,
  .page-download__download-guide-section,
  .page-download__features-showcase-section,
  .page-download__faq-section,
  .page-download__conclusion-section {
    padding: 50px 0;
  }

  .page-download__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-download__feature-icon {
    width: 150px;
    height: auto;
  }

  .page-download__guide-card {
    padding: 30px 20px;
  }

  .page-download__platform-guide {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-download__guide-title {
    font-size: 1.5em;
    margin-bottom: 20px;
    flex-wrap: wrap;
  }

  .page-download__platform-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
  }

  .page-download__step-item {
    font-size: 1em;
  }

  .page-download__qr-code {
    width: 200px;
    height: 200px;
  }

  .page-download__feature-item-large {
    padding: 20px;
  }

  .page-download__feature-image-large {
    min-width: 200px !important;
    min-height: 200px !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-download__feature-content {
    width: 100%;
  }

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

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

  /* Ensure all images are responsive */
  .page-download img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-download__section,
  .page-download__card,
  .page-download__container,
  .page-download__hero-section,
  .page-download__why-download-section,
  .page-download__download-guide-section,
  .page-download__features-showcase-section,
  .page-download__faq-section,
  .page-download__conclusion-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-download__platform-guide .page-download__guide-card {
    max-width: 100% !important;
    width: 100% !important;
  }
}