/* style/download.css */
/* Body background from shared.css is #1a1a2e (dark). Use light text. */

.page-download {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Inherit from body */
}

.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;
  justify-content: center;
  min-height: 500px;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  text-align: center;
  overflow: hidden;
}

.page-download__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.page-download__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.5); /* Slightly dim the image for text readability */
}

.page-download__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  color: #ffffff;
}

.page-download__main-title {
  font-size: 2.8em;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-download__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-download__btn-primary,
.page-download__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-download__btn-primary:hover {
  background-color: #1a8cc4;
  border-color: #1a8cc4;
}

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

.page-download__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
}

/* General Section Styling */
.page-download__advantages-section,
.page-download__how-to-download-section,
.page-download__features-section,
.page-download__faq-section,
.page-download__cta-bottom-section {
  padding: 60px 0;
  text-align: center;
}

.page-download__how-to-download-section,
.page-download__faq-section {
  background-color: #1a1a2e; /* Dark background from body */
  color: #ffffff;
}

.page-download__section-title {
  font-size: 2.2em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #26A9E0;
}

.page-download__how-to-download-section .page-download__section-title,
.page-download__faq-section .page-download__section-title,
.page-download__cta-bottom-section .page-download__section-title {
  color: #ffffff;
}

.page-download__text-block {
  font-size: 1.05em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

/* Grid Layout for Cards */
.page-download__grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-download__card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent light background for dark body */
  border-radius: 10px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-download__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-download__card-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-download__card-text {
  font-size: 0.95em;
  color: #f0f0f0;
}

/* Steps List */
.page-download__steps-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 800px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-download__step-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.page-download__step-number {
  background-color: #26A9E0;
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4em;
  font-weight: bold;
  flex-shrink: 0;
}

.page-download__step-title {
  font-size: 1.5em;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-download__step-text,
.page-download__sub-step-text {
  font-size: 1em;
  color: #f0f0f0;
}

.page-download__sub-steps {
  margin-top: 15px;
  padding-left: 20px;
  border-left: 3px solid #26A9E0;
}

.page-download__sub-step-title {
  font-size: 1.2em;
  font-weight: bold;
  color: #26A9E0;
  margin-top: 15px;
  margin-bottom: 5px;
}

/* FAQ Section */
.page-download__faq-list {
  max-width: 800px;
  margin: 40px auto 0 auto;
  text-align: left;
}

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

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

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

.page-download__faq-item[open] .page-download__faq-question {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

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

.page-download__faq-answer {
  padding: 0 25px 18px 25px;
  font-size: 1em;
  color: #f0f0f0;
  line-height: 1.7;
}

/* Ensure summary marker is hidden for details tag */
.page-download__faq-item summary {
  list-style: none;
}
.page-download__faq-item summary::-webkit-details-marker {
  display: none;
}

/* Links within content */
.page-download a {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-download a:hover {
  color: #1a8cc4;
  text-decoration: underline;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .page-download {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-download__container,
  .page-download__hero-section,
  .page-download__advantages-section,
  .page-download__how-to-download-section,
  .page-download__features-section,
  .page-download__faq-section,
  .page-download__cta-bottom-section,
  .page-download__cta-buttons,
  .page-download__grid-layout,
  .page-download__steps-list,
  .page-download__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  .page-download__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
    min-height: 400px;
  }

  .page-download__main-title {
    font-size: 2em;
  }

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

  .page-download__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-download__btn-primary,
  .page-download__btn-secondary {
    width: 100% !important;
    padding: 12px 20px;
  }

  .page-download__section-title {
    font-size: 1.8em;
  }

  .page-download__text-block {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-download__grid-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-download__card {
    padding: 20px;
  }

  .page-download__card-title {
    font-size: 1.2em;
  }

  .page-download__card-image {
    height: 180px;
  }

  .page-download__steps-list {
    gap: 20px;
  }

  .page-download__step-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .page-download__step-number {
    margin-bottom: 10px;
  }

  .page-download__step-title {
    font-size: 1.3em;
  }

  .page-download__sub-steps {
    padding-left: 0;
    border-left: none;
  }

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

  .page-download__faq-answer {
    padding: 0 20px 15px 20px;
  }

  /* Ensure all images and videos are responsive */
  .page-download img,
  .page-download video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-download__hero-image-wrapper,
  .page-download__card,
  .page-download__step-item,
  .page-download__faq-item,
  .page-download__video-section,
  .page-download__video-container,
  .page-download__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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