/* style/download.css */

/* General styles for the page-download scope */
.page-download {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main */
  background: #08160F; /* Background */
}

/* Section headers */
.page-download__section-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 0 15px; /* Add padding for mobile containers */
}

.page-download__section-title {
  font-size: clamp(28px, 4vw, 42px); /* H1/H2 font size clamp */
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-download__section-description {
  font-size: 18px;
  color: #A7D9B8; /* Text Secondary */
  max-width: 800px;
  margin: 0 auto;
}

/* Buttons */
.page-download__btn-primary,
.page-download__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-download__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #F2FFF6; /* Text Main */
  border: 2px solid transparent;
}

.page-download__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(42, 209, 111, 0.4); /* Glow */
}

.page-download__btn-secondary {
  background: transparent;
  color: #2AD16F; /* A lighter shade from the gradient for contrast */
  border: 2px solid #2AD16F; /* Border */
}

.page-download__btn-secondary:hover {
  background: rgba(42, 209, 111, 0.1); /* Light background on hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(42, 209, 111, 0.2); 
}

.page-download__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

/* Hero Section */
.page-download__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 20px 80px; /* Small top padding, larger bottom for content */
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-download__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Constrain max width for image */
  margin-bottom: 40px; /* Space between image and content */
  text-align: center;
}

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

.page-download__hero-content {
  text-align: center;
  max-width: 900px;
  z-index: 1; /* Ensure content is above any background elements */
}

.page-download__main-title {
  font-size: clamp(36px, 5vw, 56px); /* H1 font size */
  font-weight: 800;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-download__description {
  font-size: 20px;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

/* Video Section */
.page-download__video-section {
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #0A4B2C; /* Deep Green */
}

.page-download__video-wrapper {
  width: 100%;
  max-width: 1000px; /* Max width for video */
  margin: 0 auto;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-download__video-link {
  display: block; /* Make the whole area clickable */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

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

/* Download Options Grid */
.page-download__download-options {
  padding: 80px 20px;
}

.page-download__options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-download__card {
  background: #11271B; /* Card BG */
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
  border: 1px solid #2E7A4E; /* Border */
}

.page-download__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 15px rgba(87, 227, 141, 0.4); /* Glow */
}

.page-download__card-image {
  width: 100%;
  max-width: 300px; /* Max width for card images */
  height: auto;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
  border-radius: 10px;
  margin-bottom: 20px;
  object-fit: cover;
  display: block;
}

.page-download__card-title {
  font-size: 24px;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  font-weight: 700;
}

.page-download__card-text {
  font-size: 16px;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 25px;
  flex-grow: 1; /* Push button to bottom */
}

/* Features Section */
.page-download__features-section {
  padding: 80px 20px;
  background: #0A4B2C; /* Deep Green */
}

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

.page-download__feature-item {
  background: #11271B; /* Card BG */
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border */
}

.page-download__feature-icon {
  width: 100%;
  max-width: 300px; /* Max width for feature icons (images) */
  height: auto;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: cover;
}

.page-download__feature-title {
  font-size: 22px;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
  font-weight: 700;
}

.page-download__feature-text {
  font-size: 16px;
  color: #A7D9B8; /* Text Secondary */
}

/* Guide Section */
.page-download__guide-section {
  padding: 80px 20px;
}

.page-download__guide-content {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping */
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.page-download__guide-steps {
  flex: 1 1 500px; /* Allow content to grow and shrink */
}

.page-download__guide-subtitle {
  font-size: 26px;
  color: #F2FFF6; /* Text Main */
  margin-top: 30px;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-download__guide-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.page-download__guide-list li {
  background: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 15px;
  font-size: 17px;
  color: #F2FFF6; /* Text Main */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-download__guide-list li strong {
  color: #2AD16F; /* Highlight step numbers/titles */
}

.page-download__guide-image {
  flex: 1 1 400px; /* Allow image to grow and shrink */
  width: 100%;
  height: auto;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-download__faq-section {
  padding: 80px 20px;
  background: #0A4B2C; /* Deep Green */
}

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

.page-download__faq-item {
  background: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  background: #11271B; /* Card BG */
  transition: background-color 0.3s ease;
  list-style: none; /* Remove default marker for details summary */
}

/* Hide default marker for details */
.page-download__faq-item summary::-webkit-details-marker,
.page-download__faq-item summary::marker {
  display: none;
}

.page-download__faq-question:hover {
  background-color: #1a362a; /* Slightly darker hover */
}

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

.page-download__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  color: #2AD16F; /* Button color for toggle */
}

.page-download__faq-answer {
  padding: 0 25px 20px;
  font-size: 16px;
  color: #A7D9B8; /* Text Secondary */
  border-top: 1px solid #2E7A4E; /* Divider */
  margin-top: -1px; /* Overlap border */
}

.page-download__faq-item[open] .page-download__faq-answer {
  padding-top: 20px; /* Add top padding when open */
}


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

/* Image and Video Responsive Rules (Global for page-download) */
.page-download img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

  .page-download__section-title {
    font-size: 28px;
  }

  .page-download__main-title {
    font-size: 32px;
  }

  .page-download__description {
    font-size: 18px;
  }

  .page-download__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to container */
  }

  .page-download__btn-primary,
  .page-download__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
  }

  /* Containers for responsive padding */
  .page-download__hero-section,
  .page-download__video-section,
  .page-download__download-options,
  .page-download__features-section,
  .page-download__guide-section,
  .page-download__faq-section,
  .page-download__cta-final {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
  
  .page-download__video-section {
    padding-top: 10px !important; /* body already handles header offset */
  }

  .page-download__hero-image-wrapper {
    margin-bottom: 20px;
  }

  .page-download__options-grid,
  .page-download__features-grid {
    grid-template-columns: 1fr;
  }

  .page-download__card,
  .page-download__feature-item {
    padding: 25px;
  }

  .page-download__guide-content {
    flex-direction: column;
    gap: 20px;
  }

  .page-download__guide-image {
    order: -1; /* Move image above text on mobile */
  }

  .page-download__faq-question {
    padding: 18px 20px;
    font-size: 16px;
  }

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

  .page-download__faq-item[open] .page-download__faq-answer {
    padding-top: 18px;
  }

  /* Ensure all images are responsive on mobile */
  .page-download img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: unset !important; /* Allow shrinking below desktop min-width */
    min-height: unset !important; /* Allow shrinking below desktop min-height */
  }

  /* Ensure all videos are responsive on mobile */
  .page-download video,
  .page-download__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Specific containers for video */
  .page-download__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}