/* style/promo.css */
.page-promo {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background-color: #FFFFFF; /* Light background as per shared.css */
  color: #333333; /* Dark text for contrast on light background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-promo__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px 40px;
  background-color: #000000; /* Dark background for hero */
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.page-promo__hero-content {
  z-index: 1;
  max-width: 800px;
  margin-bottom: 30px;
}

.page-promo__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FCBC45; /* Login button color for emphasis */
}

.page-promo__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
}

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

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

.page-promo__button--primary {
  background-color: #FCBC45; /* Login color */
  color: #000000;
  border: 2px solid #FCBC45;
}

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

.page-promo__button--secondary {
  background-color: #FFFFFF; /* Register color */
  color: #000000;
  border: 2px solid #FFFFFF;
}

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

.page-promo__hero-image-wrapper {
  width: 100%;
  max-width: 1000px;
  margin-top: 40px;
  z-index: 1;
}

.page-promo__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* General Section Styling */
.page-promo__overview-section,
.page-promo__details-section,
.page-promo__why-mnlwin-section {
  padding: 80px 0;
  text-align: center;
}

.page-promo__overview-section {
  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 50px;
  color: #555555;
}

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

.page-promo__feature-card {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-promo__feature-card:hover {
  transform: translateY(-8px);
}

.page-promo__feature-icon {
  width: 250px; /* Minimum 200px */
  height: 187px; /* Maintain aspect ratio for 400x300, display at 250x187.5 */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-promo__feature-text {
  font-size: 0.95em;
  color: #666666;
  flex-grow: 1;
}

/* Promo Details Grid */
.page-promo__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.page-promo__promo-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-promo__promo-card:hover {
  transform: translateY(-10px);
}

.page-promo__promo-image {
  width: 100%;
  height: 250px; /* Display at 250px height, maintaining aspect ratio */
  object-fit: cover;
}

.page-promo__promo-card-title {
  font-size: 1.8em;
  margin: 25px 25px 15px;
  color: #000000;
}

.page-promo__promo-card-title a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

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

.page-promo__promo-card-description {
  font-size: 1em;
  color: #666666;
  margin: 0 25px 20px;
  flex-grow: 1;
}

.page-promo__button--details {
  background-color: #000000;
  color: #FFFFFF;
  padding: 12px 25px;
  margin: 0 25px 25px;
  border-radius: 8px;
  align-self: flex-start;
}

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

/* Why mnlwin Section */
.page-promo__why-mnlwin-section {
  background-color: #EFEFEF;
}

.page-promo__advantages-list {
  list-style: none;
  padding: 0;
  margin: 50px auto;
  max-width: 900px;
  text-align: left;
}

.page-promo__advantage-item {
  background-color: #FFFFFF;
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
  font-size: 1.05em;
  color: #333333;
}

.page-promo__advantage-item strong {
  color: #000000;
  font-size: 1.1em;
}

.page-promo__conclusion-text {
  font-size: 1.1em;
  max-width: 800px;
  margin: 40px auto 30px;
  color: #555555;
}

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

/* Floating Buttons */
.page-promo__floating-buttons {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-around;
  padding: 15px 20px;
  background-color: rgba(0, 0, 0, 0.9);
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  transform: translateY(0);
  transition: transform 0.3s ease-in-out;
}

.page-promo__floating-button {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  margin: 0 8px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-promo__floating-button--register {
  background-color: #FFFFFF; /* Register color */
  color: #000000;
}

.page-promo__floating-button--register:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

.page-promo__floating-button--login {
  background-color: #FCBC45; /* Login color */
  color: #000000;
}

.page-promo__floating-button--login:hover {
  background-color: #e0a53b;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-promo__hero-section {
    padding: 40px 15px 30px;
  }

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

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

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

  .page-promo__button {
    width: 100%;
    max-width: 300px;
  }

  .page-promo__hero-image-wrapper {
    margin-top: 30px;
  }

  .page-promo__overview-section,
  .page-promo__details-section,
  .page-promo__why-mnlwin-section {
    padding: 60px 0;
  }

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

  .page-promo__section-description {
    font-size: 1em;
    margin-bottom: 40px;
  }

  .page-promo__features-grid,
  .page-promo__promo-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-promo__feature-icon {
    width: 200px; /* Min size for mobile */
    height: 150px;
  }

  .page-promo__promo-image {
    height: 200px;
  }

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

  .page-promo__advantage-item {
    padding: 20px;
  }

  /* Ensure content images do not overflow on mobile */
  .page-promo img {
    max-width: 100%;
    height: auto;
  }

  .page-promo__floating-buttons {
    padding: 10px 10px;
  }

  .page-promo__floating-button {
    font-size: 1em;
    padding: 10px 0;
    margin: 0 5px;
  }
}

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

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