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

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

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

.page-download__text-block {
  font-size: 1.1em;
  line-height: 1.6;
  color: #f0f0f0;
  margin-bottom: 20px;
  text-align: center;
}

.page-download__btn-primary {
  display: inline-block;
  background: #017439;
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1.1em;
}

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

.page-download__btn-large {
  font-size: 1.3em;
  padding: 18px 35px;
}

/* Section Backgrounds */
.page-download__dark-bg {
  background-color: #017439;
  color: #ffffff;
  padding: 80px 0;
}

.page-download__light-bg {
  background-color: #ffffff;
  color: #333333;
  padding: 80px 0;
}

.page-download__light-bg .page-download__section-title,
.page-download__light-bg .page-download__text-block,
.page-download__light-bg .page-download__reason-title,
.page-download__light-bg .page-download__reason-description,
.page-download__light-bg .page-download__guide-step-title,
.page-download__light-bg .page-download__qr-code-text,
.page-download__light-bg .page-download__feature-title,
.page-download__light-bg .page-download__feature-description,
.page-download__light-bg .page-download__faq-question span,
.page-download__light-bg .page-download__faq-answer p {
  color: #333333;
}

/* Hero Section */
.page-download__hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 70vh;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #017439, #004d26);
}

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

.page-download__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  color: #FFFF00; /* Custom color for hero title */
}

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

.page-download__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.15;
  overflow: hidden;
}

.page-download__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Introduction Section */
.page-download__introduction-section .page-download__text-block {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-download__reason-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease;
}

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

.page-download__reason-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #FFFF00; /* Custom color for reason titles */
}

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

/* Guide Section */
.page-download__guide-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-download__guide-item {
  margin-bottom: 30px;
  padding-left: 20px;
  position: relative;
}

.page-download__guide-item::before {
  content: ' ';
  position: absolute;
  left: 0;
  top: 5px;
  width: 10px;
  height: 10px;
  background-color: #017439;
  border-radius: 50%;
}

.page-download__guide-step-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #017439; /* Brand color for guide titles */
}

.page-download__qr-code-wrapper {
  text-align: center;
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.page-download__qr-code-image {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  margin-bottom: 15px;
}

.page-download__qr-code-text {
  font-size: 1.1em;
  font-weight: bold;
  color: #333333;
}

.page-download__btn-bottom {
  margin-top: 30px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* Video Section */
.page-download__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 10px;
  margin: 0 auto 30px auto;
}

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

.page-download__video-description {
  text-align: center;
  font-size: 1.1em;
  color: #f0f0f0;
  margin-top: 20px;
}

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

.page-download__feature-card {
  background-color: #f8f8f8;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

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

.page-download__feature-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

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

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

/* Security Section */
.page-download__security-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-download__security-image {
  max-width: 45%;
  height: auto;
  border-radius: 10px;
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

.page-download__security-text {
  flex: 1;
  text-align: left;
}

.page-download__security-text .page-download__text-block {
  text-align: left;
}

/* FAQ Section */
.page-download__faq-list {
  max-width: 800px;
  margin: 40px auto 0 auto;
}

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

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  background-color: #e0e0e0;
  font-weight: bold;
  color: #333333;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

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

.page-download__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  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;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 25px;
}

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

.page-download__faq-answer p {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
}

/* CTA Section */
.page-download__cta-section {
  text-align: center;
}

.page-download__cta-section .page-download__btn-primary {
  margin-top: 30px;
}

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

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

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

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

  .page-download__qr-code-wrapper {
    order: -1; /* Move QR code to top on smaller screens */
    margin-bottom: 30px;
  }

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

  .page-download__security-image {
    max-width: 80%;
  }

  .page-download__security-text {
    text-align: center;
  }

  .page-download__security-text .page-download__text-block {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-download__hero-section {
    min-height: 60vh;
    padding: 60px 20px;
  }

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

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

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

  .page-download__text-block {
    font-size: 1em;
    line-height: 1.5;
  }

  .page-download__dark-bg, .page-download__light-bg {
    padding: 60px 0;
  }

  .page-download__container {
    padding: 0 15px !important;
  }

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

  .page-download__section,
  .page-download__card,
  .page-download__container,
  .page-download__video-section,
  .page-download__video-container,
  .page-download__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

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

  .page-download__cta-button,
  .page-download__btn-primary,
  .page-download__btn-secondary,
  .page-download a[class*="button"],
  .page-download a[class*="btn"] {
    max-width: 100% !important;
    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__cta-buttons,
  .page-download__button-group,
  .page-download__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column;
  }

  .page-download__hero-section .page-download__btn-primary {
    width: auto;
  }

  .page-download__btn-bottom {
    width: 100%;
    max-width: 300px; /* Limit width for larger buttons on mobile */
    margin-left: auto;
    margin-right: auto;
  }

  .page-download__security-image {
    max-width: 100%;
  }
}