/* style/download.css */

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-dark: #0a0a0a;
  --btn-register: #C30808;
  --btn-login: #C30808;
  --bg-white: #FFFFFF;
  --font-register-login: #FFFF00;
}

.page-download {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Body background is dark, so text is light */
  background-color: var(--bg-dark); /* Inherited from shared.css, ensuring consistency */
}

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

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

.page-download__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
  color: var(--text-light);
}

/* Hero Section */
.page-download__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure spacing below fixed header */
  background: linear-gradient(135deg, var(--primary-color) 0%, #004d2a 100%);
  min-height: 600px;
  text-align: center;
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.page-download__hero-content {
  z-index: 1;
  max-width: 900px;
}

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

.page-download__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: var(--secondary-color);
}

.page-download__download-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-download__btn-primary,
.page-download__btn-secondary {
  display: inline-block;
  padding: 18px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-download__btn-primary {
  background-color: var(--btn-register);
  color: var(--font-register-login);
  border-color: var(--btn-register);
}

.page-download__btn-primary:hover {
  background-color: #a30606;
  border-color: #a30606;
  transform: translateY(-3px);
}

.page-download__btn-secondary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border-color: var(--secondary-color);
}

.page-download__btn-secondary:hover {
  background-color: #e0e0e0;
  border-color: #e0e0e0;
  transform: translateY(-3px);
}

.page-download__hero-image-wrapper {
  margin-top: 50px;
  max-width: 800px;
  width: 100%;
  text-align: center;
}

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

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

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

.page-download__why-download-section .page-download__section-intro {
  color: var(--text-light);
}

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

.page-download__feature-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: var(--text-light);
}

.page-download__feature-card:hover {
  transform: translateY(-10px);
}

.page-download__feature-icon {
  width: 150px; /* Larger icon size */
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

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

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

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

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

.page-download__how-to-download-section .page-download__section-intro {
  color: var(--text-light);
}

.page-download__platform-guide {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  margin-top: 60px;
}

.page-download__guide-card {
  background: rgba(255, 255, 255, 0.15);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-download__guide-title {
  font-size: 2.2em;
  color: var(--secondary-color);
  margin-bottom: 30px;
  font-weight: bold;
}

.page-download__guide-list {
  list-style: none;
  padding: 0;
  text-align: left;
  margin-bottom: 40px;
  max-width: 600px;
  width: 100%;
}

.page-download__guide-list li {
  margin-bottom: 20px;
  font-size: 1.1em;
  position: relative;
  padding-left: 35px;
}

.page-download__guide-list li:last-child {
  margin-bottom: 0;
}

.page-download__guide-list li::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  background-color: var(--btn-register);
  color: var(--font-register-login);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9em;
  position: absolute;
  left: 0;
  top: 0;
}

.page-download__step-title {
  color: var(--secondary-color);
  font-size: 1.2em;
  display: block;
  margin-bottom: 5px;
}

.page-download__guide-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  margin-top: 30px;
}

.page-download__cta-bottom {
  text-align: center;
  margin-top: 60px;
}

.page-download__cta-text {
  font-size: 1.5em;
  color: var(--secondary-color);
  margin-bottom: 30px;
  font-weight: bold;
}

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

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

.page-download__app-features-section .page-download__section-intro {
  color: var(--text-light);
}

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

.page-download__feature-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: var(--text-light);
  border-left: 5px solid var(--primary-color);
}

.page-download__feature-list-title {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

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

/* Security Section */
.page-download__security-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
  text-align: center;
}

.page-download__security-section .page-download__section-title {
  color: var(--secondary-color);
}

.page-download__security-section .page-download__section-intro {
  color: var(--text-light);
}

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

.page-download__security-point {
  background: rgba(255, 255, 255, 0.15);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-light);
}

.page-download__security-point-title {
  font-size: 1.8em;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

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

.page-download__security-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  margin-top: 60px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

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

.page-download__faq-section .page-download__section-intro {
  color: var(--text-light);
}

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

.page-download__faq-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--secondary-color);
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

.page-download__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-download__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--btn-register);
  transition: transform 0.3s ease;
}

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

.page-download__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-light);
  font-size: 1em;
}

.page-download__faq-item.active .page-download__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to contain content */
  padding: 15px 25px 25px;
}

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

/* CTA Section Bottom */
.page-download__cta-section {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(45deg, #004d2a 0%, var(--primary-color) 100%);
  color: var(--text-light);
}

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

.page-download__cta-section .page-download__section-intro {
  color: var(--text-light);
  margin-bottom: 50px;
}

.page-download__btn-large {
  padding: 20px 45px;
  font-size: 1.4em;
  min-width: 300px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-download__hero-title {
    font-size: 3em;
  }
  .page-download__hero-description {
    font-size: 1.1em;
  }
  .page-download__section-title {
    font-size: 2em;
  }
  .page-download__section-intro {
    font-size: 1em;
  }
  .page-download__feature-title {
    font-size: 1.5em;
  }
  .page-download__guide-title {
    font-size: 1.8em;
  }
  .page-download__feature-list-title {
    font-size: 1.4em;
  }
  .page-download__security-point-title {
    font-size: 1.5em;
  }
}

@media (max-width: 768px) {
  .page-download {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-download__hero-section {
    flex-direction: column;
    padding-left: 15px;
    padding-right: 15px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-download__hero-title {
    font-size: 2.5em;
  }
  .page-download__hero-description {
    font-size: 1em;
  }
  .page-download__download-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }
  .page-download__btn-primary,
  .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;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-download__hero-image-wrapper {
    margin-top: 30px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-download__hero-image {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-download__why-download-section,
  .page-download__how-to-download-section,
  .page-download__app-features-section,
  .page-download__security-section,
  .page-download__faq-section,
  .page-download__cta-section {
    padding: 60px 0;
  }
  .page-download__container {
    padding: 0 15px;
  }
  .page-download__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-download__section-intro {
    margin-bottom: 40px;
  }
  .page-download__features-grid,
  .page-download__platform-guide,
  .page-download__features-list,
  .page-download__security-points {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-download__feature-card,
  .page-download__guide-card,
  .page-download__feature-item,
  .page-download__security-point,
  .page-download__faq-item {
    padding: 25px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-download__guide-image,
  .page-download__security-image {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-download__feature-icon {
    width: 120px;
  }
  .page-download__guide-list li {
    font-size: 1em;
  }
  .page-download__step-title {
    font-size: 1.1em;
  }
  .page-download__faq-question {
    font-size: 1.1em;
  }
  .page-download__btn-large {
    font-size: 1.2em;
    min-width: unset;
    width: 100%;
    padding: 18px 25px;
  }
}