.page-download {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Ensure body background is dark */
}

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

/* Hero Section */
.page-download__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

.page-download__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-download__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2;
}

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

.page-download__hero-title {
  font-size: 3.5em;
  color: #CC0000;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

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

.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: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons are responsive */
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-download__btn-primary {
  background-color: #CC0000;
  color: #ffffff;
  border: 2px solid #CC0000;
}

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

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

.page-download__btn-secondary:hover {
  background-color: #CC0000;
  color: #ffffff;
}

/* General Section Styling */
.page-download__why-download-section,
.page-download__how-to-download-section,
.page-download__features-section,
.page-download__cta-banner-section,
.page-download__faq-section,
.page-download__conclusion-section {
  padding: 80px 0;
}

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

.page-download__light-bg {
  background-color: #1a1a1a;
  color: #f0f0f0;
}

.page-download__section-title {
  font-size: 2.8em;
  text-align: center;
  margin-bottom: 20px;
  color: #CC0000;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-download__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 60px auto;
  line-height: 1.6;
  color: #cccccc;
}

.page-download__section-intro a {
  color: #CC0000;
  text-decoration: none;
}

.page-download__section-intro a:hover {
  text-decoration: underline;
}

/* Feature Grid */
.page-download__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-download__feature-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-download__feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-download__feature-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

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

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

.page-download__feature-description a {
  color: #CC0000;
  text-decoration: none;
}

.page-download__feature-description a:hover {
  text-decoration: underline;
}

/* How-To-Download Steps */
.page-download__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-download__step-item {
  background-color: rgba(0, 0, 0, 0.3);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-download__step-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #CC0000;
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  border: 3px solid #333333;
  z-index: 1;
}

.page-download__step-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  object-fit: cover;
}

.page-download__step-title {
  font-size: 1.4em;
  color: #CC0000;
  margin-bottom: 15px;
  margin-top: 20px;
}

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

.page-download__step-description a {
  color: #CC0000;
  text-decoration: none;
}

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

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

/* Features List */
.page-download__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin: 0 auto 60px auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  background-color: #000;
}

.page-download__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

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

.page-download__feature-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-download__feature-item-title {
  font-size: 1.4em;
  color: #CC0000;
  margin-bottom: 10px;
}

.page-download__feature-item-title a {
  color: #CC0000;
  text-decoration: none;
}

.page-download__feature-item-title a:hover {
  text-decoration: underline;
}

.page-download__feature-item-description {
  font-size: 1em;
  color: #cccccc;
  line-height: 1.6;
}

/* CTA Banner Section */
.page-download__cta-banner-section {
  background-color: #CC0000;
  color: #ffffff;
  padding: 60px 0;
}

.page-download__cta-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.page-download__cta-content {
  flex: 1;
  text-align: left;
}

.page-download__cta-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-download__cta-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-download__cta-description a {
  color: #f0f0f0;
  text-decoration: underline;
}

.page-download__cta-description a:hover {
  color: #ffffff;
}

.page-download__cta-image {
  flex-shrink: 0;
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  object-fit: cover;
}

/* FAQ Section */
.page-download__faq-list {
  margin-top: 40px;
}

.page-download__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15);
  transition: background-color 0.3s ease;
}

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

.page-download__faq-item-title {
  font-size: 1.2em;
  color: #CC0000;
  margin: 0;
}

.page-download__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #CC0000;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-download__faq-item.active .page-download__faq-toggle {
  transform: rotate(45deg); /* Change + to X or - */
}

.page-download__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #cccccc;
  background-color: rgba(255, 255, 255, 0.05);
}

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

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

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

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-download__hero-title {
    font-size: 3em;
  }
  .page-download__hero-description {
    font-size: 1.2em;
  }
  .page-download__section-title {
    font-size: 2.5em;
  }
  .page-download__cta-flex {
    flex-direction: column;
    text-align: center;
  }
  .page-download__cta-content {
    text-align: center;
  }
  .page-download__cta-image {
    order: -1;
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-download__hero-section {
    min-height: 500px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
  }
  .page-download__hero-title {
    font-size: 2.2em;
  }
  .page-download__hero-description {
    font-size: 1em;
  }
  .page-download__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-download__btn-primary,
  .page-download__btn-secondary {
    width: 100%;
    padding: 12px 20px;
    font-size: 1em;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-download__section-title {
    font-size: 2em;
  }
  .page-download__section-intro {
    font-size: 0.95em;
    margin-bottom: 40px;
  }
  .page-download__why-download-section,
  .page-download__how-to-download-section,
  .page-download__features-section,
  .page-download__cta-banner-section,
  .page-download__faq-section,
  .page-download__conclusion-section {
    padding: 50px 0;
  }
  .page-download__feature-grid,
  .page-download__steps-grid,
  .page-download__feature-list {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-download__feature-card,
  .page-download__step-item,
  .page-download__feature-item {
    padding: 25px;
  }
  .page-download__cta-title {
    font-size: 1.8em;
  }
  .page-download__cta-description {
    font-size: 1em;
  }
  .page-download__cta-image {
    max-width: 100%;
  }
  .page-download__faq-question {
    padding: 15px 20px;
  }
  .page-download__faq-item-title {
    font-size: 1.1em;
  }
  .page-download__faq-answer {
    padding: 10px 20px;
  }
  .page-download__faq-item.active .page-download__faq-answer {
    padding: 15px 20px;
  }
  /* Mobile content area image rules */
  .page-download img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-download__container,
  .page-download__hero-content,
  .page-download__cta-flex,
  .page-download__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
  .page-download__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-download__video-wrapper {
    padding-bottom: 56.25% !important; /* Ensure aspect ratio */
    height: 0 !important;
  }
  .page-download__feature-icon,
  .page-download__step-image,
  .page-download__cta-image {
    min-width: 200px !important;
    min-height: 200px !important;
  }
}

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