/* style/download.css */
.page-download {
  color: #333333; /* Dark text for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

.page-download__hero-section {
  background-color: #007bff; /* Primary color background */
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.page-download__hero-content {
  max-width: 800px;
}

.page-download__main-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #ffc107; /* Secondary color for emphasis */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

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

.page-download__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
  text-align: center;
}

.page-download__button--primary {
  background-color: #ffc107; /* Secondary color for primary action */
  color: #333333;
  border: none;
}

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

.page-download__button--secondary {
  background-color: #ffffff;
  color: #007bff; /* Primary color for secondary action */
  border: 2px solid #007bff;
}

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

.page-download__hero-image-wrapper {
  max-width: 800px;
  width: 100%;
}

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

.page-download__why-app-section,
.page-download__methods-section,
.page-download__pre-install-section,
.page-download__faq-section,
.page-download__call-to-action {
  max-width: 1200px;
  margin: 40px auto;
  padding: 40px 20px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.page-download__section-title {
  font-size: 2em;
  color: #007bff; /* Primary color for section titles */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

.page-download__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #ffc107; /* Secondary color for underline */
  border-radius: 2px;
}

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

.page-download__feature-card,
.page-download__note-card {
  background-color: #f8f9fa;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

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

.page-download__feature-icon {
  width: 200px; /* Min size for content images */
  height: auto;
  margin-bottom: 20px;
  border-radius: 5px;
}

.page-download__feature-title,
.page-download__note-title {
  font-size: 1.3em;
  color: #007bff;
  margin-bottom: 15px;
}

.page-download__feature-description,
.page-download__note-description {
  font-size: 0.95em;
  color: #555555;
}

.page-download__download-tabs {
  margin-top: 30px;
}

.page-download__tab-header {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.page-download__tab-button {
  background-color: #e9ecef;
  color: #495057;
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-download__tab-button:hover {
  background-color: #dee2e6;
}

.page-download__tab-button--active {
  background-color: #007bff;
  color: #ffffff;
  font-weight: bold;
}

.page-download__tab-button--active:hover {
  background-color: #0056b3;
}

.page-download__tab-content {
  display: none;
  padding: 30px;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  background-color: #ffffff;
}

.page-download__tab-content--active {
  display: block;
}

.page-download__tab-content-title {
  font-size: 1.5em;
  color: #007bff;
  margin-bottom: 20px;
  text-align: center;
}

.page-download__installation-list {
  list-style: decimal;
  padding-left: 25px;
  margin-bottom: 25px;
}

.page-download__installation-list li {
  margin-bottom: 10px;
  font-size: 1em;
}

.page-download__text {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 30px;
  color: #555555;
}

.page-download__call-to-action .page-download__button {
  margin: 0 auto;
  display: block;
  max-width: 300px;
}

.page-download__faq-container {
  margin-top: 30px;
}

.page-download__faq-item {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: bold;
  color: #007bff;
  cursor: pointer;
  background-color: #eaf5ff; /* Lighter primary for question background */
  transition: background-color 0.3s ease;
}

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

.page-download__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-download__faq-item[open] .page-download__faq-toggle {
  transform: rotate(45deg);
}

.page-download__faq-answer {
  padding: 15px 25px 20px;
  color: #555555;
  font-size: 1em;
  border-top: 1px solid #e9ecef;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-download__main-title {
    font-size: 2.2em;
  }
  .page-download__section-title {
    font-size: 1.8em;
  }
}

@media (max-width: 768px) {
  .page-download__hero-section {
    padding: 60px 15px;
  }
  .page-download__main-title {
    font-size: 1.8em;
  }
  .page-download__hero-description {
    font-size: 1em;
  }
  .page-download__download-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-download__why-app-section,
  .page-download__methods-section,
  .page-download__pre-install-section,
  .page-download__faq-section,
  .page-download__call-to-action {
    margin: 30px auto;
    padding: 30px 15px;
  }
  .page-download__section-title {
    font-size: 1.6em;
  }
  .page-download__features-grid,
  .page-download__notes-grid {
    grid-template-columns: 1fr;
  }
  .page-download__tab-header {
    flex-direction: column;
    gap: 8px;
  }
  .page-download__tab-button {
    width: 100%;
  }
  .page-download__hero-image,
  .page-download__feature-icon {
    max-width: 100%;
    height: auto;
  }
  .page-download__feature-icon {
    width: 200px; /* Ensure min size is maintained, but scale down if needed */
  }
  /* Ensure all content images within .page-download do not cause horizontal scroll */
  .page-download img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-download__main-title {
    font-size: 1.5em;
  }
  .page-download__button {
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-download__section-title {
    font-size: 1.4em;
  }
  .page-download__feature-title,
  .page-download__note-title {
    font-size: 1.2em;
  }
  .page-download__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
}