/* style/download.css */
.page-download {
  padding-top: var(--header-offset, 120px);
  background-color: #f8f8f8;
  color: #333333;
  font-family: Arial, sans-serif;
}

.page-download__hero-section {
  background-color: #0A2463;
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

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

.page-download__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

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

.page-download__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  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;
  min-width: 220px;
}

.page-download__button--ios {
  background-color: #E3B23C;
  color: #0A2463;
}

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

.page-download__button--android {
  background-color: #0A2463;
  color: #E3B23C;
  border: 2px solid #E3B23C;
}

.page-download__button--android:hover {
  background-color: #0d2d6e;
  transform: translateY(-2px);
}

.page-download__hero-image {
  margin-top: 40px;
  position: relative;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-download__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

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

.page-download__section-title {
  font-size: 2.5em;
  color: #0A2463;
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

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

.page-download__why-app-section {
  background-color: #ffffff;
  padding: 60px 0;
}

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

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

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

.page-download__feature-item img {
  width: 200px;
  height: 200px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

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

.page-download__feature-description {
  font-size: 0.95em;
  line-height: 1.7;
  color: #555555;
}

.page-download__cta-container {
  text-align: center;
  margin-top: 60px;
}

.page-download__button--primary {
  background-color: #E3B23C;
  color: #0A2463;
  padding: 18px 40px;
  font-size: 1.2em;
  border-radius: 10px;
}

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

.page-download__download-methods-section {
  background-color: #e6f0f7;
  padding: 60px 0;
}

.page-download__method-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.page-download__method-card {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.page-download__method-title {
  font-size: 2em;
  color: #0A2463;
  margin-bottom: 25px;
}

.page-download__method-card img {
  width: 400px;
  height: 400px;
  margin-bottom: 30px;
  border: 5px solid #E3B23C;
  border-radius: 10px;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-download__method-steps {
  list-style: none;
  padding: 0;
  text-align: left;
  margin-bottom: 30px;
}

.page-download__method-steps li {
  font-size: 1.05em;
  line-height: 2.2;
  margin-bottom: 10px;
  position: relative;
  padding-left: 30px;
}

.page-download__method-steps li:before {
  content: counter(step-counter);
  counter-increment: step-counter;
  background-color: #E3B23C;
  color: #0A2463;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 5px;
}

.page-download__button--secondary {
  background-color: #0A2463;
  color: #E3B23C;
  border: 2px solid #E3B23C;
}

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

.page-download__pre-installation-section {
  background-color: #f8f8f8;
  padding: 60px 0;
}

.page-download__notes-list {
  list-style: none;
  padding: 0;
  margin-top: 50px;
}

.page-download__note-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
  border-left: 5px solid #0A2463;
}

.page-download__note-title {
  font-size: 1.6em;
  color: #0A2463;
  margin-bottom: 15px;
}

.page-download__note-description {
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
}

.page-download__faq-section {
  background-color: #e6f0f7;
  padding: 60px 0;
}

.page-download__faq-list {
  margin-top: 50px;
}

.page-download__faq-item {
  background-color: #ffffff;
  margin-bottom: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.page-download__faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.3em;
  font-weight: bold;
  color: #0A2463;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  outline: none;
  transition: background-color 0.3s ease;
}

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

.page-download__faq-question[aria-expanded="true"] {
  background-color: #f0f4f8;
}

.page-download__faq-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%230A2463"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.3s ease;
}

.page-download__faq-question[aria-expanded="true"] .page-download__faq-icon {
  transform: rotate(180deg);
}

.page-download__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1.05em;
  line-height: 1.7;
  color: #555555;
  display: none;
}

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

.page-download__cta-bottom-section {
  background-color: #0A2463;
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
}

.page-download__cta-bottom-title {
  font-size: 2.8em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #E3B23C;
}

.page-download__cta-bottom-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.page-download__button--large {
  padding: 20px 45px;
  font-size: 1.3em;
  border-radius: 12px;
  background-color: #E3B23C;
  color: #0A2463;
}

.page-download__button--large:hover {
  background-color: #d1a135;
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-download__hero-title {
    font-size: 2.8em;
  }
  .page-download__hero-description {
    font-size: 1.1em;
  }
  .page-download__section-title {
    font-size: 2em;
  }
  .page-download__method-card-grid {
    grid-template-columns: 1fr;
  }
  .page-download__method-card img {
    width: 300px;
    height: 300px;
  }
  .page-download__button {
    min-width: 180px;
    padding: 12px 25px;
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-download {
    padding-top: var(--header-offset, 80px); /* Adjust for mobile header offset */
  }
  .page-download__hero-section {
    padding: 60px 15px;
  }
  .page-download__hero-title {
    font-size: 2.2em;
  }
  .page-download__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-download__download-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-download__button {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  .page-download__hero-image img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
  }
  .page-download__content-area {
    padding: 40px 15px;
  }
  .page-download__section-title {
    font-size: 1.8em;
  }
  .page-download__section-text {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-download__features-grid {
    grid-template-columns: 1fr;
  }
  .page-download__feature-item img {
    width: 200px;
    height: 200px;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
  }
  .page-download__method-card-grid {
    grid-template-columns: 1fr;
  }
  .page-download__method-card img {
    width: 250px;
    height: 250px;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
  }
  .page-download__method-title {
    font-size: 1.6em;
  }
  .page-download__method-steps li {
    font-size: 0.95em;
  }
  .page-download__note-title {
    font-size: 1.4em;
  }
  .page-download__note-description {
    font-size: 0.9em;
  }
  .page-download__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-download__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 0.95em;
  }
  .page-download__cta-bottom-title {
    font-size: 2.2em;
  }
  .page-download__cta-bottom-description {
    font-size: 1em;
  }
  .page-download__button--large {
    font-size: 1.1em;
    padding: 15px 30px;
  }

  /* Ensure all images within .page-download are responsive and do not cause overflow */
  .page-download img {
    max-width: 100%;
    height: auto;
  }
}