/* style/download.css */

/* Base styles for page-download */
.page-download {
  color: #F2FFF6; /* Main text color for dark background */
  background-color: #08160F; /* Custom background color */
}

.page-download__section-padding {
  padding: 60px 20px;
}

.page-download__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Ensure content has padding on larger screens */
  box-sizing: border-box;
}

/* Hero Section */
.page-download__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  text-align: center;
  background: linear-gradient(180deg, #0A4B2C 0%, #08160F 100%); /* Deep Green to Background */
}

.page-download__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
}

.page-download__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-download__hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-download__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #F2C14E; /* Gold color for main title */
  letter-spacing: 0.5px;
}

.page-download__description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #A7D9B8; /* Secondary text color */
}

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

.page-download__btn-primary,
.page-download__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-download__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button gradient */
  color: #ffffff; /* White text on button */
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-download__btn-secondary {
  background: #11271B; /* Card BG for secondary button */
  color: #57E38D; /* Glow color for text */
  border: 2px solid #2E7A4E; /* Border color */
}

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

/* General Section Styles */
.page-download__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  font-weight: 700;
  text-align: center;
  margin-bottom: 25px;
  color: #F2C14E; /* Gold for section titles */
}

.page-download__section-description {
  font-size: 1em;
  line-height: 1.6;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
  color: #A7D9B8; /* Secondary text color */
}

.page-download__dark-section {
  background-color: #0A4B2C; /* Deep Green for dark sections */
}

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

.page-download__feature-card {
  background-color: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border color */
}

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

.page-download__feature-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #57E38D; /* Glow color for feature titles */
}

.page-download__feature-text {
  font-size: 0.95em;
  line-height: 1.5;
  color: #F2FFF6; /* Main text color */
}

/* App Features Section */
.page-download__app-features-section {
  background-color: #08160F; /* Background color */
}

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

.page-download__feature-item {
  background-color: #11271B; /* Card BG */
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border color */
  display: flex;
  flex-direction: column;
}

.page-download__feature-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-download__feature-item-title {
  font-size: 1.25em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #F2C14E; /* Gold color */
}

.page-download__feature-item-text {
  font-size: 0.95em;
  line-height: 1.5;
  color: #F2FFF6; /* Main text color */
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-download__btn-link {
  display: inline-block;
  margin-top: auto;
  padding: 10px 20px;
  background-color: #2E7A4E; /* Border color for link button */
  color: #F2FFF6; /* Main text color */
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.page-download__btn-link:hover {
  background-color: #13994A; /* Darker green on hover */
}

/* How to Download Section */
.page-download__download-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  margin-top: 40px;
}

.page-download__download-platform {
  background-color: #11271B; /* Card BG */
  padding: 35px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E; /* Border color */
}

.page-download__platform-title {
  font-size: 1.8em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  color: #57E38D; /* Glow color */
}

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

.page-download__step-item {
  font-size: 1em;
  line-height: 1.7;
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
  color: #F2FFF6; /* Main text color */
}

.page-download__step-item::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 0;
  background-color: #2AD16F; /* Button gradient start color */
  color: #ffffff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9em;
  font-weight: 600;
}

.page-download__qr-code-wrapper {
  text-align: center;
  margin-top: 30px;
}

.page-download__qr-code {
  width: 100%;
  max-width: 250px;
  height: auto;
  display: block;
  margin: 0 auto 20px;
  border: 5px solid #F2C14E; /* Gold border for QR */
  border-radius: 10px;
}

/* Requirements Section */
.page-download__requirements-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.page-download__requirement-item {
  background-color: #11271B; /* Card BG */
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  border: 1px solid #2E7A4E; /* Border color */
  color: #F2FFF6; /* Main text color */
  font-size: 0.95em;
}

.page-download__requirement-item strong {
  color: #57E38D; /* Glow color */
}

.page-download__requirements-note {
  text-align: center;
  margin-top: 30px;
  font-style: italic;
  color: #A7D9B8; /* Secondary text color */
}

/* Security Section */
.page-download__security-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-download__security-card {
  background-color: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border color */
}

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

.page-download__security-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #F2C14E; /* Gold color */
}

.page-download__security-text {
  font-size: 0.95em;
  line-height: 1.5;
  color: #F2FFF6; /* Main text color */
}

.page-download__security-text a {
  color: #57E38D;
  text-decoration: none;
}

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

/* Promotions Section */
.page-download__promotions-section {
  background-color: #08160F; /* Background color */
}

.page-download__promo-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 40px auto;
}

.page-download__promo-item {
  background-color: #11271B; /* Card BG */
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  border-left: 5px solid #2AD16F; /* Button gradient start color */
  color: #F2FFF6; /* Main text color */
  font-size: 1em;
}

.page-download__promo-item strong {
  color: #57E38D; /* Glow color */
}

.page-download__promo-callout {
  text-align: center;
  font-size: 1.2em;
  font-weight: 500;
  margin-top: 40px;
  color: #F2C14E; /* Gold color */
}

/* FAQ Section */
.page-download__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
}

.page-download__faq-item {
  background-color: #11271B; /* Card BG */
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #2E7A4E; /* Border color */
}

.page-download__faq-item summary {
  list-style: none;
  padding: 20px 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1em;
  font-weight: 600;
  color: #57E38D; /* Glow color */
  background-color: #11271B; /* Card BG */
  border-bottom: 1px solid #1E3A2A; /* Divider color */
}

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

.page-download__faq-item[open] summary {
  border-bottom: 1px solid #2E7A4E; /* Border color when open */
}

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

.page-download__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #F2C14E; /* Gold color */
}

.page-download__faq-answer {
  padding: 15px 25px 20px;
  font-size: 0.95em;
  line-height: 1.6;
  color: #F2FFF6; /* Main text color */
}

/* Final CTA Section */
.page-download__final-cta-section {
  background-color: #08160F; /* Background color */
  text-align: center;
}

/* Responsive Styles */
@media (min-width: 769px) {
  .page-download__download-steps {
    grid-template-columns: 1fr 1fr; /* Two columns for download steps on desktop */
  }
}

@media (max-width: 768px) {
  .page-download__section-padding {
    padding: 40px 15px;
  }

  .page-download__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  .page-download__section-title {
    font-size: clamp(1.5em, 6vw, 2em);
  }

  .page-download__description,
  .page-download__section-description,
  .page-download__feature-text,
  .page-download__feature-item-text,
  .page-download__step-item,
  .page-download__requirements-list,
  .page-download__security-text,
  .page-download__promo-item,
  .page-download__faq-answer p {
    font-size: 16px; /* Base font size for mobile for readability */
    line-height: 1.6;
  }

  .page-download__hero-section {
    padding-bottom: 40px;
  }

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

  .page-download__btn-primary,
  .page-download__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Image responsiveness */
  .page-download img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Container responsiveness */
  .page-download__section,
  .page-download__card,
  .page-download__container,
  .page-download__download-platform,
  .page-download__qr-code-wrapper,
  .page-download__cta-buttons,
  .page-download__feature-card,
  .page-download__feature-item,
  .page-download__security-card,
  .page-download__promo-item,
  .page-download__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* Specific padding adjustments for mobile containers */
  .page-download__download-platform,
  .page-download__feature-card,
  .page-download__feature-item,
  .page-download__security-card {
    padding: 20px 15px;
  }

  .page-download__faq-item summary,
  .page-download__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Adjust margin for mobile */
  .page-download__hero-image-wrapper {
    margin-bottom: 20px;
  }

  .page-download__section-description {
    margin-bottom: 30px;
  }

  .page-download__qr-code {
    max-width: 180px;
  }

  .page-download__feature-icon,
  .page-download__security-icon {
    max-width: 100px;
  }

  .page-download__faq-item summary {
    font-size: 1em;
  }
}

/* Color contrast safety for various elements */
.page-download__dark-bg {
  color: #ffffff; /* Deep Green background, so light text */
  background: #0A4B2C;
}

.page-download__light-text {
  color: #F2FFF6; /* Main text color */
}

.page-download__secondary-text {
  color: #A7D9B8; /* Secondary text color */
}

.page-download__gold-text {
  color: #F2C14E; /* Gold text color */
}

.page-download__glow-text {
  color: #57E38D; /* Glow text color */
}

.page-download__card {
  background: #11271B; /* Card BG, so light text */
  color: #F2FFF6;
}

.page-download p,
.page-download li {
  color: #F2FFF6; /* Default paragraph and list item text color */
}

.page-download__btn-primary {
  color: #ffffff; /* Button text always white */
}

.page-download__btn-secondary {
  color: #57E38D; /* Secondary button text */
}