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

.page-index-latest-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  background-color: #000000; /* Dark background for hero section */
  color: #FFFFFF;
  overflow: hidden;
  min-height: 500px;
}

.page-index-latest-promotions__hero-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.4; /* Slightly transparent to allow text to stand out */
}

.page-index-latest-promotions__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

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

.page-index-latest-promotions__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FCBC45; /* Login button color for emphasis */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-index-latest-promotions__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #FFFFFF;
}

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

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

.page-index-latest-promotions__button--register {
  background-color: #FFFFFF;
  color: #000000;
}

.page-index-latest-promotions__button--register:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

.page-index-latest-promotions__button--login {
  background-color: #FCBC45;
  color: #000000;
}

.page-index-latest-promotions__button--login:hover {
  background-color: #e0a030;
  transform: translateY(-2px);
}

.page-index-latest-promotions__section-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 20px;
  margin-top: 60px;
}

.page-index-latest-promotions__section-subtitle {
  font-size: 1.1em;
  color: #666666;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index-latest-promotions__featured-promotions,
.page-index-latest-promotions__promotion-categories,
.page-index-latest-promotions__how-to-claim,
.page-index-latest-promotions__why-megabet,
.page-index-latest-promotions__call-to-action {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

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

.page-index-latest-promotions__promo-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-index-latest-promotions__promo-card:hover {
  transform: translateY(-5px);
}

.page-index-latest-promotions__promo-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-index-latest-promotions__card-title {
  font-size: 1.4em;
  color: #000000;
  padding: 20px 20px 10px;
  margin: 0;
}

.page-index-latest-promotions__card-description {
  font-size: 0.95em;
  color: #555555;
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-index-latest-promotions__button--claim {
  background-color: #FCBC45;
  color: #000000;
  width: calc(100% - 40px);
  margin: 0 20px 20px;
  text-align: center;
  font-size: 1em;
  padding: 12px 20px;
}

.page-index-latest-promotions__button--claim:hover {
  background-color: #e0a030;
}

.page-index-latest-promotions__category-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.page-index-latest-promotions__category-item {
  background-color: #f9f9f9;
  border-left: 5px solid #FCBC45;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: background-color 0.3s ease;
}

.page-index-latest-promotions__category-item:hover {
  background-color: #f0f0f0;
}

.page-index-latest-promotions__category-title {
  font-size: 1.3em;
  color: #000000;
  margin-bottom: 10px;
}

.page-index-latest-promotions__category-description {
  font-size: 0.9em;
  color: #666666;
  margin-bottom: 15px;
}

.page-index-latest-promotions__category-link {
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-index-latest-promotions__category-link:hover {
  color: #e0a030;
  text-decoration: underline;
}

.page-index-latest-promotions__steps-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  counter-reset: step-counter;
}

.page-index-latest-promotions__step-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 30px;
  position: relative;
  padding-top: 60px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-index-latest-promotions__step-item::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  top: 20px;
  left: 30px;
  background-color: #000000; /* Primary color */
  color: #FFFFFF;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2em;
}

.page-index-latest-promotions__step-title {
  font-size: 1.3em;
  color: #000000;
  margin-bottom: 10px;
}

.page-index-latest-promotions__step-description {
  font-size: 0.95em;
  color: #555555;
}

.page-index-latest-promotions__claim-cta {
  text-align: center;
  margin-top: 50px;
}

.page-index-latest-promotions__button--primary {
  background-color: #000000;
  color: #FFFFFF;
  padding: 18px 40px;
  font-size: 1.2em;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-index-latest-promotions__button--primary:hover {
  background-color: #333333;
}

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

.page-index-latest-promotions__advantage-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.page-index-latest-promotions__advantage-title {
  font-size: 1.3em;
  color: #000000;
  margin-bottom: 10px;
}

.page-index-latest-promotions__advantage-description {
  font-size: 0.95em;
  color: #555555;
}

.page-index-latest-promotions__call-to-action {
  background-color: #000000;
  color: #FFFFFF;
  text-align: center;
  padding: 80px 20px;
  margin-top: 60px;
  border-radius: 10px;
}

.page-index-latest-promotions__call-to-action .page-index-latest-promotions__section-title,
.page-index-latest-promotions__call-to-action .page-index-latest-promotions__section-subtitle {
  color: #FFFFFF;
}

.page-index-latest-promotions__button--register-large {
  background-color: #FCBC45;
  color: #000000;
  padding: 20px 45px;
  font-size: 1.3em;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin-top: 30px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-index-latest-promotions__button--register-large:hover {
  background-color: #e0a030;
  transform: translateY(-3px);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-index-latest-promotions__hero-title {
    font-size: 2.5em;
  }

  .page-index-latest-promotions__hero-description {
    font-size: 1em;
  }

  .page-index-latest-promotions__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-index-latest-promotions__button {
    width: 100%;
    max-width: 300px;
  }

  .page-index-latest-promotions__section-title {
    font-size: 2em;
  }

  .page-index-latest-promotions__promo-grid,
  .page-index-latest-promotions__category-list,
  .page-index-latest-promotions__steps-list,
  .page-index-latest-promotions__advantages-list {
    grid-template-columns: 1fr;
  }

  .page-index-latest-promotions__promo-image,
  .page-index-latest-promotions__promo-card img, /* Ensure all img within promo-card are handled */
  .page-index-latest-promotions__hero-image {
    max-width: 100%;
    height: auto; /* Important for preventing overflow */
  }

  .page-index-latest-promotions__promo-card,
  .page-index-latest-promotions__category-item,
  .page-index-latest-promotions__step-item,
  .page-index-latest-promotions__advantage-item {
    padding: 20px;
  }

  .page-index-latest-promotions__step-item::before {
    left: 20px;
  }

  .page-index-latest-promotions__hero-section,
  .page-index-latest-promotions__call-to-action {
    padding: 40px 20px;
  }

  .page-index-latest-promotions__button--register-large {
    font-size: 1.1em;
    padding: 15px 30px;
  }

  .page-index-latest-promotions {
    overflow-x: hidden;
  }
}

/* General image styling for content area to ensure minimum size and responsiveness */
.page-index-latest-promotions img {
  display: block;
  max-width: 100%;
  height: auto;
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

/* Ensure specific links within text have appropriate styling and contrast */
.page-index-latest-promotions a {
  color: inherit; /* Ensure link color adheres to parent for general text links */
  text-decoration: none;
}

.page-index-latest-promotions a:hover {
  text-decoration: underline;
}

.page-index-latest-promotions__step-description a {
  color: #FCBC45; /* Specific color for links within descriptions */
  text-decoration: underline;
}

.page-index-latest-promotions__step-description a:hover {
  color: #e0a030;
}