/* Base styles for the download page */
.page-download {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light body background */
  background-color: #ffffff; /* Assuming default white body background */
  line-height: 1.6;
}

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

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

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

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

.page-download__subsection-title {
  font-size: 24px;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #017439;
}

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

.page-download__description {
  font-size: 18px;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-download__description--light {
  color: #f0f0f0;
}

/* Hero Section */
.page-download__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
  padding-bottom: 60px;
  overflow: hidden;
  background-color: #017439; /* Dark background for hero */
  color: #ffffff;
  display: flex; /* Use flex to control stacking */
  flex-direction: column; /* Stack vertically */
  align-items: center; /* Center content horizontally */
}

.page-download__hero-image-wrapper {
  width: 100%; /* Take full width */
  height: auto; /* Height adjusts to image */
  z-index: 0;
  order: 1; /* Image first in DOM */
}

.page-download__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2; /* Slightly transparent to let background color show */
}

.page-download__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 80px 15px;
  order: 2; /* Content second in DOM */
}

.page-download__main-title {
  font-size: clamp(32px, 5vw, 48px); /* Responsive font size */
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-download__hero-content .page-download__description {
  font-size: 20px;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-download__cta-buttons--center {
  justify-content: center;
}

/* Buttons */
.page-download__btn-primary,
.page-download__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* For responsive buttons */
  box-sizing: border-box; /* For responsive buttons */
  white-space: normal; /* For responsive buttons */
  word-wrap: break-word; /* For responsive buttons */
}

.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: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

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

/* Introduction Section */
.page-download__introduction-section {
  background-color: #ffffff;
}

.page-download__feature-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 800px;
  text-align: left;
}

.page-download__feature-list li {
  font-size: 18px;
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
}

.page-download__feature-list li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: #017439;
  font-weight: bold;
}

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

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

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

.page-download__feature-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

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

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

/* Download Guide Section */
.page-download__download-guide-section {
  background-color: #017439; /* Brand primary color for dark section */
  color: #ffffff;
}

.page-download__download-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 40px;
  text-align: left;
}

.page-download__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

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

.page-download__step-list li {
  font-size: 16px;
  margin-bottom: 10px;
  color: #f0f0f0;
}

.page-download__qr-code-section {
  margin-top: 60px;
  text-align: center;
}

.page-download__qr-code-image {
  width: 250px;
  height: 250px;
  display: block;
  margin: 30px auto 0;
  border-radius: 5px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Benefits Section */
.page-download__benefits-section {
  background-color: #f5f5f5;
}

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

.page-download__benefit-card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  text-align: left;
  transition: transform 0.3s ease;
}

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

.page-download__benefit-image {
  width: 100%;
  height: 180px; /* Consistent height */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

.page-download__benefit-card p {
  font-size: 16px;
  color: #555555;
}

/* Games Section */
.page-download__games-section {
  background-color: #017439;
  color: #ffffff;
}

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

.page-download__game-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

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

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

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

.page-download__card-description--light {
  color: #f0f0f0;
  font-size: 15px;
  margin-bottom: 20px;
}

.page-download__game-card .page-download__btn-secondary {
  border-color: #FFFF00;
  color: #FFFF00;
  background-color: transparent;
  padding: 10px 20px;
  font-size: 16px;
}

.page-download__game-card .page-download__btn-secondary:hover {
  background-color: #FFFF00;
  color: #017439;
}

/* FAQ Section */
.page-download__faq-section {
  background-color: #ffffff;
}

details.page-download__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  text-align: left;
}