/* style/live.css */
/* body is expected to have padding-top: var(--header-offset) from shared.css */

:root {
  --rich9-primary: #F2C14E;
  --rich9-secondary: #FFD36B;
  --rich9-gradient-btn: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  --rich9-card-bg: #111111;
  --rich9-bg: #0A0A0A;
  --rich9-text-main: #FFF6D6;
  --rich9-border: #3A2A12;
  --rich9-glow: #FFD36B;
}

.page-live {
  font-family: Arial, sans-serif;
  background-color: var(--rich9-bg);
  color: var(--rich9-text-main); /* Ensure text is visible on dark background */
  line-height: 1.6;
}

/* Hero Section */
.page-live__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  overflow: hidden;
  box-sizing: border-box;
}

.page-live__video-container {
  width: 100%;
  max-width: 1600px; /* Adjust based on desired hero video width */
  margin: 0 auto;
  box-sizing: border-box;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.page-live__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  cursor: pointer;
}

.page-live__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-live__hero-content {
  max-width: 900px;
  text-align: center;
  margin-top: 40px;
  padding: 0 15px;
  z-index: 2;
}

.page-live__hero-title {
  font-size: clamp(2.5rem, 4vw, 3.2rem);
  color: var(--rich9-primary);
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-live__hero-description {
  font-size: 1.1rem;
  color: var(--rich9-text-main);
  margin-bottom: 30px;
}

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

/* General Section Styling */
.page-live__section {
  padding: 80px 20px;
  text-align: center;
  box-sizing: border-box;
}

.page-live__dark-section {
  background-color: var(--rich9-card-bg);
}

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

.page-live__section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--rich9-primary);
  margin-bottom: 30px;
  font-weight: bold;
}

.page-live__section-text {
  font-size: 1.1rem;
  color: var(--rich9-text-main);
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-live__btn-primary,
.page-live__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%;
}

.page-live__btn-primary {
  background: var(--rich9-gradient-btn);
  color: #ffffff; /* White text for contrast */
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-live__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-live__btn-secondary {
  background-color: transparent;
  color: var(--rich9-primary);
  border: 2px solid var(--rich9-primary);
}

.page-live__btn-secondary:hover {
  background-color: var(--rich9-primary);
  color: #000000; /* Dark text on hover for contrast */
  transform: translateY(-3px);
}

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

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

.page-live__game-card {
  background-color: var(--rich9-card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-live__game-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-live__game-card-title {
  font-size: 1.5rem;
  color: var(--rich9-primary);
  margin: 20px 20px 10px;
}

.page-live__game-card-description {
  font-size: 1rem;
  color: var(--rich9-text-main);
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-live__game-card .page-live__btn-secondary {
  margin: 0 20px 20px;
  width: calc(100% - 40px);
  text-align: center;
}

/* Promotions List */
.page-live__promo-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 900px;
  text-align: left;
}

.page-live__promo-item {
  background-color: var(--rich9-card-bg);
  border: 1px solid var(--rich9-border);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-live__promo-title {
  font-size: 1.4rem;
  color: var(--rich9-primary);
  margin-bottom: 10px;
}

.page-live__promo-description {
  font-size: 1rem;
  color: var(--rich9-text-main);
}

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

.page-live__step-card {
  background-color: var(--rich9-card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-live__step-card-image {
  width: 100%;
  height: 250px; /* Consistent height for step images */
  object-fit: cover;
  display: block;
}

.page-live__step-card-title {
  font-size: 1.4rem;
  color: var(--rich9-primary);
  margin: 20px 20px 10px;
}

.page-live__step-card-description {
  font-size: 1rem;
  color: var(--rich9-text-main);
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-live__step-card .page-live__btn-primary,
.page-live__step-card .page-live__btn-secondary {
  margin: 0 20px 20px;
  width: calc(100% - 40px);
}

/* App Download Section */
.page-live__app-container {
  display: flex;
  align-items: center;
  gap: 50px;
  text-align: left;
}

.page-live__app-content {
  flex: 1;
}

.page-live__app-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-live__app-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-live__app-features-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  color: var(--rich9-text-main);
  font-size: 1.1rem;
}

.page-live__app-features-list li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.page-live__icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-right: 15px;
  background-color: var(--rich9-primary);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.page-live__icon--mobile {
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M17 1H7C5.89 1 5 1.89 5 3v18c0 1.11.89 2 2 2h10c1.11 0 2-.89 2-2V3c0-1.11-.89-2-2-2zm-2 20H9v-1h6v1zm2-3H7V4h10v14z"/></svg>');
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M17 1H7C5.89 1 5 1.89 5 3v18c0 1.11.89 2 2 2h10c1.11 0 2-.89 2-2V3c0-1.11-.89-2-2-2zm-2 20H9v-1h6v1zm2-3H7V4h10v14z"/></svg>');
}

.page-live__icon--hd {
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-8 12H9.5V9h-2v6H6V9H4.5v6H3V7h3.5v1.5h1v-1.5H9.5V7H11v8zm7-2c0 .55-.45 1-1 1h-2c-.55 0-1-.45-1-1V9c0-.55.45-1 1-1h2c.55 0 1 .45 1 1v4zm-1.5-3.5h-1v1h1v-1z"/></svg>');
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-8 12H9.5V9h-2v6H6V9H4.5v6H3V7h3.5v1.5h1v-1.5H9.5V7H11v8zm7-2c0 .55-.45 1-1 1h-2c-.55 0-1-.45-1-1V9c0-.55.45-1 1-1h2c.55 0 1 .45 1 1v4zm-1.5-3.5h-1v1h1v-1z"/></svg>');
}

.page-live__icon--secure {
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 10.99h7c-.53 4.1-3.29 7.7-7 8.98V12H5V6.3l7-3.11v8.8z"/></svg>');
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 10.99h7c-.53 4.1-3.29 7.7-7 8.98V12H5V6.3l7-3.11v8.8z"/></svg>');
}

.page-live__icon--games {
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M21 6H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 10H3V8h18v8zm-7-3h2v2h-2zm-4 0h2v2h-2zm-4 0h2v2H6z"/></svg>');
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M21 6H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 10H3V8h18v8zm-7-3h2v2h-2zm-4 0h2v2h-2zm-4 0h2v2H6z"/></svg>');
}

.page-live__icon--notifications {
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2zm6-6V7c0-2.76-2.24-5-5-5S7 4.24 7 7v9l-2 2v1h14v-1l-2-2zm-2 1H9V7c0-1.66 1.34-3 3-3s3 1.34 3 3v10z"/></svg>');
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2zm6-6V7c0-2.76-2.24-5-5-5S7 4.24 7 7v9l-2 2v1h14v-1l-2-2zm-2 1H9V7c0-1.66 1.34-3 3-3s3 1.34 3 3v10z"/></svg>');
}

/* Security Features List */
.page-live__security-features-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1000px;
}

.page-live__security-features-list li {
  background-color: var(--rich9-card-bg);
  border: 1px solid var(--rich9-border);
  border-radius: 8px;
  padding: 20px 30px;
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  color: var(--rich9-text-main);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-live__security-features-list li .page-live__icon {
  margin-right: 15px;
  width: 28px;
  height: 28px;
  background-color: var(--rich9-secondary);
}

.page-live__icon--license {
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 10.99h7c-.53 4.1-3.29 7.7-7 8.98V12H5V6.3l7-3.11v8.8z"/></svg>');
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 10.99h7c-.53 4.1-3.29 7.7-7 8.98V12H5V6.3l7-3.11v8.8z"/></svg>');
}
.page-live__icon--encryption {
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M18 10h-1V7c0-2.76-2.24-5-5-5S7 4.24 7 7v3H6c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3-7H9V7c0-1.66 1.34-3 3-3s3 1.34 3 3v3z"/></svg>');
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M18 10h-1V7c0-2.76-2.24-5-5-5S7 4.24 7 7v3H6c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3-7H9V7c0-1.66 1.34-3 3-3s3 1.34 3 3v3z"/></svg>');
}
.page-live__icon--fairplay {
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8.01l-9 9z"/></svg>');
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8.01l-9 9z"/></svg>');
}
.page-live__icon--responsible {
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"/></svg>');
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"/></svg>');
}
.page-live__icon--audit {
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M11 17h2v-6h-2v6zm1-15C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/></svg>');
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M11 17h2v-6h-2v6zm1-15C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/></svg>');
}

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

.page-live__faq-item {
  background-color: var(--rich9-card-bg);
  border: 1px solid var(--rich9-border);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-live__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--rich9-primary);
  cursor: pointer;
  background-color: #1a1a1a;
  transition: background-color 0.3s ease;
}

.page-live__faq-question:hover {
  background-color: #2a2a2a;
}

.page-live__faq-toggle {
  font-size: 1.5rem;
  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 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--rich9-text-main);
}

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

.page-live__faq-answer p {
  margin-bottom: 0;
  font-size: 1rem;
}

/* Bottom CTA Section */
.page-live__cta-bottom {
  padding: 100px 20px;
}

.page-live__cta-content {
  max-width: 900px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-live__app-container {
    flex-direction: column-reverse;
    text-align: center;
  }

  .page-live__app-content,
  .page-live__app-image-wrapper {
    width: 100%;
    max-width: 600px; /* Constrain app image on tablets */
  }

  .page-live__app-features-list {
    text-align: left;
    margin-left: auto;
    margin-right: auto;
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  .page-live {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-live__hero-section {
    padding-bottom: 40px;
  }

  .page-live__hero-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .page-live__hero-description {
    font-size: 1rem;
  }

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

  .page-live__btn-primary,
  .page-live__btn-secondary,
  .page-live a[class*="button"],
  .page-live a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

  .page-live__cta-buttons,
  .page-live__button-group,
  .page-live__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-live__cta-buttons {
    display: flex;
    flex-direction: column; /* Ensure vertical stack on mobile */
  }

  .page-live__section {
    padding: 50px 15px;
  }

  .page-live__section-title {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
  }

  .page-live__section-text {
    font-size: 1rem;
  }

  .page-live__game-cards-grid,
  .page-live__steps-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-live__game-card-image,
  .page-live__step-card-image {
    height: 180px;
  }

  .page-live__promo-item,
  .page-live__security-features-list li,
  .page-live__faq-item {
    padding: 20px;
  }

  .page-live__promo-title,
  .page-live__faq-question span:first-child {
    font-size: 1.1rem;
  }

  .page-live__faq-answer {
    padding: 0 20px;
  }

  .page-live__faq-item.active .page-live__faq-answer {
    padding: 15px 20px 20px;
  }

  .page-live img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-live__section,
  .page-live__card,
  .page-live__container,
  .page-live__video-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-live__video-section {
    padding-top: 10px !important; /* Ensure small top padding, not --header-offset */
  }

  .page-live__video-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}