:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-btn-color: #C30808;
  --login-btn-color: #C30808;
  --background-color: #FFFFFF;
  --register-login-font-color: #FFFF00;
}

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

/* Ensure body padding-top is handled by shared.css */
.page-download__hero-section {
  padding-top: 10px; /* Small top padding, not --header-offset */
  padding-bottom: 40px;
  background-color: var(--background-color);
  text-align: center;
}

.page-download__hero-image-wrapper {
  position: relative;
  max-width: 100%;
  overflow: hidden;
}

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

.page-download__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

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

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

.page-download__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.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: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-download__btn-primary {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: 2px solid var(--primary-color);
}

.page-download__btn-primary:hover {
  background-color: darken(var(--primary-color), 10%);
  border-color: darken(var(--primary-color), 10%);
}

.page-download__btn-secondary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-download__btn-secondary:hover {
  background-color: #f0f0f0;
  border-color: darken(var(--primary-color), 10%);
}

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

.page-download__qr-item {
  text-align: center;
}

.page-download__qr-image {
  width: 200px;
  height: 200px;
  border: 5px solid var(--primary-color);
  border-radius: 10px;
  object-fit: cover;
  display: block;
  margin: 0 auto 10px;
}

.page-download__qr-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-color);
}

.page-download__benefits-section {
  padding: 60px 20px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  text-align: center;
}

.page-download__dark-section {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

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

.page-download__section-description {
  font-size: 17px;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #f0f0f0;
}

.page-download__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

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

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

.page-download__benefit-icon {
  width: 100%;
  height: auto;
  max-width: 150px;
  margin-bottom: 15px;
  object-fit: contain;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-download__benefit-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--register-login-font-color); /* Yellow for highlight */
}

.page-download__benefit-text {
  font-size: 16px;
  color: #f0f0f0;
}

.page-download__how-to-download-section {
  padding: 60px 20px;
  background-color: var(--background-color);
  text-align: center;
}

.page-download__installation-guide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1000px;
  margin: 40px auto;
  text-align: left;
}

.page-download__guide-platform {
  background-color: var(--secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-download__guide-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 25px;
  text-align: center;
}

.page-download__guide-steps {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-download__step-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  font-size: 16px;
  color: #444444;
}

.page-download__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border-radius: 50%;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
  margin-right: 15px;
}

.page-download__step-text strong {
  color: var(--primary-color);
}

.page-download__cta-bottom {
  margin-top: 60px;
  padding: 30px;
  background-color: #f5f5f5;
  border-radius: 12px;
}

.page-download__cta-text {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 20px;
}

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

.page-download__faq-section {
  padding: 60px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

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

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: var(--primary-color);
  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: #555555;
}

.page-download__final-cta-section {
  padding: 80px 20px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  text-align: center;
}

/* General image and container responsive styles */
.page-download img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-download__container,
.page-download__hero-section,
.page-download__benefits-section,
.page-download__how-to-download-section,
.page-download__faq-section,
.page-download__final-cta-section,
.page-download__cta-buttons,
.page-download__qr-codes,
.page-download__benefits-grid,
.page-download__installation-guide,
.page-download__faq-list {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  padding-left: 15px;
  padding-right: 15px;
}

/* Fixed header spacing - handled by shared.css for body, so minimal for first section */
/* .page-download__hero-section { padding-top: 10px; } */

/* Homepage specific CSS snippets (as requested, even if not directly used by this page's content) */
@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;
  }
}

/* Mobile specific styles (max-width: 768px) */
@media (max-width: 768px) {
  .page-download {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .page-download__hero-section {
    padding-top: 10px;
    padding-bottom: 20px;
  }

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

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

  .page-download__cta-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;
  }

  .page-download__qr-codes {
    flex-direction: column;
    gap: 20px;
  }

  .page-download__qr-image {
    width: 150px;
    height: 150px;
  }

  .page-download__section-title {
    font-size: 28px;
  }

  .page-download__section-description {
    font-size: 15px;
  }

  .page-download__benefits-section,
  .page-download__how-to-download-section,
  .page-download__faq-section,
  .page-download__final-cta-section {
    padding: 40px 15px;
  }

  .page-download__benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-download__benefit-card {
    padding: 20px;
  }

  .page-download__installation-guide {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-download__guide-platform {
    padding: 20px;
  }

  .page-download__guide-title {
    font-size: 22px;
  }

  .page-download__step-item {
    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__cta-bottom {
    margin-top: 40px;
    padding: 20px;
  }

  .page-download__cta-text {
    font-size: 18px;
  }

  .page-download__btn-large {
    padding: 15px 25px;
    font-size: 18px;
  }

  /* General image and container responsive styles for mobile */
  .page-download img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-download__container,
  .page-download__hero-section,
  .page-download__benefits-section,
  .page-download__how-to-download-section,
  .page-download__faq-section,
  .page-download__final-cta-section,
  .page-download__cta-buttons,
  .page-download__qr-codes,
  .page-download__benefits-grid,
  .page-download__installation-guide,
  .page-download__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Button specific mobile adaptations */
  .page-download__cta-button,
  .page-download__btn-primary,
  .page-download__btn-secondary,
  .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__cta-buttons,
  .page-download__button-group,
  .page-download__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Ensure vertical stacking for multiple buttons */
  }
}

/* Homepage promo strip - not used on download page, but included as per instructions */
.page-download__promo-strip {
  margin-top: 16px;
}
.page-download__promo-strip-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  overflow-x: hidden;
}

/* Homepage hot games - not used on download page, but included as per instructions */
.page-download__hot-games-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

/* Homepage winner ticker - not used on download page, but included as per instructions */
.page-download__winner-ticker {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
}

/* Game trial related CSS (for homepage, included as per instructions) */
.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;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,.7);
}
.page-download__reward-modal.is-hidden {
  display: none !important;
}
.page-download__reward-modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 500px;
  width: 90%;
  position: relative;
}
.page-download__reward-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}