/* style/live.css */

/* Variables from custom colors */
:root {
  --jili777-primary: #F2C14E;
  --jili777-secondary: #FFD36B;
  --jili777-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  --jili777-card-bg: #111111;
  --jili777-background: #0A0A0A;
  --jili777-text-main: #FFF6D6;
  --jili777-border: #3A2A12;
  --jili777-glow: #FFD36B;
}

/* Base styles for the page-live scope */
.page-live {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--jili777-text-main); /* Light text for dark body background */
  background-color: var(--jili777-background);
}

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

.page-live__section-title {
  font-size: 2.5em;
  color: var(--jili777-primary);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-live__section-title a {
  color: var(--jili777-primary);
  text-decoration: none;
}

.page-live__section-title a:hover {
  text-decoration: underline;
}

.page-live__text-block p,
.page-live__text-block li {
  color: var(--jili777-text-main);
  margin-bottom: 1em;
}

.page-live__text-block a {
  color: var(--jili777-secondary);
  text-decoration: none;
}

.page-live__text-block a:hover {
  text-decoration: underline;
}

/* Hero Section */
.page-live__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: var(--jili777-background);
  overflow: hidden;
}

.page-live__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
  order: 1; /* Image block above content block */
}

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

.page-live__hero-content {
  order: 2; /* Content block below image block */
  text-align: center;
  max-width: 900px;
  z-index: 1;
}

.page-live__main-title {
  font-size: clamp(2.2em, 4vw, 3.2em);
  color: var(--jili777-primary);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-live__hero-description {
  font-size: 1.2em;
  color: var(--jili777-text-main);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-live__btn-primary {
  background: var(--jili777-button-gradient);
  color: #ffffff; /* White text for contrast */
  border: 2px solid transparent;
}

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

.page-live__btn-secondary {
  background: var(--jili777-card-bg);
  color: var(--jili777-primary);
  border: 2px solid var(--jili777-primary);
}

.page-live__btn-secondary:hover {
  background: var(--jili777-primary);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

/* Introduction Section */
.page-live__introduction-section {
  padding: 60px 0;
  background-color: var(--jili777-background);
}

/* Why Choose Section */
.page-live__why-choose-section {
  padding: 60px 0;
  background-color: var(--jili777-dark-section-bg, #1a1a1a);
}

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

.page-live__feature-card {
  background-color: var(--jili777-card-bg);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--jili777-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-live__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(242, 193, 78, 0.2);
}

.page-live__feature-icon {
  width: 100%;
  height: auto;
  max-width: 200px;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-live__feature-title {
  font-size: 1.5em;
  color: var(--jili777-primary);
  margin-bottom: 15px;
}

/* Popular Games Section */
.page-live__popular-games-section {
  padding: 60px 0;
  background-color: var(--jili777-background);
}

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

.page-live__game-category-card {
  background-color: var(--jili777-card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--jili777-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.page-live__game-category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(242, 193, 78, 0.2);
}

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

.page-live__game-title {
  font-size: 1.4em;
  color: var(--jili777-primary);
  margin: 15px 15px 10px;
}

.page-live__game-title a {
  color: var(--jili777-primary);
  text-decoration: none;
}

.page-live__game-title a:hover {
  text-decoration: underline;
}

.page-live__game-category-card p {
  padding: 0 15px 20px;
  color: var(--jili777-text-main);
}

/* Promotions Section */
.page-live__promotions-section {
  padding: 60px 0;
  background-color: var(--jili777-dark-section-bg, #1a1a1a);
}

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

.page-live__promo-card {
  background-color: var(--jili777-card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--jili777-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  padding-bottom: 20px;
}

.page-live__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(242, 193, 78, 0.2);
}

.page-live__promo-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-live__promo-title {
  font-size: 1.5em;
  color: var(--jili777-primary);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-live__promo-title a {
  color: var(--jili777-primary);
  text-decoration: none;
}

.page-live__promo-title a:hover {
  text-decoration: underline;
}

.page-live__promo-card p {
  color: var(--jili777-text-main);
  margin-bottom: 20px;
  padding: 0 15px;
}

.page-live__promo-text {
  text-align: center;
  margin-top: 40px;
  font-size: 1.1em;
}

/* Seamless Experience Section */
.page-live__seamless-experience-section {
  padding: 60px 0;
  background-color: var(--jili777-background);
}

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

.page-live__experience-card {
  background-color: var(--jili777-card-bg);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--jili777-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-live__experience-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(242, 193, 78, 0.2);
}

/* Get Started Section */
.page-live__get-started-section {
  padding: 60px 0;
  background-color: var(--jili777-dark-section-bg, #1a1a1a);
}

.page-live__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  gap: 30px;
}

.page-live__steps-list li {
  background-color: var(--jili777-card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--jili777-border);
  text-align: center;
}

.page-live__step-title {
  font-size: 1.6em;
  color: var(--jili777-secondary);
  margin-bottom: 15px;
}

/* Providers Section */
.page-live__providers-section {
  padding: 60px 0;
  background-color: var(--jili777-background);
}

.page-live__providers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Adjusted for 167x127px images */
  gap: 20px;
  margin-top: 40px;
}

.page-live__provider-item {
  background-color: var(--jili777-card-bg);
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--jili777-border);
  transition: transform 0.3s ease;
}

.page-live__provider-item:hover {
  transform: translateY(-3px);
}

.page-live__provider-logo {
  width: 100%;
  max-width: 167px; /* Specific size for media partners */
  height: 127px; /* Specific size for media partners */
  object-fit: contain;
  margin: 0 auto 10px;
  display: block;
}

.page-live__provider-item p {
  font-size: 0.9em;
  color: var(--jili777-text-main);
}

/* FAQ Section */
.page-live__faq-section {
  padding: 60px 0;
  background-color: var(--jili777-dark-section-bg, #1a1a1a);
}

.page-live__faq-list {
  margin-top: 40px;
}

.page-live__faq-item {
  background-color: var(--jili777-card-bg);
  border: 1px solid var(--jili777-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-live__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: var(--jili777-card-bg);
  color: var(--jili777-primary);
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

.page-live__faq-question:hover {
  background-color: #1a1a1a;
}

.page-live__faq-question h3 {
  margin: 0;
  color: var(--jili777-primary);
}

.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;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--jili777-text-main);
}

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

/* CTA Section */
.page-live__cta-section {
  padding: 60px 0;
  text-align: center;
  background-color: var(--jili777-background);
}

.page-live__cta-section .page-live__cta-buttons {
  margin-top: 30px;
}

.page-live__small-text {
  font-size: 0.9em;
  color: var(--jili777-text-main);
  margin-top: 30px;
}

.page-live__small-text a {
  color: var(--jili777-secondary);
  text-decoration: none;
}

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

/* Dark background color for specific sections */
.page-live__dark-section {
  background-color: var(--jili777-card-bg);
}

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

@media (max-width: 768px) {
  .page-live__hero-section {
    padding: 40px 15px;
  }
  .page-live__main-title {
    font-size: clamp(2em, 7vw, 2.5em);
  }
  .page-live__hero-description {
    font-size: 1em;
  }
  .page-live__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-live__btn-primary,
  .page-live__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-live__container {
    padding: 0 15px;
  }
  .page-live__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-live__features-grid,
  .page-live__game-category-grid,
  .page-live__promo-cards,
  .page-live__experience-details,
  .page-live__steps-list,
  .page-live__providers-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-live__hero-image {
    max-height: 300px;
  }

  /* Mobile specific image adaptation */
  .page-live img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-live__section,
  .page-live__card,
  .page-live__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-live__hero-section {
    padding-top: 10px !important;
  }
  .page-live__provider-logo {
    max-width: 100px; /* Adjust for smaller screens but still > 200px equivalent for content */
    height: auto;
  }
  .page-live__promo-image {
    height: 180px;
  }
  .page-live__game-image {
    height: 150px;
  }
  .page-live__faq-question,
  .page-live__faq-answer {
    padding: 15px;
  }
  .page-live__faq-question h3 {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .page-live__section-title {
    font-size: 1.5em;
  }
  .page-live__main-title {
    font-size: clamp(1.8em, 8vw, 2.2em);
  }
  .page-live__hero-description {
    font-size: 0.9em;
  }
  .page-live__feature-title,
  .page-live__game-title,
  .page-live__promo-title,
  .page-live__step-title {
    font-size: 1.2em;
  }
  .page-live__hero-image {
    max-height: 200px;
  }
}