/* style/live.css */
:root {
  --nustargame-primary-color: #F2C14E;
  --nustargame-secondary-color: #FFD36B;
  --nustargame-card-bg: #111111;
  --nustargame-background-color: #0A0A0A;
  --nustargame-text-main-color: #FFF6D6;
  --nustargame-border-color: #3A2A12;
  --nustargame-glow-color: #FFD36B;
  --header-offset: 120px; /* Default desktop header height */
}

.page-live {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--nustargame-text-main-color); /* Light text for dark body background */
  background-color: var(--nustargame-background-color);
}

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

.page-live__hero-section {
  background: linear-gradient(135deg, var(--nustargame-primary-color), var(--nustargame-secondary-color));
  padding-top: var(--header-offset, 120px); /* Account for fixed header on desktop */
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-live__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Constrain image width */
  margin-bottom: 20px;
}

.page-live__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.page-live__hero-content {
  max-width: 800px;
  padding: 0 20px;
}

.page-live__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-live__hero-description {
  font-size: 1.15rem;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-live__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--nustargame-primary-color);
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-live__section-description {
  font-size: 1.05rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
  color: var(--nustargame-text-main-color);
}

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

.page-live__cta-buttons--centered {
  margin-top: 50px;
}

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

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

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

.page-live__btn-secondary {
  background: var(--nustargame-card-bg);
  color: var(--nustargame-primary-color);
  border: 2px solid var(--nustargame-primary-color);
}

.page-live__btn-secondary:hover {
  transform: translateY(-3px);
  background: var(--nustargame-primary-color);
  color: var(--nustargame-card-bg);
  box-shadow: 0 4px 10px rgba(242, 193, 78, 0.4);
}

.page-live__btn-small {
  padding: 10px 20px;
  font-size: 0.95rem;
  border-radius: 25px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #0A0A0A;
  border: none;
}

.page-live__btn-small:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(242, 193, 78, 0.4);
}

.page-live__card {
  background: var(--nustargame-card-bg);
  border: 1px solid var(--nustargame-border-color);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: var(--nustargame-text-main-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-live__games-section {
  padding: 60px 0;
}

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

.page-live__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

.page-live__game-title {
  font-size: 1.5rem;
  color: var(--nustargame-primary-color);
  margin-bottom: 10px;
}

.page-live__game-description {
  font-size: 0.95rem;
  color: #cccccc;
  margin-bottom: 20px;
}

.page-live__why-choose-us {
  padding: 60px 0;
}

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

.page-live__feature-icon {
  width: 300px; /* Display width */
  height: 200px; /* Display height */
  object-fit: contain;
  margin-bottom: 15px;
  min-width: 200px;
  min-height: 200px;
}

.page-live__feature-title {
  font-size: 1.4rem;
  color: var(--nustargame-primary-color);
  margin-bottom: 10px;
}

.page-live__feature-text {
  font-size: 0.95rem;
  color: #cccccc;
}

.page-live__getting-started {
  padding: 60px 0;
}

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

.page-live__step-title {
  font-size: 1.3rem;
  color: var(--nustargame-primary-color);
  margin-bottom: 10px;
}

.page-live__step-text {
  font-size: 0.95rem;
  color: #cccccc;
}

.page-live__mobile-app-section {
  padding: 60px 0;
}

.page-live__mobile-app-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-live__mobile-app-text {
  flex: 1;
  min-width: 300px;
}

.page-live__mobile-app-image-wrapper {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-live__mobile-app-image {
  width: 400px; /* Display width */
  height: 300px; /* Display height */
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

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

.page-live__app-features li {
  background: var(--nustargame-card-bg);
  border: 1px solid var(--nustargame-border-color);
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.page-live__feature-sub-title {
  font-size: 1.2rem;
  color: var(--nustargame-secondary-color);
  margin-bottom: 5px;
}

.page-live__app-features p {
  font-size: 0.9rem;
  color: #cccccc;
  margin: 0;
}

.page-live__faq-section {
  padding: 60px 0;
}

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

.page-live__faq-item {
  margin-bottom: 20px;
  overflow: hidden;
  text-align: left;
}

.page-live__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 15px 20px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--nustargame-primary-color);
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid var(--nustargame-border-color);
  border-radius: 8px;
  transition: background 0.3s ease;
}

.page-live__faq-question:hover {
  background: rgba(255, 255, 255, 0.1);
}

.page-live__faq-toggle {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--nustargame-secondary-color);
  transition: transform 0.3s ease;
}

.page-live__faq-item.active .page-live__faq-question {
  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 20px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  background: var(--nustargame-card-bg);
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

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

.page-live__faq-answer p {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: #cccccc;
}

.page-live__contact-section {
  padding: 60px 0;
}

.page-live__contact-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-live__contact-text {
  flex: 1;
  min-width: 300px;
}

.page-live__contact-image-wrapper {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-live__contact-image {
  width: 400px; /* Display width */
  height: 300px; /* Display height */
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

.page-live a {
  color: var(--nustargame-secondary-color);
  text-decoration: none;
}

.page-live a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-live__hero-section {
    padding-bottom: 30px;
  }

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

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

  .page-live__hero-description,
  .page-live__section-description,
  .page-live__game-description,
  .page-live__feature-text,
  .page-live__step-text,
  .page-live__app-features p,
  .page-live__faq-answer p {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  :root {
    --header-offset: 100px; /* Adjust for mobile header height */
  }

  .page-live__hero-section {
    padding-top: var(--header-offset, 100px) !important; /* Mobile header offset */
    padding-bottom: 20px;
  }

  .page-live {
    font-size: 16px;
    line-height: 1.6;
  }

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

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

  .page-live__container,
  .page-live__section,
  .page-live__card {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-live__hero-image-wrapper,
  .page-live__mobile-app-image-wrapper,
  .page-live__contact-image-wrapper {
    width: 100% !important;
    max-width: 100% !important;
  }

  .page-live__game-image,
  .page-live__feature-icon,
  .page-live__mobile-app-image,
  .page-live__contact-image {
    min-width: 200px !important;
    min-height: 200px !important;
  }

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

  .page-live__btn-primary,
  .page-live__btn-secondary,
  .page-live__btn-small {
    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__mobile-app-content,
  .page-live__contact-content {
    flex-direction: column-reverse; /* Text above image on mobile for contact/app sections */
    text-align: center;
  }

  .page-live__mobile-app-text,
  .page-live__contact-text {
    order: 2;
  }

  .page-live__mobile-app-image-wrapper,
  .page-live__contact-image-wrapper {
    order: 1;
    margin-bottom: 20px;
  }

  .page-live__app-features li {
    align-items: center;
    text-align: center;
  }
}