/* style/download.css */

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

.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, 42px);
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

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

.page-download__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
}

.page-download__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
  max-width: 1200px; /* Example display width, use 1920x1080 for placeholder */
}

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

.page-download__main-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.page-download__description {
  font-size: clamp(18px, 2.5vw, 22px);
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
  line-height: 1.5;
}

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

/* Buttons */
.page-download__btn-primary,
.page-download__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%;
  width: auto; /* Default width for desktop */
}

.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: #2AD16F; /* Button color, ensure contrast */
  border: 2px solid #2AD16F; /* Border */
}

.page-download__btn-secondary:hover {
  background: #2AD16F;
  color: #F2FFF6;
  box-shadow: 0 0 15px #57E38D; /* Glow */
}

/* Why Download Section */
.page-download__why-download-section {
  padding: 80px 0;
  background: #0A4B2C; /* Deep Green */
}

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

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

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

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

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

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

.page-download__step-block {
  margin-bottom: 60px;
  text-align: center;
}

.page-download__step-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
}

.page-download__step-text {
  font-size: 17px;
  color: #A7D9B8; /* Text Secondary */
  max-width: 900px;
  margin: 0 auto 25px auto;
}

.page-download__step-image {
  width: 100%;
  height: auto;
  display: block;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E; /* Border */
}

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

.page-download__platform-card {
  background: #11271B; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E; /* Border */
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

.page-download__platform-title {
  font-size: 22px;
  font-weight: 700;
  color: #2AD16F; /* Button color, ensure contrast */
  margin-bottom: 15px;
}

.page-download__platform-image {
  width: 100%;
  height: auto;
  display: block;
  max-width: 400px;
  margin: 20px auto 0 auto;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-download__cta-buttons--horizontal {
  margin-top: 30px;
}

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

.page-download__features-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
}

.page-download__feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-download__feature-item:nth-child(even) {
  flex-direction: column-reverse;
}

.page-download__item-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
}

.page-download__item-text {
  font-size: 17px;
  color: #A7D9B8; /* Text Secondary */
  max-width: 800px;
  margin-bottom: 30px;
}

.page-download__item-image {
  width: 100%;
  height: auto;
  display: block;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E; /* Border */
}

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

.page-download__requirements-list {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

.page-download__requirement-item {
  background: #11271B; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E; /* Border */
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

.page-download__requirement-item h3 {
  font-size: 22px;
  font-weight: 700;
  color: #2AD16F; /* Button color */
  margin-bottom: 20px;
}

.page-download__requirement-item ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.page-download__requirement-item li {
  font-size: 16px;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.page-download__requirement-item li::before {
  content: '✅';
  position: absolute;
  left: 0;
  color: #57E38D; /* Glow */
}

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

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

.page-download__faq-item {
  background: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  background: #11271B; /* Card BG */
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
  list-style: none;
}

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

.page-download__faq-item[open] > .page-download__faq-question {
  background: #1E3A2A; /* Divider */
  border-bottom: 1px solid #2E7A4E; /* Border */
}

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

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

.page-download__faq-answer {
  padding: 15px 25px 20px 25px;
  font-size: 16px;
  color: #A7D9B8; /* Text Secondary */
  text-align: left;
  line-height: 1.6;
}

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

/* Responsive adjustments */
@media (min-width: 769px) {
  .page-download__feature-item:nth-child(even) {
    flex-direction: row;
  }
  .page-download__feature-item:nth-child(odd) {
    flex-direction: row-reverse;
  }
  .page-download__feature-item .page-download__item-text {
    text-align: left;
  }
  .page-download__feature-item:nth-child(even) .page-download__item-text {
    text-align: right;
  }
  .page-download__feature-item .page-download__item-title {
    text-align: left;
  }
  .page-download__feature-item:nth-child(even) .page-download__item-title {
    text-align: right;
  }
  .page-download__feature-item .page-download__item-image {
    margin: 0 30px;
  }
  .page-download__features-list {
    gap: 100px;
  }
}

@media (max-width: 768px) {
  .page-download__container {
    padding-left: 15px;
    padding-right: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-download__hero-section,
  .page-download__why-download-section,
  .page-download__how-to-download-section,
  .page-download__app-features-section,
  .page-download__system-requirements-section,
  .page-download__faq-section,
  .page-download__cta-final-section {
    padding: 40px 0;
  }

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

  .page-download__download-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

  .page-download__feature-card,
  .page-download__platform-card,
  .page-download__requirement-item {
    padding: 20px;
    min-width: unset;
    width: 100%;
    max-width: 100%;
  }

  .page-download__platform-guide {
    flex-direction: column;
    gap: 20px;
  }

  .page-download__feature-icon,
  .page-download__platform-image,
  .page-download__step-image,
  .page-download__item-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

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

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

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

  .page-download__hero-section {
    padding-bottom: 40px;
  }

  .page-download__item-text,
  .page-download__feature-text,
  .page-download__requirement-item li {
    font-size: 15px;
  }

  .page-download__section-title {
    margin-bottom: 15px;
  }

  .page-download__section-description {
    margin-bottom: 25px;
  }

  .page-download__features-list {
    gap: 40px;
  }
  .page-download__feature-item:nth-child(even) {
    flex-direction: column;
  }
  .page-download__feature-item:nth-child(odd) {
    flex-direction: column;
  }
  .page-download__feature-item .page-download__item-text,
  .page-download__feature-item:nth-child(even) .page-download__item-text,
  .page-download__feature-item .page-download__item-title,
  .page-download__feature-item:nth-child(even) .page-download__item-title {
    text-align: center;
  }
  .page-download__feature-item .page-download__item-image {
    margin: 20px auto;
  }
}