.page-download {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Inherited from body, but good to specify for clarity */
}

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

.page-download__link {
  color: #ffffff;
  text-decoration: underline;
}

.page-download__link:hover {
  color: #f0f0f0;
}

/* Hero Section */
.page-download__hero-section {
  position: relative;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  text-align: center;
  background-color: #017439; /* Brand primary color for hero */
  color: #ffffff;
}

.page-download__hero-section .page-download__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.page-download__hero-content {
  max-width: 800px;
}

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

.page-download__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  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: background-color 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-download__btn-primary {
  background-color: #C30808; /* Register/Login color override */
  color: #ffffff; /* Contrast fix for #C30808 */
  border: 2px solid #C30808;
}

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

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

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

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

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

/* General Section Styles */
.page-download__section-title {
  font-size: 2.2em;
  margin-bottom: 20px;
  text-align: center;
  line-height: 1.2;
}

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

.page-download__dark-bg {
  background-color: #0a0a0a; /* Body background color */
  color: #ffffff;
}

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

.page-download__dark-bg .page-download__section-description {
  color: #f0f0f0;
}

.page-download__light-bg {
  background-color: #f8f8f8;
  color: #333333;
}

.page-download__light-bg .page-download__section-title {
  color: #017439;
}

.page-download__light-bg .page-download__section-description {
  color: #555555;
}

/* Why App Section */
.page-download__why-app-section {
  padding: 60px 0;
}

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

.page-download__feature-item {
  background-color: #ffffff;
  color: #333333;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  border: 1px solid #e0e0e0;
}

.page-download__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

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

/* How to Download Section */
.page-download__how-to-download-section {
  padding: 60px 0;
}

.page-download__download-steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.page-download__platform-guide {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
}

.page-download__platform-title {
  font-size: 1.8em;
  color: #ffffff;
  margin-bottom: 30px;
  text-align: center;
}

.page-download__step-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 15px;
}

.page-download__step-number {
  background-color: #017439;
  color: #ffffff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  flex-shrink: 0;
}

.page-download__step-text {
  font-size: 1em;
  color: #f0f0f0;
}

.page-download__platform-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  margin-top: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: block;
}

.page-download__cta-section {
  text-align: center;
  margin-top: 60px;
  padding: 40px 20px;
  background-color: rgba(1, 116, 57, 0.1);
  border-radius: 10px;
}

.page-download__cta-text {
  font-size: 1.3em;
  margin-bottom: 25px;
  font-weight: bold;
  color: #ffffff;
}

.page-download__btn-full-width {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

/* App Features Section */
.page-download__app-features-section {
  padding: 60px 0;
}

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

.page-download__feature-card {
  background-color: #ffffff;
  color: #333333;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  border: 1px solid #e0e0e0;
}

.page-download__feature-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-download__feature-card-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #017439;
}

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

/* Security Section */
.page-download__security-section {
  padding: 60px 0;
}

.page-download__security-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

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

.page-download__security-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 600px;
  text-align: left;
}

.page-download__security-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-left: 4px solid #017439;
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 5px;
  font-size: 1.05em;
  color: #f0f0f0;
}

/* Games Section */
.page-download__games-section {
  padding: 60px 0;
}