.page-download {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
}

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

/* Hero Section */
.page-download__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-download__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  position: relative;
}

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

.page-download__hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Pull content up slightly over image for visual flow */
  background: rgba(8, 22, 15, 0.8); /* Background with transparency for readability */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-download__description {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

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

.page-download__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-download__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6; /* Text Main */
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-download__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-download__btn-secondary {
  background: transparent;
  color: #F2C14E; /* Gold */
  border: 2px solid #F2C14E; /* Gold */
}

.page-download__btn-secondary:hover {
  background: rgba(242, 193, 78, 0.1);
  transform: translateY(-3px);
}

/* General Section Styling */
.page-download__section-title {
  font-size: 2.5em;
  color: #F2C14E; /* Gold */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-download__section-intro {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-download__dark-section {
  background-color: #11271B; /* Card BG */
  padding: 60px 0;
}

/* Why Download Section */
.page-download__why-download-section {
  padding: 60px 0;
  background-color: #08160F; /* Background */
}

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

.page-download__benefit-card {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  border: 1px solid #2E7A4E; /* Border */
}

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

.page-download__benefit-card img {
  width: 100%;
  height: auto;
  max-width: 250px;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-download__card-title {
  font-size: 1.5em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
}

.page-download__benefit-card p {
  color: #A7D9B8; /* Text Secondary */
}

/* App Features Section */
.page-download__app-features-section {
  padding-bottom: 60px;
}

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

.page-download__feature-item {
  background-color: #0A4B2C; /* Deep Green */
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  border-left: 5px solid #2AD16F;
}

.page-download__feature-title {
  font-size: 1.4em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
}

.page-download__feature-item p {
  color: #A7D9B8; /* Text Secondary */
}

.page-download__app-showcase {
  text-align: center;
}

.page-download__app-showcase img {
  width: 100%;
  max-width: 700px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border: 2px solid #2E7A4E; /* Border */
}

/* How To Download Section */
.page-download__how-to-download-section {
  padding: 60px 0;
  background-color: #08160F; /* Background */
}

.page-download__download-platform {
  margin-bottom: 50px;
  background-color: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  border: 1px solid #2E7A4E; /* Border */
}

.page-download__platform-title {
  font-size: 2em;
  color: #F2C14E; /* Gold */
  text-align: center;
  margin-bottom: 30px;
}

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

.page-download__qr-code-wrapper {
  text-align: center;
  flex-shrink: 0;
}

.page-download__qr-code-wrapper img {
  width: 250px;
  height: 250px;
  border: 5px solid #F2FFF6; /* Text Main */
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: block;
}

.page-download__qr-label {
  color: #A7D9B8; /* Text Secondary */
  margin-top: 10px;
  font-size: 0.9em;
}

.page-download__instructions {
  flex-grow: 1;
  max-width: 600px;
}

.page-download__instructions ol {
  list-style-type: decimal;
  padding-left: 25px;
  margin-bottom: 30px;
  color: #F2FFF6; /* Text Main */
}

.page-download__instructions ol li {
  margin-bottom: 10px;
}

.page-download__instructions strong {
  color: #F2C14E; /* Gold */
}

.page-download__important-note {
  background-color: #0A4B2C; /* Deep Green */
  color: #F2FFF6; /* Text Main */
  padding: 20px;
  border-radius: 8px;
  margin-top: 50px;
  text-align: center;
  border: 1px solid #2E7A4E; /* Border */
}

/* System Requirements Section */
.page-download__system-requirements-section {
  padding-bottom: 60px;
}

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

.page-download__requirement-card {
  background-color: #0A4B2C; /* Deep Green */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border */
}

.page-download__requirement-card ul {
  list-style: none;
  padding: 0;
}

.page-download__requirement-card li {
  margin-bottom: 10px;
  color: #F2FFF6; /* Text Main */
}

.page-download__requirement-card strong {
  color: #F2C14E; /* Gold */
}

.page-download__performance-tip {
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  margin-top: 40px;
  font-style: italic;
}

/* FAQ Section */
.page-download__faq-section {
  padding: 60px 0;
  background-color: #08160F; /* Background */
}

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

.page-download__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #F2FFF6; /* Text Main */
}

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #F2C14E; /* Gold */
  background-color: #0A4B2C; /* Deep Green */
  border-bottom: 1px solid #2E7A4E; /* Border */
}

.page-download__faq-item[open] .page-download__faq-question {
  border-bottom: 1px solid #2E7A4E; /* Border */
}

.page-download__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-download__faq-item[open] .page-download__faq-toggle {
  transform: rotate(45deg);
}

.page-download__faq-answer {
  padding: 20px;
  color: #A7D9B8; /* Text Secondary */
}

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

/* Final CTA Section */
.page-download__cta-final-section {
  padding-top: 60px;
  padding-bottom: 60px;
  text-align: center;
}

.page-download__cta-final-section .page-download__description {
  margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-download__hero-content {
    margin-top: -50px;
    padding: 30px 20px;
  }
  .page-download__main-title {
    font-size: clamp(1.8em, 4.5vw, 3em);
  }
  .page-download__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-download__hero-section {
    padding-bottom: 40px;
  }
  .page-download__hero-content {
    margin-top: 0;
    padding: 20px;
    background: rgba(8, 22, 15, 0.95); /* More opaque on mobile */
  }
  .page-download__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-download__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
  }

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

  .page-download__hero-image,
  .page-download__benefit-card img,
  .page-download__app-showcase img,
  .page-download__qr-code-wrapper img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

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

  .page-download__section-intro {
    margin-bottom: 30px;
  }

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

  .page-download__platform-content {
    flex-direction: column;
    gap: 20px;
  }

  .page-download__qr-code-wrapper img {
    width: 200px;
    height: 200px;
  }

  .page-download__instructions {
    order: 2; /* Put instructions below QR on mobile */
  }

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

  /* Ensure all containers and sections handle overflow for buttons, images, videos */
  .page-download__hero-section,
  .page-download__why-download-section,
  .page-download__app-features-section,
  .page-download__how-to-download-section,
  .page-download__system-requirements-section,
  .page-download__faq-section,
  .page-download__cta-final-section,
  .page-download__download-platform,
  .page-download__benefit-card,
  .page-download__feature-item,
  .page-download__requirement-card,
  .page-download__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }

  .page-download__video-section {
    padding-top: 10px !important;
  }
}

@media (max-width: 480px) {
  .page-download__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em);
  }
  .page-download__section-title {
    font-size: 1.8em;
  }
  .page-download__description,
  .page-download__section-intro {
    font-size: 1em;
  }
}