/* style/download.css */

/* Base styles for the download page */
.page-download {
  font-family: Arial, sans-serif;
  color: #ffffff; /* Body background is dark #0a0a0a, so text must be light */
  line-height: 1.6;
  background-color: #0a0a0a; /* Ensure the main content block has a consistent background */
}

/* Section styling */
.page-download__hero-section,
.page-download__why-download-section,
.page-download__how-to-download-section,
.page-download__features-section,
.page-download__promotions-section,
.page-download__faq-section,
.page-download__conclusion-section {
  padding: 60px 20px;
  text-align: center;
  position: relative;
  overflow: hidden; /* Ensure no overflow issues */
}

/* Specific background and text colors based on section */
.page-download__dark-bg {
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-download__light-bg {
  background-color: #1a1a1a; /* Slightly lighter dark for contrast with main dark bg */
  color: #ffffff;
}

/* Hero section specific styling */
.page-download__hero-section {
  padding-top: 10px; /* Small top padding as body handles --header-offset */
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #0a0a0a; /* Ensure hero section background is dark */
}

.page-download__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
}

.page-download__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-download__hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-download__main-title {
  font-size: clamp(2em, 4vw, 2.8em); /* Use clamp for H1 font size */
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for main title */
}

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

/* CTA Buttons */
.page-download__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%; /* Ensure container takes full width */
  max-width: 500px; /* Limit max width for button group */
  margin: 0 auto;
}

.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, border-color 0.3s ease;
  box-sizing: border-box; /* Crucial for responsive buttons */
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
}

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

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

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

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

.page-download__btn-block {
  display: block;
  width: 100%;
  max-width: 300px; /* Limit block button width */
  margin: 20px auto 0;
}

.page-download__cta-center {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* Container for content sections */
.page-download__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Add horizontal padding to main content */
  box-sizing: border-box;
}

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

.page-download__section-intro {
  font-size: 1.1em;
  margin-bottom: 40px;
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Feature grid for why download section */
.page-download__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-download__feature-item {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-download__feature-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-download__feature-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* How to download section */
.page-download__download-guide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
  text-align: left;
}

.page-download__guide-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-download__guide-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 20px;
}

.page-download__guide-image {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Min image size */
  min-height: 200px; /* Min image size */
}

.page-download__guide-steps {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-download__guide-steps li {
  margin-bottom: 20px;
}

.page-download__step-title {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 5px;
}

.page-download__guide-steps p {
  font-size: 0.95em;
  color: #cccccc;
}

/* Features section */
.page-download__features-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  text-align: left;
}

.page-download__features-text-block {
  flex: 1;
}

.page-download__feature-list {
  list-style: none;
  padding: 0;
}

.page-download__feature-list li {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-download__feature-list li:last-child {
  margin-bottom: 0;
}

.page-download__list-title {
  font-size: 1.3em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-download__feature-list p {
  font-size: 0.95em;
  color: #cccccc;
}

.page-download__features-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-download__features-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Min image size */
  min-height: 200px; /* Min image size */
}

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

.page-download__promotion-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  min-height: 180px; /* Ensure cards have some height */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

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

.page-download__promotions-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin-bottom: 30px;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Min image size */
  min-height: 200px; /* Min image size */
}

/* FAQ section */
.page-download__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-download__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  color: #ffffff;
}

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #26A9E0;
  background-color: rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-download__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Chrome */
}

.page-download__faq-item summary {
  list-style: none; /* Hide default marker for Firefox */
}

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

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

.page-download__faq-qtext {
  flex-grow: 1;
}

.page-download__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #ffffff;
}

.page-download__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #cccccc;
  line-height: 1.5;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Conclusion section */
.page-download__conclusion-section {
  padding-bottom: 80px;
}

/* --- Responsive Design --- */

/* All images must be responsive */
.page-download img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* All video containers must be responsive */
.page-download video,
.page-download__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

.page-download__video-section,
.page-download__video-container,
.page-download__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* All button containers must be responsive */
.page-download__cta-button,
.page-download__btn-primary,
.page-download__btn-secondary,
.page-download a[class*="button"],
.page-download a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-download__cta-buttons,
.page-download__button-group,
.page-download__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 1024px) {
  .page-download__download-guide {
    grid-template-columns: 1fr;
  }

  .page-download__features-content {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .page-download__hero-section,
  .page-download__why-download-section,
  .page-download__how-to-download-section,
  .page-download__features-section,
  .page-download__promotions-section,
  .page-download__faq-section,
  .page-download__conclusion-section {
    padding: 40px 15px;
  }

  .page-download__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em); /* Adjust H1 for mobile */
  }

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

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

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

  /* Mobile image responsiveness - !important for enforcement */
  .page-download img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px;
    min-height: 200px;
  }

  /* Mobile video responsiveness - !important for enforcement */
  .page-download video,
  .page-download__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-download__video-section,
  .page-download__video-container,
  .page-download__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-download__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-download__section,
  .page-download__card,
  .page-download__container,
  .page-download__cta-buttons,
  .page-download__button-group,
  .page-download__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 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-left: 15px;
    padding-right: 15px;
  }

  .page-download__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Stack buttons vertically on mobile */
  }

  /* Content area images should be at least 200px, but also responsive */
  .page-download__guide-image,
  .page-download__features-image,
  .page-download__promotions-image {
    min-width: 200px !important;
    min-height: 200px !important;
  }

  /* Ensure paragraphs and list items maintain good readability on mobile */
  .page-download p,
  .page-download li {
    font-size: 1em;
    line-height: 1.5;
  }
}