/* style/download.css */
/* Body background is assumed to be dark from shared.css (var(--neon-dark-bg)) */
.page-download {
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Rely on body for main background */
}

.page-download h1, .page-download h2, .page-download h3, .page-download h4 {
  color: #ffffff;
}

/* Ensure padding for content areas */
.page-download__content-area,
.page-download__benefits-section,
.page-download__guide-section,
.page-download__platforms-section,
.page-download__security-section,
.page-download__faq-section,
.page-download__cta-final {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #1a1a1a; /* Slightly lighter dark background for sections to differentiate from body */
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-download__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* As per fixed header rule */
  background-color: #26A9E0; /* Primary brand color fallback */
  color: #ffffff;
  overflow: hidden;
}

.page-download__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  filter: brightness(0.6); /* Darken image for text readability, but NOT changing color */
}

.page-download__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.page-download__hero-content h1 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
}

.page-download__hero-content p {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #e0e0e0;
}

.page-download__btn-primary {
  display: inline-block;
  background-color: #EA7C07; /* Login color for primary CTA */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.125rem;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
}

.page-download__btn-primary:hover {
  background-color: #d86c00;
}

.page-download__qr-code {
  margin-top: 30px;
  width: 200px; /* Min size 200x200 */
  height: 200px;
  border-radius: 8px;
  background-color: #ffffff; /* White background for QR code image */
  padding: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  object-fit: contain;
}

.page-download__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Per rule */
  background-color: #1a1a1a; /* Dark background for video section */
  color: #ffffff;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-download__video-section h2 {
  color: #ffffff;
  margin-bottom: 30px;
}

.page-download__video-section p {
  color: #e0e0e0;
  max-width: 800px;
  text-align: center;
  margin-bottom: 20px;
}

.page-download__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px; /* Max width for video */
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
  background-color: #000; /* Fallback background for video area */
}

.page-download__video-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
  z-index: 1; /* Ensure link is clickable over video */
}

.page-download__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

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

.page-download__benefit-item {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for items */
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-download__benefit-item h3 {
  color: #26A9E0; /* Primary brand color for benefit titles */
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.page-download__benefit-item p {
  color: #e0e0e0;
  line-height: 1.6;
}

.page-download__guide-section {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.page-download__android-guide,
.page-download__ios-guide {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.page-download__android-guide h3,
.page-download__ios-guide h3 {
  color: #26A9E0;
  font-size: 1.8rem;
}

.page-download__guide-section ol {
  list-style-type: decimal;
  padding-left: 20px;
  text-align: left;
  max-width: 600px;
  margin: 0 auto;
}

.page-download__guide-section ol li {
  margin-bottom: 10px;
  color: #e0e0e0;
}

.page-download__guide-section ol li strong {
  color: #26A9E0; /* Highlight important text in steps */
}

.page-download__guide-image {
  width: 100%;
  max-width: 400px; /* Max width for guide images */
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

.page-download__platforms-section ul {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-download__platforms-section li {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 15px 20px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e0e0e0;
}

.page-download__platforms-section li strong {
  color: #26A9E0;
}

.page-download__multi-device-image {
  width: 100%;
  max-width: 700px;
  height: auto;
  margin-top: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

.page-download__security-section ul {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.page-download__security-section li {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e0e0e0;
  font-size: 1.1rem;
  line-height: 1.5;
}

.page-download__security-section li strong {
  color: #26A9E0;
}

.page-download__security-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  margin-top: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

.page-download__faq-section {
  text-align: left;
}

.page-download__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-download__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.2rem;
  color: #ffffff;
  background-color: #26A9E0; /* Brand color for FAQ question */
  border-radius: 8px;
  transition: background-color 0.3s ease;
  list-style: none; /* Hide default marker */
}

.page-download__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

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

.page-download__faq-question h3 {
  margin: 0;
  color: inherit;
}

.page-download__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
  color: #ffffff;
}

.page-download__faq-item[open] .page-download__faq-toggle {
  transform: rotate(45deg); /* Rotate '+' to 'x' or use '-' */
}

.page-download__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  line-height: 1.6;
  color: #e0e0e0;
  background-color: rgba(255, 255, 255, 0.03); /* Lighter dark background for answer */
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.page-download__cta-final {
  text-align: center;
  padding: 60px 20px;
}

.page-download__cta-final h2 {
  color: #ffffff;
  margin-bottom: 20px;
}

.page-download__cta-final p {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 40px;
  color: #e0e0e0;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-download__hero-content h1 {
    font-size: clamp(2.5rem, 4vw, 3rem);
  }
}

@media (max-width: 768px) {
  .page-download__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Ensure minimal top padding */
  }

  .page-download__hero-content h1 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .page-download__content-area,
  .page-download__benefits-section,
  .page-download__guide-section,
  .page-download__platforms-section,
  .page-download__security-section,
  .page-download__faq-section,
  .page-download__cta-final,
  .page-download__video-section {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Images responsive */
  .page-download img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-download__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-download__qr-code {
    width: 150px !important;
    height: 150px !important;
  }

  /* Videos responsive */
  .page-download video,
  .page-download__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-download__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Buttons responsive */
  .page-download__btn-primary,
  .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-left: 15px;
    padding-right: 15px;
  }

  .page-download__benefits-grid,
  .page-download__security-section ul {
    grid-template-columns: 1fr;
  }

  .page-download__faq-item summary {
    font-size: 1.1rem;
    padding: 15px 20px;
  }

  .page-download__guide-section ol {
    padding-left: 15px;
  }

  .page-download__guide-section ol li {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .page-download__hero-content h1 {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }

  .page-download__btn-primary {
    font-size: 1rem;
    padding: 12px 25px;
  }
}

/* Ensure no filter on images */
.page-download img {
  filter: none; /* Explicitly remove any potential filter */
}