/* style/download.css */
.page-download {
  font-family: 'Poppins', sans-serif; /* Using Poppins for a modern feel */
  line-height: 1.6;
  color: #333333; /* Dark text for default light body background */
  background-color: #f8f8f8; /* Slightly off-white background for the page content */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  overflow-x: hidden; /* Prevent horizontal scroll on mobile */
}

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

/* Hero Section */
.page-download__hero-section {
  background: linear-gradient(135deg, #FFD700, #8B0000); /* Gold to Dark Red gradient */
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-download__hero-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.page-download__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-download__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
  color: #f0f0f0;
}

.page-download__download-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.page-download__button {
  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, transform 0.2s ease;
  min-width: 200px;
  text-align: center;
  white-space: nowrap; /* Prevent text wrapping on buttons */
}

.page-download__button--primary {
  background-color: #FFD700; /* Gold */
  color: #8B0000; /* Dark Red */
  border: 2px solid #FFD700;
}

.page-download__button--primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-download__button--secondary {
  background-color: #8B0000; /* Dark Red */
  color: #FFD700; /* Gold */
  border: 2px solid #FFD700;
}

.page-download__button--secondary:hover {
  background-color: #6a0000;
  transform: translateY(-2px);
}

.page-download__button--apk {
  background-color: transparent;
  color: #FFD700; /* Gold */
  border: 2px solid #FFD700;
}

.page-download__button--apk:hover {
  background-color: rgba(255, 215, 0, 0.1);
  transform: translateY(-2px);
}

.page-download__hero-image {
  margin-top: 40px;
}

.page-download__hero-image img {
  width: 100%;
  max-width: 800px; /* Constrain image width for better presentation */
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Min image size */
  min-height: 200px; /* Min image size */
}

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

.page-download__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #555555;
}

/* Why App Section */
.page-download__why-app-section {
  padding: 80px 0;
  background-color: #ffffff;
}

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

.page-download__feature-item {
  background-color: #fdfdfd;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-download__feature-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-download__feature-item img {
  width: 100%;
  max-width: 250px; /* Adjusted to be large enough but not too dominant */
  height: auto;
  margin-bottom: 20px;
  min-width: 200px; /* Min image size */
  min-height: 200px; /* Min image size */
  object-fit: contain; /* Ensure image fits well */
}

.page-download__feature-title {
  font-size: 1.6em;
  color: #FFD700; /* Gold */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-download__feature-description {
  color: #666666;
  font-size: 0.95em;
}

.page-download__section-outro {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 60px auto 0 auto;
  color: #555555;
}

/* How to Download Section */
.page-download__how-to-download-section {
  padding: 80px 0;
  background-color: #f0f0f0;
}

.page-download__platform-guide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.page-download__platform-item {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.page-download__platform-title {
  font-size: 2em;
  color: #8B0000; /* Dark Red */
  margin-bottom: 25px;
  text-align: center;
  font-weight: bold;
}

.page-download__platform-item img {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
  margin: 0 auto 30px auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Min image size */
  min-height: 200px; /* Min image size */
}

.page-download__installation-steps {
  list-style-type: decimal;
  padding-left: 25px;
  margin-bottom: 30px;
  color: #444444;
}

.page-download__installation-steps li {
  margin-bottom: 15px;
  font-size: 1.05em;
  line-height: 1.5;
}

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

.page-download__button--small {
  padding: 12px 25px;
  font-size: 1em;
  margin-top: 20px;
}

/* Pre-Installation Notes Section */
.page-download__pre-installation-section {
  padding: 80px 0;
  background-color: #ffffff;
}

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

.page-download__note-item {
  background-color: #fdfdfd;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.page-download__note-title {
  font-size: 1.8em;
  color: #FFD700; /* Gold */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-download__note-description,
.page-download__troubleshooting-list {
  color: #666666;
  font-size: 0.95em;
  line-height: 1.6;
}

.page-download__troubleshooting-list {
  list-style-type: disc;
  padding-left: 20px;
  margin-top: 15px;
}

.page-download__troubleshooting-list li {
  margin-bottom: 8px;
}

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

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

.page-download__faq-item {
  background-color: #ffffff;
  margin-bottom: 15px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  border: 1px solid #eee;
}

.page-download__faq-question {
  display: block;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  position: relative;
  background-color: #fdfdfd;
  border-bottom: 1px solid #eee;
  transition: background-color 0.3s ease;
}

.page-download__faq-question:hover {
  background-color: #f5f5f5;
}

.page-download__faq-toggle {
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5em;
  line-height: 1;
  color: #FFD700; /* Gold */
  transition: transform 0.3s ease;
}

.page-download__faq-item[open] .page-download__faq-toggle {
  transform: translateY(-50%) rotate(45deg); /* Changes '+' to 'x' or similar */
  color: #8B0000; /* Dark Red */
}

.page-download__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: #555555;
  line-height: 1.6;
}

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

/* Call to Action Section */
.page-download__cta-section {
  padding: 80px 20px;
  background: linear-gradient(45deg, #8B0000, #FFD700); /* Dark Red to Gold gradient */
  color: #ffffff;
  text-align: center;
}

.page-download__button--cta {
  background-color: #ffffff;
  color: #8B0000; /* Dark Red */
  border: 2px solid #ffffff;
  padding: 18px 40px;
  font-size: 1.3em;
  border-radius: 50px;
  margin-top: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-download__button--cta:hover {
  background-color: #f0f0f0;
  color: #6a0000;
  transform: translateY(-3px);
}

.page-download__cta-subtext {
  font-size: 1.1em;
  margin-top: 20px;
  color: #f0f0f0;
}


/* Responsive Design */
@media (max-width: 1024px) {
  .page-download__hero-title {
    font-size: 3em;
  }
  .page-download__section-title {
    font-size: 2em;
  }
  .page-download__platform-guide {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-download__hero-section {
    padding: 60px 15px;
  }
  .page-download__hero-title {
    font-size: 2.5em;
  }
  .page-download__hero-description {
    font-size: 1em;
  }
  .page-download__download-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-download__button {
    min-width: unset;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  .page-download__section-title {
    font-size: 1.8em;
  }
  .page-download__section-intro {
    font-size: 0.95em;
  }
  .page-download__why-app-section,
  .page-download__how-to-download-section,
  .page-download__pre-installation-section,
  .page-download__faq-section,
  .page-download__cta-section {
    padding: 50px 0;
  }

  /* Mobile image scaling */
  .page-download__hero-image img,
  .page-download__feature-item img,
  .page-download__platform-item img {
    max-width: 100%; /* Ensure images don't overflow */
    height: auto;
    min-width: 200px; /* Still enforce min size */
    min-height: 200px; /* Still enforce min size */
  }

  /* Ensure content area does not cause horizontal scroll */
  .page-download__container {
    padding: 0 15px;
  }
  .page-download__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-download__faq-toggle {
    right: 20px;
  }
  .page-download__faq-answer {
    padding: 0 20px 15px 20px;
  }
  .page-download__button--cta {
    font-size: 1.1em;
    padding: 15px 30px;
  }
}

@media (max-width: 480px) {
  .page-download__hero-title {
    font-size: 2em;
  }
  .page-download__section-title {
    font-size: 1.5em;
  }
  .page-download__feature-title {
    font-size: 1.4em;
  }
  .page-download__platform-title {
    font-size: 1.6em;
  }
  .page-download__note-title {
    font-size: 1.5em;
  }
}

/* Ensure all images within .page-download adhere to min-size and responsive rules */
.page-download img {
  max-width: 100%; /* Prevent images from overflowing their containers */
  height: auto; /* Maintain aspect ratio */
  min-width: 200px; /* Minimum width for all content images */
  min-height: 200px; /* Minimum height for all content images */
  object-fit: cover; /* Ensure images fill their space without distortion, adjust as needed for specific images */
}
/* No filter on images */
.page-download img {
    filter: none; /* Ensure no CSS filters are applied */
}