/* style/download.css */
.page-download__main-content-wrapper {
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

/* General styles */
.page-download {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #ffffff; /* Explicitly set for clarity, though shared.css might define body */
}

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

.page-download__section-title--light {
  color: #ffffff;
}

/* Dark background sections */
.page-download__dark-section {
  background-color: #017439;
  color: #ffffff;
  padding: 60px 20px;
}

/* Light background sections */
.page-download__light-bg {
  background-color: #ffffff;
  color: #333333;
  padding: 60px 20px;
}

/* Hero Section */
.page-download__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
}

.page-download__hero-content {
  max-width: 900px;
  margin-bottom: 40px;
}

.page-download__hero-title {
  font-size: 3em;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-download__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.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: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box; /* Crucial for responsive buttons */
  max-width: 100%; /* Ensure button doesn't overflow */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  text-align: center;
}

.page-download__btn-primary {
  background-color: #C30808; /* Register/Login 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;
  border: 2px solid #017439;
}

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

.page-download__hero-image-wrapper {
  margin-top: 40px;
  max-width: 800px;
  width: 100%;
}

.page-download__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Why Download Section */
.page-download__why-download-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

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

.page-download__feature-card {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

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

.page-download__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px; /* Apply border-radius to image */
}

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

.page-download__feature-description {
  font-size: 1em;
  color: #555555;
}

/* Download Instructions Section */
.page-download__instructions-section {
  padding: 60px 20px;
  background-color: #017439;
  color: #ffffff;
}

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

.page-download__download-platform {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-download__platform-title {
  font-size: 2em;
  color: #ffffff;
  margin-bottom: 25px;
}

.page-download__platform-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 30px auto;
  border-radius: 10px;
}

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

.page-download__step-item {
  margin-bottom: 15px;
  font-size: 1.1em;
}

.page-download__step-item strong {
  color: #FFFF00; /* Emphasize step numbers */
}

/* Video Section */
.page-download__video-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
}

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

.page-download__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.page-download__video-overlay-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.1); /* Slight overlay for visual cue */
  border-radius: 10px;
}

.page-download__video-description {
  font-size: 1.1em;
  color: #555555;
}

/* App Features Section */
.page-download__app-features-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

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