/* style/download.css */

/* Base styles for page-download, ensuring light text on dark background */
.page-download {
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-download h1, .page-download h2, .page-download h3 {
  color: #F2FFF6; /* Text Main */
  font-weight: bold;
  line-height: 1.2;
}

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

.page-download__section-title {
  font-size: clamp(28px, 4vw, 48px);
  text-align: center;
  margin-bottom: 20px;
  color: #F2C14E; /* Gold for main titles */
}

.page-download__section-description {
  font-size: clamp(16px, 2vw, 20px);
  text-align: center;
  margin-bottom: 40px;
  color: #A7D9B8; /* Text Secondary */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-download__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 0;
  padding-top: 10px; /* Small top padding, body handles header offset */
  text-align: center;
}

.page-download__hero-content {
  max-width: 800px;
  margin-bottom: 40px;
  z-index: 1;
}

.page-download__hero-title {
  font-size: clamp(36px, 5vw, 60px);
  margin-bottom: 15px;
  color: #F2C14E; /* Gold */
}

.page-download__hero-description {
  font-size: clamp(18px, 2.5vw, 24px);
  margin-bottom: 30px;
  color: #F2FFF6; /* Text Main */
}

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

.page-download__btn-primary,
.page-download__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

.page-download__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 0 15px #57E38D; /* Glow */
}

.page-download__btn-secondary {
  background: transparent;
  color: #F2FFF6; /* Text Main */
  border: 2px solid #2E7A4E; /* Border */
}

.page-download__btn-secondary:hover {
  background: #2E7A4E; /* Border */
  color: #F2FFF6;
}

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

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

/* Video Section */
.page-download__video-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green */
}

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

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

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

/* Benefits Section */
.page-download__benefits-section {
  padding: 80px 0;
  background-color: #08160F; /* Background */
}

.page-download__dark-section {
  background-color: #11271B; /* Card BG */
}

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

.page-download__benefit-card {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.page-download__benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.page-download__card-title {
  font-size: 24px;
  margin-bottom: 15px;
  color: #F2C14E; /* Gold */
}

.page-download__benefit-card p {
  color: #A7D9B8; /* Text Secondary */
}

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

.page-download__download-guide {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.page-download__guide-title {
  font-size: 28px;
  margin-bottom: 25px;
  color: #F2C14E; /* Gold */
  text-align: center;
}

.page-download__guide-content {
  display: flex;
  align-items: center;
  gap: 30px;
}

.page-download__guide-content--reverse {
  flex-direction: row-reverse;
}

.page-download__guide-image {
  width: 45%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Ensure min size */
}

.page-download__guide-text {
  flex: 1;
  color: #F2FFF6; /* Text Main */
}

.page-download__guide-text ol,
.page-download__guide-text ul {
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-download__guide-text li {
  margin-bottom: 10px;
  color: #A7D9B8; /* Text Secondary */
}

.page-download__guide-text strong {
  color: #F2FFF6; /* Text Main */
}

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

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

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

.page-download__feature-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Ensure min size */
}

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

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

.page-download__security-image {
  flex: 1;
  min-width: 300px;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  min-width: 200px; /* Ensure min size */
}

.page-download__security-text {
  flex: 2;
  color: #F2FFF6; /* Text Main */
}

.page-download__security-text p {
  margin-bottom: 15px;
  color: #A7D9B8; /* Text Secondary */
}

/* System Requirements Section */
.page-download__system-requirements-section {
  padding: 80px 0;
}

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

.page-download__requirement-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.page-download__requirement-item h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #F2C14E; /* Gold */
}

.page-download__requirement-item ul {
  list-style: disc;
  margin-left: 20px;
}

.page-download__requirement-item li {
  margin-bottom: 8px;
  color: #A7D9B8; /* Text Secondary */
}

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

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

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

.page-download__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 18px;
  color: #F2FFF6; /* Text Main */
  background-color: #0A4B2C; /* Deep Green */
  border-bottom: 1px solid #1E3A2A; /* Divider */
}

.page-download__faq-item summary::-webkit-details-marker {
  display: none;
}

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

.page-download__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  color: #F2C14E; /* Gold */
}

.page-download__faq-item[open] summary .page-download__faq-toggle {
  content: '−';
}

.page-download__faq-answer {
  padding: 20px 25px;
  color: #A7D9B8; /* Text Secondary */
  font-size: 16px;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-download__guide-content {
    flex-direction: column;
    text-align: center;
  }

  .page-download__guide-content--reverse {
    flex-direction: column;
  }

  .page-download__guide-image {
    width: 80%;
    margin-bottom: 30px;
  }

  .page-download__security-content {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .page-download__container {
    padding: 0 15px;
  }

  .page-download__hero-section,
  .page-download__video-section,
  .page-download__benefits-section,
  .page-download__how-to-download-section,
  .page-download__features-section,
  .page-download__security-section,
  .page-download__system-requirements-section,
  .page-download__faq-section,
  .page-download__cta-final-section {
    padding: 40px 0; /* Adjust padding for mobile */
  }

  /* Mobile image responsiveness */
  .page-download img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Mobile video responsiveness */
  .page-download video,
  .page-download__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-download__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
  }

  /* Mobile button responsiveness */
  .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;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-download__download-guide,
  .page-download__benefit-card,
  .page-download__feature-card,
  .page-download__requirement-item,
  .page-download__faq-item,
  .page-download__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 */
  }

  .page-download__hero-section {
    padding-top: 10px !important; /* body handles --header-offset, this is decorative */
  }
  
  .page-download__video-section {
    padding-top: 10px !important;
  }

  .page-download__guide-image {
    width: 100%;
  }
  
  .page-download__security-image {
    width: 100%;
  }
}