.page-download {
  color: #ffffff; /* Light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-download__hero-section {
  background-color: #1A202C;
  padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-download__hero-content {
  position: relative;
  z-index: 2;
  padding: 60px 20px;
  max-width: 800px;
}

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

.page-download__hero-description {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 40px;
}

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

.page-download__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  font-size: 1.1em;
}

.page-download__button--primary {
  background-color: #FFD700;
  color: #1A202C;
}

.page-download__button--primary:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

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

.page-download__button--secondary:hover {
  background-color: #FFD700;
  color: #1A202C;
  transform: translateY(-3px);
}

.page-download__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.page-download__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  filter: grayscale(100%); /* Maintain original color, but apply grayscale for background effect */
}

/* General Section Styling */
.page-download__section-title {
  font-size: 2.5em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  padding-bottom: 15px;
}

.page-download__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FFD700;
  border-radius: 2px;
}

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

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

.page-download__benefit-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid transparent;
}

.page-download__benefit-card:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.15);
  border-color: #FFD700;
}

.page-download__benefit-icon {
  width: 100%;
  height: auto;
  max-width: 400px; /* Ensure images are not too small */
  min-width: 200px;
  min-height: 200px;
  object-fit: contain;
  margin: 0 auto 20px auto;
  border-radius: 8px;
  display: block;
}

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

.page-download__benefit-description {
  color: #cccccc;
  font-size: 0.95em;
}

.page-download__cta-wrapper {
  text-align: center;
  margin-top: 50px;
}

.page-download__button--cta {
  background-color: #FFD700;
  color: #1A202C;
  padding: 18px 40px;
  font-size: 1.2em;
  border-radius: 10px;
}

.page-download__button--cta:hover {
  background-color: #e6c200;
  transform: translateY(-5px);
}

/* Download Guide Section */
.page-download__download-guide-section {
  background-color: #2a303c;
  padding: 80px 0;
}

.page-download__guide-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  gap: 20px;
  flex-wrap: wrap;
}

.page-download__tab-button {
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFD700;
  border: 1px solid #FFD700;
  padding: 12px 25px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1em;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-download__tab-button:hover {
  background-color: #FFD700;
  color: #1A202C;
}

.page-download__tab-button--active {
  background-color: #FFD700;
  color: #1A202C;
  border-color: #FFD700;
}

.page-download__tab-content {
  display: none;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-download__tab-content--active {
  display: block;
}

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

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

.page-download__installation-steps li {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 20px 25px;
  margin-bottom: 15px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 1em;
  border-left: 5px solid #FFD700;
}

.page-download__installation-steps li strong {
  color: #FFD700;
  font-size: 1.1em;
  display: block;
  margin-bottom: 5px;
}

.page-download__guide-image {
  width: 100%;
  height: auto;
  max-width: 600px; /* Ensure images are not too small */
  min-width: 200px;
  min-height: 200px;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-download__button--tab {
  display: block;
  width: fit-content;
  margin: 0 auto;
  background-color: #FFD700;
  color: #1A202C;
}

.page-download__button--tab:hover {
  background-color: #e6c200;
}

/* Pre-Installation Section */
.page-download__pre-install-section {
  background-color: #1A202C;
  padding: 80px 0;
}

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

.page-download__checklist-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.3s ease;
}

.page-download__checklist-item:hover {
  border-color: #FFD700;
}

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

.page-download__checklist-description {
  color: #cccccc;
}

/* FAQ Section */
.page-download__faq-section {
  background-color: #2a303c;
  padding: 80px 0;
}

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

.page-download__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  color: #FFD700;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.page-download__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-download__faq-item[open] .page-download__faq-question {
  border-bottom-color: transparent;
}

.page-download__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-download__faq-item[open] .page-download__faq-toggle {
  transform: rotate(45deg);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-download__hero-title {
    font-size: 2.8em;
  }

  .page-download__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-download__hero-section {
    flex-direction: column;
    padding-top: var(--header-offset, 120px);
  }

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

  .page-download__hero-title {
    font-size: 2.2em;
  }

  .page-download__hero-description {
    font-size: 1em;
  }

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

  .page-download__button {
    width: 100%;
    max-width: 300px;
  }

  .page-download__benefits-section, .page-download__download-guide-section, .page-download__pre-install-section, .page-download__faq-section {
    padding: 50px 0;
  }

  .page-download__section-title {
    font-size: 1.8em;
    margin-bottom: 40px;
  }

  .page-download__benefits-grid {
    grid-template-columns: 1fr;
  }

  .page-download__tab-content {
    padding: 30px 20px;
  }

  .page-download__tab-content-title {
    font-size: 1.6em;
  }

  .page-download__installation-steps li {
    padding: 15px 20px;
  }

  .page-download__checklist-grid {
    grid-template-columns: 1fr;
  }

  .page-download__faq-question {
    font-size: 1.1em;
    padding: 18px 20px;
  }

  .page-download__faq-answer {
    padding: 0 20px 15px 20px;
  }

  .page-download__hero-image-wrapper {
    position: relative;
    height: 250px;
    margin-top: 30px;
  }

  .page-download__hero-image {
    position: static;
    opacity: 0.15;
  }

  /* Critical: Prevent content overflow for images */
  .page-download img {
    max-width: 100%;
    height: auto;
  }

  .page-download__benefit-icon, .page-download__guide-image {
    min-width: 200px;
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-download__hero-title {
    font-size: 1.8em;
  }

  .page-download__hero-description {
    font-size: 0.9em;
  }

  .page-download__section-title {
    font-size: 1.5em;
  }

  .page-download__button {
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-download__tab-button {
    padding: 10px 18px;
    font-size: 0.9em;
  }

  .page-download__tab-content-title {
    font-size: 1.4em;
  }

  .page-download__faq-question {
    font-size: 1em;
  }
}