/* style/download.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f8f8f8;
  --btn-login: #EA7C07;
}

.page-download {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
}

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

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

.page-download__section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--primary-color);
  margin-bottom: 40px;
  font-weight: 700;
}

.page-download__description {
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 800px;
  margin: 0 auto 30px;
  line-height: 1.7;
}

/* Hero Section */
.page-download__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, main offset from body */
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-download__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

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

.page-download__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-download__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-download__main-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-light);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-download__hero-content .page-download__description {
  color: var(--text-light);
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  margin-bottom: 40px;
}

.page-download__cta-button {
  display: inline-block;
  padding: 18px 45px;
  background: var(--btn-login);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  margin-top: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-download__cta-button:hover {
  background: darken(var(--btn-login), 10%); /* Placeholder for darker shade */
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

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

.page-download__cta-buttons--inline .page-download__btn-primary,
.page-download__cta-buttons--inline .page-download__btn-secondary {
  padding: 15px 30px;
  font-size: 18px;
}

/* Why Download Section */
.page-download__why-download {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.page-download__why-download .page-download__section-title {
  color: var(--primary-color);
}

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

.page-download__card {
  background: var(--secondary-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
  color: var(--text-dark);
}

.page-download__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

.page-download__card-title {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-download__card p {
  font-size: 16px;
  line-height: 1.7;
  color: #555555;
}

/* How to Download Section */
.page-download__how-to-download {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-download__how-to-download .page-download__section-title {
  color: var(--secondary-color);
}

.page-download__download-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 40px;
  text-align: left;
}

.page-download__step {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-download__step-title {
  font-size: 22px;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-download__step p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
}

.page-download__qr-code {
  display: block;
  margin: 20px auto;
  max-width: 200px;
  height: auto;
  border-radius: 8px;
  background: var(--secondary-color);
  padding: 10px;
}

.page-download__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: var(--btn-login);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
}

.page-download__btn-primary:hover {
  background: darken(var(--btn-login), 10%);
  transform: translateY(-2px);
}

.page-download__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
}

.page-download__btn-secondary:hover {
  background: lighten(var(--primary-color), 40%); /* Placeholder */
  transform: translateY(-2px);
}

.page-download__cta-buttons--inline {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 25px;
  flex-wrap: wrap;
}

/* App Features Section */
.page-download__app-features {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.page-download__app-features .page-download__section-title {
  color: var(--primary-color);
}

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

.page-download__feature-item {
  background: var(--secondary-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
  color: var(--text-dark);
}

.page-download__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

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

.page-download__feature-title {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-download__feature-item p {
  font-size: 16px;
  line-height: 1.7;
  color: #555555;
}

/* FAQ Section */
.page-download__faq-section {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.page-download__faq-section .page-download__section-title {
  color: var(--primary-color);
}

.page-download__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
  text-align: left;
}

details.page-download__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: var(--secondary-color);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

details.page-download__faq-item summary.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--primary-color);
  font-weight: 600;
}

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

details.page-download__faq-item summary.page-download__faq-question:hover {
  background: #f5f5f5;
}

.page-download__faq-qtext {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--primary-color);
}

.page-download__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-download__faq-item .page-download__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
  color: #555555;
  font-size: 16px;
  line-height: 1.7;
}

/* Final CTA Section */
.page-download__cta-final {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-download__cta-final .page-download__section-title {
  color: var(--secondary-color);
}

.page-download__cta-final .page-download__description {
  color: rgba(255, 255, 255, 0.9);
}

/* All images basic responsive style */
.page-download img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Media Queries for Mobile */
@media (max-width: 768px) {
  .page-download__section {
    padding: 40px 15px;
  }

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

  .page-download__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-download__hero-content .page-download__description {
    font-size: clamp(1rem, 3vw, 1.15rem);
  }

  .page-download__cta-button {
    padding: 15px 30px;
    font-size: 18px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-download__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

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

  .page-download__cta-buttons--inline .page-download__btn-primary,
  .page-download__cta-buttons--inline .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;
  }

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

  .page-download__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-download__card,
  .page-download__feature-item {
    padding: 25px;
  }

  .page-download__card-title,
  .page-download__feature-title,
  .page-download__step-title {
    font-size: 20px;
  }

  .page-download__card p,
  .page-download__feature-item p,
  .page-download__step p {
    font-size: 15px;
  }

  .page-download__download-steps {
    grid-template-columns: 1fr;
    gap: 25px;
  }

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

  details.page-download__faq-item summary.page-download__faq-question {
    padding: 15px;
  }

  .page-download__faq-qtext {
    font-size: 16px;
  }

  .page-download__faq-toggle {
    font-size: 20px;
    width: 24px;
  }

  details.page-download__faq-item .page-download__faq-answer {
    padding: 0 15px 15px;
    font-size: 15px;
  }

  .page-download img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-download__section,
  .page-download__card,
  .page-download__container,
  .page-download__feature-item,
  .page-download__step {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-download__hero-image img {
    border-radius: 8px;
  }
}