/* style/download.css */
.page-download {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Matches body background */
}

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

/* Hero Section */
.page-download__hero-section {
  position: relative;
  background: linear-gradient(135deg, #1A1A1A, #0a0a0a); /* Dark gradient background */
  color: #ffffff;
  padding: 80px 0 60px;
  text-align: center;
  padding-top: var(--header-offset, 120px);
  overflow: hidden;
}

.page-download__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('[GALLERY:hero_bg:1920x1080:wwin999,app_hero,background_pattern,abstract_gaming]') no-repeat center center/cover;
  opacity: 0.1;
  z-index: 0;
}

.page-download__hero-section > .page-download__container {
  position: relative;
  z-index: 1;
}

.page-download__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFD700; /* Gold color for main title */
  font-weight: bold;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.page-download__description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-download__btn-primary,
.page-download__btn-secondary {
  display: inline-block;
  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;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-download__btn-primary {
  background-color: #FFD700; /* Gold background */
  color: #1A1A1A; /* Dark text for contrast */
  border: 2px solid #FFD700;
}

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

.page-download__btn-secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
}

.page-download__btn-secondary:hover {
  background-color: #FFD700;
  color: #1A1A1A;
  transform: translateY(-3px);
}

.page-download__qr-code-area {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-download__qr-code {
  width: 300px;
  height: 300px;
  border: 5px solid #FFD700;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-download__qr-text {
  margin-top: 20px;
  font-size: 1.1em;
  color: #f0f0f0;
}

/* General Section Styles */
.page-download__section {
  padding: 60px 0;
}

.page-download__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  text-align: center;
  color: #FFD700; /* Gold color for section titles */
  font-weight: bold;
}

.page-download__text-block {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-download__dark-bg {
  background-color: #1A1A1A;
  color: #ffffff;
}

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

/* Introduction Section */
.page-download__introduction p {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Download Guide Section */
.page-download__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.page-download__guide-item {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for cards */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: #ffffff;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-download__guide-image {
  width: 400px;
  height: 300px;
  object-fit: contain;
  margin-bottom: 25px;
  border-radius: 8px;
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-download__step-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 20px;
}

.page-download__step-list {
  text-align: left;
  list-style: none;
  padding-left: 0;
  font-size: 1.05em;
}

.page-download__step-list li {
  margin-bottom: 15px;
  padding-left: 25px;
  position: relative;
}

.page-download__step-list li::before {
  content: '✔️';
  position: absolute;
  left: 0;
  color: #FFD700;
}

/* Features Section */
.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: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: #ffffff;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-download__feature-icon {
  width: 300px;
  height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-download__feature-title {
  font-size: 1.6em;
  color: #FFD700;
  margin-bottom: 15px;
}

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

/* Benefits Section */
.page-download__benefit-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-download__benefit-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-download__benefit-item::before {
  content: '✨';
  display: block;
  font-size: 2em;
  margin-bottom: 15px;
}

.page-download__benefit-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-download__benefit-description {
  font-size: 1.05em;
  line-height: 1.7;
  color: #f0f0f0;
}

/* Video Section */
.page-download__video-section .page-download__container {
  text-align: center;
}

.page-download__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 30px auto;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
  width: 100%;
  box-sizing: border-box;
}

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

.page-download__video-caption {
  margin-top: 20px;
  font-size: 1.1em;
  color: #f0f0f0;
}

/* Call to Action Section */
.page-download__cta {
  text-align: center;
  background-color: #1A1A1A;
  color: #ffffff;
}

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

/* FAQ Section */
.page-download__faq-section {
  background-color: #1A1A1A;
  color: #ffffff;
}

.page-download__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-download__faq-item {
  margin-bottom: 15px;
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 8px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.05);
}

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: rgba(255, 215, 0, 0.1);
  transition: background-color 0.3s ease;
}

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

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

.page-download__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #FFD700;
  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: #f0f0f0;
}

.page-download__faq-item.active .page-download__faq-answer {
  max-height: 1000px !important; /* Ensure it expands sufficiently */
  padding: 20px;
}

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

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

@media (max-width: 768px) {
  .page-download {
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-download__description {
    font-size: 1.1em;
  }

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

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

  .page-download__btn-primary,
  .page-download__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
  }

  .page-download__qr-code {
    width: 250px;
    height: 250px;
  }

  .page-download__guide-steps,
  .page-download__features-grid,
  .page-download__benefit-list {
    grid-template-columns: 1fr;
  }

  .page-download__guide-image,
  .page-download__feature-icon {
    width: 100% !important;
    height: auto !important;
  }

  .page-download img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-download__section,
  .page-download__card,
  .page-download__container,
  .page-download__video-wrapper,
  .page-download__cta-buttons,
  .page-download__button-group,
  .page-download__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }

  .page-download__hero-section,
  .page-download__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Apply header offset for mobile */
  }

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

  .page-download__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
}

/* Color Contrast Specifics */
.page-download__dark-bg {
  background-color: #1A1A1A;
  color: #ffffff;
}

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

.page-download__card {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-download__btn-primary {
  background: #FFD700;
  color: #1A1A1A; /* Dark text for contrast on gold */
}

.page-download__btn-secondary {
  background: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-download__faq-question {
  background-color: rgba(255, 215, 0, 0.1);
}
.page-download__faq-title,
.page-download__faq-toggle {
  color: #FFD700;
}

/* Ensure no filter is used on images */
.page-download img { /* Global img rule */
  filter: none !important;
}