/* style/download.css */

/* Base styles for the page-download scope */
.page-download {
  color: #ffffff; /* Light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #1a1a2e; /* 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;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom */
  background-color: #1a1a2e; /* Match body background for seamless transition */
}

.page-download__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Constrain image width on larger screens */
  margin-bottom: 30px; /* Space between image and text */
}

.page-download__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  min-width: 200px; /* Ensure minimum size for image */
  min-height: 200px; /* Ensure minimum size for image */
}

.page-download__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.page-download__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
  color: #26A9E0; /* Brand color for main title */
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-download__description {
  font-size: 1.2rem;
  color: #f0f0f0;
  margin-bottom: 40px;
}

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

/* General Buttons */
.page-download__btn-primary,
.page-download__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  max-width: 100%; /* For mobile button responsiveness */
  box-sizing: border-box; /* For mobile button responsiveness */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-download__btn-primary {
  background-color: #26A9E0; /* Primary brand color */
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

.page-download__btn-primary:hover {
  background-color: #1e87c0;
  transform: translateY(-2px);
}

.page-download__btn-secondary {
  background-color: transparent;
  color: #26A9E0; /* Primary brand color for text */
  border: 2px solid #26A9E0;
}

.page-download__btn-secondary:hover {
  background-color: rgba(38, 169, 224, 0.1);
  transform: translateY(-2px);
}

/* Sections */
.page-download__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: #26A9E0;
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
}

.page-download__text-block {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

/* Why Download Section */
.page-download__why-download-section {
  padding: 80px 0;
  background-color: #1a1a2e; /* Dark background */
}

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

.page-download__feature-item {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent background for items */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-download__feature-item:hover {
  transform: translateY(-5px);
}

.page-download__feature-icon {
  width: 200px;
  height: 200px;
  margin: 0 auto 20px auto;
  object-fit: contain;
  border-radius: 50%; /* Example style, ensure it's not a small icon */
  display: block;
}

.page-download__feature-title {
  font-size: 1.5rem;
  color: #FFFFFF;
  margin-bottom: 15px;
}

.page-download__feature-description {
  font-size: 1rem;
  color: #cccccc;
}

/* Instructions Section */
.page-download__instructions-section {
  padding: 80px 0;
  background-color: #0d0d1e; /* Slightly different dark background */
}

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

.page-download__guide-card {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-download__guide-title {
  font-size: 1.8rem;
  color: #26A9E0;
  margin-bottom: 20px;
}

.page-download__guide-image {
  width: 100%;
  height: auto;
  max-width: 400px; /* Example max-width for guide images */
  margin: 0 auto 20px auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Ensure minimum size for image */
  min-height: 200px; /* Ensure minimum size for image */
}

.page-download__guide-list {
  list-style: none;
  padding: 0;
  text-align: left;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-download__guide-list li::before {
  content: "✓";
  color: #26A9E0;
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Security Section */
.page-download__security-section {
  padding: 80px 0;
  background-color: #1a1a2e; /* Dark background */
}

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

.page-download__security-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-download__security-icon {
  width: 200px;
  height: 200px;
  margin: 0 auto 20px auto;
  object-fit: contain;
  display: block;
}

.page-download__security-title {
  font-size: 1.5rem;
  color: #FFFFFF;
  margin-bottom: 15px;
}

.page-download__security-description {
  font-size: 1rem;
  color: #cccccc;
}

/* FAQ Section */
.page-download__faq-section {
  padding: 80px 0;
  background-color: #0d0d1e; /* Slightly different dark background */
}

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

.page-download__faq-item {
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-download__faq-item summary {
  list-style: none; /* Hide default marker */
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #26A9E0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
}

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

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

.page-download__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  margin-left: 15px;
  color: #FFFFFF;
}

.page-download__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: #cccccc;
}

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

/* Final CTA Section */
.page-download__cta-final-section {
  padding: 80px 0;
  background-color: #1a1a2e; /* Dark background */
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-download__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-download__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }
}

@media (max-width: 768px) {
  .page-download {
    font-size: 16px;
    line-height: 1.6;
  }
  
  /* Images, Videos, Buttons must be responsive */
  .page-download img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .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__video-container,
  .page-download__video-wrapper,
  .page-download__cta-buttons,
  .page-download__button-group,
  .page-download__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }

  /* Specific padding for sections that might need it */
  .page-download__hero-section,
  .page-download__why-download-section,
  .page-download__instructions-section,
  .page-download__security-section,
  .page-download__faq-section,
  .page-download__cta-final-section {
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-download__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    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;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px; /* Ensure internal padding for buttons */
    padding-right: 15px;
  }

  .page-download__features-grid,
  .page-download__platform-guide,
  .page-download__security-features {
    grid-template-columns: 1fr; /* Single column layout for grids */
  }

  .page-download__feature-icon,
  .page-download__security-icon {
    width: 200px !important; /* Ensure actual image elements meet minimum size requirement */
    height: 200px !important;
    margin: 0 auto 15px auto;
  }
  
  /* Ensure actual image elements meet minimum size requirement */
  .page-download__feature-item img,
  .page-download__guide-card img,
  .page-download__security-item img {
      min-width: 200px !important;
      min-height: 200px !important;
      width: 100% !important;
      height: auto !important;
  }
}