/* style/download.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #008000; /* Green */
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f8f9fa;
  --bg-dark-1: #0d0d0d; /* Assuming shared.css defines --dark-bg-1 as a dark color */
  --border-color: #e0e0e0;
}

.page-download {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light sections */
  background-color: var(--bg-light); /* Default light background */
  padding-top: 120px; /* Desktop: Clear fixed header */
}

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

/* --- General Section Styles --- */
.page-download__hero-section,
.page-download__benefits-section,
.page-download__guide-section,
.page-download__games-section,
.page-download__promo-section,
.page-download__security-section,
.page-download__faq-section,
.page-download__final-cta {
  padding: 60px 0;
  text-align: center;
}

.page-download__dark-section {
  background-color: var(--secondary-color); /* Using green for dark sections */
  color: var(--text-light);
}

.page-download__dark-bg {
  background-color: var(--secondary-color);
  color: var(--text-light);
}

.page-download__light-text {
  color: var(--text-light);
}

.page-download__section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.page-download__dark-section .page-download__section-title,
.page-download__dark-bg .page-download__section-title {
  color: var(--primary-color);
}

.page-download__section-description {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Hero Section --- */
.page-download__hero-section {
  padding-top: 10px; /* Specific padding for video section if it were present, or first content section */
  background-color: var(--secondary-color);
  color: var(--text-light);
  padding-bottom: 80px;
}

.page-download__main-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--primary-color);
  line-height: 1.2;
}

.page-download__description {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-download__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
}

.page-download__btn-primary {
  background: var(--primary-color);
  color: var(--text-dark);
}

.page-download__btn-primary:hover {
  background: darken(var(--primary-color), 10%); /* Placeholder for darken */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-download__btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-download__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-download__qr-codes {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-download__qr-item {
  text-align: center;
  background-color: var(--bg-light);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-download__qr-image {
  width: 200px;
  height: 200px;
  margin-bottom: 15px;
  border-radius: 4px;
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-download__qr-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
}

/* --- Benefits 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 {
  padding: 30px;
  background: var(--bg-light);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.page-download__feature-item:hover {
  transform: translateY(-5px);
}

.page-download__feature-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-download__feature-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-download__feature-text {
  font-size: 16px;
  color: var(--text-dark);
}

/* --- Guide Section --- */
.page-download__guide-section {
  background-color: var(--secondary-color);
  color: var(--text-light);
}

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

.page-download__guide-block {
  background: var(--bg-light);
  color: var(--text-dark);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: left;
}

.page-download__guide-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.page-download__guide-list {
  list-style: decimal;
  margin-left: 20px;
  margin-bottom: 30px;
  font-size: 16px;
}

.page-download__guide-list li {
  margin-bottom: 10px;
}

.page-download__guide-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  max-width: 100%;
  display: block;
}

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

.page-download__game-item {
  padding: 20px;
  background: var(--bg-light);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.page-download__game-item:hover {
  transform: translateY(-5px);
}

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

.page-download__game-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-download__game-text {
  font-size: 15px;
  color: var(--text-dark);
}

/* --- Promo Section --- */
.page-download__promo-section {
  background-color: var(--secondary-color);
  color: var(--text-light);
}

.page-download__promo-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 700px;
  text-align: left;
  font-size: 18px;
}

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

.page-download__promo-list li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.page-download__small-text {
  font-size: 14px;
  margin-top: 20px;
  color: var(--text-light);
}

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

.page-download__security-item {
  padding: 30px;
  background: var(--bg-light);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.page-download__security-item:hover {
  transform: translateY(-5px);
}

.page-download__security-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-download__security-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-download__security-text {
  font-size: 16px;
  color: var(--text-dark);
}

/* --- FAQ Section --- */
.page-download__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-download__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-download__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-download__faq-item.active .page-download__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: var(--text-dark);
}

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-download__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-download__faq-question:active {
  background: #eeeeee;
}

.page-download__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--text-dark);
}

.page-download__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

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

/* --- Final CTA Section --- */
.page-download__final-cta {
  padding-bottom: 80px;
}

/* --- Card Styles (for contrast) --- */
.page-download__card {
  background: var(--bg-light);
  color: var(--text-dark);
  border: 1px solid var(--border-color);
}

/* --- Responsive Design (Mobile First) --- */
@media (max-width: 768px) {
  .page-download {
    padding-top: 100px; /* Mobile: Clear fixed header */
    font-size: 16px;
    line-height: 1.6;
  }

  .page-download__container {
    padding: 0 15px;
  }

  .page-download__hero-section,
  .page-download__benefits-section,
  .page-download__guide-section,
  .page-download__games-section,
  .page-download__promo-section,
  .page-download__security-section,
  .page-download__faq-section,
  .page-download__final-cta {
    padding: 40px 0;
  }

  .page-download__main-title {
    font-size: 32px;
  }

  .page-download__description,
  .page-download__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

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

  .page-download__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    box-sizing: border-box !important;
  }

  .page-download__qr-codes {
    flex-direction: column;
    gap: 20px;
  }

  .page-download__qr-item {
    width: 100%;
    box-sizing: border-box;
  }

  .page-download__qr-image {
    width: 150px;
    height: 150px;
  }

  .page-download__section-title {
    font-size: 28px;
  }

  .page-download__features-grid,
  .page-download__platform-guide,
  .page-download__games-grid,
  .page-download__security-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-download__feature-item,
  .page-download__guide-block,
  .page-download__game-item,
  .page-download__security-item {
    padding: 20px;
  }

  .page-download__feature-title,
  .page-download__guide-title,
  .page-download__game-title,
  .page-download__security-title {
    font-size: 20px;
  }

  .page-download__feature-icon,
  .page-download__security-icon {
    width: 60px;
    height: 60px;
  }

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

  .page-download__promo-list {
    font-size: 16px;
    margin: 30px auto;
  }

  .page-download__faq-question {
    padding: 15px;
  }

  .page-download__faq-question h3 {
    font-size: 15px;
  }

  .page-download__faq-toggle {
    width: 24px;
    height: 24px;
    font-size: 20px;
  }

  .page-download__faq-item.active .page-download__faq-answer {
    padding: 15px !important;
  }
  
  /* Ensure all images are responsive */
  .page-download img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  /* Ensure all containers with images/buttons are responsive */
  .page-download__hero-section,
  .page-download__benefits-section,
  .page-download__guide-section,
  .page-download__games-section,
  .page-download__promo-section,
  .page-download__security-section,
  .page-download__faq-section,
  .page-download__final-cta,
  .page-download__container,
  .page-download__card,
  .page-download__qr-item,
  .page-download__feature-item,
  .page-download__guide-block,
  .page-download__game-item,
  .page-download__security-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Override specific padding for hero section on mobile */
  .page-download__hero-section {
    padding-top: 10px !important;
  }

  /* Ensure all buttons are responsive */
  .page-download__cta-button,
  .page-download__btn-primary,
  .page-download__btn-secondary,
  .page-download a[class*="button"],
  .page-download a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .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: 0;
    padding-right: 0;
    overflow: hidden !important;
    flex-wrap: wrap !important;
    gap: 15px;
  }

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