/* style/live.css */
:root {
  --fachai-primary: #F2C14E;
  --fachai-secondary: #FFD36B;
  --fachai-bg-dark: #0A0A0A;
  --fachai-card-bg: #111111;
  --fachai-text-main: #FFF6D6;
  --fachai-border: #3A2A12;
  --fachai-glow: #FFD36B;
  --fachai-btn-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-live {
  font-family: Arial, sans-serif;
  color: var(--fachai-text-main);
  background-color: var(--fachai-bg-dark);
}

.page-live__section {
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.page-live__dark-section {
  background-color: var(--fachai-bg-dark);
  color: var(--fachai-text-main);
}

.page-live__bg-dark-card {
  background-color: var(--fachai-bg-dark);
  color: var(--fachai-text-main);
}

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

.page-live__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--fachai-text-main);
  text-align: center;
  margin-bottom: 20px;
}

.page-live__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--fachai-text-main);
  text-align: center;
  margin-bottom: 20px;
}

.page-live__description,
.page-live__section-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--fachai-text-main);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-live__card {
  background-color: var(--fachai-card-bg);
  border: 1px solid var(--fachai-border);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--fachai-text-main);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-live__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 15px;
  margin-bottom: 10px;
  color: var(--fachai-text-main);
}

.page-live__card-link {
  color: var(--fachai-text-main);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-live__card-link:hover {
  color: var(--fachai-secondary);
}

.page-live__card-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--fachai-text-main);
}

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

.page-live__btn-primary {
  background: var(--fachai-btn-gradient);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-live__btn-primary:hover {
  background: linear-gradient(180deg, #E0A01C 0%, #FFD86A 100%);
  box-shadow: 0 0 15px var(--fachai-glow);
}

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

.page-live__btn-secondary:hover {
  background-color: var(--fachai-primary);
  color: var(--fachai-bg-dark);
  box-shadow: 0 0 15px var(--fachai-glow);
}

.page-live__btn-small {
  padding: 10px 20px;
  font-size: 0.9rem;
  margin-top: 20px;
}

/* Hero Section */
.page-live__hero-section {
  padding: 60px 20px;
  padding-top: 10px; /* Aligns with body padding-top */
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  min-height: 600px;
}

.page-live__hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-live__hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken video for text readability */
}

.page-live__hero-video:hover {
  cursor: pointer;
}

.page-live__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text */
  border-radius: 10px;
}

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

/* Explore Games Section */
.page-live__explore-games .page-live__section-description {
  margin-bottom: 60px;
}

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

.page-live__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

/* Why Choose Fachai Section */
.page-live__why-fachai .page-live__section-description {
  margin-bottom: 60px;
}

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

.page-live__benefit-item {
  padding: 30px;
}

/* Game Providers Section */
.page-live__game-providers .page-live__section-description {
  margin-bottom: 60px;
}

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

.page-live__provider-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px;
  min-height: 150px;
}

.page-live__provider-logo {
  width: 167px; /* Fixed width */
  height: 127px; /* Fixed height */
  object-fit: contain;
  margin-bottom: 10px;
}

.page-live__provider-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fachai-text-main);
}

/* Live Dealer Experience Section */
.page-live__dealer-experience .page-live__section-description {
  margin-bottom: 60px;
}

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

.page-live__experience-item {
  padding: 25px;
  background-color: var(--fachai-card-bg);
  border-radius: 10px;
  border: 1px solid var(--fachai-border);
  text-align: center;
}

.page-live__experience-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* Promotions Section */
.page-live__promotions .page-live__section-description {
  margin-bottom: 60px;
}

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

.page-live__promo-card {
  padding: 25px;
}

.page-live__promo-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-live__cta-center {
  text-align: center;
}

/* FAQ Section */
.page-live__faq-section .page-live__section-description {
  margin-bottom: 40px;
}

.page-live__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.page-live__faq-item {
  margin-bottom: 20px;
  padding: 0;
  overflow: hidden;
}

.page-live__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: var(--fachai-primary);
  color: var(--fachai-bg-dark);
  cursor: pointer;
  border-radius: 10px;
  transition: background-color 0.3s ease;
}

.page-live__faq-question:hover {
  background-color: var(--fachai-secondary);
}

.page-live__faq-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
  color: var(--fachai-bg-dark);
}

.page-live__faq-toggle {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  color: var(--fachai-bg-dark);
  transition: transform 0.3s ease;
}

.page-live__faq-item.active .page-live__faq-question {
  background-color: var(--fachai-secondary);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

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

.page-live__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  background-color: var(--fachai-card-bg);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  border: 1px solid var(--fachai-border);
  border-top: none;
}

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

.page-live__faq-answer p {
  text-align: left;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  color: var(--fachai-text-main);
}

/* Final CTA Section */
.page-live__cta-final {
  padding: 80px 20px;
  text-align: center;
}

.page-live__cta-final .page-live__section-title {
  margin-bottom: 20px;
}

.page-live__cta-final .page-live__section-description {
  margin-bottom: 40px;
}

/* Global Image Styles */
.page-live img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .page-live__game-categories,
  .page-live__benefits-grid,
  .page-live__experience-grid,
  .page-live__promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .page-live__providers-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-live__section {
    padding: 40px 0;
  }

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

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

  .page-live__description,
  .page-live__section-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .page-live__hero-section {
    min-height: 500px;
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-live__hero-content {
    padding: 20px 15px;
  }

  .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-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-live__container {
    padding: 0 15px;
  }

  .page-live__game-categories,
  .page-live__benefits-grid,
  .page-live__experience-grid,
  .page-live__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-live__providers-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .page-live__game-image,
  .page-live__experience-image,
  .page-live__promo-image {
    height: 150px;
  }

  .page-live__faq-question {
    padding: 15px 20px;
  }

  .page-live__faq-title {
    font-size: 1rem;
  }

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

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

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

  .page-live__hero-video {
    width: 100% !important;
    height: 100% !important;
  }

  .page-live__hero-video-wrapper {
    width: 100% !important;
    height: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-live__section,
  .page-live__card,
  .page-live__container,
  .page-live__cta-buttons,
  .page-live__game-categories,
  .page-live__benefits-grid,
  .page-live__experience-grid,
  .page-live__promo-grid,
  .page-live__providers-grid,
  .page-live__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-live__explore-games,
  .page-live__why-fachai,
  .page-live__game-providers,
  .page-live__dealer-experience,
  .page-live__promotions,
  .page-live__faq-section,
  .page-live__cta-final {
    padding-left: 15px;
    padding-right: 15px;
  }
}