/* style/download.css */

/* Base styles for the download page */
.page-download {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Default text color for dark backgrounds */
  background-color: #08160F; /* Default background */
}

/* Section backgrounds based on custom colors */
.page-download__dark-bg {
  background-color: #08160F;
  color: #F2FFF6;
}

.page-download__light-bg {
  background-color: #11271B;
  color: #F2FFF6;
}

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

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

.page-download__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Constrain image width */
  margin-bottom: 30px;
}

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

.page-download__hero-content {
  max-width: 900px;
  z-index: 1;
}

.page-download__main-title {
  font-size: clamp(2.5rem, 5vw, 3.2rem);
  font-weight: 700;
  color: #F2FFF6;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-download__hero-description {
  font-size: 1.1rem;
  color: #A7D9B8;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Buttons */
.page-download__btn-primary,
.page-download__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow word breaking */
}

.page-download__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-download__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-download__btn-secondary {
  background: transparent;
  color: #F2FFF6;
  border: 2px solid #2E7A4E;
}

.page-download__btn-secondary:hover {
  background: rgba(46, 122, 78, 0.2);
  transform: translateY(-3px);
}

/* General Section Styles */
.page-download__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #F2FFF6;
  text-align: center;
  margin-bottom: 20px;
  margin-top: 40px;
}

.page-download__section-description {
  font-size: 1.05rem;
  color: #A7D9B8;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
}

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

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

.page-download__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #F2FFF6;
  margin-bottom: 15px;
}

.page-download__card-text {
  font-size: 1rem;
  color: #A7D9B8;
}

/* Why Download Section */
.page-download__why-download-section {
  padding: 80px 0;
}

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

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

.page-download__download-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-download__platform-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #F2FFF6;
  margin-bottom: 25px;
}

.page-download__guide-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
}

.page-download__step-list {
  text-align: left;
  padding-left: 20px;
  list-style-position: inside;
}

.page-download__step-list li {
  color: #A7D9B8;
  margin-bottom: 10px;
  font-size: 1rem;
}

.page-download__step-list li strong {
  color: #F2FFF6;
}

.page-download__step-list li a {
  color: #2AD16F;
  text-decoration: none;
}

.page-download__step-list li a:hover {
  text-decoration: underline;
}

.page-download__tips-box {
  margin-top: 50px;
  text-align: left;
}

.page-download__box-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: #F2FFF6;
  margin-bottom: 20px;
  text-align: center;
}

.page-download__tip-list {
  padding-left: 20px;
  list-style-type: disc;
}

.page-download__tip-list li {
  color: #A7D9B8;
  margin-bottom: 8px;
  font-size: 1rem;
}

.page-download__tip-list li a {
  color: #2AD16F;
  text-decoration: none;
}

.page-download__tip-list li a:hover {
  text-decoration: underline;
}

/* Features Section */
.page-download__features-section {
  padding: 80px 0;
}

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

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

.page-download__item-icon {
  width: 100px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-download__item-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #F2FFF6;
  margin-bottom: 10px;
}

.page-download__item-text {
  font-size: 0.95rem;
  color: #A7D9B8;
}

/* Promotions Section */
.page-download__promotions-section {
  padding: 80px 0;
}

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

.page-download__promotion-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-download__promotion-card .page-download__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-download__promotion-card .page-download__btn-secondary {
  margin-top: auto;
  display: inline-block;
}

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

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

.page-download__faq-item {
  margin-bottom: 20px;
  text-align: left;
  background-color: #11271B;
  border: 1px solid #2E7A4E;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.page-download__faq-item summary {
  display: block;
  cursor: pointer;
  padding: 20px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #F2FFF6;
  position: relative;
  list-style: none;
  user-select: none;
}

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

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-download__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: #2AD16F;
  margin-left: 10px;
}

.page-download__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1rem;
  color: #A7D9B8;
  line-height: 1.7;
}

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

.page-download__faq-answer a {
  color: #2AD16F;
  text-decoration: none;
}

.page-download__faq-answer a:hover {
  text-decoration: underline;
}

/* Conclusion Section */
.page-download__conclusion-section {
  padding: 80px 0;
  text-align: center;
}

.page-download__conclusion-section .page-download__btn-primary {
  margin-top: 30px;
}

/* Image Responsive */
.page-download img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

  .page-download__content-area,
  .page-download__hero-section,
  .page-download__why-download-section,
  .page-download__guide-section,
  .page-download__features-section,
  .page-download__promotions-section,
  .page-download__faq-section,
  .page-download__conclusion-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-download__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-download__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .page-download__section-title {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
  }

  .page-download__hero-description,
  .page-download__section-description,
  .page-download__card-text,
  .page-download__step-list li,
  .page-download__tip-list li,
  .page-download__item-text,
  .page-download__faq-answer {
    font-size: 0.95rem;
  }

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

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

  .page-download__features-grid,
  .page-download__download-steps-grid,
  .page-download__grid-layout,
  .page-download__promotions-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-download__card {
    padding: 25px;
  }

  .page-download__platform-title {
    font-size: 1.6rem;
  }

  .page-download__box-title {
    font-size: 1.4rem;
  }

  .page-download__faq-item summary {
    font-size: 1rem;
    padding: 15px;
  }

  .page-download img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-download__hero-image-wrapper,
  .page-download__download-platform,
  .page-download__feature-card,
  .page-download__promotion-card,
  .page-download__feature-item,
  .page-download__tips-box,
  .page-download__faq-item,
  .page-download__cta-buttons,
  .page-download__button-group,
  .page-download__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure containers hide overflow */
  }
}