/* style/live.css */

/* Global styles for the live page content */
.page-live {
  font-family: Arial, sans-serif;
  color: #FFF6D6; /* Text Main on dark background #0A0A0A */
  background-color: var(--site-bg, #0A0A0A); /* Ensure dark background */
  line-height: 1.6;
  padding-bottom: 40px; /* Spacing before footer */
}

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

/* Hero Section */
.page-live__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 40px;
  background-color: #0A0A0A; /* Ensure dark background for hero */
}

.page-live__hero-image {
  width: 100%;
  max-width: 1200px; /* Max width for image display */
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 30px; /* Space between image and text content */
}

.page-live__hero-content {
  max-width: 900px;
  margin-top: -80px; /* Slightly overlap image for visual flow */
  position: relative;
  z-index: 1; /* Ensure content is above any subtle background elements */
  background: rgba(17, 17, 17, 0.8); /* Card BG with transparency */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0,0, 0.4);
}

.page-live__main-title {
  font-size: clamp(2em, 4vw, 3em); /* Responsive font size */
  color: #FFD36B; /* Glow color for main title */
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

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

/* General Section Titles */
.page-live__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  color: #FFD36B;
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.2;
}

.page-live__text-block {
  font-size: 1em;
  color: #FFF6D6;
  margin-bottom: 20px;
  text-align: justify;
}

/* CTA Buttons */
.page-live__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-live__btn-primary,
.page-live__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure buttons don't overflow */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-live__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Custom button gradient */
  color: #111111; /* Dark text for contrast on bright button */
  border: 2px solid transparent;
}

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

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

.page-live__btn-secondary:hover {
  transform: translateY(-3px);
  background: #3A2A12; /* Border color on hover */
  color: #FFF6D6; /* Text Main on hover */
}

/* Introduction Section */
.page-live__introduction-section {
  padding: 40px 0;
  background-color: #0A0A0A;
}

/* Video Section */
.page-live__video-section {
  padding: 40px 0;
  background-color: #0A0A0A;
  text-align: center;
}

.page-live__video-container {
  width: 100%; /* Desktop width: 100% */
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  overflow: hidden; /* Ensure video doesn't overflow */
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.5);
  margin-top: 30px;
  position: relative;
}

.page-live__video-link {
  display: block;
  line-height: 0; /* Remove extra space below video */
}

.page-live__video {
  width: 100%;
  height: auto;
  display: block;
}

.page-live__video-caption {
  color: #FFF6D6;
  font-size: 0.9em;
  margin-top: 15px;
}

/* Game Categories Section */
.page-live__game-categories-section {
  padding: 40px 0;
  background-color: #0A0A0A;
}

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

.page-live__category-card {
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #FFF6D6;
}

.page-live__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  background: rgba(242, 193, 78, 0.1); /* Slight highlight on hover */
}

.page-live__category-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 5px rgba(255, 211, 107, 0.5)); /* Glow effect for icon */
  display: inline-block; /* Ensure proper sizing for small icons */
}

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

.page-live__category-description {
  font-size: 0.95em;
  color: #FFF6D6;
  margin-bottom: 20px;
}

.page-live__category-link {
  display: inline-block;
  color: #F2C14E;
  text-decoration: none;
  font-weight: bold;
  border-bottom: 2px solid #F2C14E;
  padding-bottom: 3px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-live__category-link:hover {
  color: #FFD36B;
  border-color: #FFD36B;
}

/* Why Choose Section */
.page-live__why-choose-section {
  padding: 40px 0;
  background-color: #0A0A0A;
}

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

.page-live__feature-card {
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #FFF6D6;
}

.page-live__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.4);
}

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

.page-live__feature-card h3 {
  font-size: 1.3em;
  color: #FFD36B;
  padding: 20px 20px 10px;
  font-weight: bold;
}

.page-live__feature-card p {
  font-size: 0.95em;
  color: #FFF6D6;
  padding: 0 20px 20px;
}

/* FAQ Section */
.page-live__faq-section {
  padding: 40px 0;
  background-color: #0A0A0A;
}

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

.page-live__faq-item {
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border color */
  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: #111111; /* Card BG */
  color: #FFD36B;
  font-weight: bold;
  font-size: 1.1em;
  transition: background 0.3s ease;
}

.page-live__faq-question:hover {
  background: rgba(242, 193, 78, 0.15); /* Slight highlight on hover */
}

.page-live__faq-question h3 {
  margin: 0;
  color: inherit;
  font-size: 1em; /* Reset h3 font size within question */
}

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

.page-live__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #FFF6D6;
  font-size: 0.95em;
}

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

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

/* Partners Section */
.page-live__partners-section {
  padding: 40px 0;
  background-color: #0A0A0A;
}

.page-live__partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 columns for desktop */
  gap: 20px;
  margin-top: 30px;
}

.page-live__partner-item {
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 8px;
  padding: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 127px; /* Fixed height to match image */
  box-sizing: border-box;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-live__partner-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.page-live__partner-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block; /* Ensure it behaves as a block element */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-live__hero-content {
    margin-top: -60px;
  }
  .page-live__partners-grid {
    grid-template-columns: repeat(4, 1fr); /* 4 columns for tablet */
  }
}

@media (max-width: 768px) {
  .page-live__hero-section {
    padding-bottom: 30px;
  }

  .page-live__hero-content {
    margin-top: -40px;
    padding: 20px;
  }

  .page-live__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }

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

  .page-live__section-title {
    font-size: clamp(1.5em, 5vw, 2em);
  }

  .page-live__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    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-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: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  
  /* Mobile video adaptation */
  .page-live__video-section {
    padding-top: 10px !important; /* Small top padding, body handles --header-offset */
  }
  .page-live__video-container {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
  .page-live__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Mobile image adaptation */
  .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__faq-item,
  .page-live__feature-card,
  .page-live__category-card,
  .page-live__partner-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-live__categories-grid,
  .page-live__features-grid {
    grid-template-columns: 1fr; /* Single column for mobile */
  }

  .page-live__partners-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns for mobile partners */
  }
  .page-live__partner-item {
    height: auto; /* Allow height to adjust for smaller screens */
    padding: 10px;
  }
}

/* Color Contrast Safeguards (already integrated above based on #0A0A0A background and #FFF6D6 text) */
/* Ensuring sufficient contrast for all elements */
.page-live h1, .page-live h2, .page-live h3, .page-live h4, .page-live h5, .page-live h6 {
  color: #FFD36B; /* Glow color for headings */
}
.page-live p, .page-live li, .page-live__hero-description, .page-live__text-block {
  color: #FFF6D6; /* Text Main */
}
.page-live__card, .page-live__faq-item, .page-live__feature-card, .page-live__partner-item {
  background: #111111; /* Card BG */
  color: #FFF6D6; /* Text Main */
}
.page-live__btn-primary {
  color: #111111; /* Dark text on bright button */
}
.page-live__btn-secondary {
  color: #FFD36B; /* Glow color on dark button */
}