/* style/download.css */
.page-download {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  line-height: 1.6;
}

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

.page-download__section {
  padding: 60px 0;
  text-align: center;
}

.page-download__dark-section {
  background-color: rgba(1, 116, 57, 0.1); /* Slightly transparent brand color on dark body background */
}

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

.page-download__main-title {
  font-size: 2.8em;
  color: #FFFFFF;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-download__intro-text {
  font-size: 1.1em;
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-download__section-title {
  font-size: 2.2em;
  color: #017439;
  margin-bottom: 20px;
}

.page-download__dark-section .page-download__section-title {
  color: #FFFFFF;
}

.page-download__section-description {
  font-size: 1em;
  color: #e0e0e0;
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-download__dark-section .page-download__section-description {
  color: #e0e0e0;
}

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

.page-download__cta-buttons--center {
  justify-content: center;
}

.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;
  min-width: 200px;
  box-sizing: border-box;
}

.page-download__btn-primary {
  background: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid transparent;
}

.page-download__btn-primary:hover {
  background: #a30606;
  transform: translateY(-3px);
}

.page-download__btn-secondary {
  background: #ffffff;
  color: #017439;
  border: 2px solid #017439;
}

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

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

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

.page-download__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin-top: 50px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.page-download__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

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

.page-download__card {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%; /* Ensure cards have equal height */
}

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

.page-download__card-title {
  font-size: 1.4em;
  color: #017439;
  margin-bottom: 15px;
  text-align: center;
}

.page-download__card.page-download__light-bg .page-download__card-title {
  color: #017439;
}

.page-download__card-text {
  font-size: 0.95em;
  color: #e0e0e0;
  text-align: center;
}

.page-download__card.page-download__light-bg .page-download__card-text {
  color: #333333;
}

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

.page-download__download-platform {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
}

.page-download__platform-title {
  font-size: 1.8em;
  color: #FFFFFF;
  margin-bottom: 25px;
  text-align: center;
}

.page-download__platform-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

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

.page-download__step-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 1em;
  color: #e0e0e0;
  border-left: 5px solid #017439;
}

.page-download__step-item strong {
  color: #FFFF00; /* Yellow for step titles */
}

.page-download__security-list {
  list-style: none;
  padding: 0;
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: left;
}

.page-download__security-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 10px;
}

.page-download__security-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

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

.page-download__security-subtitle {
  font-size: 1.3em;
  color: #017439;
  margin-bottom: 10px;
}

.page-download__security-item p {
  font-size: 0.95em;
  color: #e0e0e0;
}

.page-download__security-note {
  margin-top: 40px;
  font-size: 1em;
  color: #e0e0e0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-download__security-note a {
  color: #FFFF00;
  text-decoration: underline;
}

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

.page-download__game-card {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-download__game-title {
  font-size: 1.5em;
  margin-bottom: 10px;
}

.page-download__game-title a {
  color: #017439;
  text-decoration: none;
}

.page-download__game-title a:hover {
  text-decoration: underline;
}

.page-download__game-card.page-download__light-bg .page-download__game-title a {
  color: #017439;
}

.page-download__game-text {
  font-size: 0.95em;
  color: #e0e0e0;
}

.page-download__game-card.page-download__light-bg .page-download__game-text {
  color: #333333;
}

/* FAQ Styles */
.page-download__faq-list {
  max-width: 900px;
  margin: 50px auto 0;
  text-align: left;
}

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

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.page-download__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

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

.page-download__faq-toggle {
  font-size: 1.5em;
  color: #FFFF00;
  font-weight: bold;
  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, padding 0.3s ease;
}

.page-download__faq-item.active .page-download__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 15px 25px 25px;
}

.page-download__faq-answer p {
  color: #e0e0e0;
  margin-bottom: 0;
}

.page-download__faq-answer a {
  color: #FFFF00;
  text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-download__main-title {
    font-size: 2.2em;
  }
  .page-download__section-title {
    font-size: 1.8em;
  }
  .page-download__benefits-grid,
  .page-download__download-steps-grid,
  .page-download__security-list,
  .page-download__game-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-download {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-download__section {
    padding: 40px 0;
  }
  .page-download__main-title {
    font-size: 1.8em;
  }
  .page-download__intro-text {
    font-size: 1em;
  }
  .page-download__section-title {
    font-size: 1.6em;
  }
  .page-download__section-description {
    font-size: 0.9em;
  }
  .page-download__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-download__btn-primary,
  .page-download__btn-secondary {
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-download__video-wrapper {
    margin-top: 30px;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
  }
  .page-download__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Mobile image responsiveness */
  .page-download img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-download__section,
  .page-download__card,
  .page-download__container,
  .page-download__video-section,
  .page-download__video-container,
  .page-download__video-wrapper,
  .page-download__cta-buttons,
  .page-download__button-group,
  .page-download__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-download__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
  }
  .page-download__security-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .page-download__security-text-content {
    text-align: center;
  }
  .page-download__faq-question {
    padding: 15px 20px;
  }
  .page-download__faq-title {
    font-size: 1.1em;
  }
}