/* style/download.css */
/* Body background color is #08160F (dark), so text should be light. */
/* Text Main: #F2FFF6, Text Secondary: #A7D9B8 */

.page-download {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #F2FFF6); /* Default light text for the page */
  background-color: var(--background, #08160F);
}

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

.page-download__section-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-main, #F2FFF6);
}

.page-download__text-block {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: var(--text-secondary, #A7D9B8);
}

.page-download__text-block a {
  color: var(--glow, #57E38D);
  text-decoration: none;
}

.page-download__text-block a:hover {
  text-decoration: underline;
}

/* Hero Section */
.page-download__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, body handles header offset */
  overflow: hidden;
  background: var(--background, #08160F);
}

.page-download__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit image height */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.page-download__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-download__hero-content {
  text-align: center;
  padding: 0 20px;
  max-width: 900px;
}

.page-download__main-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-download__description {
  font-size: 1.2rem;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-download__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  white-space: normal; /* Allow button text to wrap */
  word-wrap: break-word; /* Allow long words to break */
  box-sizing: border-box;
  max-width: 100%;
}

.page-download__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
}

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

.page-download__btn-secondary {
  background: transparent;
  color: var(--glow, #57E38D);
  border: 2px solid var(--glow, #57E38D);
}

.page-download__btn-secondary:hover {
  background: var(--glow, #57E38D);
  color: var(--deep-green, #0A4B2C);
  transform: translateY(-2px);
}

.page-download__cta-center {
  text-align: center;
  margin-top: 40px;
}

/* Why Download Section */
.page-download__why-download-section {
  padding: 80px 0;
  background-color: var(--card-bg, #11271B); /* Dark background, light text */
  color: var(--text-main, #F2FFF6);
}

.page-download__why-download-section .page-download__section-title,
.page-download__why-download-section .page-download__text-block {
  color: var(--text-main, #F2FFF6);
}

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

.page-download__feature-card {
  background-color: var(--deep-green, #0A4B2C);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border, #2E7A4E);
  color: var(--text-main, #F2FFF6);
}

.page-download__feature-icon {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: cover;
}

.page-download__feature-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--gold, #F2C14E);
  margin-bottom: 15px;
}

.page-download__feature-description {
  font-size: 1rem;
  color: var(--text-secondary, #A7D9B8);
}

/* Download Guide Section */
.page-download__download-guide-section {
  padding: 80px 0;
  background-color: var(--background, #08160F);
  color: var(--text-main, #F2FFF6);
}

.page-download__download-guide-section .page-download__section-title,
.page-download__download-guide-section .page-download__text-block {
  color: var(--text-main, #F2FFF6);
}

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

.page-download__step-card {
  background-color: var(--deep-green, #0A4B2C);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border, #2E7A4E);
  color: var(--text-main, #F2FFF6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-download__step-title {
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--gold, #F2C14E);
  margin-bottom: 20px;
}

.page-download__step-description {
  font-size: 1rem;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-download__app-screenshot {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-download__installation-list {
  text-align: left;
  list-style: decimal;
  padding-left: 20px;
  color: var(--text-secondary, #A7D9B8);
}

.page-download__installation-list li {
  margin-bottom: 10px;
  color: var(--text-secondary, #A7D9B8);
}

.page-download__installation-list strong {
  color: var(--text-main, #F2FFF6);
}

/* Features App Section */
.page-download__features-app-section {
  padding: 80px 0;
  background-color: var(--card-bg, #11271B);
  color: var(--text-main, #F2FFF6);
}

.page-download__features-app-section .page-download__section-title,
.page-download__features-app-section .page-download__text-block {
  color: var(--text-main, #F2FFF6);
}

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

.page-download__feature-item {
  background-color: var(--deep-green, #0A4B2C);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border, #2E7A4E);
  color: var(--text-main, #F2FFF6);
}

.page-download__feature-item-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--gold, #F2C14E);
  margin-bottom: 15px;
}

.page-download__feature-item p {
  font-size: 1rem;
  color: var(--text-secondary, #A7D9B8);
}

/* Exclusive Promotions Section */
.page-download__exclusive-promotions-section {
  padding: 80px 0;
  background-color: var(--background, #08160F);
  color: var(--text-main, #F2FFF6);
}

.page-download__exclusive-promotions-section .page-download__section-title,
.page-download__exclusive-promotions-section .page-download__text-block {
  color: var(--text-main, #F2FFF6);
}

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

.page-download__promo-card {
  background-color: var(--deep-green, #0A4B2C);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border, #2E7A4E);
  color: var(--text-main, #F2FFF6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-download__promo-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-download__promo-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--gold, #F2C14E);
  margin-bottom: 15px;
}

.page-download__promo-description {
  font-size: 1rem;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* FAQ Section */
.page-download__faq-section {
  padding: 80px 0;
  background-color: var(--card-bg, #11271B);
  color: var(--text-main, #F2FFF6);
}

.page-download__faq-section .page-download__section-title {
  color: var(--text-main, #F2FFF6);
}

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

.page-download__faq-item {
  background-color: var(--deep-green, #0A4B2C);
  border: 1px solid var(--border, #2E7A4E);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main, #F2FFF6);
}

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--gold, #F2C14E);
  list-style: none;
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none;   /* Safari */
  -khtml-user-select: none;    /* Konqueror HTML */
  -moz-user-select: none;      /* Old versions of Firefox */
  -ms-user-select: none;       /* Internet Explorer/Edge */
  user-select: none;           /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

.page-download__faq-question::-webkit-details-marker {
  display: none;
}

.page-download__faq-question::marker {
  display: none;
}

.page-download__faq-qtext {
  flex-grow: 1;
  text-align: left;
}

.page-download__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
}

.page-download__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1rem;
  color: var(--text-secondary, #A7D9B8);
}

/* Conclusion Section */
.page-download__conclusion-section {
  padding: 80px 0;
  background-color: var(--background, #08160F);
  color: var(--text-main, #F2FFF6);
}

.page-download__conclusion-section .page-download__section-title,
.page-download__conclusion-section .page-download__text-block {
  color: var(--text-main, #F2FFF6);
}

/* Global Link Styling for dark background */
.page-download a {
  color: var(--glow, #57E38D);
  text-decoration: none;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-download__main-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
  }
  .page-download__description {
    font-size: 1.1rem;
  }
  .page-download__section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .page-download__hero-section {
    padding: 10px 0 40px 0; /* Adjust padding for mobile */
  }
  .page-download__hero-image-wrapper {
    max-height: 400px;
  }
  .page-download__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-download__description {
    font-size: 1rem;
  }
  .page-download__section-title {
    font-size: 1.8rem;
  }
  .page-download__text-block {
    font-size: 1rem;
    padding: 0 15px;
  }
  .page-download__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-download__cta-button {
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
  }
  
  /* Mobile image, video, button, and container overrides */
  .page-download img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-download video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-download__section,
  .page-download__card,
  .page-download__container,
  .page-download__hero-section,
  .page-download__why-download-section,
  .page-download__download-guide-section,
  .page-download__features-app-section,
  .page-download__exclusive-promotions-section,
  .page-download__faq-section,
  .page-download__conclusion-section,
  .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-x: hidden !important;
  }
  .page-download__faq-question {
    font-size: 1rem;
    padding: 15px;
  }
  .page-download__faq-answer {
    padding: 0 15px 15px 15px;
  }
  .page-download__feature-card,
  .page-download__step-card,
  .page-download__promo-card {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .page-download__hero-section {
    padding: 10px 0 30px 0;
  }
  .page-download__main-title {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }
  .page-download__description {
    font-size: 0.9rem;
  }
  .page-download__section-title {
    font-size: 1.5rem;
  }
  .page-download__cta-button {
    font-size: 0.9rem;
    padding: 10px 15px;
  }
  .page-download__feature-title,
  .page-download__step-title,
  .page-download__promo-title {
    font-size: 1.3rem;
  }
}