/* Base styles and variables */
:root {
  --color-primary: #113B7A;
  --color-secondary: #1D5FD1;
  --color-text-main: #F3F8FF;
  --color-text-secondary: #AFC4E8;
  --color-card-bg: #10233F;
  --color-border: #244D84;
  --color-glow: #4FA8FF;
  --color-gold: #F2C14E;
  --color-divider: #1B3357;
  --color-deep-navy: #08162B;
  --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
}

.page-download {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--color-text-main); /* Default text color for dark body background */
  background-color: var(--color-deep-navy); /* Assuming body background is dark from shared.css */
}

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

.page-download__section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--color-gold);
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.6);
}

.page-download__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: var(--color-text-secondary);
}

.page-download__sub-title {
  font-size: 24px;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--color-text-main);
}

.page-download__list {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 20px;
  color: var(--color-text-secondary);
}

.page-download__list li {
  margin-bottom: 8px;
}

/* Hero Section */
.page-download__hero-section {
  padding-top: 10px; /* Rely on body padding-top from shared.css */
  padding-bottom: 60px;
  background: var(--color-deep-navy);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px;
  text-align: center;
}

.page-download__hero-section .page-download__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

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

.page-download__main-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  color: var(--color-gold);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.8);
}

.page-download__hero-description {
  font-size: 18px;
  color: var(--color-text-secondary);
  margin-bottom: 30px;
}

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

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

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

.page-download__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: 2px solid var(--color-glow);
  box-shadow: 0 4px 15px rgba(43, 115, 246, 0.4);
}

.page-download__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(43, 115, 246, 0.6);
  border-color: #ffffff;
}

.page-download__btn-secondary {
  background: transparent;
  color: var(--color-glow);
  border: 2px solid var(--color-glow);
  box-shadow: 0 4px 10px rgba(79, 168, 255, 0.2);
}

.page-download__btn-secondary:hover {
  background: var(--color-glow);
  color: var(--color-deep-navy);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(79, 168, 255, 0.4);
}

.page-download__hero-image-wrapper {
  width: 100%;
  max-width: 800px;
  margin-top: 20px;
}

.page-download__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* General Content Sections */
.page-download__why-download-section,
.page-download__exclusive-promotions,
.page-download__conclusion-section {
  padding: 60px 0;
  background: var(--color-deep-navy);
  color: var(--color-text-main);
}

.page-download__how-to-download-section,
.page-download__faq-section {
  padding: 60px 0;
  background: var(--color-primary);
  color: var(--color-text-main);
}

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

.page-download__light-bg {
  background: var(--color-card-bg);
  color: var(--color-text-main);
}

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

.page-download__feature-card {
  padding: 30px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  text-align: left;
}

.page-download__feature-card .page-download__card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 15px;
}

.page-download__feature-card p {
  font-size: 16px;
  color: var(--color-text-secondary);
}

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

.page-download__step-card {
  background: var(--color-card-bg);
  padding: 30px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-download__step-card .page-download__step-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 20px;
}

.page-download__step-card ol {
  list-style-type: decimal;
  padding-left: 25px;
  margin-bottom: 25px;
  color: var(--color-text-secondary);
}

.page-download__step-card ol li {
  margin-bottom: 10px;
  font-size: 16px;
}

/* Promotions */
.page-download__promo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-download__promo-card {
  background: var(--color-card-bg);
  padding: 30px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  text-align: left;
}

.page-download__promo-card .page-download__card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 15px;
}

.page-download__promo-card p {
  font-size: 16px;
  color: var(--color-text-secondary);
}

.page-download__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
details.page-download__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--color-border);
  overflow: hidden;
  background: var(--color-card-bg);
}
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: rgba(var(--color-primary), 0.1);
}
.page-download__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--color-text-main);
}
.page-download__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--color-gold);
  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: var(--color-deep-navy);
  border-radius: 0 0 5px 5px;
  color: var(--color-text-secondary);
}

/* Conclusion */
.page-download__conclusion-section {
  text-align: center;
  padding-bottom: 80px;
}

/* Game Trial Specific CSS (as per prompt's mandatory inclusion for homepage, adapted to page-download prefix) */
@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;
  }
  /* No promo-strip or hot-games for download page, so no 1024px rules for them here. */
}

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

  .page-download__container {
    padding: 0 10px;
  }

  .page-download__main-title {
    font-size: clamp(24px, 7vw, 36px);
  }

  .page-download__hero-description,
  .page-download__section-description,
  .page-download__feature-card p,
  .page-download__step-card ol li,
  .page-download__promo-card p,
  details.page-download__faq-item .page-download__faq-answer p {
    font-size: 15px;
  }

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

  .page-download__sub-title,
  .page-download__feature-card .page-download__card-title,
  .page-download__step-card .page-download__step-title,
  .page-download__promo-card .page-download__card-title {
    font-size: 20px;
  }

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

  .page-download__btn-primary,
  .page-download__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-download__hero-section .page-download__container {
    flex-direction: column;
    gap: 20px;
  }

  .page-download__features-grid,
  .page-download__download-steps,
  .page-download__promo-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-download__content-image {
    margin: 20px auto;
  }

  details.page-download__faq-item summary.page-download__faq-question {
    padding: 15px;
  }
  .page-download__faq-qtext {
    font-size: 16px;
  }
  details.page-download__faq-item .page-download__faq-answer {
    padding: 0 15px 15px;
  }

  /* General image and container responsiveness */
  .page-download img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-download__section,
  .page-download__card,
  .page-download__container,
  .page-download__hero-section,
  .page-download__why-download-section,
  .page-download__how-to-download-section,
  .page-download__exclusive-promotions,
  .page-download__faq-section,
  .page-download__conclusion-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 10px;
    padding-right: 10px;
  }

  /* Game Trial specific mobile CSS (as per prompt's mandatory inclusion for homepage) */
  /* Note: The download page itself doesn't have these elements, but the CSS is included as per template instructions. */
  .page-download__promo-strip-track { /* Placeholder for promo-strip if it were on this page */
    grid-template-columns: repeat(4, 1fr);
    overflow-x: hidden;
  }
  .page-download__hot-games-grid { /* Placeholder for hot-games if it were on this page */
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Game Trial specific CSS from prompt - required to be in output JSON */
.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;}.page-download__reward-modal-close{position:absolute;top:15px;right:15px;width:30px;height:30px;background:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:20px;cursor:pointer;z-index:10001;border:none;color:#333;}