/* style/download.css */
.page-download {
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-download__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  text-align: center;
  overflow: hidden;
}

.page-download__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px; /* Space between image and content */
}

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

.page-download__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-download__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-download__description {
  font-size: 1.15rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-download__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
  color: #F2FFF6; /* Text Main */
  border: none;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-download__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
}

.page-download__btn-secondary {
  background: transparent;
  color: #2AD16F; /* Adjusted for visibility */
  border: 2px solid #2AD16F; /* Border */
}

.page-download__btn-secondary:hover {
  background: rgba(42, 209, 111, 0.1);
  color: #F2FFF6;
}

.page-download__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
}

.page-download__section-subtitle {
  font-size: 1.05rem;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 15px;
}

.page-download__why-download-section,
.page-download__app-features-section,
.page-download__how-to-download-section,
.page-download__requirements-section,
.page-download__security-section,
.page-download__faq-section,
.page-download__cta-final-section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

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

.page-download__feature-card {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-download__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-download__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
}

.page-download__card-text {
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  flex-grow: 1;
}

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

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

.page-download__feature-heading {
  font-size: 1.4rem;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
}

.page-download__feature-description {
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
}

.page-download__download-guide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 30px;
}

.page-download__guide-block {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-download__guide-heading {
  font-size: 1.6rem;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 25px;
  text-align: center;
}

.page-download__guide-list {
  list-style: decimal;
  padding-left: 25px;
  margin-bottom: 30px;
  color: #A7D9B8; /* Text Secondary */
  max-width: 100%;
}

.page-download__guide-list li {
  margin-bottom: 10px;
  font-size: 1rem;
}

.page-download__guide-list li strong {
  color: #F2FFF6; /* Text Main */
}

.page-download__qr-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  border: 1px solid #2E7A4E;
  object-fit: contain;
}

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

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

.page-download__requirement-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.page-download__requirement-heading {
  font-size: 1.3rem;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
}

.page-download__requirement-text {
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
}

.page-download__security-content {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 30px;
}

.page-download__security-image {
  width: 100%;
  max-width: 450px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.page-download__security-text-block p {
  margin-bottom: 15px;
  color: #A7D9B8; /* Text Secondary */
  font-size: 1.05rem;
}

.page-download__text-link {
  color: #2AD16F; /* Button color for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-download__text-link:hover {
  color: #57E38D; /* Glow */
  text-decoration: underline;
}

.page-download__faq-list {
  margin-top: 30px;
}

.page-download__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  -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-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  color: #2AD16F;
  transition: transform 0.3s ease;
}

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

.page-download__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  line-height: 1.5;
}

.page-download__cta-final-section {
  text-align: center;
  padding-bottom: 80px;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-download__download-guide {
    grid-template-columns: 1fr;
  }
  .page-download__security-content {
    flex-direction: column;
    text-align: center;
  }
  .page-download__security-image {
    max-width: 80%;
  }
}

@media (max-width: 768px) {
  .page-download__hero-section,
  .page-download__why-download-section,
  .page-download__app-features-section,
  .page-download__how-to-download-section,
  .page-download__requirements-section,
  .page-download__security-section,
  .page-download__faq-section,
  .page-download__cta-final-section {
    padding: 40px 15px;
  }

  .page-download__hero-image-wrapper {
    margin-bottom: 20px;
  }

  .page-download__main-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
    margin-bottom: 15px;
  }

  .page-download__description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

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

  .page-download__btn-primary,
  .page-download__btn-secondary {
    padding: 12px 20px;
    font-size: 1rem;
    width: 100% !important;
    max-width: 100% !important;
  }

  .page-download__section-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    padding-top: 20px;
    margin-bottom: 15px;
  }

  .page-download__section-subtitle {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .page-download__features-grid,
  .page-download__features-list,
  .page-download__requirements-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-download__feature-card,
  .page-download__feature-item,
  .page-download__requirement-item {
    padding: 20px;
  }

  .page-download__card-title {
    font-size: 1.3rem;
  }

  .page-download__guide-heading {
    font-size: 1.4rem;
    margin-bottom: 20px;
  }

  .page-download__guide-list {
    font-size: 0.95rem;
    padding-left: 20px;
  }

  .page-download__qr-image {
    max-width: 250px;
  }

  .page-download__security-image {
    max-width: 90%;
  }

  .page-download__faq-question {
    font-size: 1.1rem;
    padding: 15px 20px;
  }

  .page-download__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95rem;
  }
  
  /* Mobile image/video/button overrides */
  .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__hero-section,
  .page-download__why-download-section,
  .page-download__app-features-section,
  .page-download__how-to-download-section,
  .page-download__requirements-section,
  .page-download__security-section,
  .page-download__faq-section,
  .page-download__cta-final-section,
  .page-download__hero-image-wrapper,
  .page-download__download-guide,
  .page-download__guide-block,
  .page-download__security-content,
  .page-download__cta-buttons {
    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: 10px !important; /* body already handles --header-offset */
  }
  .page-download__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-download__main-title {
    font-size: clamp(1.8rem, 9vw, 2.5rem);
  }
  .page-download__section-title {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
  }
  .page-download__hero-section {
    padding-bottom: 40px;
  }
  .page-download__why-download-section,
  .page-download__app-features-section,
  .page-download__how-to-download-section,
  .page-download__requirements-section,
  .page-download__security-section,
  .page-download__faq-section,
  .page-download__cta-final-section {
    padding: 30px 10px;
  }
  .page-download__cta-buttons {
    gap: 10px;
  }
}