/* style/download.css */
.page-download {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: var(--secondary-color, #FFFFFF); /* Body background is light */
}

.page-download__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-download__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-download__hero-section {
  position: relative;
  width: 100%;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  overflow: hidden;
}

.page-download__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
}

.page-download__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.page-download__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 1;
}

.page-download__hero-content {
  max-width: 800px;
  padding: 20px;
  color: #ffffff;
}

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

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

.page-download__section {
  padding: 60px 20px;
  text-align: center;
}

.page-download__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-download__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: inherit;
}

.page-download__section-intro {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

.page-download__btn-primary {
  display: inline-block;
  background-color: #26A9E0;
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-download__btn-primary:hover {
  background-color: #1a8cc4;
}

.page-download__btn-lg {
  padding: 18px 35px;
  font-size: 1.3em;
}

/* Why Download Section */
.page-download__why-download .page-download__section-title,
.page-download__why-download .page-download__section-intro {
  color: #333333;
}

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

.page-download__feature-item {
  text-align: left;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
  color: #333333;
}

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

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

.page-download__feature-text {
  font-size: 1em;
  color: #555555;
}

/* Download Guide Section */
.page-download__download-guide .page-download__section-title,
.page-download__download-guide .page-download__section-intro {
  color: #ffffff;
}

.page-download__guide-platform {
  margin-top: 50px;
  text-align: left;
  padding: 25px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.page-download__guide-subtitle {
  font-size: 2em;
  margin-bottom: 30px;
  color: #ffffff;
  text-align: center;
}

.page-download__guide-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
}

.page-download__qr-code-box {
  flex: 1 1 300px;
  text-align: center;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  color: #333333;
}

.page-download__qr-code {
  width: 250px;
  height: 250px;
  max-width: 100%;
  height: auto;
  margin-bottom: 15px;
}

.page-download__qr-text {
  font-size: 1.1em;
  font-weight: bold;
}

.page-download__steps-list {
  flex: 2 1 600px;
  list-style: none;
  counter-reset: step-counter;
  padding: 0;
  margin: 0;
}

.page-download__steps-list li {
  counter-increment: step-counter;
  margin-bottom: 20px;
  padding-left: 40px;
  position: relative;
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-download__steps-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  background-color: #EA7C07; /* Login color for steps */
  color: #ffffff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2em;
}

.page-download__step-title {
  color: #ffffff;
  font-size: 1.2em;
}

.page-download__cta-area {
  margin-top: 50px;
  text-align: center;
}

.page-download__cta-text {
  font-size: 1.2em;
  margin-bottom: 25px;
  color: #ffffff;
}

/* Security Section */
.page-download__security .page-download__section-title,
.page-download__security .page-download__section-intro {
  color: #333333;
}

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

.page-download__security-item {
  text-align: center;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  background-color: #ffffff;
  color: #333333;
}

.page-download__security-icon {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
}

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

.page-download__security-item-text {
  font-size: 1em;
  color: #555555;
}

.page-download__security-footer {
  margin-top: 40px;
  font-size: 1.1em;
  color: #555555;
}

/* Games on App Section */
.page-download__games-on-app .page-download__section-title,
.page-download__games-on-app .page-download__section-intro {
  color: #ffffff;
}

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

.page-download__game-card {
  text-align: left;
  padding: 20px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-download__game-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-download__game-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-download__game-description {
  font-size: 0.95em;
  color: #f0f0f0;
}

/* FAQ Section */
.page-download__faq-section .page-download__section-title,
.page-download__faq-section .page-download__section-intro {
  color: #333333;
}

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

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

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

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

.page-download__faq-title {
  margin: 0;
  color: inherit;
}

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

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

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

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

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

/* Final CTA Section */
.page-download__cta-final .page-download__section-title,
.page-download__cta-final .page-download__section-intro {
  color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-download__hero-title {
    font-size: 2.5em;
  }
  .page-download__section-title {
    font-size: 2em;
  }
  .page-download__hero-description,
  .page-download__section-intro {
    font-size: 1em;
  }
  .page-download__feature-title,
  .page-download__game-title {
    font-size: 1.3em;
  }
  .page-download__guide-subtitle {
    font-size: 1.8em;
  }
}

@media (max-width: 768px) {
  .page-download {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-download__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }
  .page-download__hero-title {
    font-size: 2em;
  }
  .page-download__hero-description {
    font-size: 0.9em;
  }
  .page-download__section {
    padding: 40px 15px;
  }
  .page-download__section-title {
    font-size: 1.8em;
  }
  .page-download__section-intro {
    font-size: 0.9em;
  }
  .page-download__btn-primary,
  .page-download__btn-lg {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-download__video,
  .page-download__feature-image,
  .page-download__qr-code,
  .page-download__security-icon,
  .page-download__game-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-download__video-wrapper,
  .page-download__container,
  .page-download__features-grid,
  .page-download__guide-content,
  .page-download__security-points,
  .page-download__games-grid,
  .page-download__faq-list,
  .page-download__cta-area {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-download__guide-content {
    flex-direction: column;
  }
  .page-download__steps-list {
    width: 100%;
    padding-top: 20px;
  }
  .page-download__qr-code-box {
    width: 100%;
  }
  .page-download__steps-list li {
    font-size: 1em;
  }
  .page-download__hero-content {
    padding: 15px;
  }
  .page-download__game-card {
    padding: 15px;
  }
  .page-download__faq-question {
    padding: 12px 15px;
  }
  .page-download__faq-answer {
    padding: 10px 15px;
  }
}

@media (max-width: 480px) {
  .page-download__hero-title {
    font-size: 1.8em;
  }
  .page-download__section-title {
    font-size: 1.6em;
  }
  .page-download__btn-primary {
    font-size: 1em;
    padding: 12px 20px;
  }
  .page-download__feature-title,
  .page-download__game-title {
    font-size: 1.2em;
  }
  .page-download__guide-subtitle {
    font-size: 1.6em;
  }
}