.page-live {
  color: #333333; /* Dark text for light body background */
  background-color: var(--secondary-color, #FFFFFF); /* Ensure light background for text readability */
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-live__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 20px 40px;
  position: relative;
  overflow: hidden; /* Prevent image overflow */
  min-height: 600px; /* Ensure hero section has a minimum height */
  justify-content: center;
}

.page-live__hero-container {
  max-width: 900px;
  z-index: 1;
  position: relative;
  color: #000000; /* Dark text for contrast against white background (if any) */
  background-color: rgba(255, 255, 255, 0.9); /* Slightly transparent white background for text readability */
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 30px;
}

.page-live__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #000000;
  line-height: 1.2;
}

.page-live__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  line-height: 1.6;
  color: #333333;
}

.page-live__hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-live__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.7); /* Darken background image slightly for text contrast */
}

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

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

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

.page-live__button--secondary {
  background-color: #FFFFFF;
  color: #000000;
  border: 2px solid #000000;
}

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

.page-live__button--small {
  padding: 10px 20px;
  font-size: 0.95em;
  background-color: #FCBC45;
  color: #000000;
  border: none;
}

.page-live__button--small:hover {
  background-color: #e0a53d;
  transform: translateY(-2px);
}

.page-live__button--large {
  padding: 18px 35px;
  font-size: 1.2em;
  background-color: #FCBC45;
  color: #000000;
  border: none;
}

.page-live__button--large:hover {
  background-color: #e0a53d;
  transform: translateY(-2px);
}

.page-live__button--text {
  background: none;
  border: none;
  color: #000000;
  text-decoration: underline;
  padding: 5px 10px;
  font-size: 1em;
}

.page-live__button--text:hover {
  color: #FCBC45;
}

.page-live__content-area, .page-live__features-section, .page-live__games-showcase, .page-live__promotions-cta, .page-live__safety-section, .page-live__faq-section, .page-live__cta-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.page-live__features-title, .page-live__games-title, .page-live__promotions-title, .page-live__safety-title, .page-live__faq-title, .page-live__cta-title {
  font-size: 2.8em;
  color: #000000;
  text-align: center;
  margin-bottom: 50px;
  line-height: 1.3;
}

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

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

.page-live__feature-card:hover, .page-live__game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-live__feature-icon, .page-live__game-image {
  width: 100%; /* Ensure images take full width of card */
  max-width: 400px; /* Constrain max width */
  height: auto; /* Maintain aspect ratio */
  min-height: 200px; /* Minimum height for all images */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
}

.page-live__feature-heading, .page-live__game-heading {
  font-size: 1.8em;
  color: #000000;
  margin-bottom: 15px;
}

.page-live__feature-text, .page-live__game-description {
  font-size: 1.1em;
  color: #555555;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-live__promotions-cta, .page-live__safety-section {
  display: flex;
  align-items: center;
  gap: 50px;
  background-color: #f8f8f8;
  border-radius: 15px;
  padding: 50px;
  margin-bottom: 40px;
  text-align: left;
}

.page-live__promotions-cta:nth-of-type(odd) {
  flex-direction: row-reverse; /* Image on right */
}

.page-live__promotions-content, .page-live__safety-content {
  flex: 1;
}

.page-live__promotions-title, .page-live__safety-title {
  font-size: 2.5em;
  text-align: left;
  margin-bottom: 25px;
}

.page-live__promotions-description, .page-live__safety-description {
  font-size: 1.2em;
  line-height: 1.7;
  color: #444444;
  margin-bottom: 30px;
}

.page-live__promotions-image, .page-live__safety-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  min-height: 300px; /* Minimum height for larger images */
}

.page-live__faq-item {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  margin-bottom: 20px;
  padding: 25px 30px;
}

.page-live__faq-question {
  font-size: 1.6em;
  color: #000000;
  margin-bottom: 10px;
}

.page-live__faq-answer {
  font-size: 1.1em;
  color: #555555;
  line-height: 1.7;
}

.page-live__cta-bottom {
  text-align: center;
  background-color: #000000;
  color: #FFFFFF;
  padding: 80px 20px;
  border-radius: 15px;
  margin-top: 60px;
}

.page-live__cta-title {
  font-size: 3em;
  color: #FFFFFF;
  margin-bottom: 25px;
}

.page-live__cta-description {
  font-size: 1.4em;
  line-height: 1.6;
  margin-bottom: 40px;
  color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-live__hero-title {
    font-size: 2.8em;
  }
  .page-live__features-title, .page-live__games-title, .page-live__promotions-title, .page-live__safety-title, .page-live__faq-title, .page-live__cta-title {
    font-size: 2.2em;
  }
  .page-live__promotions-cta, .page-live__safety-section {
    flex-direction: column;
    text-align: center;
  }
  .page-live__promotions-cta:nth-of-type(odd) {
    flex-direction: column; /* Ensure column direction on smaller screens */
  }
  .page-live__promotions-image, .page-live__safety-image {
    max-width: 80%;
    margin-top: 30px;
  }
  .page-live__promotions-title, .page-live__safety-title {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-live {
    padding-top: var(--header-offset, 120px);
  }
  .page-live__hero-section {
    padding: 60px 20px 30px;
  }
  .page-live__hero-title {
    font-size: 2.2em;
  }
  .page-live__hero-description {
    font-size: 1.1em;
  }
  .page-live__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-live__button {
    width: 100%;
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-live__features-title, .page-live__games-title, .page-live__promotions-title, .page-live__safety-title, .page-live__faq-title, .page-live__cta-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-live__features-grid, .page-live__games-grid {
    grid-template-columns: 1fr;
  }
  .page-live__feature-card, .page-live__game-card {
    padding: 25px;
  }
  .page-live__feature-icon, .page-live__game-image {
    max-width: 100%; /* Ensure images don't overflow */
    height: auto; /* Maintain aspect ratio */
    min-height: 200px; /* Enforce minimum height */
  }
  /* enforce mobile image sizing to prevent overflow */
  .page-live img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    min-width: 200px; /* Ensure minimum display width for images */
    min-height: 200px; /* Ensure minimum display height for images */
  }
  .page-live__promotions-cta, .page-live__safety-section {
    padding: 30px;
    gap: 30px;
  }
  .page-live__promotions-image, .page-live__safety-image {
    max-width: 95%;
    margin-top: 20px;
  }
  .page-live__promotions-title, .page-live__safety-title {
    font-size: 1.8em;
  }
  .page-live__promotions-description, .page-live__safety-description {
    font-size: 1em;
  }
  .page-live__faq-question {
    font-size: 1.4em;
  }
  .page-live__faq-answer {
    font-size: 1em;
  }
  .page-live__cta-bottom {
    padding: 50px 20px;
  }
  .page-live__cta-title {
    font-size: 2em;
  }
  .page-live__cta-description {
    font-size: 1.1em;
  }
}

@media (max-width: 480px) {
  .page-live__hero-title {
    font-size: 1.8em;
  }
  .page-live__features-title, .page-live__games-title, .page-live__promotions-title, .page-live__safety-title, .page-live__faq-title, .page-live__cta-title {
    font-size: 1.6em;
  }
  .page-live__feature-heading, .page-live__game-heading {
    font-size: 1.5em;
  }
  .page-live__promotions-title, .page-live__safety-title {
    font-size: 1.6em;
  }
  .page-live__faq-question {
    font-size: 1.2em;
  }
  .page-live__cta-title {
    font-size: 1.8em;
  }
}