/* style/download.css */

/* Base styles for the download page */
.page-download {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Inherited from body, but reinforce for consistency */
}

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

/* Section styles */
.page-download__hero-section,
.page-download__why-download,
.page-download__how-to-download,
.page-download__app-features,
.page-download__system-requirements,
.page-download__faq-section,
.page-download__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-download__dark-bg {
  background-color: #1A1A1A;
  color: #ffffff;
}

.page-download__light-bg {
  background-color: #f5f5f5;
  color: #333333;
}

.page-download__section-title,
.page-download__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FFD700;
}

.page-download__section-intro,
.page-download__cta-description {
  font-size: 1.1em;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Hero Section */
.page-download__hero-section {
  padding-top: calc(var(--header-offset, 120px) + 60px); /* Adjust for fixed header */
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
}

.page-download__hero-title {
  font-size: 3.5em;
  color: #FFD700;
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.2;
}

.page-download__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 900px;
  line-height: 1.6;
}

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

.page-download__btn-download img {
  margin-right: 10px;
  vertical-align: middle;
   /* Ensure image size is large enough */
  
  min- /* Prevent shrinking below 48px */
  min-
}

.page-download__hero-image {
  max-width: 800px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* General Buttons */
.page-download__btn-primary,
.page-download__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-download__btn-primary {
  background-color: #FFD700;
  color: #1A1A1A;
  border: 2px solid #FFD700;
}

.page-download__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

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

.page-download__btn-secondary:hover {
  background-color: #FFD700;
  color: #1A1A1A;
}

.page-download__btn-large {
  padding: 18px 35px;
  font-size: 1.2em;
}

/* Why Download Section */
.page-download__why-download .page-download__section-title,
.page-download__why-download .page-download__section-intro {
  color: #333333;
}

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

.page-download__feature-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: #333333;
}

.page-download__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  min-width: 100px; /* Ensure icon size is not too small */
  min-height: 100px;
}

.page-download__feature-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-download__feature-description {
  font-size: 1em;
  line-height: 1.5;
  color: #555555;
}

/* How To Download Section */
.page-download__how-to-download .page-download__section-title,
.page-download__how-to-download .page-download__section-intro {
  color: #ffffff;
}

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

.page-download__guide-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: left;
  flex: 1;
  min-width: 300px;
  max-width: 550px;
  color: #ffffff;
}

.page-download__guide-title {
  font-size: 2em;
  color: #FFD700;
  margin-bottom: 25px;
  text-align: center;
}

.page-download__guide-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-download__guide-list li {
  margin-bottom: 15px;
  line-height: 1.6;
  font-size: 1.05em;
}

.page-download__list-step {
  color: #FFD700;
  display: block;
  margin-bottom: 5px;
}

.page-download__guide-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin-top: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* App Features Section */
.page-download__app-features .page-download__section-title,
.page-download__app-features .page-download__section-intro {
  color: #333333;
}

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

.page-download__feature-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  color: #333333;
}

.page-download__card-title {
  font-size: 1.6em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-download__card-description {
  font-size: 1em;
  line-height: 1.5;
  color: #555555;
}

/* System Requirements Section */
.page-download__system-requirements .page-download__section-title,
.page-download__system-requirements .page-download__section-intro {
  color: #ffffff;
}

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

.page-download__requirement-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  flex: 1;
  min-width: 280px;
  max-width: 450px;
  color: #ffffff;
}

.page-download__requirement-platform {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 20px;
  text-align: center;
}

.page-download__requirement-list {
  list-style: disc;
  margin-left: 20px;
  font-size: 1.05em;
  line-height: 1.8;
}

.page-download__requirement-list li {
  margin-bottom: 10px;
}

/* FAQ Section */
.page-download__faq-section .page-download__section-title,
.page-download__faq-section .page-download__section-intro {
  color: #333333;
}

.page-download__faq-list {
  max-width: 800px;
  margin: 50px auto 0 auto;
  text-align: left;
}

.page-download__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #f9f9f9;
  transition: background-color 0.3s ease;
}

.page-download__faq-question:hover {
  background-color: #f0f0f0;
}

.page-download__faq-toggle {
  font-size: 1.5em;
  font-weight: normal;
  color: #FFD700;
  transition: transform 0.3s ease;
}

.page-download__faq-item.active .page-download__faq-toggle {
  transform: rotate(45deg);
  color: #1A1A1A;
}

.page-download__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
  background-color: #ffffff;
}

.page-download__faq-item.active .page-download__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to contain content */
  padding: 15px 25px;
}

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

/* CTA Section */
.page-download__cta-section {
  background-color: #1A1A1A;
  color: #ffffff;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-download__hero-title {
    font-size: 3em;
  }
  .page-download__section-title,
  .page-download__cta-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-download__hero-section {
    padding: calc(var(--header-offset, 120px) + 30px) 20px 60px 20px;
    min-height: auto;
  }
  .page-download__hero-title {
    font-size: 2.5em;
  }
  .page-download__hero-description {
    font-size: 1.1em;
  }
  .page-download__section-title,
  .page-download__cta-title {
    font-size: 2em;
  }
  .page-download__section-intro,
  .page-download__cta-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-download__download-buttons,
  .page-download__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 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__container {
    padding: 0 15px;
  }
  .page-download__hero-image,
  .page-download__guide-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-download img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-download__section,
  .page-download__card,
  .page-download__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-download__hero-section,
  .page-download__why-download,
  .page-download__how-to-download,
  .page-download__app-features,
  .page-download__system-requirements,
  .page-download__faq-section,
  .page-download__cta-section {
    padding: 60px 0;
  }
  .page-download__feature-item,
  .page-download__guide-card,
  .page-download__feature-card,
  .page-download__requirement-item {
    min-width: unset;
    max-width: 100%;
  }
  .page-download__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-download__faq-answer {
    padding: 0 20px;
  }
  .page-download__faq-item.active .page-download__faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-download__hero-title {
    font-size: 2em;
  }
  .page-download__section-title,
  .page-download__cta-title {
    font-size: 1.8em;
  }
  .page-download__btn-primary,
  .page-download__btn-secondary {
    font-size: 1em;
    padding: 12px 20px;
  }
}