.page-download {
  color: #ffffff;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px);
}

.page-download__hero-section {
  background: linear-gradient(135deg, #1A1A2E 0%, #0D0D1A 100%);
  padding: 80px 20px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

.page-download__hero-title {
  font-size: 3.5em;
  color: #E94560;
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 0 0 15px rgba(233, 69, 96, 0.6);
  line-height: 1.2;
}

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

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

.page-download__button {
  display: inline-block;
  background-color: #E94560;
  color: #ffffff;
  padding: 15px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(233, 69, 96, 0.4);
}

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

.page-download__button--android {
  background-color: #4CAF50;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.page-download__button--android:hover {
  background-color: #66BB6A;
}

.page-download__button--ios {
  background-color: #007AFF;
  box-shadow: 0 4px 15px rgba(0, 122, 255, 0.4);
}

.page-download__button--ios:hover {
  background-color: #3399FF;
}

.page-download__hero-image-wrapper {
  margin-top: 50px;
  width: 100%;
  max-width: 1000px; /* Adjust based on image aspect ratio */
  z-index: 1;
}

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

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

.page-download__section-title {
  font-size: 2.8em;
  color: #E94560;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(233, 69, 96, 0.4);
}

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

.page-download__why-app .page-download__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

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

.page-download__benefit-item:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.12);
}

.page-download__benefit-title {
  font-size: 1.5em;
  color: #E94560;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-download__benefit-description {
  font-size: 1em;
  color: #dddddd;
}

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

.page-download__platform-card {
  background-color: rgba(26, 26, 46, 0.7);
  border: 1px solid rgba(233, 69, 96, 0.3);
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-download__platform-title {
  font-size: 2em;
  color: #E94560;
  margin-bottom: 25px;
  text-align: center;
  font-weight: 600;
}

.page-download__platform-description {
  font-size: 1.05em;
  color: #cccccc;
  margin-bottom: 25px;
}

.page-download__steps-list {
  list-style-type: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-download__steps-list li {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-left: 4px solid #E94560;
  border-radius: 5px;
  font-size: 1em;
  color: #f0f0f0;
}

.page-download__steps-list li strong {
  color: #E94560;
}

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

.page-download__button--android-alt {
  background-color: #4CAF50;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.page-download__button--android-alt:hover {
  background-color: #66BB6A;
}

.page-download__button--ios-alt {
  background-color: #007AFF;
  box-shadow: 0 4px 15px rgba(0, 122, 255, 0.4);
}

.page-download__button--ios-alt:hover {
  background-color: #3399FF;
}

.page-download__qr-code-wrapper {
  text-align: center;
}

.page-download__qr-code {
  width: 200px;
  height: 200px;
  border: 5px solid #E94560;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(233, 69, 96, 0.5);
}

.page-download__qr-text {
  margin-top: 10px;
  font-size: 0.9em;
  color: #aaaaaa;
}

.page-download__troubleshooting {
  font-size: 0.95em;
  color: #E94560;
  margin-top: 30px;
  text-align: center;
}

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

.page-download__note-item {
  background-color: rgba(26, 26, 46, 0.7);
  border-left: 5px solid #E94560;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-download__note-title {
  font-size: 1.6em;
  color: #E94560;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-download__note-description {
  font-size: 1em;
  color: #dddddd;
}

.page-download__security-cta {
  text-align: center;
  margin-top: 60px;
  padding: 40px;
  background-color: rgba(26, 26, 46, 0.8);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(233, 69, 96, 0.4);
}

.page-download__security-image {
  width: 400px; /* Display size */
  height: 300px; /* Display size */
  max-width: 100%;
  height: auto;
  margin-bottom: 25px;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(233, 69, 96, 0.6);
}

.page-download__security-text {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-download__button--learn-more {
  background-color: #E94560;
  box-shadow: 0 4px 15px rgba(233, 69, 96, 0.4);
}

.page-download__button--learn-more:hover {
  background-color: #f06a80;
}

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

.page-download__feature-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease;
}

.page-download__feature-item:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.page-download__feature-title {
  font-size: 1.5em;
  color: #E94560;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-download__feature-description {
  font-size: 1em;
  color: #dddddd;
}

.page-download__app-showcase {
  text-align: center;
}

.page-download__app-image {
  width: 800px; /* Display size */
  height: 600px; /* Display size */
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border: 3px solid #E94560;
}

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

.page-download__faq-item {
  background-color: rgba(26, 26, 46, 0.7);
  border: 1px solid rgba(233, 69, 96, 0.3);
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  background-color: #1A1A2E;
  transition: background-color 0.3s ease;
  user-select: none;
}

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

.page-download__faq-question::-webkit-details-marker {
  display: none;
}

.page-download__faq-toggle {
  font-size: 1.5em;
  color: #E94560;
  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: 0 25px 20px;
  font-size: 1em;
  color: #cccccc;
  background-color: rgba(26, 26, 46, 0.8);
  border-top: 1px solid rgba(233, 69, 96, 0.2);
}

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

.page-download__join-cta {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(45deg, #1A1A2E 0%, #E94560 100%);
  border-radius: 20px;
  margin-bottom: 40px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.page-download__join-cta .page-download__section-title {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-download__join-cta .page-download__section-intro {
  color: #f0f0f0;
  margin-bottom: 50px;
}

.page-download__cta-buttons {
  display: flex;
  gap: 25px;
  justify-content: center;
  margin-bottom: 40px;
  z-index: 2;
  position: relative;
}

.page-download__button--primary {
  background-color: #ffffff;
  color: #E94560;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

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

.page-download__button--secondary {
  background-color: #1A1A2E;
  color: #E94560;
  border: 2px solid #E94560;
  box-shadow: 0 6px 20px rgba(26, 26, 46, 0.5);
}

.page-download__button--secondary:hover {
  background-color: #2e2e4e;
  color: #ffffff;
  border-color: #ffffff;
  transform: translateY(-5px);
}

.page-download__join-image {
  width: 1200px; /* Display size */
  height: 675px; /* Display size */
  max-width: 100%;
  height: auto;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.2;
  z-index: 1;
  border-radius: 15px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-download__hero-title {
    font-size: 2.8em;
  }
  .page-download__section-title {
    font-size: 2.2em;
  }
  .page-download__download-guide .page-download__platform-guide {
    grid-template-columns: 1fr;
  }
  .page-download__important-notes .page-download__notes-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-download__hero-title {
    font-size: 2.2em;
  }
  .page-download__hero-description {
    font-size: 1em;
  }
  .page-download__download-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-download__button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-download__section-title {
    font-size: 1.8em;
  }
  .page-download__section-intro {
    font-size: 0.95em;
  }
  .page-download__why-app .page-download__benefits-grid {
    grid-template-columns: 1fr;
  }
  .page-download__platform-card {
    padding: 30px 20px;
  }
  .page-download__platform-title {
    font-size: 1.7em;
  }
  .page-download__steps-list li {
    font-size: 0.95em;
  }
  .page-download__important-notes .page-download__notes-grid {
    grid-template-columns: 1fr;
  }
  .page-download__note-title {
    font-size: 1.4em;
  }
  .page-download__security-image {
    width: 250px; /* Display size */
    height: 187px; /* Display size */
  }
  .page-download__app-features .page-download__features-grid {
    grid-template-columns: 1fr;
  }
  .page-download__feature-title {
    font-size: 1.4em;
  }
  .page-download__app-image {
    width: 600px; /* Display size */
    height: 450px; /* Display size */
  }
  .page-download__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-download__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-download__join-image {
    width: 100%;
    height: auto;
  }
  /* Content area images must not cause horizontal scroll */
  .page-download img {
    max-width: 100%;
    height: auto;
  }
  /* Specific override for QR codes to prevent them from becoming too small */
  .page-download__qr-code {
    width: 150px;
    height: 150px;
  }
  /* Ensure all content area images are at least 200px wide/high */
  .page-download__hero-image,
  .page-download__security-image,
  .page-download__app-image,
  .page-download__join-image {
    min-width: 200px;
    min-height: 200px;
    width: auto; /* Allow auto width to scale with max-width */
    height: auto; /* Allow auto height to scale with max-width */
  }
  .page-download__security-image,
  .page-download__app-image {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-download__hero-title {
    font-size: 1.8em;
  }
  .page-download__section-title {
    font-size: 1.6em;
  }
  .page-download__platform-title {
    font-size: 1.5em;
  }
  .page-download__faq-question {
    font-size: 1em;
  }
  .page-download__qr-code {
    width: 120px;
    height: 120px;
  }
}