/* Base styles for the download page */
.page-download {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF3E6; /* Text Main from custom palette, suitable for dark background */
  background-color: #0D0E12; /* Background from custom palette */
}

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

.page-download__section-title {
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #FFB04D; /* Glow from custom palette */
  line-height: 1.2;
}

.page-download__description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 30px;
  color: #FFF3E6;
}

/* Hero Section */
.page-download__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  text-align: center;
  background: linear-gradient(180deg, #0D0E12 0%, #17191F 100%); /* Blend background and card BG */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-download__hero-image-wrapper {
  margin-bottom: 30px;
  width: 100%;
  max-width: 800px; /* Max width for hero image */
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

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

.page-download__main-title {
  font-size: 48px;
  font-weight: 700;
  color: #FFA53A; /* Auxiliary color */
  margin-bottom: 20px;
  line-height: 1.2;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-download__hero-content .page-download__description {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-download__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.page-download__btn-primary,
.page-download__btn-secondary,
.page-download a[class*="button"],
.page-download a[class*="btn"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  min-width: 200px;
}

.page-download__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Custom button color */
  color: #FFF3E6;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 165, 58, 0.4);
}

.page-download__btn-primary:hover {
  background: linear-gradient(180deg, #D96800 0%, #FFA53A 100%);
  box-shadow: 0 6px 20px rgba(255, 165, 58, 0.6);
}

.page-download__btn-secondary {
  background: transparent;
  color: #FFA53A;
  border: 2px solid #FFA53A;
  box-shadow: 0 4px 10px rgba(255, 165, 58, 0.2);
}

.page-download__btn-secondary:hover {
  background: #FFA53A;
  color: #0D0E12;
  box-shadow: 0 6px 15px rgba(255, 165, 58, 0.4);
}

/* Why Download Section */
.page-download__why-download-section {
  padding: 80px 0;
  background-color: #17191F; /* Card BG from custom palette */
  color: #FFF3E6;
}

.page-download__why-download-section .page-download__section-title {
  color: #FFA53A;
}

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

.page-download__feature-item {
  background-color: #0D0E12; /* Background from custom palette */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #A84F0C; /* Border from custom palette */
}

.page-download__feature-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFB04D;
}

.page-download__feature-item p {
  font-size: 16px;
  color: #FFF3E6;
}

/* How to Download Section */
.page-download__how-to-download-section {
  padding: 80px 0;
  background-color: #0D0E12; /* Background from custom palette */
  color: #FFF3E6;
}

.page-download__how-to-download-section .page-download__section-title {
  color: #FFB04D;
}

.page-download__download-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.page-download__download-platform {
  background-color: #17191F; /* Card BG from custom palette */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #A84F0C;
  text-align: center;
}

.page-download__platform-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 25px;
  color: #FFA53A;
}

.page-download__platform-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
  margin: 0 auto 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-download__step-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  text-align: left;
  font-size: 16px;
  color: #FFF3E6;
}

.page-download__step-list li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.page-download__step-list li::before {
  content: '✓';
  color: #FFA53A;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-download__btn-download-android,
.page-download__btn-download-ios {
  margin-top: 20px;
  width: 100%;
  max-width: 250px;
}

/* App Features Section */
.page-download__app-features-section {
  padding: 80px 0;
  background-color: #17191F; /* Card BG from custom palette */
  color: #FFF3E6;
}

.page-download__app-features-section .page-download__section-title {
  color: #FFA53A;
}

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

.page-download__feature-card {
  background-color: #0D0E12; /* Background from custom palette */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #A84F0C;
}

.page-download__feature-card-icon {
  width: 100%;
  max-width: 200px;
  height: auto;
  display: block;
  margin: 0 auto 20px;
  border-radius: 8px;
}

.page-download__feature-card-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FFB04D;
}

.page-download__feature-card p {
  font-size: 16px;
  color: #FFF3E6;
}

/* Security Section */
.page-download__security-section {
  padding: 80px 0;
  background-color: #0D0E12; /* Background from custom palette */
  color: #FFF3E6;
}

.page-download__security-section .page-download__section-title {
  color: #FFB04D;
}

.page-download__security-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-download__security-image {
  flex: 1;
  min-width: 300px;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-download__security-text {
  flex: 2;
  min-width: 300px;
}

.page-download__security-text p {
  font-size: 17px;
  margin-bottom: 20px;
  color: #FFF3E6;
}

.page-download__security-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-download__security-list li {
  font-size: 16px;
  margin-bottom: 10px;
  position: relative;
  padding-left: 30px;
  color: #FFF3E6;
}

.page-download__security-list li strong {
  color: #FFA53A;
}

.page-download__security-list li::before {
  content: '🛡️'; /* Shield emoji */
  position: absolute;
  left: 0;
  font-size: 20px;
  line-height: 1;
}

/* FAQ Section */
.page-download__faq-section {
  padding: 80px 0;
  background-color: #17191F; /* Card BG from custom palette */
  color: #FFF3E6;
}

.page-download__faq-section .page-download__section-title {
  color: #FFA53A;
}

details.page-download__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #A84F0C; /* Border from custom palette */
  overflow: hidden;
  background: #0D0E12; /* Background from custom palette */
}
details.page-download__faq-item summary.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-download__faq-item summary.page-download__faq-question::-webkit-details-marker {
  display: none;
}
details.page-download__faq-item summary.page-download__faq-question:hover {
  background: rgba(255, 165, 58, 0.1);
}
.page-download__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF3E6;
}
.page-download__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFA53A;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-download__faq-item .page-download__faq-answer {
  padding: 0 20px 20px;
  background: #17191F; /* Card BG from custom palette */
  border-radius: 0 0 10px 10px;
  color: #FFF3E6;
}

/* Final CTA Section */
.page-download__cta-final-section {
  padding: 80px 0;
  text-align: center;
  background-color: #0D0E12; /* Background from custom palette */
  color: #FFF3E6;
}

.page-download__cta-final-section .page-download__section-title {
  color: #FFB04D;
}

.page-download__btn-final-download {
  margin-top: 30px;
  font-size: 20px;
  padding: 18px 40px;
}

/* --- Responsive Styles --- */

/* General Mobile Adaptations */
@media (max-width: 768px) {
  .page-download__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

  .page-download__main-title {
    font-size: 36px;
    line-height: 1.3;
  }

  .page-download__description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-download__hero-section {
    padding-bottom: 40px;
  }

  .page-download__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    padding: 0 15px;
  }

  .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;
    padding: 12px 20px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    min-width: unset;
  }

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

  .page-download__hero-image-wrapper,
  .page-download__download-platform,
  .page-download__feature-item,
  .page-download__feature-card,
  .page-download__security-image,
  .page-download__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  .page-download__why-download-section,
  .page-download__how-to-download-section,
  .page-download__app-features-section,
  .page-download__security-section,
  .page-download__faq-section,
  .page-download__cta-final-section {
    padding: 40px 0;
  }

  .page-download__grid-features,
  .page-download__download-steps,
  .page-download__features-grid,
  .page-download__security-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-download__download-platform {
    padding: 20px;
  }

  .page-download__platform-title {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .page-download__step-list {
    font-size: 15px;
  }

  .page-download__security-text p,
  .page-download__security-list li {
    font-size: 15px;
  }

  details.page-download__faq-item summary.page-download__faq-question {
    padding: 15px;
  }
  .page-download__faq-qtext {
    font-size: 16px;
  }
  details.page-download__faq-item .page-download__faq-answer {
    padding: 0 15px 15px;
  }
}