/* style/promo.css */

/* Base styles for the promo page */
.page-promo {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light background */
  background-color: #FFFFFF; /* Body background is light */
}

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

/* Hero Section */
.page-promo__hero-section {
  position: relative;
  width: 100%;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

.page-promo__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.6); /* Darken image for text readability */
}

.page-promo__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #FFFFFF;
  max-width: 800px;
  padding: 20px;
}

.page-promo__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  color: #FFFFFF;
}

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

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

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

.page-promo__button--register {
  background-color: #FFFFFF; /* Custom color for Register */
  color: #000000;
}

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

.page-promo__button--login {
  background-color: #FCBC45; /* Custom color for Login */
  color: #000000;
}

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

/* Overview Section */
.page-promo__overview-section,
.page-promo__featured-section,
.page-promo__why-join-section,
.page-promo__cta-section,
.page-promo__content-area {
  padding: 80px 0;
}

.page-promo__section-title,
.page-promo__content-title,
.page-promo__cta-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

.page-promo__categories-grid,
.page-promo__promotions-grid,
.page-promo__benefits-grid {
  display: grid;
  gap: 30px;
}

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

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

.page-promo__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

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

.page-promo__category-text {
  color: #666666;
  margin-bottom: 20px;
}

.page-promo__category-link {
  display: inline-block;
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
  border-bottom: 2px solid #FCBC45;
  padding-bottom: 5px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-promo__category-link:hover {
  color: #e6a73c;
  border-color: #e6a73c;
}

/* Featured Promotions */
.page-promo__promotions-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-promo__promo-card {
  background-color: #f8f8f8;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-promo__card-content {
  padding: 25px;
}

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

.page-promo__card-text {
  color: #666666;
  margin-bottom: 25px;
}

.page-promo__button--claim {
  background-color: #FCBC45;
  color: #000000;
  padding: 12px 25px;
  font-size: 1em;
  border-radius: 5px;
}

.page-promo__button--claim:hover {
  background-color: #e6a73c;
}

/* Why Join Section */
.page-promo__why-join-section {
  background-color: #f0f0f0;
}

.page-promo__benefits-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  text-align: center;
}

.page-promo__benefit-item {
  padding: 30px 20px;
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-promo__benefit-icon {
  width: 100px; /* Minimum 200px requirement applies to image content, not decorative icons if they were allowed */
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  max-width: 100%; /* Ensure it's responsive */
}

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

.page-promo__benefit-text {
  color: #666666;
}

/* CTA Section */
.page-promo__cta-section {
  background-color: #000000;
  color: #FFFFFF;
  text-align: center;
  padding: 80px 20px;
}

.page-promo__cta-title {
  color: #FFFFFF;
  font-size: 2.8em;
  margin-bottom: 20px;
}

.page-promo__cta-description {
  color: #E0E0E0;
  font-size: 1.2em;
  margin-bottom: 40px;
}

/* Content Area */
.page-promo__content-area h2,
.page-promo__content-area h3,
.page-promo__content-area h4 {
  color: #000000;
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-promo__content-area h2 {
  font-size: 2.2em;
  text-align: left;
}

.page-promo__content-area h3 {
  font-size: 1.8em;
  text-align: left;
}

.page-promo__content-area h4 {
  font-size: 1.5em;
  text-align: left;
}

.page-promo__content-area p {
  margin-bottom: 15px;
  color: #333333;
  font-size: 1.05em;
}

.page-promo__content-area ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #333333;
}

.page-promo__content-area li {
  margin-bottom: 8px;
  font-size: 1.05em;
}

.page-promo__content-cta {
    text-align: center;
    margin-top: 50px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promo__hero-title {
    font-size: 3em;
  }
  .page-promo__section-title,
  .page-promo__cta-title {
    font-size: 2em;
  }
  .page-promo__card-title {
    font-size: 1.4em;
  }
}

@media (max-width: 768px) {
  .page-promo__hero-section {
    min-height: 500px;
    padding-top: var(--header-offset, 80px); /* Adjust for mobile header offset */
  }
  .page-promo__hero-title {
    font-size: 2.5em;
  }
  .page-promo__hero-description {
    font-size: 1.1em;
  }
  .page-promo__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-promo__button {
    width: 80%;
    margin: 0 auto;
  }
  .page-promo__overview-section,
  .page-promo__featured-section,
  .page-promo__why-join-section,
  .page-promo__cta-section,
  .page-promo__content-area {
    padding: 60px 0;
  }
  .page-promo__section-title,
  .page-promo__cta-title {
    font-size: 1.8em;
  }
  .page-promo__section-description,
  .page-promo__cta-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-promo__promotions-grid,
  .page-promo__benefits-grid {
    grid-template-columns: 1fr;
  }
  .page-promo__card-image {
    height: 200px;
  }
  /* Mobile content area image resizing */
  .page-promo img {
    max-width: 100%;
    height: auto;
  }
  .page-promo__content-area h2,
  .page-promo__content-area h3,
  .page-promo__content-area h4 {
    text-align: center;
  }
  .page-promo__content-area ul {
    margin-left: 15px;
  }
}

@media (max-width: 480px) {
  .page-promo__hero-title {
    font-size: 2em;
  }
  .page-promo__button {
    width: 90%;
  }
  .page-promo__section-title,
  .page-promo__cta-title {
    font-size: 1.5em;
  }
  .page-promo__category-card,
  .page-promo__promo-card,
  .page-promo__benefit-item {
    padding: 20px;
  }
}

/* Ensure all content area images are at least 200px when displayed, or scale responsively */
.page-promo__promo-card .page-promo__card-image,
.page-promo__benefit-item .page-promo__benefit-icon {
    min-width: 200px;
    min-height: 200px;
    width: auto; /* Allow auto scaling */
    height: auto; /* Allow auto scaling */
    max-width: 100%; /* Ensure responsiveness */
    object-fit: cover;
}

.page-promo__benefit-icon {
    width: 200px; /* Explicitly set base size */
    height: 133px; /* Explicitly set base size */
    object-fit: cover;
    margin: 0 auto 20px auto;
}

/* Ensure images within content area scale correctly and are not too small */
.page-promo__content-area img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce minimum size for content images */
    min-height: 200px;
    display: block;
    margin: 20px auto;
}