/* 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); /* Fixed header offset */
}

.page-download__hero-section {
  background-color: #0A2463; /* Primary dark blue background */
  color: #ffffff; /* White text for dark background */
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

.page-download__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #E3B505; /* Gold accent for title */
}

.page-download__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-download__button {
  display: inline-block;
  background-color: #E3B505; /* Gold button */
  color: #0A2463; /* Dark blue text */
  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;
}

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

.page-download__hero-image {
  margin-top: 50px;
  position: relative;
  z-index: 1;
}

.page-download__hero-image img {
  width: 100%;
  max-width: 800px; /* Max width for display, HTML width/height set larger */
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.page-download__section--alt {
  background-color: #f0f0f0; /* Slightly off-white for contrast */
}

.page-download__section-title {
  font-size: 2.2em;
  color: #0A2463;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-download__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #E3B505;
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-download__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjusted min-width for cards */
  gap: 30px;
  margin-top: 30px;
}

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

.page-download__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-download__card-image {
  width: 100%;
  max-width: 300px; /* Max width for display, HTML width/height set larger */
  min-width: 200px; /* Enforce minimum display size */
  min-height: 200px; /* Enforce minimum display size */
  height: auto;
  display: block;
  margin: 0 auto 20px;
  border-radius: 8px;
  object-fit: cover; /* Ensure image covers the area */
}

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

.page-download__card-description {
  font-size: 0.95em;
  color: #555555;
}

.page-download__app-download-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  margin-top: 30px;
}

.page-download__app-download-item {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  width: 100%;
  max-width: 600px;
  text-align: center;
}

.page-download__app-download-title {
  font-size: 1.8em;
  color: #0A2463;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.page-download__app-platform-icon {
  width: 200px; /* Minimum size */
  height: 200px; /* Minimum size */
  object-fit: contain; /* Ensure the image fits without cropping */
  margin-right: 15px;
}

.page-download__app-download-qr {
  width: 200px;
  height: 200px;
  margin: 20px auto;
  border: 5px solid #E3B505;
  border-radius: 8px;
  display: block;
}

.page-download__app-download-qr-label {
  font-size: 0.9em;
  color: #777777;
  margin-top: 10px;
  margin-bottom: 20px;
}

.page-download__app-download-link {
  display: inline-block;
  background-color: #0A2463; /* Dark blue button */
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: background-color 0.3s ease;
}

.page-download__app-download-link:hover {
  background-color: #1a3a8a;
}

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

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

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1em;
  font-weight: bold;
  color: #0A2463;
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid #eeeeee;
}

.page-download__faq-item[open] .page-download__faq-question {
  border-bottom: 1px solid transparent; /* Hide border when open */
}

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

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

.page-download__faq-answer {
  padding: 15px 25px 20px;
  font-size: 0.95em;
  color: #555555;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-download__hero-title {
    font-size: 2em;
  }

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

  .page-download__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-download__button {
    width: 100%;
    max-width: 300px;
  }

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

  .page-download__grid {
    grid-template-columns: 1fr;
  }

  .page-download__app-download-title {
    font-size: 1.5em;
    flex-direction: column;
    gap: 10px;
  }

  /* Mobile image scaling */
  .page-download__hero-image img,
  .page-download__card-image,
  .page-download__app-download-qr,
  .page-download__app-platform-icon {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure minimum size on mobile */
    min-height: 200px; /* Ensure minimum size on mobile */
  }
  /* Ensure content area does not overflow horizontally */
  .page-download {
    max-width: 100%;
    overflow-x: hidden;
  }
}