/* Page-specific styles for download.css */
.page-download {
  font-family: Arial, sans-serif;
  color: #1F2D3D; /* Text Main */
  background: #F4F7FB; /* Background */
  line-height: 1.6;
}

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

.page-download__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding as per instruction */
  padding-bottom: 50px;
  text-align: center;
  overflow: hidden;
  background: #F4F7FB; /* Use page background color */
}

.page-download__hero-image-wrapper {
  margin-bottom: 30px;
}

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

.page-download__hero-content {
  padding: 0 15px;
}

.page-download__main-title {
  font-weight: 700;
  line-height: 1.2;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 20px;
}

.page-download__description {
  font-size: 18px;
  color: #1F2D3D; /* Text Main */
  max-width: 800px;
  margin: 0 auto 30px;
}

.page-download__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  max-width: 100%;
  box-sizing: border-box;
  padding: 0 15px;
}

.page-download__btn-primary,
.page-download__btn-secondary,
.page-download__btn-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  min-width: 180px;
}

.page-download__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button color */
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

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

.page-download__btn-secondary {
  background: #ffffff; /* Card BG */
  color: #2F6BFF; /* Main color */
  border: 2px solid #2F6BFF; /* Main color */
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.1);
}

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

.page-download__btn-large {
    min-width: 220px;
    padding: 18px 35px;
    font-size: 18px;
}

.page-download__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #1F2D3D; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 50px;
}

.page-download__text-block {
  font-size: 16px;
  color: #1F2D3D; /* Text Main */
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px;
}

/* Why Download Section */
.page-download__why-download-section {
    padding: 60px 0;
    background: #FFFFFF; /* Card BG */
}

.page-download__feature-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-download__feature-item {
  flex: 0 0 calc(33% - 20px);
  max-width: calc(33% - 20px);
  text-align: center;
  background: #F4F7FB; /* Background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

.page-download__feature-item img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 5px;
  max-width: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-download__feature-title {
  font-size: 22px;
  font-weight: 600;
  color: #000000; /* Custom Color_1776249996415 */
  margin-bottom: 10px;
}

.page-download__feature-item p {
  font-size: 15px;
  color: #1F2D3D; /* Text Main */
}

/* How to Download Section */
.page-download__how-to-download-section {
    padding: 60px 0;
    background: #F4F7FB; /* Background */
}

.page-download__download-guide-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.page-download__download-card {
  flex: 0 0 calc(50% - 15px);
  max-width: calc(50% - 15px);
  background: #FFFFFF; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
  text-align: center;
}

.page-download__card-title {
  font-size: 24px;
  font-weight: 700;
  color: #000000; /* Custom Color_1776249996415 */
  margin-bottom: 25px;
}

.page-download__qr-code {
  width: 250px;
  height: 250px;
  object-fit: contain;
  margin: 0 auto 25px;
  border: 1px solid #D6E2FF; /* Border */
  border-radius: 5px;
  max-width: 100%;
  display: block;
}

.page-download__steps-list {
  list-style: decimal;
  text-align: left;
  margin: 0 0 30px 20px;
  padding: 0;
  color: #1F2D3D; /* Text Main */
}

.page-download__steps-list li {
  margin-bottom: 10px;
  font-size: 15px;
}

/* App Features Section */
.page-download__app-features-section {
    padding: 60px 0;
    background: #FFFFFF; /* Card BG */
}

.page-download__features-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.page-download__feature-card {
  flex: 0 0 calc(33% - 20px);
  max-width: calc(33% - 20px);
  background: #F4F7FB; /* Background */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
  overflow: hidden;
  text-align: center;
}

.page-download__feature-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
  display: block;
  max-width: 100%;
}

.page-download__feature-card .page-download__card-title {
  font-size: 20px;
  margin-top: 0;
  margin-bottom: 10px;
  padding: 0 20px;
}

.page-download__feature-card p {
  font-size: 15px;
  color: #1F2D3D; /* Text Main */
  padding: 0 20px 25px;
}

/* FAQ Section */
.page-download__faq-section {
    padding: 60px 0;
    background: #F4F7FB; /* Background */
}

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

details.page-download__faq-item {
  margin-bottom: 15px;
  border-radius: 10px; /* Slightly larger radius */
  border: 1px solid #D6E2FF; /* Border */
  overflow: hidden;
  background: #fff; /* Card BG */
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
details.page-download__faq-item summary.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px; /* Increased padding */
  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: 17px; /* Slightly larger font */
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #000000; /* Custom Color_1776249996415 */
}
.page-download__faq-toggle {
  font-size: 26px; /* Larger toggle */
  font-weight: bold;
  color: #2F6BFF; /* Main color for toggle */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px; /* Larger width */
  text-align: center;
}
details.page-download__faq-item .page-download__faq-answer {
  padding: 0 25px 20px; /* Increased padding */
  background: #F4F7FB; /* Background */
  border-radius: 0 0 10px 10px; /* Match item radius */
  color: #1F2D3D; /* Text Main */
}
.page-download__faq-answer p {
    margin: 0;
    font-size: 15px;
}

/* Final CTA Section */
.page-download__final-cta-section {
    padding: 60px 0 80px;
    background: #2F6BFF; /* Main color */
    color: #ffffff;
    text-align: center;
}

.page-download__final-cta-section .page-download__section-title {
    color: #ffffff;
    padding-top: 0;
    margin-bottom: 25px;
}

.page-download__final-cta-section .page-download__text-block {
    color: #ffffff;
    margin-bottom: 40px;
}

.page-download__final-cta-section .page-download__cta-buttons {
    gap: 25px;
}

.page-download__final-cta-section .page-download__btn-primary {
    background: #ffffff; /* Card BG */
    color: #2F6BFF; /* Main color */
    border: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-download__final-cta-section .page-download__btn-primary:hover {
    background: #f0f0f0;
}

.page-download__final-cta-section .page-download__btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    box-shadow: none;
}

.page-download__final-cta-section .page-download__btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

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

/* --- Homepage Specific CSS Blocks (Included as per instruction) --- */
@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 Styles (768px and below) --- */
@media (max-width: 768px) {
  .page-download {
    font-size: 16px;
    line-height: 1.6;
  }

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

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

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

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

  .page-download__btn-primary,
  .page-download__btn-secondary,
  .page-download__btn-large {
    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-title {
    font-size: 28px;
    margin-bottom: 30px;
    padding-top: 30px;
  }

  .page-download__text-block {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .page-download__feature-list,
  .page-download__download-guide-grid,
  .page-download__features-grid {
    flex-direction: column;
    gap: 20px;
  }

  .page-download__feature-item,
  .page-download__download-card,
  .page-download__feature-card {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 20px;
  }
  
  .page-download__feature-item img {
    
    
  }

  .page-download__feature-title {
    font-size: 20px;
  }

  .page-download__card-title {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .page-download__qr-code {
    width: 200px;
    height: 200px;
    margin-bottom: 20px;
  }

  .page-download__steps-list {
    margin-bottom: 20px;
  }

  .page-download__feature-card img {
    height: 200px;
  }

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

  .page-download__final-cta-section {
    padding: 40px 0 60px;
  }

  .page-download__final-cta-section .page-download__cta-buttons {
    gap: 15px;
  }

  /* General image and container overrides for mobile */
  .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__app-features-section,
  .page-download__faq-section,
  .page-download__final-cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-download__hero-section {
    padding-left: 0;
    padding-right: 0;
  }
  .page-download__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Placeholder for promo strip and hot games grid for 768px, as per instruction */
  .page-download__promo-strip-track {
    grid-template-columns: repeat(2, 1fr) !important;
    overflow-x: hidden !important;
  }
  .page-download__hot-games-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* --- Game Trial Specific Styles (from prompt) --- */
.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-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #fff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    color: #333;
    z-index: 10001;
}