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

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

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

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

/* 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); /* Ensure space for fixed header */
  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;
  gap: 30px;
}

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

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

.page-download__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: var(--text-light);
}

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

.page-download__hero-image {
  width: 100%;
  max-width: 600px;
  margin-top: 40px;
}

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

/* General Sections */
.page-download__section {
  padding: 80px 20px;
}

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

.page-download__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  color: inherit; /* Inherit color from parent section (dark/light bg) */
}

.page-download__introduction p,
.page-download__pc-access p,
.page-download__promotions p,
.page-download__security p,
.page-download__final-cta p {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 20px auto;
}

/* CTA Buttons */
.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;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-download__btn-primary {
  background: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
}

.page-download__btn-primary:hover {
  background: #1e87bb; /* Slightly darker primary */
  border-color: #1e87bb;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

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

.page-download__btn-secondary:hover {
  background: #f0f0f0;
  border-color: #1e87bb;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-download__btn-text-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin-top: 15px;
}

.page-download__btn-text-link:hover {
  text-decoration: underline;
}

/* How to Download Section */
.page-download__download-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 50px;
  text-align: left;
}

.page-download__step-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-light);
}

.page-download__step-item img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-download__step-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--text-light);
  text-align: center;
}

.page-download__step-list {
  list-style-type: decimal;
  padding-left: 20px;
  margin-bottom: 30px;
  font-size: 1.05em;
  color: var(--text-light);
}

.page-download__step-list li {
  margin-bottom: 10px;
}

.page-download__step-list li strong {
  color: var(--secondary-color);
}

.page-download__btn-full-width {
  width: 100%;
  max-width: 300px; /* Limit max width for aesthetic */
  margin-top: auto; /* Push button to bottom */
}

.page-download__pc-access {
  margin-top: 60px;
  text-align: center;
  padding: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-light);
}

.page-download__pc-access h3 {
  color: var(--text-light);
  margin-bottom: 20px;
}

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

.page-download__feature-card,
.page-download__promotion-card {
  background: var(--background-light);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  color: var(--text-dark);
}

.page-download__feature-card img,
.page-download__promotion-card img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  margin: 0 auto 20px auto;
  object-fit: cover;
}

.page-download__feature-title,
.page-download__promotion-card h3 {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-download__feature-card p,
.page-download__promotion-card p {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1;
  text-align: center;
}

/* Security Section */
.page-download__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
  text-align: center;
}

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

.page-download__security-item img {
  
  
  margin-bottom: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.page-download__security-item h3 {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.page-download__security-item p {
  font-size: 0.95em;
  margin-bottom: 0;
}

.page-download__security-footer-text {
  margin-top: 40px;
  font-size: 1.1em;
  color: var(--text-light);
}

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

/* FAQ Section */
.page-download__faq-list {
  margin-top: 40px;
  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.1);
  background: var(--background-light);
}

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--background-light);
  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;
  color: var(--text-dark);
}

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

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

.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 {
  transform: rotate(45deg); /* Plus to X */
  color: #EA7C07; /* Orange for active toggle */
}

.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;
  color: var(--text-dark);
}

.page-download__faq-item.active .page-download__faq-answer {
  max-height: 2000px !important; /* Sufficiently large */
  padding: 20px 25px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
}

/* Final CTA Section */
.page-download__final-cta-content {
  text-align: center;
  padding: 50px 20px;
  background: linear-gradient(135deg, var(--primary-color), #4dbce9);
  border-radius: 15px;
  color: var(--text-light);
}

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

.page-download__final-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* Image specific styles */
.page-download img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Ensure images fill their space without distortion */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-download__hero-title {
    font-size: 2.8em;
  }
  .page-download__hero-description {
    font-size: 1.2em;
  }
  .page-download__section-title {
    font-size: 2em;
  }
  .page-download__section {
    padding: 60px 15px;
  }
}

@media (max-width: 768px) {
  .page-download__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    flex-direction: column-reverse; /* Image on top for mobile hero */
  }
  .page-download__hero-container {
    flex-direction: column-reverse;
  }
  .page-download__hero-image {
    margin-top: 0;
    margin-bottom: 30px;
  }
  .page-download__hero-title {
    font-size: 2.2em;
  }
  .page-download__hero-description {
    font-size: 1em;
  }
  .page-download__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-download__cta-button {
    width: 100% !important;
    max-width: 300px !important; /* Constrain individual button width */
    margin-left: auto; /* Center button */
    margin-right: auto; /* Center button */
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-download__btn-full-width {
    max-width: 100%;
  }
  .page-download__section {
    padding: 40px 15px;
  }
  .page-download__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-download__introduction p,
  .page-download__pc-access p,
  .page-download__promotions p,
  .page-download__security p,
  .page-download__final-cta p {
    font-size: 0.95em;
    text-align: left;
  }
  .page-download__download-steps,
  .page-download__feature-grid,
  .page-download__security-features,
  .page-download__promotion-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-download__step-item,
  .page-download__feature-card,
  .page-download__promotion-card,
  .page-download__security-item {
    padding: 25px;
  }
  .page-download__faq-question {
    padding: 15px 20px;
  }
  .page-download__faq-question h3 {
    font-size: 1em;
  }
  .page-download__faq-toggle {
    font-size: 24px;
    width: 26px;
    height: 26px;
  }
  .page-download__faq-answer {
    padding: 0 20px;
  }
  .page-download__faq-item.active .page-download__faq-answer {
    padding: 15px 20px !important;
  }
  .page-download__final-cta-content {
    padding: 30px 15px;
  }
  .page-download__final-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-download img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-download__container,
  .page-download__step-item,
  .page-download__feature-card,
  .page-download__promotion-card,
  .page-download__security-item,
  .page-download__final-cta-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-download__hero-buttons,
  .page-download__final-cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Ensure all content areas don't overflow */
  .page-download {
    overflow-x: hidden;
  }
}