/* style/download.css */

/* Base styles for the download page, ensuring light text on dark body background */
.page-download {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css, which is #000000 */
}

.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__dark-bg {
  background-color: #000000; /* Explicitly dark background for sections */
  color: #ffffff;
}

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

.page-download__section-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand primary color for titles */
  line-height: 1.2;
}

.page-download__section-intro {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

/* Hero Section */
.page-download__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, body handles --header-offset */
  overflow: hidden;
  background: linear-gradient(135deg, #000000 0%, #26A9E0 100%); /* Blend dark background with brand color */
}

.page-download__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-download__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.page-download__hero-content {
  max-width: 900px;
  text-align: center;
  padding: 0 20px;
}

.page-download__main-title {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 25px;
  color: #FFFFFF; /* White text on dark/gradient background */
  line-height: 1.1;
}

.page-download__description {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-download__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

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

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

.page-download__btn-primary:hover {
  background-color: #1e87c0;
  border-color: #1e87c0;
  transform: translateY(-2px);
}

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

.page-download__btn-secondary:hover {
  background-color: #f0f0f0;
  border-color: #f0f0f0;
  transform: translateY(-2px);
}

/* Why Download Section */
.page-download__why-download {
  padding-top: 80px;
}

.page-download__features-grid {
  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.1); /* Semi-transparent white on dark background */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: left;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.page-download__card-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #26A9E0;
}

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

.page-download__feature-list li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  color: #f0f0f0;
}

.page-download__feature-list li::before {
  content: '✔';
  color: #26A9E0;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-download__feature-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  object-fit: cover;
}

/* How to Download Section */
.page-download__how-to-download {
  padding-top: 80px;
}

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

.page-download__method-card {
  text-align: left;
}

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

.page-download__steps-list li {
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-download__steps-list li strong {
  color: #26A9E0;
  font-size: 1.1rem;
}

.page-download__method-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  margin-bottom: 20px;
  object-fit: cover;
}

/* Features List Grid */
.page-download__features-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-download__item-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #26A9E0;
}

/* Requirements Section */
.page-download__requirements {
  padding-top: 80px;
}

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

.page-download__requirements-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.page-download__requirements-list li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  color: #f0f0f0;
}

.page-download__requirements-list li::before {
  content: '•';
  color: #26A9E0;
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 1.2em;
  line-height: 1;
}

.page-download__note {
  margin-top: 30px;
  font-style: italic;
  color: #aaaaaa;
}

/* FAQ Section */
.page-download__faq-section {
  padding-top: 80px;
}

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

.page-download__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.08); /* Slightly darker card background */
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  color: #FFFFFF;
  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 details/summary */
}

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

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

.page-download__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: #26A9E0;
  margin-left: 15px;
}

.page-download__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: #e0e0e0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-download__faq-item[open] .page-download__faq-answer {
  max-height: 500px; /* Sufficiently large for content */
  padding-top: 15px;
}

/* Call to Action Section */
.page-download__call-to-action {
  padding-top: 80px;
  padding-bottom: 80px;
  background: linear-gradient(45deg, #000000 0%, #26A9E0 100%);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-download__container {
    padding: 0 15px; /* Add padding for mobile containers */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-download__section {
    padding: 40px 0;
  }

  .page-download__hero-section {
    padding: 10px 0 40px 0;
  }

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

  .page-download__description {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
  }

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

  .page-download__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

  .page-download__features-grid,
  .page-download__download-methods,
  .page-download__features-list-grid,
  .page-download__requirements-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-download__card {
    padding: 25px;
  }

  .page-download__card-title,
  .page-download__item-title {
    font-size: 1.4rem;
  }

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

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

  /* Mobile image and video responsiveness */
  .page-download img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .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,
  .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;
    overflow: hidden !important; /* Ensure no overflow */
  }

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

/* Ensure images are at least 200x200px where they are content images */
.page-download__hero-image,
.page-download__feature-image,
.page-download__method-image {
  min-width: 200px;
  min-height: 200px;
}

/* Specific color for Login button if it were present */
.page-download__btn-login {
  background-color: #EA7C07;
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}

.page-download__btn-login:hover {
  background-color: #c96806;
  border-color: #c96806;
}