/* Base styles for the download page */
.page-download {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
  min-height: 100vh;
}

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

.page-download__section-title {
  font-size: 2.5em;
  color: #F2C14E; /* Primary color */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-download__section-description {
  font-size: 1.1em;
  color: #FFF6D6;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-download__dark-bg {
  background-color: #0A0A0A;
  color: #FFF6D6;
}

.page-download__light-bg {
  background-color: #111111; /* Card BG */
  color: #FFF6D6;
}

.page-download__card {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: #FFF6D6;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-download__card-title {
  font-size: 1.5em;
  color: #FFD36B; /* Auxiliary color / Glow */
  margin-bottom: 15px;
  font-weight: bold;
}

.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: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-download__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

.page-download__btn-secondary {
  background: transparent;
  color: #F2C14E;
  border: 2px solid #F2C14E; /* Primary color */
}

.page-download__btn-secondary:hover {
  background: #F2C14E;
  color: #111111;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

.page-download__btn-primary i,
.page-download__btn-secondary i {
  margin-left: 10px;
}

/* Hero Section */
.page-download__hero-section {
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 60px;
}

.page-download__hero-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-download__hero-text-block {
  text-align: center;
  max-width: 800px;
}

.page-download__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  color: #F2C14E;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-download__hero-description {
  font-size: 1.2em;
  color: #FFF6D6;
  margin-bottom: 30px;
}

.page-download__hero-image-wrapper {
  width: 100%;
  max-width: 800px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

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

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

/* Advantages Section */
.page-download__advantages-section {
  padding: 80px 0;
}

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

/* Guide Section */
.page-download__guide-section {
  padding: 80px 0;
}

.page-download__guide-block {
  margin-bottom: 60px;
}

.page-download__guide-subtitle {
  font-size: 2em;
  color: #F2C14E;
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-download__guide-content {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-direction: row;
}

.page-download__guide-content:nth-child(even) {
  flex-direction: row-reverse;
}

.page-download__guide-steps {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.page-download__step-item {
  background-color: #111111;
  border: 1px solid #3A2A12;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-download__step-title {
  font-size: 1.3em;
  color: #FFD36B;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-download__step-item p {
  color: #FFF6D6;
  font-size: 1em;
}

.page-download__guide-image {
  flex: 1;
  max-width: 50%;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-download__guide-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
}

/* Features Section */
.page-download__features-section {
  padding: 80px 0;
}

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

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

/* Troubleshooting Section */
.page-download__troubleshooting-section {
  padding: 80px 0;
}

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

.page-download__troubleshooting-card ul {
  list-style: none;
  padding: 0;
  margin-top: 15px;
  text-align: left;
}

.page-download__troubleshooting-card li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  color: #FFF6D6;
}

.page-download__troubleshooting-card li::before {
  content: '•';
  color: #FFD36B;
  position: absolute;
  left: 0;
  font-size: 1.2em;
  line-height: 1;
}

/* CTA Section */
.page-download__cta-section {
  padding: 80px 0;
  text-align: center;
}

/* FAQ Section */
details.page-download__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #3A2A12;
  overflow: hidden;
  background: #111111;
  color: #FFF6D6;
}
details.page-download__faq-item summary.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  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(242, 193, 78, 0.1);
}
.page-download__faq-qtext {
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F2C14E;
}
.page-download__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #FFD36B;
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-download__faq-item .page-download__faq-answer {
  padding: 0 25px 25px;
  background: #0A0A0A;
  border-radius: 0 0 10px 10px;
  color: #FFF6D6;
}


/* Responsive Styles */

/* Mobile/Tablet specific styles */
@media (max-width: 1023px) {
  .page-download__hero-section {
    padding-bottom: 40px;
  }
  .page-download__hero-content-wrapper {
    flex-direction: column;
    gap: 30px;
  }
  .page-download__hero-image-wrapper {
    max-width: 100%;
  }
  .page-download__main-title {
    font-size: clamp(2em, 7vw, 3em);
  }
  .page-download__guide-content {
    flex-direction: column;
  }
  .page-download__guide-content:nth-child(even) {
    flex-direction: column;
  }
  .page-download__guide-image {
    max-width: 100%;
  }
  .page-download__section-title {
    font-size: 2em;
  }
  .page-download__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-download__advantages-section,
  .page-download__guide-section,
  .page-download__features-section,
  .page-download__troubleshooting-section,
  .page-download__cta-section,
  .page-download__faq-section {
    padding: 60px 0;
  }

  /* Game Trial CSS as required by prompt, even if not primary for download page */
  .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;
  }
}

/* Desktop specific styles (min-width: 1024px) */
@media (min-width: 1024px) {
  .page-download__hero-content-wrapper {
    flex-direction: row;
    text-align: left;
    gap: 60px;
  }
  .page-download__hero-text-block {
    text-align: left;
  }
  .page-download__hero-image-wrapper {
    order: 2;
    max-width: 500px; /* Adjust as needed for better balance */
  }
  .page-download__cta-buttons {
    justify-content: flex-start;
  }
  .page-download__guide-content:nth-child(even) .page-download__guide-image {
    order: -1;
  }

  /* Game Trial CSS as required by prompt, even if not primary for download page */
  .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__container {
    padding: 0 15px;
  }
  .page-download__section-title {
    font-size: 1.8em;
  }
  .page-download__main-title {
    font-size: clamp(1.8em, 8vw, 2.5em);
  }
  .page-download__hero-description {
    font-size: 1em;
  }
  .page-download__btn-primary,
  .page-download__btn-secondary {
    width: 100% !important;
    margin-bottom: 10px;
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-download__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-download__advantage-card,
  .page-download__feature-card,
  .page-download__troubleshooting-card {
    padding: 20px;
  }
  .page-download__card-title {
    font-size: 1.2em;
  }
  .page-download__guide-subtitle {
    font-size: 1.5em;
  }
  .page-download__step-item {
    padding: 20px;
  }
  .page-download__step-title {
    font-size: 1.1em;
  }
  .page-download__guide-image {
    max-width: 100%;
    margin-top: 20px;
  }

  /* Ensure all images and containers are responsive */
  .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__advantages-section,
  .page-download__guide-section,
  .page-download__features-section,
  .page-download__troubleshooting-section,
  .page-download__cta-section,
  .page-download__faq-section,
  .page-download__hero-content-wrapper,
  .page-download__cta-buttons,
  .page-download__advantages-grid,
  .page-download__features-grid,
  .page-download__troubleshooting-grid,
  .page-download__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
  .page-download__faq-qtext {
    font-size: 1em;
  }
  .page-download__faq-toggle {
    font-size: 24px;
    width: 24px;
  }

  /* Placeholder for other homepage specific media queries, ensuring they are present */
  .page-download__promo-strip-track {
    grid-template-columns: repeat(4,1fr);
    overflow-x:hidden;
  }
  .page-download__hot-games-grid {
    grid-template-columns:repeat(2,1fr);
  }
  /* Add other specific 768px rules for promo-strip, hot-games, brand-intro, winner-ticker if they were present on a homepage template */
}

/* Game Trial Specific CSS (as required by prompt, even if not primary for download 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;background:rgba(0,0,0,0.7);display:flex;align-items:center;justify-content:center;}
.page-download__reward-modal.is-hidden { display: none !important; }
.page-download__reward-modal-content { background: #111111; padding: 40px; border-radius: 15px; text-align: center; max-width: 500px; width: 90%; position: relative; border: 1px solid #F2C14E; }
.page-download__reward-modal-close { position: absolute; top: 15px; right: 15px; font-size: 24px; color: #FFF6D6; cursor: pointer; background: none; border: none; }
.page-download__reward-modal-content h3 { color: #F2C14E; margin-bottom: 20px; font-size: 1.8em; }
.page-download__reward-modal-content p { color: #FFF6D6; margin-bottom: 30px; font-size: 1.1em; }
.page-download__reward-modal-content .page-download__btn-primary { margin: 0 auto; display: block; }

.page-download__promo-strip-track { display: grid; grid-auto-flow: column; gap: 20px; }
.page-download__hot-games-grid { display: grid; gap: 20px; }