.page-download {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Dark body background #0a0a0a, so use light text */
  background-color: transparent; /* Main content background is transparent to show body background */
}

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

.page-download__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  padding-top: var(--header-offset, 120px);
  text-align: center;
  background: linear-gradient(135deg, #26A9E0, #1a7a9e);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

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

.page-download__main-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-download__intro-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-download__btn-primary,
.page-download__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-download__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-download__btn-primary:hover {
  background-color: #d16e06;
  border-color: #d16e06;
}

.page-download__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #ffffff;
}

.page-download__btn-secondary:hover {
  background-color: #f0f0f0;
  border-color: #f0f0f0;
}

.page-download__qr-code-wrapper {
  margin-top: 20px;
}

.page-download__qr-code {
  width: 200px;
  height: 200px;
  border: 5px solid #ffffff;
  border-radius: 10px;
  display: block;
  margin: 0 auto 10px;
  max-width: 100%;
  height: auto;
}

.page-download__qr-text {
  font-size: 1em;
  color: #f0f0f0;
}

.page-download__hero-image-wrapper {
  margin-top: 40px;
  z-index: 0;
}

.page-download__hero-app-image {
  width: 400px;
  height: 300px;
  object-fit: contain;
  max-width: 100%;
  height: auto;
}

.page-download__video-section {
  padding: 80px 0;
  background-color: #0a0a0a; /* Ensure consistency with body background */
  text-align: center;
  color: #ffffff;
}

.page-download__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 40px auto 0;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.page-download__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  max-width: 100%;
  height: auto;
  display: block;
}

.page-download__section-title {
  font-size: 2.2em;
  margin-bottom: 20px;
  color: #26A9E0;
}

.page-download__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  color: #f0f0f0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-download__why-download-section,
.page-download__features-section,
.page-download__download-guide-section,
.page-download__installation-guide-section,
.page-download__system-requirements-section,
.page-download__exclusive-promotions-section,
.page-download__faq-section {
  padding: 80px 0;
  background-color: #0a0a0a; /* Dark background for content sections */
  color: #ffffff;
}

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

.page-download__card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter dark for contrast */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

.page-download__card:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-download__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-download__card-text {
  font-size: 1em;
  color: #e0e0e0;
}

.page-download__feature-item {
  text-align: center;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 10px;
  transition: background-color 0.3s ease;
  color: #ffffff;
}

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

.page-download__feature-image {
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  max-width: 100%;
  height: auto;
}

.page-download__feature-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-download__feature-text {
  font-size: 0.95em;
  color: #e0e0e0;
}

.page-download__step-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 40px;
}

.page-download__step-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background-color: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 10px;
  color: #ffffff;
}

.page-download__step-number {
  font-size: 2em;
  font-weight: bold;
  color: #EA7C07;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #EA7C07;
  border-radius: 50%;
}

.page-download__step-title {
  font-size: 1.6em;
  margin-top: 0;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-download__step-text {
  font-size: 1em;
  color: #e0e0e0;
}

.page-download__list {
  list-style: disc inside;
  text-align: left;
  padding-left: 20px;
  color: #e0e0e0;
}

.page-download__list li {
  margin-bottom: 8px;
  font-size: 1em;
}

.page-download__note-text {
  margin-top: 40px;
  font-style: italic;
  color: #aaaaaa;
  text-align: center;
}

.page-download__promo-card {
  display: flex;
  flex-direction: column;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  margin-top: 40px;
  color: #ffffff;
}

.page-download__promo-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 350px;
}

.page-download__promo-content {
  padding: 30px;
  text-align: center;
}

.page-download__promo-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-download__promo-text {
  font-size: 1.1em;
  margin-bottom: 25px;
  color: #e0e0e0;
}

.page-download__promo-note {
  margin-top: 20px;
  font-size: 0.9em;
  color: #aaaaaa;
  text-align: center;
}

.page-download__promo-note a {
  color: #26A9E0;
  text-decoration: none;
}

.page-download__promo-note a:hover {
  text-decoration: underline;
}

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

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

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

.page-download__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-download__faq-title {
  margin: 0;
  font-size: 1.2em;
  color: #26A9E0;
}

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

.page-download__faq-item.active .page-download__faq-toggle {
  transform: rotate(0deg); /* Explicitly set to 0 for '-' */
}

.page-download__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #e0e0e0;
}

.page-download__faq-item.active .page-download__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px 25px;
}

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

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

.page-download__cta-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #ffffff;
}

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

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

@media (max-width: 768px) {
  .page-download__hero-section {
    flex-direction: column;
    padding: 40px 0;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-download__hero-content {
    padding: 0 15px;
  }

  .page-download__main-title {
    font-size: 2em;
  }

  .page-download__intro-text {
    font-size: 1em;
  }

  .page-download__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  .page-download__btn-primary,
  .page-download__btn-secondary {
    width: 100%;
    padding: 12px 20px;
    font-size: 1em;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-download__hero-image-wrapper {
    margin-top: 30px;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
  }

  .page-download__hero-app-image,
  .page-download__qr-code {
    width: 100%;
    height: auto;
    max-width: 100% !important;
    display: block !important;
  }

  .page-download__video-section,
  .page-download__why-download-section,
  .page-download__features-section,
  .page-download__download-guide-section,
  .page-download__installation-guide-section,
  .page-download__system-requirements-section,
  .page-download__exclusive-promotions-section,
  .page-download__faq-section,
  .page-download__cta-section {
    padding: 40px 0;
  }

  .page-download__container {
    padding: 0 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

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

  .page-download__section-description {
    font-size: 0.95em;
  }

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

  .page-download__card,
  .page-download__feature-item,
  .page-download__step-item {
    padding: 20px;
  }

  .page-download__card-title,
  .page-download__feature-title {
    font-size: 1.3em;
  }

  .page-download__step-title {
    font-size: 1.4em;
  }

  .page-download__step-number {
    font-size: 1.8em;
    width: 35px;
    height: 35px;
  }

  .page-download__promo-card {
    flex-direction: column;
  }

  .page-download__promo-content {
    padding: 20px;
  }

  .page-download__promo-title {
    font-size: 1.5em;
  }

  .page-download__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-download__faq-title {
    font-size: 1.1em;
  }

  .page-download__faq-answer {
    padding: 0 20px;
  }

  .page-download__faq-item.active .page-download__faq-answer {
    padding: 15px 20px 20px;
  }

  .page-download__cta-title {
    font-size: 2em;
  }

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

  /* Video specific mobile responsive styles */
  .page-download__video-wrapper {
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    margin-left: auto;
    margin-right: auto;
  }

  .page-download__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-download__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  /* Content area images must not be smaller than 200px (except shared header/footer icons) */
  .page-download img {
    min-width: 200px;
    min-height: 200px;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-download__hero-app-image,
  .page-download__qr-code,
  .page-download__feature-image,
  .page-download__promo-image {
    min-width: 200px;
    min-height: 200px;
  }

  /* Ensure all img tags in content area have min-width/height */
  .page-download__hero-app-image[width="400"][height="300"] { width: 400px; height: 300px; }
  .page-download__qr-code[width="200"][height="200"] { width: 200px; height: 200px; }
  .page-download__feature-image[width="300"][height="200"] { width: 300px; height: 200px; }
  .page-download__promo-image[width="600"][height="337"] { width: 600px; height: 337px; }

  /* Ensure content area containers for images and text don't overflow */
  .page-download__hero-section,
  .page-download__video-section,
  .page-download__why-download-section,
  .page-download__features-section,
  .page-download__download-guide-section,
  .page-download__installation-guide-section,
  .page-download__system-requirements-section,
  .page-download__exclusive-promotions-section,
  .page-download__faq-section,
  .page-download__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
}