.page-live {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color, #FFF6D6); /* Default text color from custom palette */
  background-color: var(--background-color, #0A0A0A); /* Default background from custom palette */
}

.page-live__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-live__section {
  padding: 60px 0;
  text-align: center;
}

.page-live__dark-section {
  background-color: var(--background-color, #0A0A0A);
  color: var(--text-main-color, #FFF6D6);
}

.page-live__section-title {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--text-main-color, #FFF6D6);
  line-height: 1.2;
}

.page-live__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 246, 214, 0.8);
}

.page-live__card {
  background-color: var(--card-bg-color, #111111);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  color: var(--text-main-color, #FFF6D6);
  border: 1px solid var(--border-color, #3A2A12);
}

/* Hero Section */
.page-live__hero-section {
  background: var(--button-gradient, linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%));
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 700px;
}

.page-live__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px; /* Space between image and text */
}

.page-live__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.page-live__hero-content {
  max-width: 900px;
  text-align: center;
  padding: 0 20px;
  z-index: 1;
}

.page-live__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size for H1 */
  font-weight: 700;
  color: #0A0A0A; /* Darker text for contrast on bright hero background */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.page-live__lead-paragraph {
  font-size: 1.2em;
  color: rgba(0, 0, 0, 0.8);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Buttons */
.page-live__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-live__btn-primary,
.page-live__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  max-width: 100%; /* Ensure buttons adapt to container width */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-live__btn-primary {
  background: var(--button-gradient, linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%));
  color: #0A0A0A; /* Dark text for contrast on bright button */
  border: 2px solid transparent;
}

.page-live__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-live__btn-secondary {
  background: transparent;
  color: var(--glow-color, #FFD36B);
  border: 2px solid var(--glow-color, #FFD36B);
}

.page-live__btn-secondary:hover {
  background: var(--glow-color, #FFD36B);
  color: var(--background-color, #0A0A0A);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Feature Section */
.page-live__features-section .page-live__section-description {
  color: rgba(255, 246, 214, 0.8);
}

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

.page-live__feature-item .page-live__feature-title {
  font-size: 1.5em;
  color: var(--glow-color, #FFD36B);
  margin-bottom: 15px;
}

.page-live__feature-item p {
  color: rgba(255, 246, 214, 0.7);
}

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

.page-live__game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.page-live__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-live__game-title {
  font-size: 1.4em;
  margin-bottom: 10px;
}

.page-live__game-title a {
  color: var(--glow-color, #FFD36B);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-live__game-title a:hover {
  color: var(--main-color, #F2C14E);
}

.page-live__game-card p {
  color: rgba(255, 246, 214, 0.7);
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-live__cta-full-width {
  margin-top: 40px;
}

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

.page-live__promo-item .page-live__promo-title {
  font-size: 1.5em;
  color: var(--glow-color, #FFD36B);
  margin-bottom: 15px;
}

.page-live__promo-item p {
  color: rgba(255, 246, 214, 0.7);
  margin-bottom: 20px;
}

/* How to Play Section */
.page-live__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-live__step-item .page-live__step-title {
  font-size: 1.5em;
  color: var(--glow-color, #FFD36B);
  margin-bottom: 15px;
}

.page-live__step-item p {
  color: rgba(255, 246, 214, 0.7);
  margin-bottom: 20px;
}

/* Why Choose Section */
.page-live__why-choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-live__why-choose-item .page-live__why-choose-title {
  font-size: 1.5em;
  color: var(--glow-color, #FFD36B);
  margin-bottom: 15px;
}

.page-live__why-choose-item p {
  color: rgba(255, 246, 214, 0.7);
  margin-bottom: 20px;
}

.page-live__mobile-app-image {
  width: 100%;
  height: auto;
  max-width: 400px; /* Constrain image width */
  margin-top: 20px;
  border-radius: 8px;
}

/* FAQ Section */
.page-live__faq-list {
  max-width: 800px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-live__faq-item {
  margin-bottom: 15px;
  padding: 0; /* Remove padding from card as question/answer have their own */
  overflow: hidden;
}

.page-live__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background-color: var(--card-bg-color, #111111);
  color: var(--glow-color, #FFD36B);
  padding: 15px 20px;
  border-radius: 10px;
  font-weight: bold;
  font-size: 1.1em;
  border: 1px solid var(--border-color, #3A2A12);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-live__faq-question:hover {
  background-color: rgba(255, 211, 107, 0.1);
}

.page-live__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-live__faq-item.active .page-live__faq-toggle {
  transform: rotate(45deg);
}

.page-live__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  background-color: rgba(17, 17, 17, 0.8);
  color: rgba(255, 246, 214, 0.7);
  transition: max-height 0.3s ease, padding 0.3s ease;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  border-left: 1px solid var(--border-color, #3A2A12);
  border-right: 1px solid var(--border-color, #3A2A12);
  border-bottom: 1px solid var(--border-color, #3A2A12);
}

.page-live__faq-item.active .page-live__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 20px;
}

.page-live__faq-answer p {
  margin-bottom: 0;
  font-size: 0.95em;
}

/* Bottom CTA */
.page-live__cta-bottom {
  padding-bottom: 80px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-live__section-title {
    font-size: 2em;
  }
  .page-live__lead-paragraph {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-live {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-live__hero-section {
    min-height: auto;
    padding-top: var(--header-offset, 120px) !important; /* Mobile: controlled by shared's media */
    padding-bottom: 40px;
  }
  .page-live__hero-image-wrapper {
    margin-bottom: 20px;
  }
  .page-live__main-title {
    font-size: clamp(1.8em, 8vw, 2.5em);
  }
  .page-live__lead-paragraph {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-live__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-live__btn-primary,
  .page-live__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-live__section {
    padding: 40px 0;
  }
  .page-live__section-title {
    font-size: 1.8em;
  }
  .page-live__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-live__container {
    padding: 0 15px;
  }

  /* Mobile image responsiveness */
  .page-live img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  
  .page-live__section,
  .page-live__card,
  .page-live__container,
  .page-live__game-card,
  .page-live__promo-item,
  .page-live__step-item,
  .page-live__why-choose-item,
  .page-live__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-live__game-image {
    height: 180px; /* Adjust height for smaller screens */
  }

  .page-live__faq-question {
    padding: 12px 15px;
    font-size: 1em;
  }
  .page-live__faq-answer {
    padding: 10px 15px;
  }
}

@media (max-width: 480px) {
  .page-live__main-title {
    font-size: 1.6em;
  }
  .page-live__section-title {
    font-size: 1.5em;
  }
  .page-live__btn-primary,
  .page-live__btn-secondary {
    padding: 12px 20px;
  }
  .page-live__game-image {
    height: 150px;
  }
}