/* style/download.css */
.page-download {
  color: #ffffff; /* Body background is dark, so text should be light */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

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

.page-download__dark-bg {
  background-color: #1a1a2e; /* Matches shared body background */
  color: #ffffff;
}

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

/* Hero Section */
.page-download__hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensures content is not covered by fixed header */
  position: relative;
  overflow: hidden;
}

.page-download__hero-section .page-download__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap-reverse;
}

.page-download__hero-content {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.page-download__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #26A9E0;
  line-height: 1.2;
}

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

.page-download__hero-image-wrapper {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

/* Common Section Styles */
.page-download__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #26A9E0;
}

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

/* CTA Buttons */
.page-download__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  text-align: center;
}

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

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

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

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

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

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

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

.page-download__feature-icon {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
}

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

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

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

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

.page-download__content-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-download__content-subtitle {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-download__content-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* How to Download Section */
.page-download__download-steps {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.page-download__download-steps--reverse {
  flex-wrap: wrap-reverse;
}

.page-download__platform-guide {
  flex: 1;
  min-width: 300px;
}

.page-download__platform-title {
  font-size: 2em;
  color: #26A9E0;
  margin-bottom: 25px;
}

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

.page-download__step-list li {
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #333333;
  line-height: 1.5;
}

.page-download__step-list li strong {
  color: #26A9E0;
}

.page-download__platform-qr {
  flex: 1;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-download__qr-code-image {
  width: 100%;
  max-width: 250px;
  height: auto;
  border: 5px solid #26A9E0;
  border-radius: 10px;
  margin-bottom: 15px;
  object-fit: contain;
}

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

/* Installation Guide Section */
.page-download__troubleshooting-list {
  list-style: disc inside;
  padding-left: 20px;
  margin-top: 30px;
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-download__troubleshooting-list li {
  margin-bottom: 15px;
}

.page-download__troubleshooting-list li strong {
  color: #26A9E0;
}

.page-download__section-text {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 30px auto 0 auto;
  color: #f0f0f0;
}

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

.page-download__benefit-item {
  background-color: #f8f9fa;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  color: #333333;
  text-align: center;
}

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

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

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

.page-download__security-image {
  flex: 1;
  min-width: 300px;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.page-download__security-text-block {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.page-download__security-subtitle {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 15px;
  margin-top: 25px;
}

.page-download__security-subtitle:first-of-type {
  margin-top: 0;
}

.page-download__security-text {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0;
}

/* Final CTA Section */
.page-download__cta-final-wrapper {
  text-align: center;
  padding: 40px;
  background-color: #f8f9fa;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  color: #333333;
}

.page-download__cta-final-wrapper .page-download__section-title {
  color: #26A9E0;
}

.page-download__cta-final-wrapper .page-download__section-description {
  color: #555555;
  margin-bottom: 30px;
}

/* FAQ Section */
.page-download__faq-list {
  margin-top: 40px;
}

.page-download__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.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.05);
  transition: background-color 0.3s ease;
}

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

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

.page-download__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #26A9E0;
  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 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

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

.page-download__faq-answer p {
  margin-top: 0;
  margin-bottom: 15px;
  color: #f0f0f0;
}

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