.page-download {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: #FFFFFF; /* Ensures consistency with body background */
}

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

.page-download__hero-section {
  position: relative;
  padding: 120px 0 60px; /* Adjusted padding-top for header offset */
  color: #ffffff;
  text-align: center;
  background-color: #017439; /* Brand primary color for hero */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-download__hero-image {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  z-index: 1;
  opacity: 0.8;
}

.page-download__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FFFF00;
  position: relative;
  z-index: 2;
}

.page-download__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  line-height: 1.8;
  position: relative;
  z-index: 2;
}

.page-download__download-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 30px;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
}

.page-download__qr-code-area {
  margin-top: 30px;
  position: relative;
  z-index: 2;
}

.page-download__qr-code {
  border: 5px solid #ffffff;
  border-radius: 10px;
}

.page-download__qr-code-text {
  margin-top: 15px;
  font-size: 1.1em;
  font-weight: bold;
  color: #ffffff;
}

.page-download__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
}

.page-download__btn-primary.page-download__btn-register {
  background-color: #C30808; /* Custom register button color */
  color: #FFFF00; /* Custom register button font color */
}

.page-download__btn-primary.page-download__btn-register:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

.page-download__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  background-color: #ffffff; /* White background for secondary button */
  color: #017439; /* Brand primary color for text */
  border: 2px solid #017439;
  cursor: pointer;
  box-sizing: border-box;
}

.page-download__btn-secondary.page-download__btn-login {
  background-color: #C30808; /* Custom login button color */
  color: #FFFF00; /* Custom login button font color */
  border: 2px solid #C30808;
}

.page-download__btn-secondary.page-download__btn-login:hover {
  background-color: #a00606;
  color: #FFFF00;
  transform: translateY(-2px);
}

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

.page-download__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  text-align: center;
  color: #017439;
  font-weight: bold;
}

.page-download__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
  color: #555555;
}

/* Benefits Section */
.page-download__benefits-section {
  padding: 80px 0;
  background-color: #f8f8f8;
  color: #333333;
}

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

.page-download__benefit-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-download__benefit-card:hover {
  transform: translateY(-10px);
}

.page-download__benefit-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-download__card-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 15px;
}

.page-download__card-text {
  font-size: 1em;
  color: #555555;
}

/* Guide Section */
.page-download__guide-section {
  padding: 80px 0;
  background-color: #017439;
  color: #ffffff;
}

.page-download__guide-section .page-download__section-title,
.page-download__guide-section .page-download__section-description {
  color: #ffffff;
}

.page-download__guide-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  gap: 20px;
  flex-wrap: wrap;
}

.page-download__tab-header {
  padding: 15px 30px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  color: #ffffff;
}

.page-download__tab-header.active {
  background-color: #ffffff;
  color: #017439;
}

.page-download__tab-header:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

.page-download__tab-content {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-download__tab-content.active {
  display: flex;
}

.page-download__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  width: 100%;
  max-width: 900px;
}

.page-download__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  position: relative;
  padding-top: 60px;
}

.page-download__step-number {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #ffffff;
  color: #017439;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  border: 3px solid #017439;
}

.page-download__step-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-download__step-text {
  font-size: 1em;
  color: #f0f0f0;
}

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

.page-download__video-wrapper {
  width: 100%;
  max-width: 1000px;
  margin: 60px auto 0;
  text-align: center;
  box-sizing: border-box;
  overflow: hidden;
}

.page-download__video-title {
  font-size: 1.8em;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-download__video {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  display: block;
}

/* Games Section */
.page-download__games-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

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

.page-download__game-card {
  background-color: #f8f8f8;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-download__game-card:hover {
  transform: translateY(-8px);
}

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

.page-download__game-card .page-download__card-title {
  font-size: 1.3em;
  color: #017439;
  margin-bottom: 10px;
}

.page-download__game-card .page-download__card-text {
  font-size: 0.95em;
  color: #555555;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-download__game-card .page-download__btn-secondary {
  margin-top: auto;
  width: 100%;
}

/* Security Section */
.page-download__security-section {
  padding: 80px 0;
  background-color: #017439;
  color: #ffffff;
}

.page-download__security-section .page-download__section-title,
.page-download__security-section .page-download__section-description {
  color: #ffffff;
}

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

.page-download__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
}

.page-download__feature-icon {
  width: 100%;
  max-width: 150px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-download__feature-title {
  font-size: 1.5em;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-download__feature-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* FAQ Section */
.page-download__faq-section {
  padding: 80px 0;
  background-color: #f8f8f8;
  color: #333333;
}

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

.page-download__faq-item {
  background-color: #ffffff;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #f0f0f0;
  color: #017439;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-download__faq-question:hover {
  background-color: #e0e0e0;
}

.page-download__faq-title {
  font-size: 1.2em;
  margin: 0;
  color: #017439;
}

.page-download__faq-toggle {
  font-size: 1.8em;
  line-height: 1;
  color: #017439;
  transition: transform 0.3s ease;
}

.page-download__faq-item.active .page-download__faq-toggle {
  transform: rotate(45deg);
}

.page-download__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: #555555;
  background-color: #ffffff;
}

.page-download__faq-item.active .page-download__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 15px 25px;
}

.page-download__faq-answer p {
  margin: 0;
  padding-bottom: 10px; /* Adjust as needed for paragraph spacing */
}

/* CTA Section */
.page-download__cta-section {
  padding: 80px 0;
  background-color: #017439;
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-download__cta-section .page-download__section-title,
.page-download__cta-section .page-download__section-description {
  color: #ffffff;
  position: relative;
  z-index: 2;
}

.page-download__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
}

.page-download__cta-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  z-index: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-download__hero-title {
    font-size: 3em;
  }
  .page-download__hero-description {
    font-size: 1.1em;
  }
  .page-download__section-title {
    font-size: 2em;
  }
  .page-download__hero-image {
    width: 60%;
  }
}

@media (max-width: 768px) {
  .page-download__hero-section {
    padding: var(--header-offset, 120px) 0 40px; /* Mobile header offset */
  }
  .page-download__hero-title {
    font-size: 2.2em;
  }
  .page-download__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-download__download-buttons, .page-download__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
  }
  .page-download__btn-primary, .page-download__btn-secondary {
    width: 100% !important;
    max-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__hero-image {
    position: static;
    width: 100%;
    margin-top: 30px;
    opacity: 1;
  }
  .page-download__benefits-grid, .page-download__guide-steps, .page-download__games-grid, .page-download__security-features {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }
  .page-download__guide-image, .page-download__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-download__video-wrapper, .page-download__tab-content, .page-download__guide-tabs {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-download__section-title {
    font-size: 1.8em;
  }
  .page-download__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-download img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-download__container {
    padding: 0 15px;
  }
  .page-download__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }
}

@media (max-width: 480px) {
  .page-download__hero-title {
    font-size: 1.8em;
  }
  .page-download__section-title {
    font-size: 1.5em;
  }
  .page-download__tab-header {
    padding: 10px 20px;
    font-size: 1em;
  }
  .page-download__qr-code {
    width: 200px;
    height: 200px;
  }
}

/* Ensure all image containers and images are responsive */
.page-download__benefits-section img,
.page-download__guide-section img,
.page-download__games-section img,
.page-download__security-section img,
.page-download__cta-section img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-download__hero-section,
.page-download__benefits-section,
.page-download__guide-section,
.page-download__games-section,
.page-download__security-section,
.page-download__faq-section,
.page-download__cta-section {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Color Contrast Specifics */
.page-download__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

.page-download__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-download__hero-section .page-download__hero-description {
  color: #f0f0f0;
}

.page-download__faq-item.active .page-download__faq-answer {
  color: #333333;
}

.page-download__faq-question:hover {
  background-color: #e0e0e0;
}

.page-download__faq-title {
  color: #017439;
}

.page-download__faq-toggle {
  color: #017439;
}

.page-download__tab-header.active {
  background-color: #ffffff;
  color: #017439;
}

.page-download__tab-header {
  color: #ffffff;
}

.page-download__step-number {
  color: #017439;
  border-color: #017439;
}

.page-download__step-title {
  color: #ffffff;
}

.page-download__step-text {
  color: #f0f0f0;
}

.page-download__feature-title {
  color: #ffffff;
}

.page-download__feature-text {
  color: #f0f0f0;
}

.page-download__video-title {
  color: #ffffff;
}