.page-download__hero-section {
  position: relative;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background-color: var(--background-color, #017439); /* Fallback to primary color if variable not defined */
  color: #ffffff;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.page-download__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  color: #ffffff;
}

.page-download__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  color: #f0f0f0;
}

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

.page-download__btn-primary,
.page-download__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-download__btn-primary {
  background-color: #C30808; /* Custom color for register/login type buttons */
  color: #FFFF00; /* Custom font color */
  border: 2px solid #C30808;
}

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

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

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

.page-download__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  text-align: center;
  color: #017439;
  font-weight: bold;
}

.page-download__section-intro {
  font-size: 1.1em;
  line-height: 1.6;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: #555555;
}

/* Benefits Section */
.page-download__benefits-section {
  padding: 80px 20px;
  background-color: #f8f8f8;
  color: #333333;
}

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

.page-download__benefit-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

.page-download__benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-download__benefit-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-download__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #017439;
  font-weight: bold;
}

.page-download__benefit-card p {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
}

/* Guide Section */
.page-download__guide-section {
  padding: 80px 20px;
  background-color: #017439;
  color: #ffffff;
}

.page-download__guide-section .page-download__section-title,
.page-download__guide-section .page-download__section-intro {
  color: #ffffff;
}

.page-download__platform-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  gap: 15px;
  flex-wrap: wrap;
}

.page-download__tab-button {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #ffffff;
  padding: 12px 25px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
}

.page-download__tab-button:hover {
  background-color: #005a2e;
}

.page-download__tab-button--active {
  background-color: #ffffff;
  color: #017439;
  border-color: #ffffff;
}

.page-download__tab-button--active:hover {
  background-color: #e0e0e0;
}

.page-download__platform-content {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

.page-download__platform-content--active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-download__guide-flex {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-download__guide-steps {
  flex: 1;
  min-width: 300px;
}

.page-download__guide-subtitle {
  font-size: 1.8em;
  margin-bottom: 25px;
  color: #ffffff;
  font-weight: bold;
}

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

.page-download__step-list li {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 1.1em;
  line-height: 1.6;
  color: #f0f0f0;
  position: relative;
  padding-left: 45px;
}

.page-download__step-list li::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 15px;
  top: 15px;
  background-color: #ffffff;
  color: #017439;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9em;
}

.page-download__guide-image {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  text-align: center;
}

.page-download__guide-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-download__image-caption {
  margin-top: 15px;
  font-size: 0.95em;
  color: #f0f0f0;
}

.page-download__btn-download-mobile {
  margin-top: 20px;
}

/* Video Section */
.page-download__video-section {
  padding: 80px 20px;
  background-color: #f8f8f8;
  color: #333333;
}

.page-download__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin: 0 auto 30px auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-download__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  cursor: pointer;
}

.page-download__video-cta {
  text-align: center;
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #555555;
}

.page-download__btn-download-video {
  display: block;
  margin: 0 auto;
  max-width: 300px;
}

/* Features Section */
.page-download__features-section {
  padding: 80px 20px;
  background-color: #017439;
  color: #ffffff;
}

.page-download__features-section .page-download__section-title,
.page-download__features-section .page-download__section-intro {
  color: #ffffff;
}

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

.page-download__feature-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
  color: #ffffff;
}

.page-download__feature-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-download__feature-icon {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-download__feature-card .page-download__card-title {
  color: #ffffff;
}

.page-download__feature-card p {
  color: #f0f0f0;
}

/* Security Section */
.page-download__security-section {
  padding: 80px 20px;
  background-color: #ffffff;
  color: #333333;
}

.page-download__security-section .page-download__section-title {
  color: #017439;
}

.page-download__security-section .page-download__section-intro {
  color: #555555;
}

.page-download__security-content {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-download__security-text {
  flex: 1;
  min-width: 300px;
}

.page-download__security-subtitle {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #017439;
  font-weight: bold;
}

.page-download__security-text p {
  font-size: 1.05em;
  line-height: 1.7;
  margin-bottom: 25px;
  color: #444444;
}

.page-download__security-image {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  text-align: center;
}

.page-download__security-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.page-download__faq-section {
  padding: 80px 20px;
  background-color: #017439;
  color: #ffffff;
}

.page-download__faq-section .page-download__section-title,
.page-download__faq-section .page-download__section-intro {
  color: #ffffff;
}

.page-download__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-download__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.page-download__faq-item.active {
  background-color: rgba(255, 255, 255, 0.2);
}

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  transition: color 0.3s ease;
}

.page-download__faq-question:hover {
  color: #FFFF00; /* Custom color for hover */
}

.page-download__faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  line-height: 1.4;
  color: inherit; /* Inherit color from parent */
}

.page-download__faq-toggle {
  font-size: 1.8em;
  line-height: 1;
  font-weight: normal;
  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 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-download__faq-item.active .page-download__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to ensure content is shown */
  padding: 15px 25px 25px 25px;
}

.page-download__faq-answer p {
  margin: 0;
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
}

/* Final CTA Section */
.page-download__cta-final-section {
  padding: 80px 20px;
  background-color: #f8f8f8;
  color: #333333;
  text-align: center;
}

.page-download__cta-final-section .page-download__section-title {
  color: #017439;
}

.page-download__cta-final-section .page-download__section-intro {
  color: #555555;
  margin-bottom: 40px;
}

.page-download__btn-large {
  padding: 18px 40px;
  font-size: 1.3em;
  border-radius: 10px;
}

/* General container for content */
.page-download__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

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

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

  .page-download__guide-flex,
  .page-download__security-content {
    flex-direction: column;
    text-align: center;
  }

  .page-download__guide-image,
  .page-download__security-image {
    order: -1; /* Image above text on smaller screens */
    margin-bottom: 30px;
  }

  .page-download__guide-steps {
    min-width: unset;
  }
}

@media (max-width: 768px) {
  .page-download__hero-section {
    min-height: 400px;
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }

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

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

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

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

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

  .page-download__section-intro {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-download__benefits-section,
  .page-download__guide-section,
  .page-download__video-section,
  .page-download__features-section,
  .page-download__security-section,
  .page-download__faq-section,
  .page-download__cta-final-section {
    padding: 50px 15px;
  }

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

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

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

  .page-download__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }

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

  .page-download__platform-tabs {
    flex-direction: column;
    gap: 10px;
  }

  .page-download__tab-button {
    width: 100%;
  }

  .page-download__step-list li {
    font-size: 1em;
    padding: 12px 15px 12px 40px;
  }

  .page-download__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-download__faq-answer {
    padding: 10px 20px 20px 20px;
  }

  .page-download__btn-large {
    font-size: 1.1em;
    padding: 15px 30px;
  }
  
  .page-download__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .page-download__section,
  .page-download__card,
  .page-download__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Ensure all images adhere to the minimum size and no filter rule */
.page-download img {
  min-width: 200px;
  min-height: 200px;
  object-fit: cover; /* Ensures images fill their space without distortion */
  filter: none; /* Absolutely no CSS filter to change image color */
}

/* Specific overrides for small icons if any were to appear, though forbidden */
/* The following rules ensure that if any img elements are selected, they conform to min-size */
.page-download__benefit-icon, .page-download__feature-icon {
  min-width: 200px;
  min-height: 200px;
  max-width: 250px; /* Adjust max-width as appropriate for the layout */
  height: auto;
}

/* Ensure content area images are large */
.page-download__guide-image img, .page-download__security-image img {
  min-width: 200px;
  min-height: 200px;
}

/* Ensure buttons have proper contrast */
.page-download__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Yellow text for contrast */
}

.page-download__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

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

.page-download__btn-secondary:hover {
  background-color: #e0e0e0;
}

/* Text colors for different backgrounds */
.page-download__dark-section {
  background-color: #017439;
  color: #ffffff;
}

.page-download__dark-section .page-download__section-title,
.page-download__dark-section .page-download__card-title,
.page-download__dark-section .page-download__guide-subtitle {
  color: #ffffff;
}

.page-download__light-bg {
  background-color: #f8f8f8; /* Light background for general content */
  color: #333333;
}

.page-download__security-section {
  background-color: #FFFFFF;
  color: #333333;
}

.page-download p, .page-download li {
  color: #444444; /* General paragraph text color for light backgrounds */
}

.page-download__faq-item p {
  color: #f0f0f0; /* Text in FAQ answer on dark background */
}