.page-download {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333;
  background-color: #F5F7FA;
}

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

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

.page-download__dark-section {
  background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
  color: #ffffff;
}

.page-download__section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #333333;
}

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

.page-download__text-block {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
  font-size: 17px;
}

.page-download__text-block--light {
  color: #f0f0f0;
}

/* Hero Section */
.page-download__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  background-color: #F5F7FA;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-download__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for desktop */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

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

.page-download__hero-content {
  max-width: 900px;
  padding: 0 15px 60px;
  z-index: 1;
}

.page-download__main-title {
  font-size: 48px;
  font-weight: 800;
  color: #E53935;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-download__hero-description {
  font-size: 19px;
  margin-bottom: 30px;
  color: #333333;
}

.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: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-download__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: none;
}

.page-download__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

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

.page-download__btn-primary--small {
  padding: 10px 20px;
  font-size: 16px;
}

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

/* Why Download Section */
.page-download__why-download-section {
  background-color: #F5F7FA;
}

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

.page-download__feature-card {
  background: #FFFFFF;
  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-title {
  font-size: 22px;
  font-weight: 700;
  color: #E53935;
  margin-bottom: 15px;
}

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

/* How to Install Section */
.page-download__how-to-install-section {
  background-color: #FFFFFF;
}

.page-download__installation-steps {
  display: flex;
  justify-content: space-around;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.page-download__step-block {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  background: #F5F7FA;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  border: 1px solid #E0E0E0;
}

.page-download__step-title {
  font-size: 24px;
  font-weight: 700;
  color: #E53935;
  margin-bottom: 20px;
  text-align: center;
}

.page-download__step-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.page-download__qr-code {
  width: 200px;
  height: 200px;
  border: 1px solid #E0E0E0;
  padding: 10px;
  border-radius: 5px;
  object-fit: contain;
}

.page-download__step-content ol {
  list-style-type: decimal;
  padding-left: 25px;
  text-align: left;
  font-size: 16px;
  color: #333333;
}

.page-download__step-content ol li {
  margin-bottom: 10px;
}

.page-download__system-requirements {
  background: #F5F7FA;
  padding: 30px;
  border-radius: 10px;
  border: 1px solid #E0E0E0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.page-download__system-title {
  font-size: 24px;
  font-weight: 700;
  color: #E53935;
  margin-bottom: 20px;
}

.page-download__system-requirements ul {
  list-style: none;
  padding: 0;
  font-size: 16px;
  color: #333333;
}

.page-download__system-requirements ul li {
  margin-bottom: 8px;
}

/* Security Section */
.page-download__security-section {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
}

.page-download__security-features {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.page-download__feature-item {
  flex: 1;
  min-width: 300px;
  max-width: 45%;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-download__feature-image {
  width: 100%;
  height: auto;
  max-width: 250px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-download__feature-item-title {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-download__feature-item p {
  font-size: 16px;
  color: #f0f0f0;
}

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

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

.page-download__game-card {
  background: #FFFFFF;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  border: 1px solid #E0E0E0;
}

.page-download__game-image {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-download__game-title {
  font-size: 20px;
  font-weight: 700;
  color: #E53935;
  margin-bottom: 10px;
}

.page-download__game-card p {
  font-size: 15px;
  color: #333333;
  margin-bottom: 20px;
}

.page-download__btn-link {
  display: inline-block;
  padding: 10px 20px;
  background: #E53935;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  font-size: 15px;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-download__btn-link:hover {
  background: #FF5A4F;
}

/* Promotions Section */
.page-download__promotions-section {
  background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
  color: #ffffff;
}

.page-download__promotion-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.page-download__promotion-card {
  flex: 1;
  min-width: 300px;
  max-width: 45%;
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-download__promotion-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-download__promotion-title {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-download__promotion-card p {
  font-size: 16px;
  color: #f0f0f0;
  margin-bottom: 20px;
}

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

.page-download__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

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

details.page-download__faq-item summary.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

details.page-download__faq-item summary.page-download__faq-question::-webkit-details-marker {
  display: none;
}

details.page-download__faq-item summary.page-download__faq-question:hover {
  background: #f5f5f5;
}

.page-download__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}

.page-download__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-download__faq-item .page-download__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #333333;
}

.page-download__faq-answer p {
    margin-bottom: 0;
    font-size: 16px;
}

.page-download__faq-answer a {
    color: #E53935;
    text-decoration: none;
}

.page-download__faq-answer a:hover {
    text-decoration: underline;
}

/* Final CTA Section */
.page-download__final-cta-section {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  text-align: center;
}

/* General image styling for content sections */
.page-download img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-download__main-title {
    font-size: 42px;
  }
  .page-download__hero-description {
    font-size: 18px;
  }
  .page-download__section-title {
    font-size: 32px;
  }
  .page-download__feature-item,
  .page-download__promotion-card {
    max-width: 48%;
  }
  .page-download__installation-steps {
    flex-direction: column;
    align-items: center;
  }
  .page-download__step-block {
    max-width: 100%;
  }
  .page-download__game-categories {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 849px) {
  .page-download__hero-image {
    object-fit: contain !important; 
    aspect-ratio: unset !important; 
    max-height: 400px; /* Adjust max-height for tablets */
  }
}

@media (max-width: 768px) {
  .page-download__hero-section {
    padding-top: 10px; /* Consistent small top padding */
  }
  .page-download__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important; 
    aspect-ratio: unset !important; 
    max-height: 300px; /* Further adjust max-height for mobile */
  }
  .page-download__hero-content {
    padding: 0 15px 40px;
  }
  .page-download__main-title {
    font-size: clamp(28px, 8vw, 36px); /* Use clamp for H1 on mobile */
    margin-bottom: 15px;
  }
  .page-download__hero-description {
    font-size: 16px;
    margin-bottom: 25px;
  }
  .page-download__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-download__btn-primary,
  .page-download__btn-secondary,
  .page-download__btn-link,
  .page-download a[class*="button"],
  .page-download a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-download__section {
    padding: 40px 0;
  }
  .page-download__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-download__text-block {
    font-size: 15px;
    margin-bottom: 20px;
  }
  .page-download__features-grid,
  .page-download__game-categories {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-download__feature-card,
  .page-download__game-card,
  .page-download__step-block,
  .page-download__system-requirements,
  .page-download__feature-item,
  .page-download__promotion-card {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 20px;
  }
  .page-download__step-block {
    padding: 20px;
  }
  .page-download__step-title {
    font-size: 20px;
    margin-bottom: 15px;
  }
  .page-download__step-content ol {
    font-size: 15px;
    padding-left: 20px;
  }
  .page-download__qr-code {
    width: 150px;
    height: 150px;
  }
  .page-download__system-title {
    font-size: 20px;
  }
  .page-download__system-requirements ul li {
    font-size: 15px;
  }
  .page-download__security-features,
  .page-download__promotion-cards {
    flex-direction: column;
    gap: 20px;
  }
  .page-download__feature-item-title,
  .page-download__game-title,
  .page-download__promotion-title {
    font-size: 20px;
  }
  .page-download__feature-item p,
  .page-download__game-card p,
  .page-download__promotion-card p {
    font-size: 15px;
  }
  details.page-download__faq-item summary.page-download__faq-question { padding: 15px; }
  .page-download__faq-qtext { font-size: 15px; }
  details.page-download__faq-item .page-download__faq-answer { padding: 0 15px 15px; }
  .page-download__faq-answer p { font-size: 15px; }
  .page-download__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }
  .page-download img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain;
  }
}