.page-download {
  color: #ffffff; /* Text color for dark body background */
  padding-top: var(--header-offset, 120px); /* Ensure content clears fixed header */
}

.page-download__hero-section {
  background-color: #0A2463; /* Main brand color for hero background */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-download__hero-content {
  max-width: 900px;
  z-index: 2;
  position: relative;
}

.page-download__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #E3B505; /* Auxiliary brand color for emphasis */
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-download__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #f0f0f0;
  line-height: 1.6;
}

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

.page-download__button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-align: center;
}

.page-download__button--primary {
  background-color: #E3B505; /* Auxiliary brand color */
  color: #0A2463;
  border: 2px solid #E3B505;
}

.page-download__button--primary:hover {
  background-color: #ffc80a;
  transform: translateY(-3px);
}

.page-download__button--secondary {
  background-color: transparent;
  color: #E3B505;
  border: 2px solid #E3B505;
}

.page-download__button--secondary:hover {
  background-color: #E3B505;
  color: #0A2463;
  transform: translateY(-3px);
}

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

.page-download__hero-image {
  width: 100%;
  height: auto;
  min-width: 1920px; /* Ensure image covers the background */
  min-height: 1080px;
  object-fit: cover;
  display: block;
}

.page-download__benefits-section,
.page-download__methods-section,
.page-download__notes-section,
.page-download__security-section,
.page-download__games-section,
.page-download__faq-section,
.page-download__cta-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
}

.page-download__section-title {
  font-size: 2.5em;
  color: #E3B505;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 15px;
}

.page-download__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #0A2463;
  border-radius: 2px;
}

.page-download__section-intro {
  font-size: 1.1em;
  color: #cccccc;
  margin-bottom: 50px;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-download__benefits-grid,
.page-download__notes-grid,
.page-download__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-download__benefit-card,
.page-download__note-item,
.page-download__game-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid rgba(227, 181, 5, 0.3);
}

.page-download__benefit-card:hover,
.page-download__note-item:hover,
.page-download__game-card:hover {
  transform: translateY(-8px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-download__benefit-title,
.page-download__note-title,
.page-download__game-title {
  font-size: 1.6em;
  color: #E3B505;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-download__benefit-description,
.page-download__note-description,
.page-download__game-description {
  font-size: 1em;
  color: #cccccc;
  line-height: 1.6;
}

.page-download__platform-guide {
  display: flex;
  flex-direction: column;
  gap: 60px;
  margin-top: 50px;
}

.page-download__platform-card {
  background-color: rgba(10, 36, 99, 0.7); /* Dark blue with transparency */
  padding: 40px;
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border: 1px solid #E3B505;
}

.page-download__platform-title {
  font-size: 2em;
  color: #E3B505;
  margin-bottom: 30px;
  text-align: center;
}

.page-download__platform-image-wrapper {
  margin: 0 auto 30px auto;
  max-width: 600px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-download__platform-image {
  width: 100%;
  height: auto;
  display: block;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px;
}

.page-download__installation-steps {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
}

.page-download__step-item {
  background-color: rgba(255, 255, 255, 0.05);
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  font-size: 1.1em;
  line-height: 1.6;
  color: #f0f0f0;
  border-left: 5px solid #E3B505;
}

.page-download__step-item strong {
  color: #E3B505;
}

.page-download__button--platform {
  background-color: #E3B505;
  color: #0A2463;
  border: 2px solid #E3B505;
  display: block;
  width: fit-content;
  margin: 0 auto;
  padding: 12px 30px;
}

.page-download__button--platform:hover {
  background-color: #ffc80a;
  transform: translateY(-3px);
}

.page-download__security-section {
  background-color: #0A2463;
  padding: 80px 20px;
  text-align: left;
}

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

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

.page-download__security-subtitle {
  font-size: 1.8em;
  color: #E3B505;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-download__security-description {
  font-size: 1em;
  color: #cccccc;
  line-height: 1.6;
  margin-bottom: 20px;
}

.page-download__security-image-wrapper {
  flex: 1;
  max-width: 600px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-download__security-image {
  width: 100%;
  height: auto;
  display: block;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px;
}

.page-download__games-section {
  background-color: #1a1a1a;
}

.page-download__games-image-wrapper {
  margin-top: 50px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-download__games-image {
  width: 100%;
  height: auto;
  display: block;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px;
}

.page-download__faq-container {
  margin-top: 40px;
  text-align: left;
}

.page-download__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(227, 181, 5, 0.3);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-download__faq-question {
  display: block;
  padding: 20px 25px;
  font-size: 1.2em;
  color: #E3B505;
  cursor: pointer;
  position: relative;
  user-select: none;
  background-color: rgba(10, 36, 99, 0.5);
  transition: background-color 0.3s ease;
}

.page-download__faq-question:hover {
  background-color: rgba(10, 36, 99, 0.7);
}

.page-download__faq-toggle {
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-download__faq-item[open] .page-download__faq-toggle {
  transform: translateY(-50%) rotate(45deg);
}

.page-download__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #cccccc;
  line-height: 1.6;
}

.page-download__cta-section {
  background-color: #0A2463;
  padding: 80px 20px;
}

.page-download__button--large {
  background-color: #E3B505;
  color: #0A2463;
  border: 2px solid #E3B505;
  padding: 18px 45px;
  font-size: 1.4em;
  margin-top: 30px;
}

.page-download__button--large:hover {
  background-color: #ffc80a;
  transform: translateY(-4px);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-download__hero-title {
    font-size: 2.8em;
  }

  .page-download__section-title {
    font-size: 2.2em;
  }

  .page-download__security-content {
    flex-direction: column;
  }

  .page-download__security-image-wrapper {
    margin-top: 40px;
    max-width: 80%;
  }
}

@media (max-width: 768px) {
  .page-download__hero-section {
    padding: 60px 15px;
  }

  .page-download__hero-title {
    font-size: 2.2em;
  }

  .page-download__hero-description {
    font-size: 1.1em;
  }

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

  .page-download__button {
    width: 100%;
    max-width: 300px;
  }

  .page-download__benefits-grid,
  .page-download__notes-grid,
  .page-download__games-grid {
    grid-template-columns: 1fr;
  }

  .page-download__section-title {
    font-size: 2em;
  }

  .page-download__section-intro {
    font-size: 0.95em;
  }

  .page-download__platform-card {
    padding: 30px 20px;
  }

  .page-download__platform-title {
    font-size: 1.8em;
  }

  .page-download__step-item {
    font-size: 0.95em;
    padding: 15px;
  }

  .page-download__security-subtitle {
    font-size: 1.5em;
  }

  .page-download__faq-question {
    font-size: 1.1em;
    padding: 18px 20px;
  }

  .page-download__faq-toggle {
    right: 20px;
  }

  .page-download__faq-answer {
    padding: 0 20px 18px;
  }

  .page-download__button--large {
    font-size: 1.2em;
    padding: 15px 30px;
  }

  /* Mobile image constraint */
  .page-download img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-download__hero-title {
    font-size: 1.8em;
  }

  .page-download__section-title {
    font-size: 1.8em;
  }

  .page-download__hero-section,
  .page-download__benefits-section,
  .page-download__methods-section,
  .page-download__notes-section,
  .page-download__security-section,
  .page-download__games-section,
  .page-download__faq-section,
  .page-download__cta-section {
    padding: 40px 15px;
  }

  .page-download__button {
    padding: 12px 25px;
    font-size: 1em;
  }
}