/* style/live.css */
.page-live {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main */
  background-color: transparent; /* Body background is handled by shared.css (#0A0A0A) */
}

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

/* Hero Section */
.page-live__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top spacing to prevent header overlap */
  padding-bottom: 60px;
  overflow: hidden;
  text-align: center;
}

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

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

.page-live__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px;
  border-radius: 10px;
  background: rgba(17, 17, 17, 0.7); /* Card BG with opacity */
  margin-top: 150px; /* Adjust based on header height */
}

.page-live__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFF6D6;
  line-height: 1.2;
}

.page-live__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* Buttons */
.page-live__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.page-live__cta-buttons--center {
    justify-content: center;
}

.page-live__btn-primary,
.page-live__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s ease;
  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%);
  color: #111111; /* Dark text for light button */
  border: none;
}

.page-live__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-live__btn-secondary {
  background: #111111; /* Card BG */
  color: #FFD36B; /* Glow color */
  border: 2px solid #3A2A12; /* Border color */
}

.page-live__btn-secondary:hover {
  background: #222222;
  color: #FFF6D6;
}

/* Sections */
.page-live__about-section,
.page-live__features-section,
.page-live__security-section,
.page-live__partners-section,
.page-live__cta-bottom-section {
  padding: 80px 0;
}

.page-live__games-section,
.page-live__promotions-section,
.page-live__faq-section {
  padding: 80px 0;
  background-color: #111111; /* Card BG */
}

.page-live__section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #FFF6D6;
}

.page-live__text-block {
  font-size: 1.05rem;
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-live__sub-title {
  font-size: 1.7rem;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #FFD36B; /* Glow color */
}

.page-live__highlight {
    color: #FFD36B;
    font-weight: bold;
}

/* Image & Text Block */
.page-live__image-text-block {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
}

.page-live__image-text-block img,
.page-live__security-content img {
  flex: 1;
  max-width: 50%;
  border-radius: 10px;
  object-fit: cover;
}

.page-live__text-content {
  flex: 1;
  max-width: 50%;
  text-align: left;
}

.page-live__feature-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-live__feature-list li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  color: #f0f0f0;
}

.page-live__feature-list li::before {
  content: '✔️';
  position: absolute;
  left: 0;
  color: #FFD36B;
}

/* Game Categories */
.page-live__game-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-live__category-card {
  background-color: #0A0A0A; /* Background color */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  text-decoration: none;
  color: #FFF6D6;
  transition: transform 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.page-live__category-card:hover {
  transform: translateY(-5px);
  border-color: #FFD36B;
}

.page-live__category-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 5px rgba(255, 211, 107, 0.5));
}

.page-live__category-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FFD36B;
}

.page-live__category-description {
  font-size: 0.95rem;
  color: #ccc;
}

/* Features Grid */
.page-live__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-live__feature-item {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 30px;
  box-sizing: border-box;
}

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

.page-live__feature-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFD36B;
  padding: 0 20px;
}

.page-live__feature-description {
  font-size: 1rem;
  color: #ccc;
  padding: 0 20px;
}

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

.page-live__promo-card {
  background-color: #0A0A0A; /* Background color */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 30px;
  box-sizing: border-box;
}

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

.page-live__promo-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFD36B;
  padding: 0 20px;
}

.page-live__promo-description {
  font-size: 1rem;
  color: #ccc;
  padding: 0 20px;
}

/* Security Section */
.page-live__security-content {
  display: flex;
  flex-direction: row-reverse; /* Image on right */
  align-items: center;
  gap: 40px;
  margin-top: 50px;
}

.page-live__security-content .page-live__text-block {
  flex: 1;
  max-width: 50%;
  text-align: left;
  margin: 0;
}

/* FAQ Section */
.page-live__faq-list {
  margin-top: 50px;
}

.page-live__faq-item {
  background-color: #0A0A0A; /* Background color */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-live__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1rem;
  color: #FFF6D6;
  transition: background-color 0.3s ease;
}

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

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

.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: #ccc;
}

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

.page-live__faq-answer p {
  margin-bottom: 10px;
  color: #ccc;
}

/* Partners Section */
.page-live__partner-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-top: 50px;
}

.page-live__partner-logo {
  max-width: 167px; /* Fixed width */
  height: 127px; /* Fixed height */
  object-fit: contain;
  filter: grayscale(100%) brightness(150%); /* Make logos fit dark theme */
  transition: filter 0.3s ease;
}

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

/* Links within text */
.page-live a {
  color: #FFD36B; /* Glow color for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-live a:hover {
  color: #F2C14E; /* Main color on hover */
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-live__hero-content {
    margin-top: 100px;
    padding: 30px;
  }

  .page-live__image-text-block,
  .page-live__security-content {
    flex-direction: column;
    text-align: center;
  }

  .page-live__image-text-block img,
  .page-live__security-content img {
    max-width: 80%;
    margin-bottom: 30px;
  }

  .page-live__text-content,
  .page-live__security-content .page-live__text-block {
    max-width: 100%;
    text-align: center;
  }

  .page-live__feature-list {
    text-align: left;
  }

  .page-live__feature-grid,
  .page-live__promo-grid,
  .page-live__game-categories {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-live__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    padding-bottom: 40px;
  }

  .page-live__hero-content {
    margin-top: 0; /* Remove extra top margin on mobile */
    padding: 20px;
  }

  .page-live__main-title {
    font-size: 2.2rem;
  }

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

  .page-live__section-title {
    font-size: 1.8rem;
  }

  .page-live__about-section,
  .page-live__features-section,
  .page-live__security-section,
  .page-live__partners-section,
  .page-live__cta-bottom-section,
  .page-live__games-section,
  .page-live__promotions-section,
  .page-live__faq-section {
    padding: 40px 0;
  }

  /* Mobile image responsiveness */
  .page-live img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  
  .page-live__hero-image {
    height: 100%; /* Ensure hero image covers full height */
    object-fit: cover;
  }

  .page-live__image-text-block img,
  .page-live__security-content img {
    max-width: 100%;
  }

  /* Mobile button responsiveness */
  .page-live__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-live__btn-primary,
  .page-live__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95rem;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Containers for mobile */
  .page-live__section,
  .page-live__card,
  .page-live__container,
  .page-live__game-categories,
  .page-live__feature-grid,
  .page-live__promo-grid,
  .page-live__faq-list,
  .page-live__partner-logos {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-live__partner-logo {
    max-width: 120px; /* Adjust partner logo size for smaller screens */
    height: auto;
  }

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