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

.page-download {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Body background is white, so use dark text */
}

.page-download__dark-bg {
  background: var(--primary-color);
  color: var(--text-light);
}

.page-download__light-bg {
  background: var(--secondary-color);
  color: var(--text-dark);
}

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

.page-download__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: inherit;
}

.page-download__dark-bg .page-download__section-title {
  color: var(--text-light);
}

.page-download__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

.page-download__dark-bg .page-download__section-description {
  color: rgba(255, 255, 255, 0.9);
}

.page-download__btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  white-space: nowrap;
  word-wrap: normal;
}

.page-download__btn-primary:hover {
  background: #1e87c0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-download__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
  cursor: pointer;
  box-sizing: border-box;
  white-space: nowrap;
  word-wrap: normal;
}

.page-download__btn-secondary:hover {
  background: #e0f2f7;
  color: #1e87c0;
  border-color: #1e87c0;
}

/* 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: var(--header-offset, 120px);
  overflow: hidden;
}

.page-download__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-download__hero-content {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  text-align: left;
  z-index: 2;
}

.page-download__hero-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-light);
}

.page-download__hero-description {
  font-size: 20px;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
}

.page-download__download-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.page-download__btn-download .page-download__btn-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-right: 10px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.page-download__btn-android .page-download__btn-icon {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M7 2v2H6a1 1 0 00-1 1v14a1 1 0 001 1h12a1 1 0 001-1V5a1 1 0 00-1-1h-1V2h-2v2H9V2H7zm0 6h10v10H7V8zm2 2v2h2v-2H9zm4 0v2h2v-2h-2z"/></svg>');
}

.page-download__btn-ios .page-download__btn-icon {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 2a10 10 0 100 20 10 10 0 000-20zm0 18a8 8 0 110-16 8 8 0 010 16zm-1-7h2v4h-2v-4zm0-6h2v2h-2V7z"/></svg>');
}

.page-download__hero-image {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

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

/* Benefits Section */
.page-download__benefits-section {
  padding: 80px 0;
}

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

.page-download__benefit-card {
  text-align: center;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-download__benefit-icon {
  width: 100%;
  max-width: 150px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

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

.page-download__card-text {
  font-size: 16px;
  color: var(--text-dark);
}

/* How To Download Section */
.page-download__how-to-download-section {
  padding: 80px 0;
}

.page-download__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.page-download__step-card {
  text-align: center;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.page-download__step-number {
  font-size: 48px;
  font-weight: bold;
  color: rgba(38, 169, 224, 0.2);
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 0;
}

.page-download__step-card .page-download__card-title {
  margin-top: 40px; /* Adjust for step number */
}

.page-download__step-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  margin-top: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.page-download__btn-large {
  padding: 18px 45px;
  font-size: 20px;
}

/* Features Section */
.page-download__features-section {
  padding: 80px 0;
}

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

.page-download__feature-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.page-download__feature-icon {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--primary-color);
  padding: 15px;
  object-fit: contain;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-download__feature-item .page-download__card-title {
  font-size: 20px;
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-download__feature-item .page-download__card-text {
  font-size: 15px;
}

/* Promotions Section */
.page-download__promotions-section {
  padding: 80px 0;
}

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

.page-download__promo-card {
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.page-download__promo-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 25px;
}

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

.page-download__promo-card .page-download__card-text {
  font-size: 16px;
  margin-bottom: 30px;
}

/* FAQ Section */
.page-download__faq-section {
  padding: 80px 0;
}

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

.page-download__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-download__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-download__faq-item.active .page-download__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-download__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-download__faq-question:active {
  background: #eeeeee;
}

.page-download__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--text-dark);
}

.page-download__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-download__faq-item.active .page-download__faq-toggle {
  color: #333;
  transform: rotate(180deg);
}

/* Final CTA Section */
.page-download__cta-final-section {
  padding: 80px 0;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-download__hero-title {
    font-size: 40px;
  }

  .page-download__hero-description {
    font-size: 18px;
  }

  .page-download__hero-container {
    flex-direction: column-reverse; /* Image on top for smaller screens */
  }

  .page-download__hero-content {
    text-align: center;
    margin-top: 30px;
  }

  .page-download__download-buttons {
    justify-content: center;
  }

  .page-download__section-title {
    font-size: 32px;
  }

  .page-download__section-description {
    font-size: 16px;
  }

  .page-download__benefits-grid, .page-download__guide-steps, .page-download__promo-cards {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-download__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-download__hero-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-download__hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-download__download-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

  .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__download-buttons, .page-download__button-group, .page-download__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

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

  .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;
  }

  .page-download__section-title {
    font-size: 28px;
  }

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

  .page-download__benefit-card, .page-download__step-card, .page-download__promo-card {
    padding: 20px;
  }

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

  .page-download__card-text {
    font-size: 14px;
  }

  .page-download__feature-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .page-download__feature-icon {
    margin-bottom: 15px;
  }

  .page-download__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-download__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-download__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-download__faq-answer {
    padding: 0 15px;
  }
  
  .page-download__faq-item.active .page-download__faq-answer {
    padding: 15px !important;
  }
}