/* style/download.css */
:root {
  --primary-color: #FF4500; /* OrangeRed */
  --secondary-color: #1E90FF; /* DodgerBlue */
  --text-color-light: #ffffff;
  --text-color-dark: #333333;
  --background-color-dark: #121212;
  --card-bg-dark: rgba(255, 255, 255, 0.1);
  --border-color-dark: rgba(255, 255, 255, 0.2);
}

.page-download {
  color: var(--text-color-light); /* Body background is dark, so text should be light */
  background-color: var(--background-color-dark);
  min-height: 100vh;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

.page-download__hero-section {
  padding: 120px 20px 80px; /* Adjusted padding-top for fixed header */
  text-align: center;
  background: linear-gradient(135deg, var(--primary-color) 0%, #CC3700 100%);
  color: var(--text-color-light);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-download__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
  line-height: 1.2;
}

.page-download__description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.page-download__description a {
  color: var(--text-color-light);
  text-decoration: underline;
  font-weight: bold;
}

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

.page-download__cta-button {
  display: inline-block;
  padding: 15px 35px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.page-download__cta-button--primary {
  background-color: var(--secondary-color);
  color: var(--text-color-light);
  border: 2px solid var(--secondary-color);
}

.page-download__cta-button--primary:hover {
  background-color: #187bcd;
  border-color: #187bcd;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-download__cta-button--secondary {
  background-color: var(--text-color-light);
  color: var(--primary-color);
  border: 2px solid var(--text-color-light);
}

.page-download__cta-button--secondary:hover {
  background-color: #f0f0f0;
  color: #CC3700;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-download__section--dark {
  background-color: #1a1a1a;
  color: var(--text-color-light);
}

.page-download__why-download-section,
.page-download__guide-section,
.page-download__app-features-section,
.page-download__system-requirements-section,
.page-download__faq-section,
.page-download__call-to-action-section {
  padding: 80px 20px;
}

.page-download__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-download__section--dark .page-download__section-title {
  color: var(--text-color-light);
}

.page-download__text-block {
  font-size: 1.1em;
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto 40px;
  text-align: center;
  color: var(--text-color-light);
}

.page-download__text-block a {
  color: var(--primary-color);
  text-decoration: underline;
}

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

.page-download__feature-card {
  background: var(--card-bg-dark);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color-dark);
}

.page-download__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

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

.page-download__feature-description {
  font-size: 1em;
  line-height: 1.7;
  color: var(--text-color-light);
}

.page-download__feature-description a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-download__platform-guide {
  background: var(--card-bg-dark);
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color-dark);
}

.page-download__platform-title {
  font-size: 2em;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 30px;
  text-align: center;
}

.page-download__step-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-download__step-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 20px 25px;
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  color: var(--text-color-light);
  font-size: 1.05em;
  line-height: 1.7;
  border-left: 5px solid var(--primary-color);
}

.page-download__step-item a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-download__step-number {
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  font-size: 1.1em;
}

.page-download__qr-code-wrapper {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 20px;
}

.page-download__qr-code-image {
  width: 100%;
  max-width: 250px;
  height: auto;
  border: 5px solid var(--text-color-light);
  border-radius: 8px;
}

.page-download__qr-code-caption {
  font-size: 0.95em;
  color: var(--text-color-light);
  margin-top: 10px;
}

.page-download__qr-code-caption a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-download__cta-buttons--single {
  margin-top: 30px;
}

.page-download__app-features-section .page-download__text-block {
  margin-bottom: 50px;
}

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

.page-download__feature-item {
  background: var(--card-bg-dark);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border-left: 4px solid var(--secondary-color);
  color: var(--text-color-light);
}

.page-download__feature-list-icon {
  width: 100%;
  max-width: 80px;
  height: auto;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3)); /* Light shadow for icons on dark background */
}

.page-download__feature-list-title {
  font-size: 1.4em;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.page-download__feature-list-description {
  font-size: 0.95em;
  line-height: 1.7;
}

.page-download__feature-list-description a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-download__system-requirements-section {
  background-color: #222222;
}

.page-download__requirements-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 0 auto;
  color: var(--text-color-light);
}

.page-download__requirements-item {
  background: rgba(255, 255, 255, 0.08);
  border-left: 4px solid var(--primary-color);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  font-size: 1.05em;
}

.page-download__requirements-item strong {
  color: var(--secondary-color);
}

/* FAQ Section Styling */
.page-download__faq-list {
  max-width: 900px;
  margin: 0 auto;
  margin-top: 40px;
}

.page-download__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background: var(--card-bg-dark);
  border: 1px solid var(--border-color-dark);
}

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.08);
  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: rgba(255, 255, 255, 0.12);
}

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

.page-download__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  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: var(--secondary-color);
  transform: rotate(45deg); /* Optional: rotate for 'X' effect */
}

.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;
  padding: 0 20px;
  opacity: 0;
  color: var(--text-color-light);
}

.page-download__faq-item.active .page-download__faq-answer {
  max-height: 2000px !important;
  padding: 20px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 5px 5px;
}

.page-download__faq-answer p {
  margin: 0;
  font-size: 1em;
  line-height: 1.7;
}

.page-download__faq-answer a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-download__call-to-action-section {
  background: linear-gradient(135deg, #CC3700 0%, var(--primary-color) 100%);
  color: var(--text-color-light);
  text-align: center;
  padding: 80px 20px;
}

.page-download__call-to-action-section .page-download__section-title {
  color: var(--text-color-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.page-download__call-to-action-section .page-download__description {
  color: var(--text-color-light);
}

.page-download__call-to-action-section .page-download__description a {
  color: var(--text-color-light);
  text-decoration: underline;
  font-weight: bold;
}

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

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

  .page-download__features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-download__hero-section {
    padding-top: 100px !important; /* Mobile padding-top for fixed header */
    padding-bottom: 60px;
  }

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

  .page-download__description {
    font-size: 1em;
    margin-bottom: 30px;
  }

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

  .page-download__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 25px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-download__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-download__text-block {
    font-size: 0.95em;
    margin-bottom: 30px;
    padding: 0 10px;
  }

  .page-download__why-download-section,
  .page-download__guide-section,
  .page-download__app-features-section,
  .page-download__system-requirements-section,
  .page-download__faq-section,
  .page-download__call-to-action-section {
    padding: 50px 15px;
  }

  .page-download__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .page-download__feature-card {
    padding: 25px;
  }

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

  .page-download__feature-image {
    max-width: 250px;
  }

  .page-download__platform-guide {
    padding: 30px 20px;
  }

  .page-download__platform-title {
    font-size: 1.6em;
    margin-bottom: 20px;
  }

  .page-download__step-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 15px 20px;
    font-size: 0.95em;
  }

  .page-download__qr-code-image {
    max-width: 200px;
    border-width: 3px;
  }

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

  .page-download__feature-list-icon {
    max-width: 60px;
  }

  .page-download__feature-list-title {
    font-size: 1.2em;
  }

  .page-download__requirements-item {
    font-size: 0.95em;
    padding: 12px 15px;
  }

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

  .page-download__faq-question h3 {
    font-size: 1em;
  }

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

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

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

  .page-download__container,
  .page-download__why-download-section,
  .page-download__guide-section,
  .page-download__app-features-section,
  .page-download__system-requirements-section,
  .page-download__faq-section,
  .page-download__call-to-action-section,
  .page-download__feature-card,
  .page-download__platform-guide,
  .page-download__feature-item,
  .page-download__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-download__main-title {
    font-size: 1.8em;
  }

  .page-download__section-title {
    font-size: 1.5em;
  }
  
  .page-download__hero-section {
    padding: 80px 15px 40px; /* Further adjust for smaller screens */
  }
}