.page-download {
  font-family: 'Arial', sans-serif;
  background-color: var(--background-color, #f5f5f5); /* Fallback to light gray if shared.css doesn't define */
  color: var(--text-color, #333333); /* Default text color for light backgrounds */
  line-height: 1.6;
}

/* Hero Section */
.page-download__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  background-color: #B71C1C; /* Custom background color */
  color: #FFF5E1; /* Custom text color for dark background */
}

.page-download__hero-image-wrapper {
  width: 100%;
  height: 600px; /* Fixed height for desktop hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-download__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-download__hero-content {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: center;
  position: relative;
  z-index: 1; /* Ensure content is above any potential background effects */
}

.page-download__title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFF5E1; /* Custom text color for dark background */
  max-width: 100%; /* Ensure H1 doesn't overflow */
}

.page-download__description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #FFF5E1; /* Custom text color for dark background */
}

.page-download__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%; /* Ensure container takes full width */
  max-width: 100%; /* Ensure container takes full width */
  box-sizing: border-box; /* Include padding and border in width */
  overflow: hidden; /* Hide overflow content */
}

.page-download__btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 220px;
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  max-width: 100%; /* Ensure button doesn't overflow */
}

.page-download__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom button gradient */
  color: #7A0E0E; /* Deep Red text for contrast with gold button */
  border: 2px solid #F2B544; /* Custom border color */
  box-shadow: 0 4px 15px rgba(255, 204, 102, 0.4); /* Custom glow effect */
}

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

.page-download__btn-secondary {
  background: #C91F17; /* Main brand color */
  color: #FFF5E1; /* Custom text color */
  border: 2px solid #F2B544; /* Custom border color */
}

.page-download__btn-secondary:hover {
  background: #E53935; /* Auxiliary brand color */
  transform: translateY(-3px);
}

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

.page-download__section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #C91F17; /* Main brand color */
}

.page-download__text-main {
  color: #FFF5E1; /* Custom text color for dark backgrounds */
}

/* Features Section */
.page-download__features-section {
  padding: 60px 0;
  background-color: #f9f9f9; /* Light background for contrast */
}

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

.page-download__feature-item {
  background-color: #D32F2F; /* Custom Card BG color */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  color: #FFF5E1; /* Custom text color for dark background */
}

.page-download__feature-image {
  width: 100%;
  height: 200px; /* Fixed height for feature images */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-download__feature-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #F4D34D; /* Custom Gold color */
}

.page-download__feature-text {
  font-size: 16px;
}

/* Guide Section */
.page-download__guide-section {
  padding: 60px 0;
  background-color: #ffffff;
}

.page-download__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-download__guide-step {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-download__guide-step:hover {
  transform: translateY(-5px);
  border-color: #C91F17;
}

.page-download__step-number {
  font-size: 36px;
  font-weight: bold;
  color: #C91F17; /* Main brand color */
  margin-bottom: 15px;
}

.page-download__step-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333333;
}

.page-download__step-text {
  font-size: 15px;
  color: #555555;
}

.page-download__guide-image-wrapper {
  text-align: center;
  margin-top: 40px;
}

.page-download__guide-image {
  max-width: 800px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  display: block;
  margin: 0 auto;
}

/* FAQ Section */
.page-download__faq-section {
  padding: 60px 0;
  background-color: #B71C1C; /* Custom background color */
  color: #FFF5E1; /* Custom text color for dark background */
}

.page-download__faq-section .page-download__section-title {
  color: #FFF5E1; /* Custom text color for dark background */
}

details.page-download__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #F2B544; /* Custom border color */
  overflow: hidden;
  background: #D32F2F; /* Custom Card BG color */
}
details.page-download__faq-item summary.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-download__faq-item summary.page-download__faq-question::-webkit-details-marker {
  display: none;
}
details.page-download__faq-item summary.page-download__faq-question:hover {
  background: #7A0E0E; /* Deep Red for hover */
}
.page-download__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF5E1; /* Custom text color for dark background */
}
.page-download__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #F4D34D; /* Custom Gold color */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-download__faq-item .page-download__faq-answer {
  padding: 0 20px 20px;
  background: #7A0E0E; /* Deep Red for answer background */
  border-radius: 0 0 8px 8px;
  color: #FFF5E1; /* Custom text color for dark background */
}
.page-download__faq-answer p {
  margin: 0;
}

/* Final CTA Section */
.page-download__final-cta {
  padding: 60px 0;
  text-align: center;
  background-color: #C91F17; /* Main brand color */
  color: #FFF5E1; /* Custom text color for dark background */
}

.page-download__final-cta .page-download__section-title {
  color: #FFF5E1; /* Custom text color for dark background */
}

.page-download__final-cta .page-download__description {
  margin-bottom: 40px;
}

.page-download__btn-large {
  padding: 18px 40px;
  font-size: 20px;
  min-width: 280px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-download__hero-image-wrapper {
    height: 500px;
  }
  .page-download__title {
    font-size: 40px;
  }
  .page-download__description {
    font-size: 16px;
  }
  .page-download__section-title {
    font-size: 32px;
  }
  .page-download__features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-download__feature-image {
    height: 180px;
  }
  .page-download__feature-title {
    font-size: 22px;
  }
  .page-download__guide-image {
    max-width: 600px;
  }
}

@media (max-width: 768px) {
  /* General */
  .page-download {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-download__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Hero Section */
  .page-download__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
  }
  .page-download__hero-image-wrapper {
    height: 300px;
  }
  .page-download__title {
    font-size: 32px;
    margin-bottom: 15px;
  }
  .page-download__description {
    font-size: 15px;
    margin-bottom: 25px;
  }
  .page-download__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px; /* Add padding to container */
  }
  .page-download__btn-download {
    width: 100% !important; /* Full width for buttons */
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    min-width: unset; /* Reset min-width */
  }

  /* Section Titles */
  .page-download__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  /* Features Section */
  .page-download__features-section {
    padding: 40px 0;
  }
  .page-download__features-grid {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
  }
  .page-download__feature-item {
    padding: 25px;
  }
  .page-download__feature-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    height: 150px; /* Smaller height for feature images */
  }
  .page-download__feature-title {
    font-size: 20px;
  }
  .page-download__feature-text {
    font-size: 14px;
  }

  /* Guide Section */
  .page-download__guide-section {
    padding: 40px 0;
  }
  .page-download__guide-steps {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
    margin-bottom: 30px;
  }
  .page-download__guide-step {
    padding: 20px;
  }
  .page-download__step-number {
    font-size: 30px;
  }
  .page-download__step-title {
    font-size: 18px;
  }
  .page-download__step-text {
    font-size: 14px;
  }
  .page-download__guide-image-wrapper {
    margin-top: 30px;
  }
  .page-download__guide-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* FAQ Section */
  .page-download__faq-section {
    padding: 40px 0;
  }
  details.page-download__faq-item summary.page-download__faq-question {
    padding: 15px;
  }
  .page-download__faq-qtext {
    font-size: 16px;
  }
  details.page-download__faq-item .page-download__faq-answer {
    padding: 0 15px 15px;
  }

  /* Final CTA Section */
  .page-download__final-cta {
    padding: 40px 0;
  }
  .page-download__final-cta .page-download__description {
    margin-bottom: 30px;
  }
  .page-download__btn-large {
    padding: 15px 30px;
    font-size: 18px;
  }
}