/* style/download.css */
.page-download {
  font-family: 'Arial', sans-serif;
  color: #333333;
  line-height: 1.6;
  background-color: #f8f8f8;
}

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

.page-download__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
}

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

/* 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);
  background: linear-gradient(135deg, #26A9E0, #a0dfff); /* Light blue gradient */
  color: #ffffff;
  overflow: hidden;
}

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

.page-download__hero-image {
  width: 100%;
  margin-bottom: 30px;
  max-width: 800px; /* Adjust max-width for the hero image */
}

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

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

.page-download__hero-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 15px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

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

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

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

.page-download__btn-primary {
  background: #EA7C07; /* Login color for primary action */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-download__btn-primary:hover {
  background: #d46f06;
  border-color: #d46f06;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-download__btn-secondary {
  background: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-download__btn-secondary:hover {
  background: #f0f0f0;
  color: #1e87bb;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Why Download Section */
.page-download__why-download-section {
  padding: 80px 0;
  background-color: #ffffff;
}

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

.page-download__feature-item {
  background: #fdfdfd;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-download__feature-item img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  object-fit: cover;
}

.page-download__feature-title {
  font-size: 24px;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-download__feature-description {
  font-size: 16px;
  color: #666666;
}

/* How to Download Section */
.page-download__how-to-download-section {
  padding: 80px 0;
  background-color: #26A9E0;
  color: #ffffff;
}

.page-download__how-to-download-section .page-download__section-title,
.page-download__how-to-download-section .page-download__section-intro {
  color: #ffffff;
}

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

.page-download__download-platform {
  background: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  text-align: center;
}

.page-download__platform-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 30px;
  color: #ffffff;
}

.page-download__qr-code-img {
  max-width: 250px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 30px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border: 5px solid #ffffff;
}

.page-download__step-list {
  list-style: none;
  padding: 0;
  text-align: left;
  margin-bottom: 40px;
}

.page-download__step-list li {
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  padding: 15px 20px;
  border-radius: 8px;
  font-size: 17px;
  line-height: 1.5;
  color: #f0f0f0;
  position: relative;
  padding-left: 40px;
}

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

.page-download__step-list li:before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 15px;
  top: 15px;
  background: #EA7C07;
  color: #ffffff;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
}

.page-download__full-width-btn {
  width: 100%;
  display: block;
  padding: 15px 20px;
  font-size: 18px;
  margin-top: 20px;
}

.page-download__note-text {
  font-size: 15px;
  color: #f0f0f0;
  text-align: center;
  margin-top: 40px;
  opacity: 0.8;
}

/* App Features Section */
.page-download__app-features-section {
  padding: 80px 0;
  background-color: #f0f8ff;
}

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

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

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

.page-download__feature-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  object-fit: cover;
}

.page-download__card-title {
  font-size: 24px;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-download__card-description {
  font-size: 16px;
  color: #666666;
}

/* System Requirements Section */
.page-download__system-requirements-section {
  padding: 80px 0;
  background-color: #000000;
  color: #ffffff;
}

.page-download__system-requirements-section .page-download__section-title,
.page-download__system-requirements-section .page-download__section-intro {
  color: #ffffff;
}

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

.page-download__requirement-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 35px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.page-download__requirement-title {
  font-size: 26px;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 25px;
  text-align: center;
}

.page-download__requirement-item ul {
  list-style: none;
  padding: 0;
}

.page-download__requirement-item li {
  font-size: 17px;
  color: #f0f0f0;
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

.page-download__requirement-item li:before {
  content: '✔️';
  position: absolute;
  left: 0;
  color: #EA7C07;
}

/* Security Section */
.page-download__security-section {
  padding: 80px 0;
  background-color: #ffffff;
}

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

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

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

.page-download__security-item img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  object-fit: cover;
}

.page-download__security-item-title {
  font-size: 24px;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-download__security-item-description {
  font-size: 16px;
  color: #666666;
}

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

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

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

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  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 h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #333333;
  pointer-events: none;
}

.page-download__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #26A9E0;
  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: 32px;
  height: 32px;
}

.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, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
  border: 1px solid #e0e0e0;
  border-top: none;
}

.page-download__faq-item.active .page-download__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
}

.page-download__faq-item.active .page-download__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-color: #d0d0d0;
  background-color: #f5f5f5;
}

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

/* Bottom CTA Section */
.page-download__cta-bottom-section {
  padding: 80px 0;
  background-color: #000000;
  color: #ffffff;
  text-align: center;
}

.page-download__cta-bottom-section .page-download__section-title,
.page-download__cta-bottom-section .page-download__section-intro {
  color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-download__hero-title {
    font-size: 40px;
  }
  .page-download__hero-description {
    font-size: 20px;
  }
  .page-download__section-title {
    font-size: 32px;
  }
  .page-download__section-intro {
    font-size: 17px;
  }
  .page-download__download-steps-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-download {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-download__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Hero Section Mobile */
  .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: 10px;
  }
  .page-download__hero-description {
    font-size: 18px;
    margin-bottom: 30px;
  }
  .page-download__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }
  .page-download__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 15px 25px;
    font-size: 18px;
  }

  /* General Section Mobile */
  .page-download__why-download-section, 
  .page-download__how-to-download-section, 
  .page-download__app-features-section, 
  .page-download__system-requirements-section, 
  .page-download__security-section, 
  .page-download__faq-section, 
  .page-download__cta-bottom-section {
    padding: 50px 0;
  }

  .page-download__section-title {
    font-size: 28px;
    padding-top: 0;
  }
  .page-download__section-intro {
    font-size: 16px;
    margin-bottom: 30px;
  }

  /* Images Mobile */
  .page-download img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-download__feature-item img, 
  .page-download__feature-card img, 
  .page-download__security-item img {
    border-radius: 6px;
  }

  /* How to Download Mobile */
  .page-download__download-platform {
    padding: 30px 20px;
  }
  .page-download__qr-code-img {
    max-width: 200px;
  }
  .page-download__platform-title {
    font-size: 24px;
  }
  .page-download__step-list li {
    font-size: 15px;
    padding: 12px 15px 12px 35px;
  }
  .page-download__step-list li:before {
    width: 22px;
    height: 22px;
    font-size: 13px;
    left: 10px;
    top: 12px;
  }

  /* FAQ Mobile */
  .page-download__faq-question {
    padding: 15px 20px;
  }
  .page-download__faq-question h3 {
    font-size: 16px;
  }
  .page-download__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-download__faq-answer {
    padding: 0 20px;
  }
  .page-download__faq-item.active .page-download__faq-answer {
    padding: 15px 20px !important;
  }

  /* All button containers for mobile */
  .page-download__cta-buttons,
  .page-download__button-group,
  .page-download__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    flex-wrap: wrap !important;
    gap: 15px;
  }

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

  .page-download__feature-item,
  .page-download__feature-card,
  .page-download__security-item,
  .page-download__download-platform {
    padding: 25px;
  }

  .page-download__feature-title,
  .page-download__card-title,
  .page-download__security-item-title,
  .page-download__platform-title,
  .page-download__requirement-title {
    font-size: 22px;
  }

  .page-download__feature-description,
  .page-download__card-description,
  .page-download__security-item-description,
  .page-download__note-text,
  .page-download__requirement-item li {
    font-size: 15px;
  }
}

/* Color Contrast Specifics */
.page-download__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-download__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-download__system-requirements-section.page-download__dark-bg {
  background-color: #000000;
  color: #ffffff;
}

.page-download__cta-bottom-section.page-download__dark-bg {
  background-color: #000000;
  color: #ffffff;
}

/* Ensure text on brand color background is white */
.page-download__dark-bg .page-download__section-title,
.page-download__dark-bg .page-download__section-intro,
.page-download__dark-bg .page-download__platform-title,
.page-download__dark-bg .page-download__step-list li,
.page-download__dark-bg .page-download__step-list li strong,
.page-download__dark-bg .page-download__note-text,
.page-download__dark-bg .page-download__requirement-title,
.page-download__dark-bg .page-download__requirement-item li {
  color: #ffffff;
}

/* Override default link color if needed for contrast */
.page-download a {
  color: #26A9E0;
  text-decoration: none;
}

.page-download a:hover {
  text-decoration: underline;
}

.page-download__dark-bg a {
  color: #ffffff;
}

.page-download__dark-bg a:hover {
  color: #f0f0f0;
}