/* style/download.css */
.page-download {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #1a1a1a; /* Inherited from shared, but for safety */
}

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

/* Sections */
.page-download__hero-section,
.page-download__guide-section,
.page-download__video-section,
.page-download__faq-section {
  padding: 80px 0;
  text-align: center;
}

.page-download__why-download,
.page-download__features-app,
.page-download__security-section,
.page-download__cta-bottom {
  padding: 80px 0;
  text-align: center;
}

.page-download__dark-section {
  background-color: #0A2E54;
  color: #ffffff;
}

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

/* Headings */
.page-download__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #E0B400;
  line-height: 1.2;
}

.page-download__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-download__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: inherit;
}

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

.page-download__light-bg .page-download__section-title {
  color: #0A2E54;
}

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

/* Buttons */
.page-download__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-download__btn-primary,
.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, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-download__btn-primary {
  background-color: #E0B400;
  color: #0A2E54;
  border: 2px solid #E0B400;
}

.page-download__btn-primary:hover {
  background-color: #cc9c00;
  border-color: #cc9c00;
}

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

.page-download__btn-secondary:hover {
  background-color: #E0B400;
  color: #0A2E54;
}

.page-download__btn-large {
  padding: 18px 35px;
  font-size: 1.2em;
}

/* Hero Image */
.page-download__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  margin-top: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.page-download__feature-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  color: #333333;
  text-align: center;
}

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

.page-download__feature-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #0A2E54;
}

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

/* Guide Section */
.page-download__guide-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  text-align: left;
  margin-top: 50px;
}

.page-download__guide-heading {
  font-size: 2em;
  color: #E0B400;
  margin-bottom: 25px;
}

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

.page-download__step-list li {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 1.1em;
  color: #f0f0f0;
  line-height: 1.5;
}

.page-download__step-list li strong {
  color: #E0B400;
}

.page-download__qr-image {
  max-width: 600px;
  height: auto;
  margin-top: 50px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* App Features Grid */
.page-download__app-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-download__feature-card {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  color: #333333;
  text-align: left;
}

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

.page-download__feature-card-title {
  font-size: 1.6em;
  color: #0A2E54;
  margin-bottom: 10px;
}

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

/* Video Section */
.page-download__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 40px auto 0 auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-download__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  cursor: pointer;
}

.page-download__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10; /* Ensure link is clickable over video */
}

/* Security Section */
.page-download__security-image {
  max-width: 800px;
  height: auto;
  border-radius: 10px;
  margin-bottom: 40px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-download__security-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.page-download__security-list li {
  background-color: rgba(10, 46, 84, 0.8);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-left: 5px solid #E0B400;
  border-radius: 5px;
  font-size: 1.1em;
  color: #ffffff;
}

.page-download__security-list li strong {
  color: #E0B400;
}

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

.page-download__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #0A2E54;
  color: #ffffff;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

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

.page-download__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #E0B400;
  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 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: rgba(255, 255, 255, 0.05);
  color: #f0f0f0;
}

.page-download__faq-item.active .page-download__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show all content */
  padding: 20px;
}

.page-download__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
}

/* CTA Bottom Section */
.page-download__cta-bottom {
  background-color: #E0B400;
  color: #0A2E54;
  padding: 60px 0;
}

.page-download__cta-bottom .page-download__section-title,
.page-download__cta-bottom .page-download__section-description {
  color: #0A2E54;
}

.page-download__cta-bottom .page-download__btn-primary {
  background-color: #0A2E54;
  color: #E0B400;
  border-color: #0A2E54;
}

.page-download__cta-bottom .page-download__btn-primary:hover {
  background-color: #1a4d85;
  border-color: #1a4d85;
  color: #E0B400;
}

.page-download__cta-bottom .page-download__btn-secondary {
  background-color: transparent;
  color: #0A2E54;
  border-color: #0A2E54;
}

.page-download__cta-bottom .page-download__btn-secondary:hover {
  background-color: #0A2E54;
  color: #E0B400;
}

/* Responsive Design */
@media (min-width: 769px) {
  .page-download__hero-section {
    padding-top: var(--header-offset, 120px); /* Apply header offset for desktop */
  }
}

@media (max-width: 1024px) {
  .page-download__hero-title {
    font-size: 2.8em;
  }
  .page-download__section-title {
    font-size: 2em;
  }
  .page-download__guide-steps {
    grid-template-columns: 1fr;
  }
  .page-download__app-features-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-download__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Apply header offset for mobile */
  }

  .page-download__hero-title {
    font-size: 2em;
  }
  .page-download__hero-description {
    font-size: 1em;
  }
  .page-download__section-title {
    font-size: 1.8em;
  }
  .page-download__section-description {
    font-size: 0.95em;
  }
  .page-download__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-download__btn-primary,
  .page-download__btn-secondary,
  .page-download a[class*="button"],
  .page-download a[class*="btn"] {
    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;
  }
  .page-download__features-grid,
  .page-download__app-features-grid {
    grid-template-columns: 1fr;
  }
  .page-download__guide-steps {
    gap: 30px;
  }
  .page-download__guide-column {
    padding: 0 10px;
  }
  .page-download__faq-question {
    font-size: 1.1em;
  }

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

  /* Mobile video responsiveness */
  .page-download video,
  .page-download__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-download__video-section,
  .page-download__video-container,
  .page-download__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* General container padding for mobile */
  .page-download__section,
  .page-download__card,
  .page-download__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-download__hero-title {
    font-size: 1.8em;
  }
  .page-download__section-title {
    font-size: 1.6em;
  }
  .page-download__btn-primary,
  .page-download__btn-secondary {
    font-size: 1em;
    padding: 12px 20px;
  }
  .page-download__hero-section,
  .page-download__why-download,
  .page-download__features-app,
  .page-download__guide-section,
  .page-download__video-section,
  .page-download__security-section,
  .page-download__faq-section,
  .page-download__cta-bottom {
    padding: 40px 0;
  }
}