.page-download {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Inherited from body via shared.css */
}

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

.page-download__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure spacing below fixed header */
  background-color: #017439; /* Brand green for hero */
  color: #ffffff;
  overflow: hidden;
}

.page-download__hero-content {
  max-width: 800px;
  z-index: 1;
}

.page-download__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
}

.page-download__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  line-height: 1.8;
}

.page-download__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  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, transform 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

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

.page-download__hero-image-wrapper {
  position: absolute;
  bottom: -50px; /* Adjust as needed */
  right: -100px; /* Adjust as needed */
  opacity: 0.3;
  z-index: 0;
  max-width: 600px; /* Limit size of overlay image */
  height: auto;
}

.page-download__hero-image {
  width: 100%;
  height: auto;
  display: block;
}

.page-download__section {
  padding: 60px 0;
  text-align: center;
}

.page-download__section-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: bold;
}

.page-download__section-description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

.page-download__why-download {
  background-color: #1a1a1a;
}

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

.page-download__feature-item {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white on dark background */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: #ffffff;
}

.page-download__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
  min-width: 200px;
  min-height: 200px;
}

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

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

.page-download__download-guide {
  background-color: #0d0d0d;
}

.page-download__guide-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  margin-top: 40px;
}

.page-download__guide-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 35px;
  border-radius: 15px;
  text-align: left;
  flex: 1;
  min-width: 300px;
  max-width: 550px;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-download__guide-subtitle {
  font-size: 2em;
  margin-bottom: 25px;
  color: #FFFF00; /* Highlight color for subtitles */
  font-weight: bold;
}

.page-download__guide-list {
  list-style-type: decimal;
  padding-left: 25px;
  margin-bottom: 30px;
  color: #e0e0e0;
}

.page-download__guide-list li {
  margin-bottom: 15px;
  font-size: 1.05em;
}

.page-download__step-highlight {
  color: #017439;
}

.page-download__guide-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 20px;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-download__qr-section {
  margin-top: 60px;
  padding: 40px;
  background-color: rgba(1, 116, 57, 0.2); /* Semi-transparent brand green */
  border-radius: 15px;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-download__qr-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-download__qr-image {
  width: 250px;
  height: 250px;
  display: block;
  margin: 0 auto 30px auto;
  border: 5px solid #ffffff;
  border-radius: 8px;
  min-width: 200px;
  min-height: 200px;
}

.page-download__qr-button {
  margin-top: 20px;
}

.page-download__features {
  background-color: #017439; /* Brand green for features section */
  color: #ffffff;
}

.page-download__features .page-download__section-title {
  color: #ffffff;
}

.page-download__features .page-download__section-description {
  color: #f0f0f0;
}

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

.page-download__feature-card {
  background-color: rgba(255, 255, 255, 0.15);
  padding: 30px;
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-download__feature-card-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #FFFF00; /* Highlight color */
  font-weight: bold;
}

.page-download__feature-card-text {
  font-size: 1em;
  margin-bottom: 20px;
  color: #e0e0e0;
}

.page-download__feature-card-link {
  color: #ffffff;
  text-decoration: underline;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-download__feature-card-link:hover {
  color: #FFFF00;
}

.page-download__security {
  background-color: #1a1a1a;
}

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

.page-download__security-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: #ffffff;
}

.page-download__security-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
  min-width: 200px;
  min-height: 200px;
}

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

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

.page-download__faq {
  background-color: #0d0d0d;
}

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

.page-download__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease;
}

.page-download__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

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

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

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

.page-download__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #e0e0e0;
}

.page-download__faq-item.active .page-download__faq-answer {
  max-height: 1000px !important; /* Sufficiently large for content */
  padding: 20px 25px;
}

.page-download__faq-text {
  margin-bottom: 0;
  font-size: 1.05em;
}

.page-download__cta-bottom {
  background-color: #ffffff; /* Light background for contrast */
  color: #333333;
  padding: 80px 20px;
}

.page-download__cta-bottom .page-download__section-title {
  color: #333333;
}

.page-download__cta-bottom .page-download__section-description {
  color: #555555;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-download__hero-title {
    font-size: 3em;
  }

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

@media (max-width: 768px) {
  .page-download__hero-section {
    flex-direction: column;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

  .page-download__hero-title {
    font-size: 2.5em;
  }

  .page-download__hero-description {
    font-size: 1em;
  }

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

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

  .page-download__hero-image-wrapper {
    position: static;
    opacity: 0.5;
    margin-top: 30px;
    max-width: 80% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-download__section {
    padding: 40px 0;
  }

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

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

  .page-download__features-grid,
  .page-download__grid-layout,
  .page-download__security-points {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-download__feature-item,
  .page-download__guide-card,
  .page-download__feature-card,
  .page-download__security-item,
  .page-download__qr-section {
    padding: 25px;
  }

  .page-download__guide-subtitle,
  .page-download__feature-card-title,
  .page-download__security-item-title {
    font-size: 1.5em;
  }

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

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

  .page-download__faq-answer {
    padding: 15px 20px;
  }

  /* Force responsive for all images and containers */
  .page-download img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-download__container,
  .page-download__section,
  .page-download__guide-card,
  .page-download__feature-item,
  .page-download__feature-card,
  .page-download__security-item,
  .page-download__qr-section,
  .page-download__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-download__cta-bottom {
    padding: 50px 20px;
  }

  .page-download__faq-list {
    margin-left: 15px;
    margin-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-download__hero-title {
    font-size: 2em;
  }

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

  .page-download__guide-subtitle,
  .page-download__feature-card-title,
  .page-download__security-item-title {
    font-size: 1.3em;
  }

  .page-download__faq-question {
    font-size: 1em;
  }
}