/* style/download.css */

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

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

/* Section titles and descriptions */
.page-download__section-title {
  color: #26A9E0; /* Brand color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-size: clamp(28px, 4vw, 42px); /* Responsive font size */
  font-weight: bold;
  line-height: 1.2;
}

.page-download__section-description {
  color: #f0f0f0; /* Slightly off-white for body text */
  text-align: center;
  margin-bottom: 40px;
  font-size: clamp(16px, 2vw, 18px); /* Responsive font size */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-download__hero-image-wrapper {
    width: 100%; /* Explicitly set width */
    max-width: 1200px;
    margin-bottom: 30px; /* Space between image and content */
}

.page-download__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-download__hero-content {
  text-align: center;
  max-width: 900px;
  z-index: 1;
}

.page-download__hero-title {
  color: #FFFFFF;
  font-size: clamp(32px, 5vw, 56px); /* Responsive H1 font size */
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.page-download__hero-description {
  color: #f0f0f0;
  font-size: clamp(18px, 2.5vw, 22px);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Buttons */
.page-download__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-download__cta-buttons--centered {
    margin-top: 50px;
}

.page-download__btn-primary,
.page-download__btn-secondary,
.page-download__btn-tertiary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%; /* Ensure buttons don't overflow */
}

.page-download__btn-primary {
  background-color: #EA7C07; /* Login/Download color */
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}

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

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

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

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

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

/* Features Section */
.page-download__features-section {
  background-color: #1a1a2e; /* Dark background */
  padding: 80px 0;
}

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

.page-download__feature-card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #f0f0f0; /* Light text for card content */
}

.page-download__feature-icon {
  width: 100%; /* Ensure image fills card width */
  max-width: 250px; /* Max width for consistency */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

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

.page-download__card-text {
  font-size: 16px;
  color: #cccccc;
}

/* How-To Section */
.page-download__how-to-section {
  background-color: #1a1a2e; /* Dark background */
  padding: 80px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-download__step-card {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly darker card for distinction */
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  color: #f0f0f0;
}

.page-download__step-card .page-download__card-title {
  color: #EA7C07; /* Orange for step titles */
  font-size: 20px;
  margin-bottom: 15px;
}

.page-download__step-card .page-download__card-text {
  font-size: 16px;
  color: #cccccc;
}

/* App Preview Section (Video) */
.page-download__app-preview-section {
  background-color: #1a1a2e;
  padding: 80px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-download__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  width: 100%; /* Explicitly set width as per requirement */
  max-width: 100%;
  background: #000;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-download__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
}

.page-download__video-description {
  text-align: center;
  color: #cccccc;
  margin-top: 20px;
  font-size: 16px;
}

/* FAQ Section */
.page-download__faq-section {
  background-color: #1a1a2e;
  padding: 80px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-download__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.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.2);
  color: #f0f0f0;
}

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  font-weight: bold;
  font-size: 18px;
  color: #26A9E0;
  user-select: none;
}

.page-download__faq-question::-webkit-details-marker {
  display: none;
}

.page-download__faq-question::marker {
  display: none;
}

.page-download__faq-toggle {
  font-size: 24px;
  line-height: 1;
  color: #EA7C07;
}

.page-download__faq-item[open] .page-download__faq-toggle {
  content: '−';
}

.page-download__faq-answer {
  padding: 0 20px 20px;
  font-size: 16px;
  color: #cccccc;
}

/* Final CTA Section */
.page-download__cta-final-section {
  background: linear-gradient(45deg, #26A9E0 0%, #1a1a2e 100%);
  padding: 80px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-download__cta-final-section .page-download__section-title {
  color: #FFFFFF;
}

.page-download__cta-final-section .page-download__section-description {
  color: #f0f0f0;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-download__container {
    padding: 30px 15px;
  }
}

@media (max-width: 768px) {
  .page-download__hero-section {
    padding: 40px 15px;
  }

  .page-download__hero-title {
    font-size: clamp(28px, 6vw, 40px);
  }

  .page-download__hero-description {
    font-size: clamp(16px, 2.5vw, 18px);
  }

  .page-download__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
    width: 100%;
    max-width: 350px; /* Limit button stack width */
    margin-left: auto;
    margin-right: auto;
  }

  .page-download__btn-primary,
  .page-download__btn-secondary,
  .page-download__btn-tertiary {
    width: 100% !important; /* Force full width for mobile buttons */
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  /* 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__section,
  .page-download__card,
  .page-download__container,
  .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__video-section {
    padding-top: 10px !important;
  }

  .page-download__feature-grid,
  .page-download__download-steps {
    grid-template-columns: 1fr; /* Stack cards vertically */
  }

  .page-download__faq-question {
    font-size: 16px;
    padding: 15px;
  }

  .page-download__faq-answer {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .page-download__section-title {
    font-size: clamp(24px, 6vw, 36px);
  }

  .page-download__section-description {
    font-size: clamp(15px, 3vw, 17px);
  }
}

/* Ensure no CSS filters on images */
.page-download img {
  filter: none !important;
}