.page-download {
  color: #ffffff;
  background-color: #121212;
  font-family: Arial, sans-serif;
}

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

.page-download__hero-section {
  position: relative;
  width: 100%;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  padding-top: var(--header-offset, 120px);
  box-sizing: border-box;
}

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

.page-download__hero-section .page-download__container {
  position: relative;
  z-index: 2;
}

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

.page-download__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.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: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-download__btn-primary {
  background-color: #C30808; /* Custom color for Register/Login */
  color: #FFFF00; /* Custom font color for Register/Login */
  border: 2px solid #C30808;
}

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

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

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

.page-download__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-download__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: #f0f0f0;
}

/* Benefits Section */
.page-download__benefits-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Lighter dark background for contrast */
  color: #ffffff;
}

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

.page-download__benefit-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-download__benefit-card img {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.page-download__card-text {
  font-size: 1em;
  color: #e0e0e0;
}

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

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

.page-download__tab-button {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: none;
  padding: 12px 25px;
  font-size: 1.1em;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-download__tab-button:hover {
  background-color: #017439;
}

.page-download__tab-button--active {
  background-color: #017439;
  color: #ffffff;
}

.page-download__tab-content {
  display: none;
}

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

.page-download__guide-step {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
}

.page-download__guide-step--reverse {
  flex-direction: row-reverse;
}

.page-download__step-text {
  flex: 1;
}

.page-download__step-text h3 {
  font-size: 1.8em;
  color: #017439;
  margin-bottom: 15px;
}

.page-download__step-text p {
  font-size: 1.1em;
  line-height: 1.6;
  color: #e0e0e0;
}

.page-download__guide-step img {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Issues Section */
.page-download__issues-section {
  padding: 80px 0;
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-download__issue-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-download__issue-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-download__issue-title {
  font-size: 1.4em;
  color: #017439;
  margin-bottom: 10px;
}

.page-download__issue-item p {
  font-size: 1em;
  color: #e0e0e0;
  line-height: 1.6;
}

/* Why Choose Section */
.page-download__why-choose-section {
  padding: 80px 0;
  background-color: #121212;
  color: #ffffff;
}

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

.page-download__choice-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-download__choice-card img {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

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

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

.page-download__faq-question h3 {
  font-size: 1.2em;
  color: #ffffff;
  margin: 0;
}

.page-download__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #FFFF00; /* Custom font color for Register/Login */
  transition: transform 0.3s ease;
}

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

.page-download__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-download__faq-item.active .page-download__faq-answer {
  max-height: 1000px !important;
  padding: 20px;
}

.page-download__faq-answer p {
  font-size: 1em;
  line-height: 1.6;
  color: #e0e0e0;
}

/* Bottom CTA Section */
.page-download__cta-bottom-section {
  padding: 60px 0;
  background-color: #017439;
  text-align: center;
  color: #ffffff;
}

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

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

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

  .page-download__guide-step {
    flex-direction: column;
    text-align: center;
  }

  .page-download__guide-step--reverse {
    flex-direction: column;
  }

  .page-download__guide-step img {
    max-width: 80%;
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-download__hero-section {
    height: 500px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding is applied */
  }

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

  .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% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 0 auto;
  }

  .page-download__benefits-section,
  .page-download__guide-section,
  .page-download__issues-section,
  .page-download__why-choose-section,
  .page-download__faq-section,
  .page-download__cta-bottom-section {
    padding: 60px 0;
  }

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

  .page-download__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-download__benefit-card,
  .page-download__issue-item,
  .page-download__choice-card {
    padding: 20px;
  }

  .page-download__card-title,
  .page-download__issue-title {
    font-size: 1.3em;
  }

  .page-download__guide-step img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-download img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-download__section,
  .page-download__card,
  .page-download__container,
  .page-download__guide-step,
  .page-download__benefit-card,
  .page-download__choice-card,
  .page-download__issue-item,
  .page-download__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-download__guide-tabs {
    flex-direction: column;
    gap: 10px;
  }

  .page-download__tab-button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .page-download__hero-section {
    height: 400px;
  }

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

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

  .page-download__btn-primary,
  .page-download__btn-secondary {
    font-size: 0.9em;
    padding: 10px 15px;
  }

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