/* Base Styles */
.page-download {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light body background */
  background-color: #FFFFFF;
  line-height: 1.6;
}

.page-download__hero-section {
  padding-top: 10px; /* Small top padding, body padding-top handles header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.page-download__main-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: #017439;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-download__description {
  font-size: 18px;
  margin-bottom: 30px;
}

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

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

.page-download__btn-primary:hover {
  background: #005f2e;
  border-color: #005f2e;
}

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

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

.page-download__hero-image-wrapper {
  width: 100%;
  max-width: 1000px;
  margin-top: 20px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.page-download__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

/* General Section Styles */
.page-download__advantages-section,
.page-download__how-to-download-section,
.page-download__exclusive-promo-section,
.page-download__faq-section,
.page-download__cta-section {
  padding: 60px 20px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-download__dark-section {
  background: #017439;
  color: #ffffff;
}

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

.page-download__section-title {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 700;
  margin-bottom: 40px;
  color: #017439;
}

.page-download__sub-title {
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 20px;
  color: #017439;
}

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

.page-download__advantage-card {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
  height: 100%;
  box-sizing: border-box;
}

.page-download__advantage-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  border-radius: 8px;
}

.page-download__card-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FFFF00; /* Custom color for card titles in dark section */
}

.page-download__card-description {
  font-size: 16px;
  line-height: 1.6;
}

/* How to Download Section */
.page-download__download-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.page-download__step-item {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

.page-download__step-title {
  font-size: 26px;
  font-weight: 600;
  color: #017439;
  margin-bottom: 15px;
}

.page-download__step-description {
  font-size: 16px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-download__step-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-top: auto;
}

.page-download__system-requirements {
  margin-top: 60px;
  padding: 30px;
  background: #f9f9f9;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
}

.page-download__requirements-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-download__requirements-list li {
  font-size: 17px;
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  text-align: left;
}

.page-download__requirements-list li::before {
  content: '✔️';
  position: absolute;
  left: 0;
  color: #017439;
}

/* Exclusive Promo Section */
.page-download__exclusive-promo-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.page-download__promo-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  width: 100%;
  box-sizing: border-box;
}

.page-download__promo-image {
  width: 50%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-download__promo-text {
  width: 50%;
  text-align: left;
  color: #ffffff;
}

.page-download__promo-text p {
  font-size: 18px;
  margin-bottom: 25px;
}

/* FAQ Section */
details.page-download__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  text-align: left;
}
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-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Section */
.page-download__cta-section {
  background: #f9f9f9;
  border-top: 1px solid #e0e0e0;
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-download__cta-section .page-download__section-title {
  color: #017439;
}

.page-download__cta-section .page-download__description {
  font-size: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-download__cta-buttons {
  margin-top: 40px;
}

/* --- Homepage Game Trial CSS (Required by prompt, even for inner page) --- */
@media (max-width: 1023px) {
  .page-download__home-hero {
    display: block !important;
    grid-template-columns: none !important;
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .page-download__hero-brand,
  .page-download__hero-jackpot {
    display: none !important;
  }
  .page-download__game-trial {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: hidden !important;
    margin: 0 auto;
    padding: 0 0 12px !important;
    box-sizing: border-box;
  }
  .page-download__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-download__game-trial-topbar,
  .page-download__game-trial-bottombar {
    display: none !important;
  }
  .page-download__game-trial-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 1024 / 768;
    flex: none !important;
    min-height: 240px;
    max-height: none !important;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-download__game-trial-frame {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    max-width: 100%;
    border: none;
    z-index: 1;
    overflow: hidden;
  }
  .page-download__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-download__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}

@media (min-width: 1024px) {
  .page-download__home-hero {
    display: grid;
    grid-template-columns: 26% 48% 26%;
    gap: 16px;
    align-items: stretch;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 16px 24px;
    box-sizing: border-box;
  }
  .page-download__hero-brand,
  .page-download__hero-jackpot,
  .page-download__game-trial {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-download__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-download__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-download__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-download__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-download__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }
}

/* --- General Mobile Responsiveness --- */
@media (max-width: 768px) {
  .page-download {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-download__hero-section {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-download__main-title {
    font-size: 32px;
  }

  .page-download__description {
    font-size: 16px;
  }

  .page-download__download-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-download__btn-primary,
  .page-download__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
  }

  /* General image and container responsiveness */
  .page-download img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  
  .page-download__advantages-section,
  .page-download__how-to-download-section,
  .page-download__exclusive-promo-section,
  .page-download__faq-section,
  .page-download__cta-section,
  .page-download__promo-content,
  .page-download__advantages-grid,
  .page-download__download-steps,
  .page-download__system-requirements,
  .page-download__faq-list,
  .page-download__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-download__advantages-grid {
    grid-template-columns: 1fr;
  }

  .page-download__step-item {
    padding: 20px;
  }

  .page-download__promo-content {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }

  .page-download__promo-image,
  .page-download__promo-text {
    width: 100%;
  }

  .page-download__promo-text {
    text-align: center;
  }

  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__section-title {
    font-size: 30px;
  }
  .page-download__sub-title {
    font-size: 24px;
  }
  .page-download__card-title {
    font-size: 20px;
  }
  .page-download__step-title {
    font-size: 22px;
  }

  /* Homepage related blocks, if they were present */
  .page-download__promo-strip-track { grid-template-columns: repeat(2, 1fr); overflow-x: hidden; }
  .page-download__hot-games-grid { grid-template-columns: repeat(2, 1fr); }
  .page-download__brand-intro { display: block; } /* Show if hidden on desktop */
  .page-download__winner-ticker { position: fixed; bottom: 0; left: 0; width: 100%; z-index: 100; } /* Example for winner ticker */
  /* body { padding-bottom: 60px; } */ /* If winner ticker is fixed, adjust body padding */
}

/* --- Homepage Specific Styles (Required by prompt, even if not directly used by this page) --- */
.page-download__game-trial-overlay{z-index:5;pointer-events:auto;}.page-download__game-trial-overlay.is-hidden{display:none!important;pointer-events:none!important;}.page-download__game-trial-start{z-index:6;pointer-events:auto;touch-action:manipulation;}.page-download__game-trial-shell{border:1px solid rgba(212,175,55,.45);border-radius:10px;overflow:hidden;}.page-download__reward-modal{position:fixed;inset:0;z-index:10000;}
.page-download__reward-modal.is-hidden { display: none !important; opacity: 0; pointer-events: none; }
.page-download__reward-modal-content { background: #fff; padding: 30px; border-radius: 10px; text-align: center; position: relative; }
.page-download__reward-modal-close { position: absolute; top: 10px; right: 10px; background: none; border: none; font-size: 24px; cursor: pointer; color: #333; }
.page-download__reward-modal-title { color: #017439; font-size: 28px; margin-bottom: 15px; }
.page-download__reward-modal-text { font-size: 16px; margin-bottom: 25px; }
.page-download__reward-modal-btn { background: #017439; color: #fff; padding: 10px 20px; border-radius: 5px; text-decoration: none; font-weight: bold; }