/* Base styles for the download page */
.page-download {
  background-color: #0A0A0A; /* Body background from custom colors */
  color: #FFF6D6; /* Main text color from custom colors for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-download__section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: #F2C14E; /* Primary color for titles */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-download__section-intro-text {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #FFF6D6;
}

/* Hero Section */
.page-download__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, header offset handled by body */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-download__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for desktop */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.page-download__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-width: 1920px; /* Ensure image doesn't stretch beyond original size */
}

.page-download__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.page-download__main-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  color: #FFD36B; /* Auxiliary color for main title */
  margin-bottom: 20px;
  line-height: 1.1;
}

.page-download__hero-description {
  font-size: 20px;
  color: #FFF6D6;
  margin-bottom: 30px;
}

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

.page-download__btn-primary,
.page-download__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  min-width: 180px;
  text-align: center;
  box-sizing: border-box;
}

.page-download__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient from custom colors */
  color: #ffffff; /* White text for primary button */
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-download__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-download__btn-secondary {
  background: #111111; /* Card BG from custom colors */
  color: #F2C14E; /* Primary color for secondary button text */
  border: 2px solid #F2C14E; /* Primary color for border */
}

.page-download__btn-secondary:hover {
  background: #F2C14E;
  color: #111111;
  transform: translateY(-2px);
}

/* Why Download Section */
.page-download__why-download {
  background-color: #0A0A0A;
}

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

.page-download__feature-card {
  background: #111111; /* Card BG from custom colors */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #3A2A12; /* Border from custom colors */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #FFF6D6;
}

.page-download__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(242, 193, 78, 0.2);
}

.page-download__feature-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin: 0 auto 20px auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-download__card-title {
  font-size: 22px;
  font-weight: 600;
  color: #FFD36B; /* Auxiliary color for card titles */
  margin-bottom: 10px;
}

.page-download__card-description {
  font-size: 16px;
  color: #FFF6D6;
}

/* How to Download Section */
.page-download__how-to-download {
  background-color: #0A0A0A;
}

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

.page-download__step-item {
  background: #111111; /* Card BG from custom colors */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #3A2A12; /* Border from custom colors */
  position: relative;
  color: #FFF6D6;
}

.page-download__step-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  border: 2px solid #3A2A12;
  box-shadow: 0 2px 10px rgba(242, 193, 78, 0.6);
}

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

.page-download__step-title {
  font-size: 20px;
  font-weight: 600;
  color: #FFD36B;
  margin-bottom: 10px;
}

.page-download__step-description {
  font-size: 16px;
  color: #FFF6D6;
}

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

.page-download__btn-large {
  padding: 18px 40px;
  font-size: 20px;
  min-width: 250px;
}

/* App Features Section */
.page-download__app-features {
  background-color: #0A0A0A;
}

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

.page-download__list-item {
  background: #111111; /* Card BG from custom colors */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #3A2A12; /* Border from custom colors */
  color: #FFF6D6;
}

.page-download__list-title {
  font-size: 20px;
  font-weight: 600;
  color: #FFD36B;
  margin-bottom: 10px;
}

/* System Requirements Section */
.page-download__system-requirements {
  background-color: #0A0A0A;
}

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

.page-download__requirements-block {
  background: #111111; /* Card BG from custom colors */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #3A2A12; /* Border from custom colors */
  flex: 1;
  min-width: 280px;
  max-width: 450px;
  color: #FFF6D6;
}

.page-download__block-title {
  font-size: 22px;
  font-weight: 600;
  color: #F2C14E;
  margin-bottom: 15px;
  text-align: center;
}

.page-download__requirements-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-download__requirements-block ul li {
  font-size: 16px;
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.page-download__requirements-block ul li::before {
  content: '✔';
  color: #FFD36B;
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* FAQ Section */
.page-download__faq-section {
  background-color: #0A0A0A;
}

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

details.page-download__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #3A2A12; /* Border from custom colors */
  overflow: hidden;
  background: #111111; /* Card BG from custom colors */
  color: #FFF6D6;
}

details.page-download__faq-item summary.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

details.page-download__faq-item summary.page-download__faq-question::-webkit-details-marker {
  display: none;
}

details.page-download__faq-item summary.page-download__faq-question:hover {
  background: rgba(242, 193, 78, 0.1); /* Slight hover effect with primary color */
}

.page-download__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFD36B;
}

.page-download__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #F2C14E; /* Primary color for toggle icon */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-download__faq-item .page-download__faq-answer {
  padding: 0 20px 20px;
  background: rgba(17, 17, 17, 0.8); /* Slightly lighter background for answer */
  border-radius: 0 0 5px 5px;
  color: #FFF6D6;
}

.page-download__faq-answer p {
  margin: 0;
  font-size: 16px;
}

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

.page-download__final-cta-description {
  font-size: 18px;
  color: #FFF6D6;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-download__cta-buttons--center {
  margin-top: 0;
}

/* General image styling to prevent small icons */
.page-download img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-download__section {
    padding: 50px 15px;
  }

  .page-download__main-title {
    font-size: clamp(30px, 4.5vw, 48px);
  }

  .page-download__hero-description {
    font-size: 18px;
  }

  .page-download__btn-primary, .page-download__btn-secondary {
    font-size: 16px;
    padding: 12px 25px;
    min-width: 160px;
  }

  .page-download__section-title {
    font-size: clamp(26px, 3.5vw, 38px);
  }

  .page-download__feature-card,
  .page-download__step-item,
  .page-download__list-item,
  .page-download__requirements-block {
    padding: 25px;
  }

  .page-download__card-title,
  .page-download__step-title,
  .page-download__list-title,
  .page-download__block-title {
    font-size: 20px;
  }

  .page-download__faq-qtext {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  /* HERO Main Image Area */
  .page-download__hero-section {
    padding-top: 10px; /* Small top padding, header offset handled by body */
    padding-bottom: 40px;
  }

  .page-download__hero-image-wrapper {
    max-height: 400px; /* Adjust height for mobile */
  }

  .page-download__hero-image {
    object-fit: contain !important; /* Prevent cropping on mobile */
    aspect-ratio: unset !important; /* Remove aspect ratio if set */
    width: 100% !important;
    height: auto !important;
  }

  .page-download__main-title {
    font-size: clamp(28px, 8vw, 38px);
    padding: 0 15px;
  }

  .page-download__hero-description {
    font-size: 16px;
    padding: 0 15px;
    margin-bottom: 25px;
  }

  /* Buttons and Button Containers */
  .page-download__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically on mobile */
    gap: 15px;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
  }

  .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;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-download__cta-center .page-download__btn-primary {
    width: auto !important;
    max-width: 100% !important;
    margin: 0 auto;
  }

  .page-download__cta-buttons--center {
    flex-direction: column !important;
    gap: 15px;
    padding: 0 15px;
  }

  /* General Images and Containers */
  .page-download img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-download__section,
  .page-download__feature-card,
  .page-download__step-item,
  .page-download__list-item,
  .page-download__requirements-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-download__section-title {
    font-size: clamp(24px, 7vw, 32px);
    padding: 0 10px;
  }

  .page-download__section-intro-text {
    font-size: 15px;
    padding: 0 10px;
    margin-bottom: 30px;
  }

  /* Product Display Area (Features Grid and Download Steps) */
  .page-download__features-grid,
  .page-download__download-steps,
  .page-download__feature-list {
    grid-template-columns: 1fr !important; /* Single column on mobile */
    gap: 20px;
    overflow-x: hidden;
  }

  .page-download__feature-icon,
  .page-download__step-image {
    max-width: 100%;
    width: 100%;
  }

  .page-download__requirements-content {
    flex-direction: column;
    gap: 20px;
  }

  .page-download__faq-qtext {
    font-size: 16px;
  }

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

  details.page-download__faq-item .page-download__faq-answer {
    padding: 0 15px 15px;
  }

  .page-download__final-cta-description {
    font-size: 16px;
    padding: 0 15px;
  }
}