.page-download {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light background */
  background-color: var(--background-color, #FFFFFF); /* Body background, assume light */
}

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

/* Hero Section */
.page-download__hero-section {
  background-color: #017439; /* Primary brand color */
  color: #ffffff; /* White text for dark background */
  padding: 80px 0 40px;
  text-align: center;
  position: relative;
  overflow: hidden; /* Ensure image doesn't overflow */
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

.page-download__container--hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.page-download__main-title {
  font-size: 3em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FFFF00; /* Register/Login font color */
}

.page-download__description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
}

.page-download__description a {
  color: #FFFF00; /* Link color for description */
  text-decoration: underline;
}

.page-download__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%; /* Ensure container takes full width for wrapping */
  max-width: 600px; /* Limit width on larger screens */
  box-sizing: border-box;
}

.page-download__btn-primary,
.page-download__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  min-width: 200px; /* Ensure buttons are not too small */
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
}

.page-download__btn-primary {
  background-color: #C30808; /* Register/Login button color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

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

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

.page-download__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005a2d;
  border-color: #005a2d;
}

.page-download__hero-image-wrapper {
  margin-top: 30px;
  width: 100%;
  max-width: 800px; /* Max width for hero image */
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

/* General Section Styling */
.page-download__introduction-section,
.page-download__guide-section,
.page-download__faq-section {
  padding: 60px 0;
  background-color: #ffffff; /* Light background */
  color: #333333; /* Dark text */
}

.page-download__platforms-section,
.page-download__benefits-section,
.page-download__cta-bottom-section {
  padding: 60px 0;
  background-color: #017439; /* Dark background */
  color: #ffffff; /* White text */
}

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

.page-download__platforms-section .page-download__section-title,
.page-download__benefits-section .page-download__section-title,
.page-download__cta-bottom-section .page-download__section-title {
  color: #FFFF00; /* Title color for dark sections */
}

.page-download__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
}

.page-download__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-download__text-block {
  flex: 1;
  min-width: 300px;
  font-size: 1.05em;
}

.page-download__text-block p {
  margin-bottom: 15px;
}

.page-download__text-block a {
  color: #017439; /* Link color for light sections */
  text-decoration: underline;
}

.page-download__platforms-section .page-download__text-block a,
.page-download__benefits-section .page-download__text-block a,
.page-download__cta-bottom-section .page-download__text-block a {
  color: #FFFF00; /* Link color for dark sections */
}

.page-download__image-wrapper {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-download__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

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

.page-download__card {
  background-color: #ffffff; /* White background for cards */
  color: #333333; /* Dark text for cards */
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
  min-height: 450px; /* Ensure consistent card height */
}

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

.page-download__card-image {
  width: 100%;
  height: 200px; /* Fixed height for card images */
  object-fit: contain; /* Use contain to show full image without cropping */
  margin-bottom: 20px;
  border-radius: 10px;
  min-width: 200px;
  min-height: 150px;
}

.page-download__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: bold;
  color: #017439; /* Primary brand color for card titles */
}

.page-download__card-text {
  margin-bottom: 25px;
  flex-grow: 1; /* Allow text to grow */
}

/* Guide Section */
.page-download__guide-steps {
  margin-top: 40px;
}

.page-download__guide-subtitle {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 20px;
  color: #017439; /* Primary brand color for subtitles */
  text-align: center;
}

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

.page-download__step-list .page-download__list-item {
  background-color: #f9f9f9;
  border-left: 5px solid #017439;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 1.05em;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-download__step-list .page-download__list-item strong {
  color: #017439;
}

.page-download__step-list .page-download__list-item a {
  color: #017439;
  text-decoration: underline;
}

.page-download__image-wrapper--qr-codes {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
  flex-wrap: wrap;
  box-shadow: none; /* Remove shadow for QR code wrapper */
}