/* style/download.css */

/* Base styles for the page-download scope */
.page-download {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF3E6; /* Text Main */
  background-color: #0D0E12; /* Background */
}

/* 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: 10px; /* Small top padding as body handles --header-offset */
  overflow: hidden;
}

.page-download__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.page-download__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-download__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

.page-download__main-title {
  color: #FFF3E6;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  /* No fixed font-size for H1 */
}

.page-download__description {
  color: #FFF3E6;
  font-size: 1.1em;
  margin-bottom: 30px;
}

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

.page-download__btn-primary,
.page-download__btn-secondary,
.page-download a[class*="button"],
.page-download a[class*="btn"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  text-align: center;
}

.page-download__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button gradient */
  color: #ffffff; /* White text for contrast */
  border: 2px solid transparent;
}

.page-download__btn-primary:hover {
  background: linear-gradient(180deg, #FFB04D 0%, #FFA53A 100%);
  transform: translateY(-2px);
}

.page-download__btn-secondary {
  background: #17191F; /* Card BG */
  color: #FFA53A; /* Accent color text */
  border: 2px solid #FFA53A;
}

.page-download__btn-secondary:hover {
  background: #FFA53A;
  color: #17191F;
  transform: translateY(-2px);
}

/* General Section Styles */
.page-download__section {
  padding: 80px 20px;
  text-align: center;
}

.page-download__introduction-section {
  background-color: #0D0E12;
}

.page-download__benefits-section {
  background-color: #17191F; /* Card BG */
}

.page-download__how-to-download-section {
  background-color: #0D0E12;
}

.page-download__security-requirements-section {
  background-color: #17191F; /* Card BG */
}

.page-download__faq-section {
  background-color: #0D0E12;
}

.page-download__cta-final-section {
  background-color: #FF8C1A; /* Main color */
  padding: 60px 20px;
}

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

.page-download__section-title {
  color: #FFF3E6;
  font-size: 2.5em;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-download__introduction-section .page-download__text-block {
  max-width: 900px;
  margin: 0 auto 20px auto;
  color: #FFF3E6;
  font-size: 1.1em;
}

/* Benefits Section */
.page-download__image-full-width {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 40px auto;
  border-radius: 10px;
}

.page-download__benefit-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.page-download__benefit-item {
  background-color: #0D0E12;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #A84F0C; /* Border color */
}

.page-download__benefit-title {
  color: #FFA53A;
  font-size: 1.5em;
  margin-top: 0;
  margin-bottom: 15px;
}

.page-download__benefit-description {
  color: #FFF3E6;
}

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

.page-download__guide-item {
  background-color: #17191F;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #A84F0C;
}

.page-download__guide-title {
  color: #FFA53A;
  font-size: 1.8em;
  margin-top: 0;
  margin-bottom: 20px;
  text-align: center;
}

.page-download__qr-code {
  display: block;
  margin: 0 auto 25px auto;
  max-width: 200px;
  height: auto;
  border: 5px solid #FFF3E6;
  border-radius: 5px;
}

.page-download__steps-list {
  list-style: decimal;
  padding-left: 20px;
  color: #FFF3E6;
  margin-bottom: 30px;
}

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

.page-download__steps-list li strong {
  color: #FFA53A;
}

.page-download__btn-download {
  width: calc(100% - 30px);
  margin: 0 auto;
}

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

.page-download__video-title {
  color: #FFF3E6;
  font-size: 2em;
  margin-bottom: 30px;
}

.page-download__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  background-color: #000;
  border-radius: 10px;
  border: 1px solid #A84F0C;
}

.page-download__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: pointer;
}

.page-download__video-description {
  color: #FFF3E6;
  margin-top: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Security and Requirements Section */
.page-download__content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 30px;
  text-align: left;
}

.page-download__card {
  background-color: #0D0E12; /* Background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #A84F0C;
  color: #FFF3E6;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-download__card-title {
  color: #FFA53A;
  font-size: 1.8em;
  margin-top: 0;
  margin-bottom: 20px;
  text-align: center;
  width: 100%;
}

.page-download__card-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
  border-radius: 8px;
}

.page-download__feature-list,
.page-download__requirement-list {
  list-style: none;
  padding: 0;
  margin: 0;
  color: #FFF3E6;
}

.page-download__feature-list li,
.page-download__requirement-list li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.page-download__feature-list li::before,
.page-download__requirement-list li::before {
  content: '✅';
  position: absolute;
  left: 0;
  color: #FFA53A;
}

.page-download__card-description {
  color: #FFF3E6;
  margin-top: 20px;
}

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

.page-download__faq-item {
  background-color: #17191F; /* Card BG */
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #A84F0C;
}

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: #FF8C1A; /* Main color */
  color: #FFF3E6;
  font-weight: bold;
  font-size: 1.1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none; /* Remove default marker for summary */
}

.page-download__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Webkit browsers */
}

.page-download__faq-question:hover {
  background-color: #FFA53A;
}

.page-download__faq-qtext {
  flex-grow: 1;
}

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

.page-download__faq-answer {
  padding: 20px 25px;
  background-color: #0D0E12;
  color: #FFF3E6;
  border-top: 1px solid #A84F0C;
}

.page-download__faq-item[open] .page-download__faq-question {
  background-color: #FFA53A;
}

/* Final CTA Section */
.page-download__cta-final-section .page-download__section-title {
  color: #FFF3E6;
}

.page-download__cta-final-section .page-download__text-block {
  color: #FFF3E6;
  max-width: 800px;
  margin: 0 auto 30px auto;
  font-size: 1.1em;
}

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

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

  .page-download__content-grid {
    grid-template-columns: 1fr;
  }

  .page-download__download-guide {
    grid-template-columns: 1fr;
  }
}

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

  .page-download__hero-section {
    padding: 40px 15px;
    padding-top: 10px;
  }

  .page-download__hero-content {
    padding: 15px;
  }

  .page-download__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-download__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

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

  .page-download__btn-primary,
  .page-download__btn-secondary,
  .page-download a[class*="button"],
  .page-download a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-download__section {
    padding: 40px 15px;
  }

  .page-download__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-download__container {
    padding-left: 0;
    padding-right: 0;
  }

  /* Image responsive rules */
  .page-download img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-download__hero-image-wrapper,
  .page-download__section,
  .page-download__card,
  .page-download__container,
  .page-download__download-guide,
  .page-download__guide-item,
  .page-download__video-section,
  .page-download__video-wrapper,
  .page-download__content-grid,
  .page-download__faq-list,
  .page-download__cta-final-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* Video responsive rules */
  .page-download video,
  .page-download__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-download__video-wrapper {
    padding-bottom: 56.25% !important; /* Maintain 16:9 aspect ratio */
    height: 0 !important;
  }

  .page-download__video-section {
    padding-top: 10px !important; /* Small top padding for video section */
  }

  .page-download__benefit-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-download__qr-code {
    max-width: 150px;
  }

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

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

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

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

  .page-download__btn-primary,
  .page-download__btn-secondary {
    font-size: 0.95em;
    padding: 10px 15px;
  }
}