.page-download {
  color: #ffffff; /* Default text color for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Body background is handled by shared.css */
}

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

/* Typography */
.page-download__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Use clamp for H1 */
  font-weight: 700;
  text-align: center;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-download__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  color: #ffffff; /* Default for dark sections */
  margin-bottom: 30px;
  line-height: 1.3;
}

.page-download__light-bg .page-download__section-title {
  color: #000000; /* For light background sections */
}

.page-download__description,
.page-download__text-block,
.page-download p {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 20px;
  color: #f0f0f0; /* Light text for dark backgrounds */
}

.page-download__light-bg .page-download__description,
.page-download__light-bg .page-download__text-block,
.page-download__light-bg p {
  color: #333333; /* Dark text for light backgrounds */
}

.page-download__feature-title,
.page-download__step-title,
.page-download__pc-option-title,
.page-download__security-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff; /* Default for dark sections */
  margin-bottom: 10px;
}

.page-download__light-bg .page-download__feature-title,
.page-download__light-bg .page-download__step-title,
.page-download__light-bg .page-download__pc-option-title,
.page-download__light-bg .page-download__security-title {
  color: #000000; /* Dark text for light backgrounds */
}

.page-download__feature-text,
.page-download__step-list,
.page-download__pc-option-text,
.page-download__security-text {
  font-size: 1rem;
  color: #f0f0f0;
}

.page-download__light-bg .page-download__feature-text,
.page-download__light-bg .page-download__step-list,
.page-download__light-bg .page-download__pc-option-text,
.page-download__light-bg .page-download__security-text {
  color: #333333;
}

/* Sections */
.page-download__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom */
  overflow: hidden;
  background: linear-gradient(135deg, #26A9E0, #1a7bb0); /* Brand color gradient */
}

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

.page-download__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.page-download__hero-content {
  position: relative; /* Ensure content is above image if z-index is used */
  z-index: 2;
  max-width: 900px;
  text-align: center;
  padding: 0 20px;
}

.page-download__why-download-section,
.page-download__pc-client-section,
.page-download__faq-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background for these sections */
}

.page-download__how-to-download-section,
.page-download__security-section,
.page-download__cta-final-section {
  padding: 80px 0;
  background-color: #26A9E0; /* Brand color background for these sections */
}

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

.page-download__btn-primary,
.page-download__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
  text-align: center;
}

.page-download__btn-primary {
  background-color: #EA7C07; /* Login color for primary CTA */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

.page-download__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

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

.page-download__btn-block {
  display: block;
  width: 100%;
  margin-top: 20px;
}

.page-download__btn-large {
  padding: 18px 40px;
  font-size: 1.2rem;
  min-width: 280px;
}

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

.page-download__feature-item {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

.page-download__step-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%; /* Ensure cards have equal height */
  box-sizing: border-box;
}

.page-download__step-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: block; /* Ensure image is block level */
}

.page-download__step-list {
  text-align: left;
  list-style-position: inside;
  margin-bottom: 20px;
  padding-left: 0;
}

.page-download__step-list li {
  margin-bottom: 8px;
  color: #f0f0f0;
}

/* PC Options */
.page-download__pc-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.page-download__pc-option-card {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-download__pc-option-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block; /* Ensure image is block level */
  margin-left: auto;
  margin-right: auto;
}

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

.page-download__security-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-download__security-icon {
  width: 100%;
  max-width: 200px; /* Adjust max-width to be at least 200px */
  height: auto;
  margin-bottom: 15px;
  display: block; /* Ensure image is block level */
}

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

.page-download__faq-item {
  background-color: #f8f8f8;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-download__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #eaf6fa; /* Lighter background for summary */
  color: #000000; /* Dark text for light background */
  font-weight: 600;
  font-size: 1.1rem;
  list-style: none; /* Remove default marker */
}

.page-download__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-download__faq-qtext {
  flex-grow: 1;
}

.page-download__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
}

.page-download__faq-item[open] .page-download__faq-toggle {
  content: "−"; /* Change to minus when open */
}

.page-download__faq-answer {
  padding: 20px;
  background-color: #ffffff;
  border-top: 1px solid #e0e0e0;
  color: #333333; /* Dark text for light background */
}

.page-download__faq-answer p {
  text-align: left;
  margin-bottom: 0;
  color: #333333;
}

.page-download__faq-answer a {
  color: #26A9E0;
  text-decoration: underline;
}

/* Final CTA Section */
.page-download__cta-final-section {
  text-align: center;
  padding: 60px 0;
  background: linear-gradient(135deg, #26A9E0, #1a7bb0);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-download__hero-image-wrapper {
    max-height: 60vh;
  }
}

@media (max-width: 768px) {
  .page-download__main-title {
    font-size: 2.5rem;
  }

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

  .page-download__description,
  .page-download__text-block,
  .page-download p,
  .page-download__feature-text,
  .page-download__step-list li,
  .page-download__pc-option-text,
  .page-download__security-text,
  .page-download__faq-answer p {
    font-size: 1rem;
  }

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

  .page-download__btn-primary,
  .page-download__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

  .page-download__hero-section,
  .page-download__why-download-section,
  .page-download__how-to-download-section,
  .page-download__pc-client-section,
  .page-download__security-section,
  .page-download__faq-section,
  .page-download__cta-final-section {
    padding: 40px 0;
  }

  .page-download__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-download__hero-image-wrapper {
    max-height: 40vh;
  }

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

  .page-download__step-image,
  .page-download__pc-option-image,
  .page-download__security-icon {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-download__download-steps-grid,
  .page-download__pc-options,
  .page-download__security-features-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-download__faq-list {
    padding: 0 15px;
  }
}