/* style/download.css */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-dark: #1a1a1a; /* Inherited from shared.css body */
  --button-register-login: #C30808;
  --button-font-register-login: #FFFF00;
}

.page-download {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default text color for the page, as body background is dark */
  background-color: var(--background-dark); /* Ensure main content background matches body */
}

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

/* Hero Section */
.page-download__hero-section {
  position: relative;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  overflow: hidden;
}

.page-download__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--secondary-color); /* White text on dark background */
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-download__description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  color: var(--secondary-color); /* White text on dark background */
}

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

.page-download__btn-download {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  min-width: 200px;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
}

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

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

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

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

.page-download__hero-image-wrapper {
  width: 100%;
  max-width: 1000px;
  margin-top: 40px;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-download__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Video Section */
.page-download__video-section {
  padding: 60px 0;
  text-align: center;
}

.page-download__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 800px;
  margin: 40px auto 0;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-download__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.page-download__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
}

/* Advantages Section */
.page-download__advantages-section {
  padding: 80px 0;
  text-align: center;
}

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

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

.page-download__advantage-card:hover {
  transform: translateY(-5px);
}

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

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

.page-download__benefits-image {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 60px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-download__download-guide {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 40px;
  justify-content: center;
}

.page-download__guide-card {
  background-color: var(--secondary-color);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  flex: 1;
  min-width: 300px;
  max-width: 550px;
  color: var(--text-dark);
}

.page-download__guide-title {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-align: center;
}

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

.page-download__guide-list li {
  margin-bottom: 15px;
  line-height: 1.8;
  counter-increment: step-counter;
  position: relative;
  padding-left: 35px;
}

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

.page-download__guide-step {
  font-weight: bold;
  color: var(--primary-color);
}

.page-download__guide-image {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

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

.page-download__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  color: var(--secondary-color);
}

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: bold;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-download__faq-question::-webkit-details-marker { /* For details/summary */
  display: none;
}

.page-download__faq-item[open] .page-download__faq-question {
  background-color: rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

.page-download__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--primary-color);
}

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

.page-download__faq-item[open] .page-download__faq-answer {
  max-height: 500px; /* Adjust as needed */
  padding: 20px 25px;
}

/* Security Section */
.page-download__security-section {
  padding: 80px 0;
  text-align: center;
}

.page-download__security-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  text-align: left;
}

.page-download__security-text {
  flex: 1;
  min-width: 300px;
  color: var(--text-dark);
}

.page-download__security-subtitle {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-top: 25px;
  margin-bottom: 10px;
}

.page-download__security-text p {
  margin-bottom: 20px;
  color: var(--text-dark);
}

.page-download__security-image {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  height: auto;
  display: block;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

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

.page-download__btn-final {
  background-color: var(--button-register-login); /* Specific color for register/login */
  color: var(--button-font-register-login); /* Specific font color */
  border: 2px solid var(--button-register-login);
}

.page-download__btn-final:hover {
  background-color: #a30606;
}

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

.page-download__btn-view-promotions:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

/* Common styles for sections and titles */
.page-download__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-download__section-description {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 40px;
}

/* Background color specific classes */
.page-download__dark-bg {
  background-color: var(--background-dark);
  color: var(--text-light);
}

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

.page-download__text-contrast-fix {
  color: var(--text-dark) !important; /* Ensure text is dark on light backgrounds */
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-download__main-title {
    font-size: 2.8em;
  }

  .page-download__section-title {
    font-size: 2em;
  }
}

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

  .page-download__hero-section {
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
  }

  .page-download__main-title {
    font-size: 2.2em;
  }

  .page-download__description {
    font-size: 1em;
  }

  .page-download__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-download__btn-download,
  .page-download__btn-final,
  .page-download__btn-view-promotions {
    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,
  .page-download__video-wrapper,
  .page-download__benefits-image,
  .page-download__guide-image,
  .page-download__security-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
    margin-left: auto;
    margin-right: auto;
  }

  .page-download img,
  .page-download video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-download__section,
  .page-download__card,
  .page-download__container,
  .page-download__video-section,
  .page-download__advantages-section,
  .page-download__how-to-download-section,
  .page-download__faq-section,
  .page-download__security-section,
  .page-download__cta-final-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-download__advantages-grid,
  .page-download__download-guide,
  .page-download__security-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-download__guide-card {
    max-width: 100%;
  }

  .page-download__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }

  .page-download__faq-answer {
    padding: 15px 20px;
  }

  .page-download__security-text {
    order: 2; /* Image first on mobile */
  }

  .page-download__security-image {
    order: 1;
    margin-bottom: 30px;
  }

  .page-download__video-wrapper {
    padding-bottom: 75%; /* Adjust aspect ratio for better mobile viewing if needed, e.g., 4:3 */
  }
}

@media (max-width: 480px) {
  .page-download__main-title {
    font-size: 1.8em;
  }

  .page-download__section-title {
    font-size: 1.6em;
  }

  .page-download__advantage-title,
  .page-download__guide-title,
  .page-download__security-subtitle {
    font-size: 1.3em;
  }
}