/* style/download.css */

/* Base styles for the page-download scope */
.page-download {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #ffffff; /* Default body background is light */
}

/* Fixed header spacing */
.page-download__hero-section {
  padding-top: var(--header-offset, 120px);
}

/* General container for content */
.page-download__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Section titles and descriptions */
.page-download__section-title {
  font-size: 2.5em;
  color: #26A9E0; /* Brand color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-download__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-download__hero-section {
  background-color: #26A9E0; /* Dark background */
  color: #ffffff; /* Light text for dark background */
  padding-bottom: 60px;
  display: flex;
  align-items: center;
  text-align: center;
}

.page-download__hero-section .page-download__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.page-download__hero-title {
  font-size: 3em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff; /* Light text for dark background */
}

.page-download__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 900px;
  line-height: 1.8;
}

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

.page-download__btn-primary,
.page-download__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
}

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

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

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

.page-download__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1e87c0;
  border-color: #1e87c0;
}

.page-download__hero-image-wrapper {
  margin-top: 40px;
  text-align: center;
}

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

/* Why Download Section */
.page-download__why-download-section {
  padding: 80px 0;
  background-color: #f8f9fa; /* Light background */
  color: #333333;
}

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

.page-download__feature-card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  color: #333333; /* Dark text for light card background */
}

.page-download__feature-card:hover {
  transform: translateY(-5px);
}

.page-download__feature-icon {
  width: 100%; /* Ensure image fills card width */
  max-width: 200px; /* Constrain icon size */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

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

.page-download__card-text {
  font-size: 1em;
  line-height: 1.7;
}

/* How to Download Section */
.page-download__how-to-download-section {
  padding: 80px 0;
  background-color: #26A9E0; /* Dark background */
  color: #ffffff; /* Light text */
}

.page-download__how-to-download-section .page-download__section-title {
  color: #ffffff; /* Light text for dark background */
}

.page-download__how-to-download-section .page-download__section-description {
  color: #f0f0f0;
}

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

.page-download__step-item {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  color: #ffffff; /* Light text */
}

.page-download__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #EA7C07; /* Highlight color */
  margin-bottom: 15px;
}

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

.page-download__step-text {
  font-size: 1em;
  line-height: 1.6;
}

.page-download__qr-code-section {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 60px;
  flex-wrap: wrap;
}

.page-download__qr-code-item {
  text-align: center;
  background-color: #ffffff; /* White background for QR code */
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  color: #333333; /* Dark text for light background */
}

.page-download__qr-image {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 15px;
  min-width: 200px;
  min-height: 200px;
}

.page-download__qr-label {
  font-size: 1.1em;
  font-weight: bold;
  color: #333333;
}

/* Video Section */
.page-download__video-section {
  padding: 80px 0;
  background-color: #f8f9fa; /* Light background */
  color: #333333;
}

.page-download__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  cursor: pointer; /* Indicate video is clickable */
}

.page-download__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block; /* Ensure video takes full width */
  filter: none !important;
}

.page-download__cta-video {
  text-align: center;
  margin-top: 40px;
}

/* FAQ Section */
.page-download__faq-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background */
  color: #333333;
}

.page-download__faq-list {
  max-width: 800px;
  margin: 50px auto 0 auto;
}

.page-download__faq-item {
  background-color: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  color: #333333;
}

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #26A9E0;
  cursor: pointer;
  background-color: #e0f2f7; /* Lighter brand color for question background */
  border-bottom: 1px solid #d0e7ed;
  list-style: none; /* Remove default marker for details summary */
}

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

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

.page-download__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

.page-download__faq-item[open] .page-download__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to cross */
}

.page-download__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
  background-color: #ffffff;
  border-top: 1px solid #e0e0e0;
}

.page-download__faq-answer p {
  margin: 0;
}


/* Final Call to Action Section */
.page-download__cta-section {
  padding: 80px 0;
  background-color: #26A9E0; /* Dark background */
  color: #ffffff; /* Light text */
  text-align: center;
}

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

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

.page-download__cta-buttons {
  margin-top: 40px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap */
}


/* Dark background color utility */
.page-download__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}
.page-download__dark-bg .page-download__section-title,
.page-download__dark-bg .page-download__card-title {
  color: #ffffff;
}

/* Light background color utility */
.page-download__light-bg {
  background-color: #ffffff;
  color: #333333;
}
.page-download__light-bg .page-download__section-title,
.page-download__light-bg .page-download__card-title {
  color: #26A9E0;
}


/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
  .page-download__hero-title {
    font-size: 2.5em;
  }
  .page-download__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  /* Ensure main content area adapts */
  .page-download {
    font-size: 16px;
    line-height: 1.6;
  }

  /* Fixed header spacing for mobile */
  .page-download__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-download__container {
    padding: 0 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

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

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

  .page-download__hero-description {
    font-size: 1em;
  }

  .page-download__download-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100%;
    width: 100%;
  }

  .page-download__btn-primary,
  .page-download__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-download__why-download-section,
  .page-download__how-to-download-section,
  .page-download__video-section,
  .page-download__faq-section,
  .page-download__cta-section {
    padding: 60px 0;
  }

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

  .page-download__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

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

  .page-download__qr-code-section {
    flex-direction: column;
    gap: 30px;
  }

  .page-download__qr-image {
    max-width: 150px;
    min-width: 150px;
    min-height: 150px;
  }

  .page-download__video-wrapper {
    margin: 0 15px;
    max-width: calc(100% - 30px) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-download__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

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

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

  /* Global image responsive rules for mobile */
  .page-download img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Ensure all content containers are responsive and prevent overflow */
  .page-download__section,
  .page-download__card,
  .page-download__container,
  .page-download__video-section,
  .page-download__video-container,
  .page-download__video-wrapper,
  .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;
    overflow: hidden !important;
  }
  .page-download__cta-buttons {
    flex-direction: column;
  }
}

/* Image specific CSS rules for minimum size and no filter */
.page-download img {
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
  filter: none !important; /* Absolutely no filter */
}

/* Override any potential smaller image sizes for content area */
.page-download .page-download__container img,
.page-download .page-download__features-grid img,
.page-download .page-download__download-steps img,
.page-download .page-download__qr-code-section img {
  min-width: 200px;
  min-height: 200px;
}