/* style/download.css */

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

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

.page-download__dark-bg {
  background-color: var(--dark-bg-1); /* Assuming --dark-bg-1 is a dark color */
  color: #ffffff;
}

.page-download__light-bg {
  background-color: #ffffff;
  color: #333333;
}

/* Hero Section */
.page-download__hero-section {
  position: relative;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
  text-align: center;
  overflow: hidden; /* Prevent content overflow */
}

.page-download__hero-content {
  max-width: 800px;
  margin: 0 auto 40px auto;
  z-index: 1;
  position: relative;
}

.page-download__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: bold;
}

.page-download__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-download__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  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;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-width: 180px;
  text-align: center;
  box-sizing: border-box;
}

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

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

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

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

.page-download__btn-login {
  background-color: #EA7C07; /* Custom color for login */
  border-color: #EA7C07;
}

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

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

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

.page-download__qr-code {
  background-color: #ffffff;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: #333333;
}

.page-download__qr-code img {
  
  height: auto;
  display: block;
  margin: 0 auto 10px auto;
}

/* General Section Styles */
.page-download__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  text-align: center;
  font-weight: bold;
}

.page-download__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
}

.page-download__features-section,
.page-download__how-to-download-section,
.page-download__security-section,
.page-download__faq-section,
.page-download__cta-section {
  padding: 80px 0;
}

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

.page-download__feature-card {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-download__feature-icon {
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

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

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

/* How-to Download Section */
.page-download__platform-guide {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-download__guide-card {
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-download__guide-steps {
  list-style-type: decimal;
  padding-left: 25px;
  margin-bottom: 30px;
  text-align: left;
  color: #555555;
}

.page-download__guide-steps li {
  margin-bottom: 15px;
  line-height: 1.5;
}

.page-download__guide-steps strong {
  color: #333333;
}

.page-download__qr-code-small {
  background-color: #f0f0f0;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
  color: #333333;
}

.page-download__qr-code-small img {
  
  height: auto;
  display: block;
  margin: 0 auto 8px auto;
}

.page-download__btn-full-width {
  width: 100%;
  max-width: 300px; /* Limit width for aesthetics */
  margin-top: auto; /* Push button to bottom */
}

.page-download__system-requirements {
  margin-top: 60px;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.page-download__system-title {
  font-size: 2em;
  margin-bottom: 30px;
  color: #26A9E0;
}

.page-download__requirements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: left;
}

.page-download__requirement-item h4 {
  font-size: 1.4em;
  color: #333333;
  margin-bottom: 15px;
}

.page-download__requirement-item ul {
  list-style-type: disc;
  padding-left: 20px;
  color: #555555;
}

.page-download__requirement-item li {
  margin-bottom: 8px;
}

/* Security Section */
.page-download__security-content {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-download__security-text {
  flex: 1;
  min-width: 300px;
}

.page-download__security-subtitle {
  font-size: 1.6em;
  color: #26A9E0;
  margin-bottom: 15px;
  margin-top: 30px;
}

.page-download__security-text p {
  color: #555555;
  margin-bottom: 15px;
}

.page-download__security-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-download__security-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

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

.page-download__faq-item {
  background-color: rgba(255, 255, 255, 0.1); /* Light background on dark section */
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  color: #ffffff; /* Text color for dark background */
}

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

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

.page-download__faq-qtext {
  flex-grow: 1;
  /* pointer-events: none; - Not needed for <details> summary */
}

.page-download__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  /* pointer-events: none; - Not needed for <details> summary */
}

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

.page-download__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #f0f0f0;
  background-color: rgba(255, 255, 255, 0.05);
}

/* Call to Action Section */
.page-download__cta-section .page-download__cta-buttons {
  margin-top: 40px;
}

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

@media (max-width: 768px) {
  .page-download__hero-section {
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
  }

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

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

  .page-download__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to prevent overflow */
  }

  .page-download__btn-primary,
  .page-download__btn-secondary {
    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__section-title {
    font-size: 1.8em;
  }

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

  .page-download__features-grid,
  .page-download__platform-guide,
  .page-download__requirements-grid {
    grid-template-columns: 1fr;
  }

  .page-download__feature-card,
  .page-download__guide-card,
  .page-download__system-requirements {
    padding: 20px;
    margin-left: 15px;
    margin-right: 15px;
  }

  .page-download__guide-steps {
    padding-left: 20px;
  }

  .page-download__security-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-download__security-text,
  .page-download__security-image-wrapper {
    min-width: unset;
    width: 100%;
  }

  .page-download__security-subtitle {
    font-size: 1.4em;
  }

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

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

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

  /* All containers with images/videos/buttons must have these */
  .page-download__section,
  .page-download__card,
  .page-download__container,
  .page-download__hero-section,
  .page-download__features-section,
  .page-download__how-to-download-section,
  .page-download__security-section,
  .page-download__faq-section,
  .page-download__cta-section,
  .page-download__platform-guide,
  .page-download__guide-card,
  .page-download__system-requirements,
  .page-download__security-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }

  /* Specific padding for sections that might not have it */
  .page-download__features-section .page-download__container,
  .page-download__how-to-download-section .page-download__container,
  .page-download__security-section .page-download__container,
  .page-download__faq-section .page-download__container,
  .page-download__cta-section .page-download__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Video responsiveness (if any, though none currently in HTML) */
  .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;
  }
}

/* Ensure content area images are not too small as per rules */
.page-download img {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

/* Override min-width/height for small QR codes, as they are exceptions for functional elements */
.page-download__qr-code img,
.page-download__qr-code-small img {
    min-width: unset;
    min-height: unset;
}