/* style/live.css */
/* body already has padding-top: var(--header-offset); page should not use this variable again for __video-section or main content top spacing */

.page-live {
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-live__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Minimal top padding, rely on body for header offset */
  background-color: #0A0A0A; /* Background */
}

.page-live__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-live__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim the background image for text readability */
}

.page-live__hero-content {
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Overlap slightly with image for visual flow */
  position: relative; /* Ensure content is above image for z-index */
  z-index: 2;
  background: linear-gradient(to top, rgba(10, 10, 10, 1) 0%, rgba(10, 10, 10, 0.7) 70%, rgba(10, 10, 10, 0) 100%); /* Gradient for better text contrast */
  padding-top: 100px; /* Compensate for gradient height */
}

.page-live__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #FFF6D6; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-live__hero-description {
  font-size: 1.1rem;
  color: #FFF6D6; /* Text Main */
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-live__section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #F2C14E; /* Main Color */
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-live__section-description {
  font-size: 1.1rem;
  color: #FFF6D6; /* Text Main */
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-live__featured-games-section,
.page-live__sports-betting-section,
.page-live__promotions-section,
.page-live__app-download-section,
.page-live__faq-section,
.page-live__partners-section,
.page-live__contact-cta-section {
  padding: 60px 0;
  background-color: #0A0A0A; /* Background */
}

.page-live__game-categories {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.page-live__category-item {
  display: flex;
  align-items: center;
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  padding: 10px 20px;
  text-decoration: none;
  color: #FFF6D6; /* Text Main */
  font-weight: 600;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.page-live__category-item:hover {
  background-color: #F2C14E;
  color: #0A0A0A;
  border-color: #F2C14E;
}

.page-live__category-icon {
  margin-right: 10px;
  width: 30px;
  height: 30px;
  filter: brightness(1.2); /* Enhance icon visibility */
}

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

.page-live__game-card,
.page-live__sports-card,
.page-live__promo-card {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 15px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-live__game-thumbnail,
.page-live__sports-thumbnail,
.page-live__promo-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-live__game-title,
.page-live__sports-title,
.page-live__promo-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 10px 15px;
  line-height: 1.3;
}

.page-live__game-title a,
.page-live__sports-title a,
.page-live__promo-title a {
  color: #F2C14E; /* Main Color */
  text-decoration: none;
}

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

.page-live__game-provider,
.page-live__sports-event,
.page-live__promo-details {
  font-size: 0.95rem;
  color: #FFF6D6; /* Text Main */
  margin: 0 15px 20px 15px;
  flex-grow: 1;
}

.page-live__btn-play {
  display: inline-block;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button */
  color: #111111; /* Dark text for bright button */
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(242, 193, 78, 0.4);
}

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

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

.page-live__btn-primary,
.page-live__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  border: 2px solid transparent;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-live__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button */
  color: #111111; /* Dark text for bright button */
  box-shadow: 0 4px 10px rgba(242, 193, 78, 0.4);
}

.page-live__btn-primary:hover {
  background: linear-gradient(180deg, #FFD36B 0%, #F2C14E 100%);
  box-shadow: 0 6px 15px rgba(242, 193, 78, 0.6);
}

.page-live__btn-secondary {
  background-color: transparent;
  color: #F2C14E; /* Main Color */
  border-color: #F2C14E;
}

.page-live__btn-secondary:hover {
  background-color: #F2C14E;
  color: #111111; /* Dark text for bright button */
}

.page-live__app-content {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 40px;
}

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

.page-live__app-text {
  flex: 1;
  max-width: 600px;
}

.page-live__app-subtitle {
  font-size: 2rem;
  color: #FFD36B; /* Auxiliary Color */
  margin-bottom: 20px;
}

.page-live__app-features {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-live__app-features li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  color: #FFF6D6; /* Text Main */
  font-size: 1.05rem;
}

.page-live__app-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #F2C14E; /* Main Color */
  font-weight: bold;
}

.page-live__app-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

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

.page-live__faq-item {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-live__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  color: #F2C14E; /* Main Color */
  font-weight: 600;
  font-size: 1.15rem;
}

.page-live__faq-question:hover {
  background-color: rgba(242, 193, 78, 0.1);
}

.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); /* Change + to X visually */
}

.page-live__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #FFF6D6; /* Text Main */
  font-size: 1rem;
}

.page-live__faq-item.active .page-live__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 20px;
  padding-top: 0;
}

.page-live__faq-answer p {
  margin-bottom: 0;
}

.page-live__partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  justify-items: center;
  align-items: center;
  margin-top: 40px;
}

.page-live__partner-logo {
  width: 100%;
  max-width: 167px;
  height: auto;
  object-fit: contain;
  filter: grayscale(80%) brightness(1.5);
  transition: filter 0.3s ease;
}

.page-live__partner-logo:hover {
  filter: grayscale(0%) brightness(1);
}

.page-live__contact-cta-section .page-live__cta-buttons {
  margin-top: 40px;
  gap: 20px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-live__hero-content {
    margin-top: -80px;
    padding-top: 80px;
  }
}

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

  .page-live__container {
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-live__hero-content {
    margin-top: -60px;
    padding: 30px 15px;
    padding-top: 60px;
  }

  .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;
    width: 100%;
  }

  .page-live__btn-primary,
  .page-live__btn-secondary,
  .page-live__btn-play,
  .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-left: 15px;
    padding-right: 15px;
  }

  .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: 0;
    padding-right: 0;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-live__cta-buttons {
    flex-direction: column;
  }

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

  .page-live__section-description {
    font-size: 0.95rem;
  }

  .page-live__featured-games-section,
  .page-live__sports-betting-section,
  .page-live__promotions-section,
  .page-live__app-download-section,
  .page-live__faq-section,
  .page-live__partners-section,
  .page-live__contact-cta-section {
    padding: 40px 0;
  }

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

  .page-live__game-card,
  .page-live__sports-card,
  .page-live__promo-card {
    padding-bottom: 15px;
  }

  .page-live__game-thumbnail,
  .page-live__sports-thumbnail,
  .page-live__promo-thumbnail {
    height: 180px;
  }

  .page-live__app-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-live__app-image {
    max-width: 300px;
  }

  .page-live__app-subtitle {
    font-size: 1.6rem;
  }

  .page-live__app-features li {
    font-size: 1rem;
  }

  .page-live__app-buttons {
    flex-direction: column;
  }

  .page-live__faq-question {
    font-size: 1rem;
    padding: 15px;
  }

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

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

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

  .page-live__partner-logo {
    max-width: 100px;
  }
}

@media (max-width: 480px) {
  .page-live__hero-content {
    margin-top: -40px;
    padding-top: 40px;
  }
  .page-live__hero-title {
    font-size: clamp(1.8rem, 9vw, 2.2rem);
  }
}