/* Base Styles */
.page-download {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--deep-navy);
}

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

.page-download__section-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-main);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-download__section-intro {
  font-size: clamp(16px, 2vw, 18px);
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-secondary);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-download__card {
  background: var(--card-bg);
  color: var(--text-main);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-download__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-download__card-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--gold);
}

.page-download__list-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-main);
}

.page-download__text-secondary {
  color: var(--text-secondary);
}

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

.page-download__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #F3F8FF; /* Text Main */
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-download__btn-primary:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-download__btn-secondary {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
  box-shadow: none;
}

.page-download__btn-secondary:hover {
  background: rgba(242, 193, 78, 0.1);
  color: #F2C14E;
}

.page-download__btn-large {
  padding: 16px 32px;
  font-size: 20px;
}

.page-download__btn-full-width {
  width: 100%;
  margin-top: 20px;
}

/* Hero Section */
.page-download__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 550px;
  padding-top: 10px; /* Small top padding */
  padding-bottom: 50px;
  overflow: hidden;
  text-align: center;
}

.page-download__hero-image-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.page-download__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
}

.page-download__hero-content-wrapper {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
}

.page-download__main-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-main);
  line-height: 1.2;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

.page-download__hero-description {
  font-size: clamp(18px, 2.5vw, 22px);
  margin-bottom: 40px;
  color: var(--text-secondary);
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

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

/* Why Section */
.page-download__why-section {
  padding: 80px 0;
  background-color: var(--deep-navy);
}

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

/* Features Section */
.page-download__features-section {
  padding: 80px 0;
  background-color: var(--card-bg);
}

.page-download__content-flex {
  display: flex;
  gap: 50px;
  align-items: center;
}

.page-download__content-text {
  flex: 1;
}

.page-download__content-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-download__content-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

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

.page-download__feature-list li {
  margin-bottom: 30px;
}

.page-download__feature-list li:last-child {
  margin-bottom: 0;
}

/* How To Download Section */
.page-download__how-to-download {
  padding: 80px 0;
  background-color: var(--deep-navy);
}

.page-download__download-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

.page-download__platform-title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 25px;
  color: var(--gold);
}

.page-download__platform-image {
  display: block;
  max-width: 80%;
  height: auto;
  margin: 0 auto 30px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-download__step-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.page-download__step-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.page-download__step-number {
  background: var(--glow);
  color: #08162B; /* Deep Navy for contrast */
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
  margin-right: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-download__faq-section {
  padding: 80px 0;
  background-color: var(--card-bg);
}

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

details.page-download__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

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;
  color: var(--text-main);
}

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(29, 95, 209, 0.1); /* Light hover effect with auxiliary color */
}

.page-download__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main);
}

.page-download__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--gold);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
  line-height: 1;
}

details.page-download__faq-item .page-download__faq-answer {
  padding: 0 25px 25px;
  background: rgba(16, 35, 63, 0.7); /* Slightly lighter card BG */
  border-radius: 0 0 10px 10px;
  color: var(--text-secondary);
  font-size: 16px;
}

/* CTA Bottom Section */
.page-download__cta-bottom-section {
  padding: 80px 0;
  background-color: var(--deep-navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-download__cta-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin-bottom: 40px;
}

.page-download__cta-image-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.page-download__cta-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
}

.page-download__copyright {
  text-align: center;
  padding: 40px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  background-color: var(--deep-navy);
  margin-top: 0;
  margin-bottom: 0;
}

/* Responsive Styles */
@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;
    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;
  }
}

@media (max-width: 768px) {
  .page-download__hero-section {
    min-height: 450px;
    padding-bottom: 30px;
  }
  .page-download__main-title {
    font-size: 32px;
  }
  .page-download__hero-description {
    font-size: 16px;
  }
  .page-download__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }
  .page-download__btn-primary,
  .page-download__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-download__why-section,
  .page-download__features-section,
  .page-download__how-to-download,
  .page-download__faq-section,
  .page-download__cta-bottom-section {
    padding: 50px 0;
  }

  .page-download__section-title {
    font-size: 26px;
  }
  .page-download__section-intro {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .page-download__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-download__card {
    padding: 25px;
  }
  .page-download__card-title {
    font-size: 20px;
  }

  .page-download__content-flex {
    flex-direction: column;
    gap: 30px;
  }
  .page-download__content-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-download__download-steps-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .page-download__platform-title {
    font-size: 24px;
  }
  .page-download__platform-image {
    max-width: 100%;
  }
  .page-download__step-list li {
    font-size: 15px;
  }

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

  .page-download img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-download__container,
  .page-download__hero-section,
  .page-download__why-section,
  .page-download__features-section,
  .page-download__how-to-download,
  .page-download__faq-section,
  .page-download__cta-bottom-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Custom Colors */
:root {
  --primary-color: #113B7A;
  --secondary-color: #1D5FD1;
  --card-bg: #10233F;
  --text-main: #F3F8FF;
  --text-secondary: #AFC4E8;
  --border: #244D84;
  --glow: #4FA8FF;
  --gold: #F2C14E;
  --divider: #1B3357;
  --deep-navy: #08162B;
}

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

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

.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 {cursor: pointer;}

/* Ensure no empty media queries for homepage-specific elements on this inner page */
/* The provided homepage media queries are kept as per instructions, but they are not directly affecting this inner page's layout unless the page-download__home-hero class is somehow present, which it is not. */
/* This section ensures that the required media queries are present in the CSS output, even if they are for homepage specific elements. */
@media (max-width: 768px) {
  /* Placeholder for promo strip if it were present */
  .page-download__promo-strip-track { /* Not applicable on this page */ }
  /* Placeholder for hot games if it were present */
  .page-download__hot-games-grid { /* Not applicable on this page */ }
  /* Placeholder for brand intro if it were present */
  .page-download__brand-intro { /* Not applicable on this page */ }
  /* Placeholder for winner ticker if it were present */
  .page-download__winner-ticker { /* Not applicable on this page */ }
}