.page-promotions {
  background-color: #100224;
  color: #FFFFFF;
  font-family: Arial, sans-serif;
}

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

.page-promotions__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #017439;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.page-promotions__hero-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/5;
  object-fit: cover;
}

.page-promotions__hero-content {
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
}

.page-promotions__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: #FFFFFF;
  max-width: 100%; /* Ensures it doesn't overflow */
  font-size: clamp(1.8rem, 4vw, 2.8rem); /* Responsive font size for H1 */
}

.page-promotions__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  line-height: 1.6;
  color: #E0E0E0;
}

.page-promotions__cta-button {
  display: inline-block;
  background-color: #C30808;
  color: #FFFF00;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  font-size: 1rem;
}

.page-promotions__cta-button:hover {
  background-color: #a00606;
}

.page-promotions__section-title {
  font-size: 2.2rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #FFFFFF;
  background: linear-gradient(to right, #ff9500, #ff5e3a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.page-promotions__intro-section,
.page-promotions__featured-promos,
.page-promotions__category-promos,
.page-promotions__faq-section,
.page-promotions__cta-bottom-section {
  padding: 60px 0;
}

.page-promotions__text-content {
  font-size: 1rem;
  line-height: 1.7;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #E0E0E0;
}

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

.page-promotions__promo-card {
  background-color: #2a0a4c; /* Slightly lighter dark purple for cards */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

.page-promotions__promo-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Ensure minimum image size */
}

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

.page-promotions__card-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FFFFFF;
}

.page-promotions__card-description {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #E0E0E0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promotions__card-button {
  display: inline-block;
  background-color: #83a1f2;
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  text-align: center;
  margin-top: auto;
}

.page-promotions__card-button:hover {
  background-color: #688cec;
}

.page-promotions__game-promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  text-align: center;
}

.page-promotions__game-promo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  background-color: #2a0a4c;
  border-radius: 10px;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__game-promo-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-promotions__game-promo-item img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  min-width: 200px;
  min-height: 200px;
}

.page-promotions__game-promo-label {
  font-size: 1.2rem;
  font-weight: bold;
  color: #FFFFFF;
}

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

.page-promotions__faq-item {
  background-color: #2a0a4c;
  border-radius: 8px;
  margin-bottom: 15px;
  padding: 20px;
}

.page-promotions__faq-question {
  font-size: 1.2rem;
  font-weight: bold;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.page-promotions__faq-answer {
  font-size: 1rem;
  line-height: 1.6;
  color: #E0E0E0;
}

.page-promotions__faq-answer a {
  color: #83a1f2;
  text-decoration: none;
}

.page-promotions__faq-answer a:hover {
  text-decoration: underline;
}

.page-promotions__cta-bottom-section {
  background-color: #017439;
  text-align: center;
  padding: 80px 0;
}

.page-promotions__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-promotions__cta-button--register {
  background-color: #C30808;
  color: #FFFF00;
}

.page-promotions__cta-button--register:hover {
  background-color: #a00606;
}

.page-promotions__cta-button--login {
  background-color: #C30808;
  color: #FFFF00;
}

.page-promotions__cta-button--login:hover {
  background-color: #a00606;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-promotions__section-title {
    font-size: 2rem;
  }
  .page-promotions__main-title {
    font-size: clamp(1.6rem, 5vw, 2.5rem);
  }
  .page-promotions__hero-content {
    padding: 30px 15px;
  }
}

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

  .page-promotions__hero-image-wrapper img {
    aspect-ratio: 4/3; /* Adjust aspect ratio for mobile hero */
  }

  .page-promotions__main-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    margin-bottom: 15px;
  }

  .page-promotions__hero-description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .page-promotions__cta-button {
    padding: 12px 25px;
    font-size: 0.95rem;
  }

  .page-promotions__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .page-promotions__text-content {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .page-promotions__promo-grid {
    grid-template-columns: 1fr;
  }

  .page-promotions__promo-card img,
  .page-promotions__game-promo-item img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure minimum image size for content */
    min-height: 200px;
  }

  .page-promotions__card-title {
    font-size: 1.2rem;
  }

  .page-promotions__card-description {
    font-size: 0.9rem;
  }

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

  .page-promotions__game-promo-item {
    padding: 15px;
  }

  .page-promotions__game-promo-label {
    font-size: 1.1rem;
  }

  .page-promotions__faq-question {
    font-size: 1.1rem;
  }

  .page-promotions__faq-answer {
    font-size: 0.95rem;
  }

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

@media (max-width: 549px) {
  .page-promotions__hero-content {
    padding: 20px 10px;
  }

  .page-promotions__main-title {
    font-size: clamp(1.3rem, 7vw, 2rem);
  }

  .page-promotions__section-title {
    font-size: 1.6rem;
  }

  .page-promotions__cta-button {
    width: 100%;
    max-width: 250px;
  }
  .page-promotions__cta-buttons {
    align-items: center;
  }

  .page-promotions__promo-card img,
  .page-promotions__game-promo-item img {
    max-width: 100%;
    height: auto;
  }
  .page-promotions__promo-card, .page-promotions__game-promo-item {
    width: 100%;
  }
  .page-promotions__game-promo-grid {
    grid-template-columns: 1fr;
  }
}

/* Critical image CSS to prevent overflow */
.page-promotions img {
  max-width: 100%;
  height: auto;
  display: block;
  box-sizing: border-box;
}