/* style/live.css */

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

/* Fixed Header Spacing */
.page-live__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

/* General container for content sections */
.page-live__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-live__section-title {
  font-size: clamp(2em, 4vw, 2.8em);
  color: #F2C14E; /* Primary color */
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.2;
}

.page-live__sub-title {
  font-size: clamp(1.5em, 3vw, 2.2em);
  color: #FFD36B; /* Auxiliary color */
  margin-top: 30px;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-live__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #FFF6D6; /* Text Main */
}

/* Hero Section */
.page-live__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 600px; /* Minimum height for hero */
}

.page-live__hero-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-live__hero-image {
  width: 100%;
  max-width: 1200px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-live__hero-text-content {
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.page-live__main-title {
  font-size: clamp(2.5em, 5vw, 3.8em);
  color: #F2C14E; /* Primary color */
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.page-live__subtitle {
  font-size: clamp(1.2em, 2vw, 1.5em);
  color: #FFF6D6; /* Text Main */
  margin-bottom: 30px;
  max-width: 900px;
  line-height: 1.5;
}

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

.page-live__btn-primary,
.page-live__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  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: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #0A0A0A; /* Dark text for contrast */
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-live__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
  background: linear-gradient(180deg, #DDA11D 0%, #FFD86A 100%);
}

.page-live__btn-secondary {
  background-color: transparent;
  color: #F2C14E; /* Primary color */
  border: 2px solid #F2C14E; /* Primary color border */
}

.page-live__btn-secondary:hover {
  background-color: #F2C14E;
  color: #0A0A0A; /* Dark text for contrast */
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.2);
}

/* Card styles */
.page-live__card {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #FFF6D6; /* Text Main */
}

.page-live__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

/* Game Grid Section */
.page-live__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-live__game-card-title {
  font-size: 1.4em;
  color: #F2C14E; /* Primary color */
  margin-bottom: 15px;
  font-weight: 600;
}

.page-live__game-card p {
  font-size: 0.95em;
  color: #FFF6D6;
}

/* Image styles */
.page-live__image-full-width {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin: 30px 0;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Partner Logos Section */
.page-live__partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(167px, 1fr)); /* Min width for partner logos */
  gap: 20px;
  margin-top: 30px;
  justify-items: center;
  align-items: center;
}

.page-live__partner-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
  height: 127px; /* Fixed height for partner logos */
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
}

.page-live__partner-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto; /* Ensure aspect ratio is maintained */
  height: auto; /* Ensure aspect ratio is maintained */
  object-fit: contain;
  transition: transform 0.3s ease;
}

.page-live__partner-logo img:hover {
  transform: scale(1.05);
}

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

.page-live__faq-item {
  margin-bottom: 15px;
  overflow: hidden;
  cursor: pointer;
  border-radius: 8px;
}

.page-live__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: #1a1a1a;
  color: #FFD36B; /* Auxiliary color */
  font-weight: 600;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

.page-live__faq-question:hover {
  background-color: #2a2a2a;
}

.page-live__faq-question-title {
  margin: 0;
  color: inherit;
  font-size: 1em; /* Inherit from parent */
}

.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: #FFF6D6; /* Text Main */
}

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

.page-live__faq-answer p {
  margin: 0;
  font-size: 0.95em;
}

/* Conclusion Section */
.page-live__conclusion-section {
  text-align: center;
  padding-bottom: 60px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-live__hero-image {
    max-width: 900px;
    height: 506px; /* Approx 16:9 for 900px width */
  }
}

@media (max-width: 768px) {
  .page-live__hero-section {
    min-height: auto;
    padding-top: var(--header-offset, 120px) !important;
  }

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

  .page-live__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin-bottom: 20px;
  }

  .page-live__main-title {
    font-size: clamp(2em, 8vw, 2.8em);
    margin-bottom: 15px;
  }

  .page-live__subtitle {
    font-size: clamp(1em, 4vw, 1.2em);
    margin-bottom: 25px;
  }

  .page-live__section-title {
    font-size: clamp(1.8em, 7vw, 2.2em);
    margin-bottom: 30px;
  }

  .page-live__sub-title {
    font-size: clamp(1.3em, 5vw, 1.8em);
    margin-top: 25px;
    margin-bottom: 15px;
  }

  .page-live__text-block {
    font-size: 1em;
  }

  .page-live__container {
    padding: 30px 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: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-live__game-grid,
  .page-live__partners-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-live__card {
    padding: 20px;
  }

  .page-live__partner-logo {
    width: 100%;
    max-width: 200px; /* Allow logos to scale down but not too small */
    margin: 0 auto;
  }

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

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

  .page-live__faq-item.active .page-live__faq-answer {
    padding: 12px 15px;
  }
  
  .page-live__section,
  .page-live__card,
  .page-live__container,
  .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;
  }
  
  .page-live__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-live__hero-text-content {
    padding: 0 10px;
  }

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

  .page-live__subtitle {
    font-size: clamp(0.9em, 4.5vw, 1.1em);
  }

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

  .page-live__sub-title {
    font-size: clamp(1.2em, 6vw, 1.5em);
  }

  .page-live__container {
    padding: 20px 10px;
  }

  .page-live__btn-primary,
  .page-live__btn-secondary {
    font-size: 0.9em;
    padding: 10px 15px;
  }
  
  .page-live__section,
  .page-live__card,
  .page-live__container,
  .page-live__cta-buttons,
  .page-live__button-group,
  .page-live__btn-container {
    padding-left: 10px;
    padding-right: 10px;
  }
}