.page-download {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: var(--secondary-color, #FFFFFF); /* Ensure body background is white */
}

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

.page-download__section {
  padding: 60px 0;
  text-align: center;
}

.page-download__section:nth-of-type(even) {
  background-color: #f9f9f9;
}

.page-download__section-title {
  font-size: 36px;
  color: #017439;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-download__section-description {
  font-size: 18px;
  color: #555555;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-download__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px);
  background-color: #017439; /* Use primary color for hero background */
  color: #ffffff;
}

.page-download__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-download__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-download__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-download__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-download__main-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-download__main-description {
  font-size: 20px;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-download__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap; /* Allow wrapping for multiple buttons */
}

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

.page-download__btn-primary {
  background: #C30808; /* Custom color for download/register/login */
  color: #ffffff; /* Ensure contrast for text on red */
  border: 2px solid #C30808;
}

.page-download__btn-primary:hover {
  background: #a30606;
  border-color: #a30606;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-download__btn-secondary:hover {
  background: #f0f0f0;
  color: #005f2c;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-download__btn-large {
  padding: 18px 50px;
  font-size: 20px;
}

.page-download__qr-codes {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.page-download__qr-item img {
  
  
  border: 5px solid #ffffff;
  border-radius: 10px;
  margin-bottom: 10px;
  display: block; /* Ensure img behaves as block for centering */
  margin-left: auto;
  margin-right: auto;
}

.page-download__qr-item p {
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
}

/* Why App Section */
.page-download__why-app .page-download__section-title {
  color: #017439;
}

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

.page-download__feature-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards are same height */
  display: flex;
  flex-direction: column;
}

.page-download__feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

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

.page-download__feature-title {
  font-size: 24px;
  color: #017439;
  margin-top: 0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-download__feature-card p {
  font-size: 16px;
  color: #555555;
  flex-grow: 1;
}

/* Installation Guide Section */
.page-download__installation-guide {
  background-color: #f0f8f0;
}

.page-download__installation-guide .page-download__section-title {
  color: #017439;
}

.page-download__guide-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  text-align: left;
}

.page-download__guide-block h3 {
  font-size: 28px;
  color: #017439;
  margin-bottom: 20px;
}

.page-download__guide-block ol {
  list-style-type: decimal;
  padding-left: 20px;
  margin-bottom: 30px;
}

.page-download__guide-block li {
  font-size: 17px;
  color: #333333;
  margin-bottom: 10px;
}

.page-download__guide-image {
  width: 100%;
  height: auto;
  max-width: 600px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
  display: block; /* Ensure img behaves as block for margin auto */
  margin-left: auto;
  margin-right: auto;
}

/* Security Info Section */
.page-download__security-info .page-download__section-title {
  color: #017439;
}

.page-download__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-download__security-item {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.page-download__security-item img {
  width: 100%;
  max-width: 200px; /* Smaller image in this context */
  height: auto;
  object-fit: contain;
  margin: 0 auto 20px auto;
  display: block;
}

.page-download__security-item h3 {
  font-size: 22px;
  color: #017439;
  margin-bottom: 15px;
}

.page-download__security-item p {
  font-size: 16px;
  color: #555555;
  flex-grow: 1;
}

/* Popular Games Section */
.page-download__popular-games {
  background-color: #f9f9f9;
}

.page-download__popular-games .page-download__section-title {
  color: #017439;
}

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

.page-download__game-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  text-align: left;
}

.page-download__game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-download__game-card a {
  text-decoration: none;
  color: inherit;
  display: block;
  padding: 25px;
  height: 100%;
  box-sizing: border-box;
}

.page-download__game-card img {
  width: 100%;
  
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

.page-download__game-card h3 {
  font-size: 22px;
  color: #017439;
  margin-top: 0;
  margin-bottom: 10px;
}