/* style/download.css */
.page-download {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #111111; /* Inherited from body, but ensure consistency */
}

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

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

.page-download__dark-section {
  background-color: #111111;
  color: #ffffff;
}

.page-download__light-bg {
  background-color: #ffffff;
  color: #333333;
}

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

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

/* Hero Section */
.page-download__hero-section {
  padding-top: 60px; /* Adjust if shared.css handles body padding-top for header offset */
  padding-bottom: 60px;
  text-align: center;
  background-color: #111111;
  position: relative;
  overflow: hidden;
}

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

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

.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;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-download__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

.page-download__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-download__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

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

.page-download__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
}

/* Feature Grid Section */
.page-download__features-section .page-download__section-description {
  color: #f0f0f0;
}

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

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

.page-download__card h3 {
  color: #26A9E0;
  font-size: 1.5em;
  margin-bottom: 15px;
}

.page-download__card p {
  color: #f0f0f0;
}

/* App Features Section */
.page-download__app-features-section {
  background-color: #0a0a0a;
}

.page-download__image-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  text-align: left;
  margin-top: 40px;
}

.page-download__image-wrapper {
  text-align: center;
}

.page-download__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
}

.page-download__feature-list {
  list-style: none;
  padding: 0;
}

.page-download__list-item {
  font-size: 1.1em;
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
  color: #f0f0f0;
}

.page-download__list-item::before {
  content: '✓';
  color: #26A9E0;
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* How to Download Section */
.page-download__how-to-download-section {
  background-color: #111111;
}

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

.page-download__download-method {
  text-align: center;
}

.page-download__method-title {
  color: #26A9E0;
  font-size: 1.8em;
  margin-bottom: 20px;
}

.page-download__qr-code {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
  border: 5px solid #ffffff;
  border-radius: 5px;
  width: 250px;
  height: 250px;
  object-fit: contain;
}

.page-download__method-text {
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* System Requirements Section */
.page-download__requirements-section {
  background-color: #0a0a0a;
}

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

.page-download__requirement-item {
  text-align: left;
}

.page-download__requirement-item h3 {
  color: #26A9E0;
}

.page-download__requirement-item p {
  color: #333333;
}

/* Security Section */
.page-download__security-section {
  background-color: #111111;
}

.page-download__security-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  text-align: left;
  margin-top: 40px;
}

.page-download__security-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
}

.page-download__security-list {
  list-style: none;
  padding: 0;
}

.page-download__security-list .page-download__list-item {
  font-size: 1.1em;
  margin-bottom: 15px;
  color: #f0f0f0;
}

/* FAQ Section */
.page-download__faq-section {
  background-color: #0a0a0a;
}

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

.page-download__faq-item {
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
}

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #26A9E0;
  color: #ffffff;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  border-radius: 10px;
}

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

.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;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: rgba(255, 255, 255, 0.1);
  color: #f0f0f0;
  text-align: left;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

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

.page-download__faq-answer p {
  margin: 0;
  color: #f0f0f0;
}

/* Final CTA Section */
.page-download__cta-final-section {
  background-color: #111111;
  padding-bottom: 80px;
}

.page-download__cta-final-section .page-download__section-description {
  color: #f0f0f0;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-download__hero-title {
    font-size: 2.5em;
  }
  .page-download__section-title {
    font-size: 2em;
  }
  .page-download__image-content-grid,
  .page-download__security-content {
    grid-template-columns: 1fr;
  }
  .page-download__content-block,
  .page-download__security-list {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-download__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-download__hero-title {
    font-size: 2em;
  }
  .page-download__hero-description,
  .page-download__section-description {
    font-size: 1em;
  }
  .page-download__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-download__btn-primary,
  .page-download__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-download__container {
    padding: 0 15px !important;
  }
  .page-download__section {
    padding: 40px 0;
  }
  .page-download__feature-grid,
  .page-download__download-methods,
  .page-download__requirements-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-download__image-content-grid .page-download__image-wrapper,
  .page-download__security-content .page-download__security-image {
    order: -1; /* Image above text on mobile */
  }
  /* Images responsive */
  .page-download img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-download__hero-image-wrapper,
  .page-download__image-wrapper,
  .page-download__download-method,
  .page-download__security-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-download__qr-code {
    width: 200px;
    height: 200px;
  }
  .page-download__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }
  .page-download__faq-answer {
    padding: 15px;
  }
}

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