/* style/download.css */

/* Base styles for the page, ensuring light text on dark background */
.page-download {
  font-family: 'Arial', sans-serif;
  color: #F3F8FF; /* Text Main */
  background-color: var(--deep-navy-color); /* From shared.css, which is #08162B */
  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;
  text-align: center;
}

.page-download__section-title {
  font-size: clamp(2em, 5vw, 2.8em);
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-download__sub-title {
  font-size: clamp(1.5em, 4vw, 2.2em);
  color: #F3F8FF; /* Text Main */
  margin-top: 40px;
  margin-bottom: 25px;
  font-weight: 600;
}

.page-download__text-block {
  font-size: 1.1em;
  color: #AFC4E8; /* Text Secondary */
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-download__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* body handles padding-top, this is for visual spacing */
  overflow: hidden;
}

.page-download__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height of hero image */
  overflow: hidden;
}

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

.page-download__hero-content {
  position: relative; /* Ensure content is above any background elements */
  z-index: 2;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Pull content up slightly over the image */
  background: rgba(8, 22, 43, 0.8); /* Deep Navy with transparency */
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.page-download__main-title {
  font-size: clamp(2.5em, 6vw, 3.5em); /* Use clamp for H1 */
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.1;
}

.page-download__description {
  font-size: 1.2em;
  color: #AFC4E8; /* Text Secondary */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-download__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-download__btn-primary,
.page-download__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  font-size: 1.1em;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 200px;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-download__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); /* Button color */
  color: #F3F8FF; /* Text Main */
  border: none;
  box-shadow: 0 4px 15px rgba(17, 68, 166, 0.4);
}

.page-download__btn-primary:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  transform: translateY(-2px);
}

.page-download__btn-secondary {
  background: #10233F; /* Card BG */
  color: #F2C14E; /* Gold */
  border: 2px solid #244D84; /* Border */
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.page-download__btn-secondary:hover {
  background: #244D84; /* Border */
  color: #F3F8FF; /* Text Main */
  transform: translateY(-2px);
}

/* Why Download Section */
.page-download__why-download-section {
  background-color: #08162B; /* Deep Navy */
}

.page-download__feature-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 30px auto;
  max-width: 900px;
  text-align: left;
}

.page-download__feature-item {
  background: #10233F; /* Card BG */
  border: 1px solid #244D84; /* Border */
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #AFC4E8; /* Text Secondary */
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.page-download__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.page-download__feature-item strong {
  color: #F3F8FF; /* Text Main */
  font-weight: 700;
}

/* How to Download Section */
.page-download__how-to-download-section {
  background-color: #08162B; /* Deep Navy */
}

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

@media (min-width: 768px) {
  .page-download__download-steps {
    grid-template-columns: 1fr 1fr;
  }
}

.page-download__platform-guide {
  background: #10233F; /* Card BG */
  border: 1px solid #244D84; /* Border */
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.page-download__image-wrapper {
  margin-bottom: 25px;
}

.page-download__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

.page-download__step-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
  text-align: left;
  counter-reset: step-counter;
}

.page-download__step-item {
  font-size: 1.05em;
  color: #AFC4E8; /* Text Secondary */
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
}

.page-download__step-item::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  background: #F2C14E; /* Gold */
  color: #08162B; /* Deep Navy for contrast */
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9em;
  position: absolute;
  left: 0;
  top: 0;
}

.page-download__qr-code-wrapper {
  margin-top: 30px;
  margin-bottom: 20px;
}

.page-download__qr-code {
  max-width: 250px;
  height: auto;
  border: 5px solid #F3F8FF; /* Text Main */
  border-radius: 10px;
  min-width: 200px;
  min-height: 200px;
  object-fit: contain;
}

.page-download__qr-text {
  color: #AFC4E8; /* Text Secondary */
  font-size: 0.95em;
  margin-top: 15px;
}

.page-download__btn-block {
  width: calc(100% - 30px); /* Adjust for padding in platform guide */
  margin: 0 auto;
  display: block;
}

/* Features Section */
.page-download__features-section {
  background-color: #08162B; /* Deep Navy */
}

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

.page-download__feature-card {
  background: #10233F; /* Card BG */
  border: 1px solid #244D84; /* Border */
  border-radius: 15px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.page-download__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}

.page-download__feature-card-title {
  font-size: 1.4em;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
  font-weight: 700;
}

.page-download__feature-card-text {
  font-size: 1em;
  color: #AFC4E8; /* Text Secondary */
  line-height: 1.5;
}

.page-download__features-image-wrapper {
  margin-top: 40px;
  padding: 0 20px; /* Ensure image fits container */
}

/* Security Section */
.page-download__security-section {
  background-color: #08162B; /* Deep Navy */
}

.page-download__security-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 30px auto;
  max-width: 900px;
  text-align: left;
}

.page-download__security-item {
  background: #10233F; /* Card BG */
  border: 1px solid #244D84; /* Border */
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #AFC4E8; /* Text Secondary */
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.page-download__security-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.page-download__security-item strong {
  color: #F3F8FF; /* Text Main */
  font-weight: 700;
}

.page-download__security-image-wrapper {
  margin-top: 40px;
  padding: 0 20px; /* Ensure image fits container */
}

/* FAQ Section */
.page-download__faq-section {
  background-color: #08162B; /* Deep Navy */
}

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

.page-download__faq-item {
  background: #10233F; /* Card BG */
  border: 1px solid #244D84; /* Border */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: 600;
  color: #F3F8FF; /* Text Main */
  cursor: pointer;
  background: #113B7A; /* Primary color */
  transition: background-color 0.3s ease;
  user-select: none;
  list-style: none;
}

.page-download__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-download__faq-item summary::marker {
  display: none;
}

.page-download__faq-question:hover {
  background-color: #1D5FD1; /* Auxiliary color */
}

.page-download__faq-toggle {
  font-size: 1.5em;
  font-weight: 700;
  color: #F2C14E; /* Gold */
  margin-left: 15px;
}

.page-download__faq-item[open] .page-download__faq-toggle {
  content: '−'; /* Changed by JS, or browser for <details> */
}

.page-download__faq-answer {
  padding: 20px;
  padding-top: 0;
  font-size: 1.05em;
  color: #AFC4E8; /* Text Secondary */
  line-height: 1.6;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
  .page-download {
    font-size: 15px;
    line-height: 1.5;
  }

  .page-download__container,
  .page-download__hero-section,
  .page-download__why-download-section,
  .page-download__how-to-download-section,
  .page-download__features-section,
  .page-download__security-section,
  .page-download__faq-section,
  .page-download__cta-final-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-download__hero-content {
    padding: 30px 15px;
    margin-top: -80px;
  }

  .page-download__main-title {
    font-size: clamp(2em, 8vw, 2.5em);
  }

  .page-download__description {
    font-size: 1em;
  }

  .page-download__section-title {
    font-size: clamp(1.8em, 7vw, 2.2em);
  }

  .page-download__sub-title {
    font-size: clamp(1.4em, 6vw, 1.8em);
  }

  .page-download__cta-buttons {
    flex-direction: column;
    gap: 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;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
  }

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

  .page-download__image-wrapper,
  .page-download__hero-image-wrapper,
  .page-download__qr-code-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-download__qr-code {
    max-width: 200px !important;
    height: auto !important;
  }

  .page-download__feature-card,
  .page-download__security-item,
  .page-download__faq-item {
    padding: 15px;
  }

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

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

@media (max-width: 480px) {
  .page-download__hero-content {
    margin-top: -60px;
    padding: 20px 10px;
  }

  .page-download__main-title {
    font-size: clamp(1.8em, 9vw, 2.2em);
  }

  .page-download__description {
    font-size: 0.95em;
  }

  .page-download__section-title {
    font-size: clamp(1.6em, 8vw, 2em);
  }

  .page-download__sub-title {
    font-size: clamp(1.2em, 7vw, 1.6em);
  }
}