/* Base styles for .page-download */
.page-download {
  font-family: 'Arial', sans-serif;
  color: #FFF3E6; /* Text Main */
  background-color: #0D0E12; /* Background */
  line-height: 1.6;
  font-size: 16px;
}

/* Container for content sections */
.page-download__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-download__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #0D0E12;
  position: relative;
  overflow: hidden;
  padding-bottom: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-download__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

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

.page-download__hero-content {
  text-align: center;
  padding-top: 30px;
  padding-bottom: 30px;
  max-width: 800px;
  width: 100%;
}

.page-download__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  font-weight: 700;
  color: #FFB04D; /* Glow */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-download__subtitle {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #FFF3E6;
}

.page-download__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.page-download__button {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button color */
  color: #FFF3E6; /* Text Main */
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
  box-sizing: border-box;
  min-width: 180px;
  text-align: center;
}

.page-download__button:hover {
  background: linear-gradient(180deg, #D96800 0%, #FFA53A 100%);
}

.page-download__button-icon {
  font-size: 1.2em;
}

/* General Section Styling */
.page-download__section {
  padding: 60px 0;
  background-color: #0D0E12;
}

.page-download__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  font-weight: 700;
  color: #FF8C1A;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-download__section-description {
  font-size: 1.05em;
  color: #FFF3E6;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

/* Card Styling */
.page-download__card {
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  color: #FFF3E6;
  height: 100%; /* Ensure cards in grid have equal height */
  display: flex;
  flex-direction: column;
}

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

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

.page-download__why-download-item-title {
  font-size: 1.4em;
  color: #FFA53A;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-download__why-download-item-description {
  font-size: 1em;
  color: #FFF3E6;
}

/* How to Download Section */
.page-download__how-to-download-section {
  background-color: #0D0E12;
}

.page-download__download-steps {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-download__download-platform {
  flex: 1;
  min-width: 300px;
  max-width: 550px;
  background-color: #17191F;
  border: 1px solid #A84F0C;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-download__download-platform-title {
  font-size: 1.8em;
  color: #FF8C1A;
  margin-bottom: 25px;
  font-weight: 700;
}

.page-download__qr-code-image {
  width: 250px;
  height: 250px;
  object-fit: contain;
  margin-bottom: 30px;
  border: 5px solid #FFF3E6;
  border-radius: 5px;
}

.page-download__step-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
  text-align: left;
  width: 100%;
}

.page-download__step-item {
  margin-bottom: 15px;
  font-size: 1em;
  color: #FFF3E6;
  padding-left: 25px;
  position: relative;
}

.page-download__step-item::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 0;
  background-color: #FF8C1A;
  color: #17191F;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8em;
  font-weight: bold;
}

.page-download__button--download-android,
.page-download__button--download-ios {
  margin-top: auto;
  width: auto;
  min-width: 200px;
}

/* App Features Section */
.page-download__app-features-section {
  background-color: #0D0E12;
}

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

.page-download__feature-card {
  text-align: center;
}

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

.page-download__feature-title {
  font-size: 1.4em;
  color: #FFA53A;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-download__feature-description {
  font-size: 1em;
  color: #FFF3E6;
}

/* FAQ Section */
.page-download__faq-section {
  background-color: #0D0E12;
}

.page-download__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-download__faq-item {
  margin-bottom: 15px;
  cursor: pointer;
  overflow: hidden;
  counter-reset: step-counter;
}

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1em;
  font-weight: 600;
  color: #FF8C1A;
  background-color: #17191F;
  border-bottom: 1px solid #A84F0C;
  list-style: none;
  user-select: none;
}

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

.page-download__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-download__faq-answer {
  padding: 20px;
  font-size: 1em;
  color: #FFF3E6;
  background-color: rgba(23, 25, 31, 0.8); /* Slightly lighter for contrast */
  border-top: 1px dashed #A84F0C;
}

.page-download__faq-answer p {
  margin: 0;
}

/* Final Call to Action Section */
.page-download__cta-final-section {
  padding: 80px 0;
  text-align: center;
  background-color: #0D0E12;
}

.page-download__cta-final-section .page-download__container {
  padding: 50px 30px;
}

.page-download__cta-final-section .page-download__section-title {
  margin-bottom: 25px;
  color: #FFB04D;
}

.page-download__cta-final-section .page-download__section-description {
  margin-bottom: 40px;
  font-size: 1.1em;
}

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

/* Media Queries for Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .page-download {
    font-size: 15px;
  }

  .page-download__container {
    padding: 0 15px;
  }

  /* Hero Section */
  .page-download__hero-section {
    padding-bottom: 30px;
  }
  .page-download__hero-content {
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .page-download__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 15px;
  }
  .page-download__subtitle {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-download__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 10px;
  }
  .page-download__button {
    max-width: 100% !important;
    width: 100% !important;
    min-width: unset;
    padding: 12px 20px;
    font-size: 0.95em;
  }

  /* General Section Styling */
  .page-download__section {
    padding: 40px 0;
  }
  .page-download__section-title {
    font-size: clamp(1.6em, 6vw, 2em);
    margin-bottom: 15px;
  }
  .page-download__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
    padding: 0 10px;
  }

  /* Why Download Section */
  .page-download__why-download-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-download__why-download-image {
    height: 180px;
  }
  .page-download__why-download-item-title {
    font-size: 1.25em;
  }

  /* How to Download Section */
  .page-download__download-steps {
    flex-direction: column;
    gap: 30px;
  }
  .page-download__download-platform {
    padding: 25px;
  }
  .page-download__download-platform-title {
    font-size: 1.6em;
    margin-bottom: 20px;
  }
  .page-download__qr-code-image {
    width: 200px;
    height: 200px;
    margin-bottom: 20px;
  }
  .page-download__step-list {
    margin-bottom: 20px;
  }
  .page-download__step-item {
    font-size: 0.95em;
    margin-bottom: 10px;
    padding-left: 20px;
  }
  .page-download__step-item::before {
    width: 18px;
    height: 18px;
    font-size: 0.7em;
  }

  /* App Features Section */
  .page-download__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-download__feature-image {
    height: 150px;
  }
  .page-download__feature-title {
    font-size: 1.25em;
  }

  /* FAQ Section */
  .page-download__faq-list {
    margin-top: 30px;
  }
  .page-download__faq-question {
    padding: 15px;
    font-size: 1em;
  }
  .page-download__faq-toggle {
    font-size: 1.3em;
  }
  .page-download__faq-answer {
    padding: 15px;
    font-size: 0.95em;
  }

  /* Final Call to Action Section */
  .page-download__cta-final-section {
    padding: 50px 0;
  }
  .page-download__cta-final-section .page-download__container {
    padding: 40px 20px;
  }
  .page-download__cta-final-section .page-download__section-title {
    font-size: clamp(1.6em, 6vw, 2em);
  }
  .page-download__cta-final-section .page-download__section-description {
    font-size: 1em;
  }

  /* Universal image and container responsiveness */
  .page-download img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-download__section,
  .page-download__card,
  .page-download__container,
  .page-download__hero-section,
  .page-download__why-download-grid,
  .page-download__download-steps,
  .page-download__features-grid,
  .page-download__faq-list,
  .page-download__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}