/* style/promo.css */
.page-promo {
  padding-top: var(--header-offset, 120px); /* Ensures content starts below fixed header */
  background-color: #f8f8f8; /* Light background for the page content */
  color: #333333; /* Dark text for readability */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-promo__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  background-color: #1A237E; /* Main brand color for the overlay */
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

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

.page-promo__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Overlay with main color for contrast */
}

.page-promo__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.page-promo__main-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #FFC107; /* Auxiliary color for emphasis */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-promo__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  line-height: 1.8;
}

.page-promo__cta-button {
  display: inline-block;
  background-color: #FFC107; /* Auxiliary color */
  color: #1A237E; /* Main color for text */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-promo__cta-button:hover {
  background-color: #e6b000; /* Slightly darker gold on hover */
  transform: translateY(-3px);
}

.page-promo__overview-section,
.page-promo__promo-cards-section,
.page-promo__terms-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-promo__section-title {
  font-size: 2.2em;
  color: #1A237E; /* Main brand color */
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}

.page-promo__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #FFC107; /* Auxiliary color */
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-promo__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 25px;
  line-height: 1.7;
}

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

.page-promo__promo-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promo__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-promo__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.page-promo__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-promo__card-title {
  font-size: 1.6em;
  color: #1A237E; /* Main brand color */
  margin-bottom: 15px;
}

.page-promo__card-text {
  font-size: 1em;
  margin-bottom: 20px;
  line-height: 1.6;
  flex-grow: 1;
}

.page-promo__card-features {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-promo__card-features li {
  margin-bottom: 8px;
  color: #555555;
  position: relative;
  padding-left: 25px;
}

.page-promo__card-features li::before {
  content: '✔';
  color: #FFC107; /* Auxiliary color */
  font-weight: bold;
  position: absolute;
  left: 0;
}

.page-promo__card-button {
  display: inline-block;
  background-color: #1A237E; /* Main brand color */
  color: #FFC107; /* Auxiliary color */
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-top: auto; /* Pushes button to the bottom */
}

.page-promo__card-button:hover {
  background-color: #0d124d; /* Darker blue on hover */
  color: #ffd700; /* Brighter gold on hover */
}

.page-promo__learn-more-link {
  display: block;
  text-align: center;
  margin-top: 30px;
  font-size: 1.1em;
  color: #1A237E; /* Main brand color */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-promo__learn-more-link:hover {
  color: #FFC107; /* Auxiliary color on hover */
}

.page-promo__cta-section {
  background-color: #FFC107; /* Auxiliary color for a vibrant CTA */
  padding: 60px 20px;
  text-align: center;
  color: #1A237E; /* Main brand color for text */
  margin-top: 40px;
}

.page-promo__cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-promo__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #1A237E; /* Main brand color */
}

.page-promo__cta-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.7;
}

.page-promo__cta-button--large {
  padding: 18px 40px;
  font-size: 1.3em;
  background-color: #1A237E; /* Main brand color */
  color: #FFC107; /* Auxiliary color */
}

.page-promo__cta-button--large:hover {
  background-color: #0d124d; /* Darker blue on hover */
  color: #ffd700; /* Brighter gold on hover */
}

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

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

  .page-promo__cta-title {
    font-size: 2.4em;
  }
}

@media (max-width: 768px) {
  .page-promo {
    padding-top: var(--header-offset, 80px); /* Adjust for mobile header offset */
  }

  .page-promo__hero-section {
    padding: 40px 15px;
  }

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

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

  .page-promo__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-promo__overview-section,
  .page-promo__promo-cards-section,
  .page-promo__terms-section,
  .page-promo__cta-section {
    margin: 20px auto;
    padding: 15px;
  }

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

  .page-promo__section-description {
    font-size: 0.95em;
  }

  .page-promo__cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-promo__card-image {
    height: 200px; /* Ensure minimum height for card images */
    min-width: 200px;
    min-height: 200px;
    height: auto; /* Allow auto height to maintain aspect ratio */
  }

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

  .page-promo__cta-button--large {
    padding: 15px 30px;
    font-size: 1.1em;
  }

  /* General image responsiveness and minimum size for content images */
  .page-promo img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce minimum display size for all content images */
    min-height: 200px; /* Enforce minimum display size for all content images */
  }
}

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

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

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

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