.page-promo {
  color: #333333; /* Dark text for light body background */
  line-height: 1.6;
  font-family: Arial, sans-serif;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-promo__hero-section {
  position: relative;
  overflow: hidden;
  color: #FFFFFF;
  text-align: center;
  padding: 0;
}

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

.page-promo__hero-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  padding: 20px;
}

.page-promo__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-promo__hero-description {
  font-size: 1.3em;
  max-width: 800px;
  margin-bottom: 30px;
  color: #F0F0F0;
}

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

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

.page-promo__button--register {
  background-color: #FFFFFF;
  color: #000000;
}

.page-promo__button--register:hover {
  background-color: #F0F0F0;
  transform: translateY(-2px);
}

.page-promo__button--login {
  background-color: #FCBC45;
  color: #000000;
}

.page-promo__button--login:hover {
  background-color: #E0A73C;
  transform: translateY(-2px);
}

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

.page-promo__section {
  padding: 60px 0;
  text-align: center;
}

.page-promo__section:nth-of-type(odd) {
  background-color: #F8F8F8;
}

.page-promo__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #000000;
}

.page-promo__section-description {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #555555;
}

.page-promo__grid {
  display: grid;
  gap: 30px;
  margin-top: 40px;
  justify-content: center;
}

.page-promo__grid--two-columns {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.page-promo__grid--three-columns {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.page-promo__card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 400px; /* Ensure cards have a consistent minimum height */
}

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

.page-promo__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

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

.page-promo__card-title a {
  text-decoration: none;
  color: #000000;
  transition: color 0.3s ease;
}

.page-promo__card-title a:hover {
  color: #FCBC45;
}

.page-promo__card-description {
  font-size: 1em;
  color: #666666;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promo__button--view-details {
  background-color: #FCBC45;
  color: #000000;
  padding: 10px 20px;
  font-size: 0.9em;
  border-radius: 5px;
  margin-top: auto; /* Push button to the bottom */
}

.page-promo__button--view-details:hover {
  background-color: #E0A73C;
}

.page-promo__text-callout {
  font-size: 1.2em;
  margin-top: 50px;
  color: #000000;
}

.page-promo__text-callout a {
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
}

.page-promo__text-callout a:hover {
  text-decoration: underline;
}

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

.page-promo__feature-item {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: left;
}

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

.page-promo__feature-description {
  font-size: 0.95em;
  color: #666666;
}

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

.page-promo__step-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-promo__step-description {
  font-size: 0.95em;
  color: #666666;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promo__button--small {
  padding: 8px 15px;
  font-size: 0.85em;
  background-color: #FCBC45;
  color: #000000;
  border-radius: 5px;
  margin-top: auto;
}

.page-promo__button--small:hover {
  background-color: #E0A73C;
}

.page-promo__button--responsible {
  background-color: #000000;
  color: #FFFFFF;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 40px;
}

.page-promo__button--responsible:hover {
  background-color: #333333;
}

.page-promo__app-image {
  max-width: 400px;
  height: auto;
  margin-top: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-promo__button--download {
  background-color: #FCBC45;
  color: #000000;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 40px;
  display: inline-block;
}

.page-promo__button--download:hover {
  background-color: #E0A73C;
}

.page-promo__faq-item {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  padding: 25px;
  margin-bottom: 20px;
  text-align: left;
}

.page-promo__faq-question {
  font-size: 1.3em;
  color: #000000;
  margin-bottom: 10px;
}

.page-promo__faq-answer {
  font-size: 1em;
  color: #555555;
}

.page-promo__call-to-action {
  margin-top: 40px;
}

.page-promo__button--subscribe {
  background-color: #000000;
  color: #FFFFFF;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
}

.page-promo__button--subscribe:hover {
  background-color: #333333;
}

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

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

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

  .page-promo__grid--two-columns, .page-promo__grid--three-columns {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-promo__hero-content {
    padding: 15px;
  }

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

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

  .page-promo__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-promo__button {
    width: 80%;
    max-width: 300px;
    padding: 12px 20px;
  }

  .page-promo__section {
    padding: 40px 0;
  }

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

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

  .page-promo__container {
    padding: 20px;
  }

  .page-promo__grid--two-columns, .page-promo__grid--three-columns, .page-promo__features-list, .page-promo__steps-grid {
    grid-template-columns: 1fr;
  }

  .page-promo__card {
    min-height: auto;
  }

  .page-promo__card-image, .page-promo__app-image {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
  }

  .page-promo__button--download, .page-promo__button--responsible, .page-promo__button--subscribe {
    width: 90%;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Critical: prevent content overflow on mobile */
  .page-promo img {
    max-width: 100%;
    height: auto;
  }

  .page-promo {
    overflow-x: hidden;
  }
}

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

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

  .page-promo__button {
    width: 95%;
    padding: 10px 15px;
    font-size: 1em;
  }

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

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

  .page-promo__step-title {
    font-size: 1.3em;
  }
}