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

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

.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, var(--primary-color) 0%, #aee5f9 100%);
  color: var(--text-light);
  overflow: hidden;
}

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

.page-download__hero-content {
  flex: 1;
  text-align: left;
  z-index: 2;
}

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

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

.page-download__hero-cta-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.page-download__hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

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

.page-download__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  box-sizing: border-box;
}

.page-download__cta-button--primary {
  background: var(--button-login); /* Using #EA7C07 for primary CTA */
  color: var(--text-light);
  border: 2px solid var(--button-login);
}

.page-download__cta-button--primary:hover {
  background: #d46b00;
  border-color: #d46b00;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-download__cta-button--secondary {
  background: transparent;
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

.page-download__cta-button--secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

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

.page-download__section--why-download {
  background-color: var(--background-white);
  color: var(--text-dark);
}

.page-download__section--how-to-download {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-download__section--features {
  background-color: #f8f9fa;
  color: var(--text-dark);
}

.page-download__section--security {
  background-color: var(--background-white);
  color: var(--text-dark);
}

.page-download__section--faq {
  background-color: #f8f9fa;
  color: var(--text-dark);
}

.page-download__section--cta-final {
  background-color: var(--primary-color);
  color: var(--text-light);
}

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

.page-download__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: var(--primary-color);
  font-weight: bold;
}

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

.page-download__section-description {
  font-size: 1.1em;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-dark);
}

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

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

.page-download__feature-item {
  background: var(--background-white);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-download__feature-text {
  font-size: 1em;
  color: var(--text-dark);
}

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

.page-download__guide-platform {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: var(--text-light);
}

.page-download__guide-title {
  font-size: 1.8em;
  margin-bottom: 25px;
  font-weight: bold;
  color: var(--primary-color);
}

.page-download__guide-title--light {
  color: var(--text-light);
}

.page-download__guide-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-download__guide-list-item {
  margin-bottom: 15px;
  font-size: 1.1em;
  line-height: 1.8;
  position: relative;
  padding-left: 30px;
}

.page-download__guide-list-item::before {
  content: '✓';
  color: var(--text-light);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

.page-download__qr-code {
  text-align: center;
  margin-top: 20px;
}

.page-download__qr-code img {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: block;
  margin: 0 auto 15px auto;
}

.page-download__qr-caption {
  font-size: 1em;
  color: var(--text-dark);
}

.page-download__qr-caption--light {
  color: rgba(255, 255, 255, 0.9);
}

.page-download__button-container {
  margin-top: 60px;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

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

.page-download__feature-app-item {
  background: var(--background-white);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-download__feature-app-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-download__feature-app-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-download__feature-app-text {
  font-size: 0.95em;
  color: var(--text-dark);
}

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

.page-download__security-item {
  background: #fdfdfd;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: left;
  border-left: 5px solid var(--primary-color);
}

.page-download__security-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-download__security-text {
  font-size: 1em;
  color: var(--text-dark);
}

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

.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: var(--background-white);
  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:active {
  background: #eeeeee;
}

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

.page-download__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  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: 30px;
  height: 30px;
}

.page-download__faq-item.active .page-download__faq-toggle {
  color: var(--button-login);
  transform: rotate(45deg);
}

.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.3s ease;
  padding: 0 25px;
  opacity: 0;
  background: #fcfcfc;
  border-top: 1px solid #eee;
  border-radius: 0 0 8px 8px;
}

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

.page-download__faq-answer p {
  margin: 0;
  font-size: 1em;
  color: var(--text-dark);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-download__hero-title {
    font-size: 2.8em;
  }
  .page-download__hero-description {
    font-size: 1.1em;
  }
  .page-download__hero-image img {
    max-width: 500px;
  }
  .page-download__download-guide {
    grid-template-columns: 1fr;
  }
  .page-download__button-container .page-download__cta-button {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 768px) {
  .page-download__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
  }
  .page-download__hero-container {
    flex-direction: column-reverse;
    gap: 30px;
  }
  .page-download__hero-content {
    text-align: center;
  }
  .page-download__hero-title {
    font-size: 2em;
    margin-bottom: 15px;
  }
  .page-download__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }
  .page-download__hero-image img {
    max-width: 300px;
    width: 100% !important;
    height: auto !important;
  }
  .page-download__hero-cta-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-download__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-download__section {
    padding: 50px 15px;
  }
  .page-download__section-title {
    font-size: 1.8em;
  }
  .page-download__section-description {
    font-size: 0.95em;
    margin-bottom: 40px;
  }
  .page-download__features-grid,
  .page-download__features-app-grid,
  .page-download__security-grid {
    gap: 20px;
  }
  .page-download__feature-item,
  .page-download__feature-app-item,
  .page-download__security-item {
    padding: 20px;
  }
  .page-download__qr-code img {
    max-width: 200px;
  }
  .page-download__faq-question {
    padding: 15px 20px;
  }
  .page-download__faq-question h3 {
    font-size: 1em;
  }
  .page-download__faq-toggle {
    font-size: 24px;
    width: 25px;
    height: 25px;
  }
  .page-download__faq-item.active .page-download__faq-answer {
    padding: 15px 20px !important;
  }
  .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__hero-cta-group,
  .page-download__button-container {
    flex-direction: column;
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}