/* style/live.css */
.page-live {
  color: #333333; /* Dark text on light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Fixed header offset for PC */
}

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

.page-live__section-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-live__section-subtitle {
  font-size: 1.2em;
  color: #666666;
  text-align: center;
  margin-bottom: 40px;
}

.page-live__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}

.page-live__button--primary {
  background-color: #000000; /* Main color for primary actions */
  color: #FFFFFF;
}

.page-live__button--primary:hover {
  background-color: #333333;
}

.page-live__button--secondary {
  background-color: #FCBC45; /* Login color for secondary actions */
  color: #000000;
}

.page-live__button--secondary:hover {
  background-color: #e0a53b;
}

.page-live__button--register {
  background-color: #FFFFFF; /* Register color */
  color: #000000;
  border: 2px solid #000000;
}

.page-live__button--register:hover {
  background-color: #f0f0f0;
}

.page-live__button--login {
  background-color: #FCBC45; /* Login color */
  color: #000000;
}

.page-live__button--login:hover {
  background-color: #e0a53b;
}

.page-live__button--download {
  background-color: #000000;
  color: #FFFFFF;
}

.page-live__button--download:hover {
  background-color: #333333;
}

.page-live__button--outline {
  background-color: transparent;
  color: #000000;
  border: 2px solid #000000;
}

.page-live__button--outline:hover {
  background-color: #000000;
  color: #FFFFFF;
}

/* Hero Section */
.page-live__hero-section {
  position: relative;
  overflow: hidden;
  color: #FFFFFF;
  padding: 0;
  margin-bottom: 60px;
}

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

.page-live__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
  border-radius: 10px;
}

.page-live__hero-title {
  font-size: 3.5em;
  margin-bottom: 15px;
  font-weight: bold;
  color: #FFFFFF;
  line-height: 1.2;
}

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

.page-live__hero-actions .page-live__button {
  margin: 0 10px;
}

/* About Section */
.page-live__about-section {
  margin-bottom: 60px;
  padding: 40px 0;
}

.page-live__about-grid {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-live__about-text {
  flex: 1;
  font-size: 1.1em;
}

.page-live__about-text p {
  margin-bottom: 20px;
}

.page-live__about-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-live__about-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  min-width: 200px;
  min-height: 200px;
}

/* Games Section */
.page-live__games-section {
  background-color: #f8f8f8;
  padding: 60px 0;
  margin-bottom: 60px;
}

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

.page-live__game-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease;
}

.page-live__game-card:hover {
  transform: translateY(-5px);
}

.page-live__game-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 15px;
  min-width: 200px;
  min-height: 200px;
}

.page-live__game-title {
  font-size: 1.8em;
  color: #000000;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-live__game-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  padding: 0 15px;
}

/* GCash Section */
.page-live__gcash-section {
  padding: 60px 0;
  margin-bottom: 60px;
}

.page-live__gcash-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-direction: row-reverse; /* Image on right */
}

.page-live__gcash-text {
  flex: 1;
  font-size: 1.1em;
}

.page-live__gcash-text p {
  margin-bottom: 20px;
}

.page-live__subtitle {
  font-size: 1.5em;
  color: #000000;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-live__gcash-steps {
  list-style: decimal;
  margin-left: 20px;
  margin-bottom: 30px;
}

.page-live__gcash-steps li {
  margin-bottom: 10px;
}

.page-live__gcash-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-live__gcash-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  min-width: 200px;
  min-height: 200px;
}

/* Promotions Section */
.page-live__promo-section {
  background-color: #f8f8f8;
  padding: 60px 0;
  margin-bottom: 60px;
}

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

.page-live__promo-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease;
}

.page-live__promo-card:hover {
  transform: translateY(-5px);
}

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

.page-live__promo-title {
  font-size: 1.8em;
  color: #000000;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-live__promo-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  padding: 0 15px;
}

/* Why Choose Section */
.page-live__why-choose-section {
  padding: 60px 0;
  margin-bottom: 60px;
}

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

.page-live__advantage-item {
  text-align: center;
  padding: 20px;
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.page-live__advantage-image {
  width: 100%; /* Ensure images take full width of their container */
  max-width: 400px; /* Limit max width to prevent distortion */
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 15px;
  border-radius: 8px;
  min-width: 200px;
  min-height: 200px;
}

.page-live__advantage-title {
  font-size: 1.5em;
  color: #000000;
  margin-bottom: 10px;
}

.page-live__advantage-description {
  font-size: 0.95em;
  color: #666666;
}

/* Responsible Gaming Section */
.page-live__responsible-gaming-section {
  background-color: #f8f8f8;
  padding: 60px 0;
  margin-bottom: 60px;
  text-align: center;
}

.page-live__responsible-gaming-description {
  max-width: 800px;
  margin: 0 auto 30px auto;
  font-size: 1.1em;
  color: #555555;
}

/* FAQ Section */
.page-live__faq-section {
  padding: 60px 0;
  margin-bottom: 60px;
}

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

.page-live__faq-item {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-live__faq-question {
  font-size: 1.2em;
  color: #000000;
  padding: 20px;
  cursor: pointer;
  position: relative;
  margin: 0;
}

.page-live__faq-question::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5em;
  transition: transform 0.3s ease;
}

.page-live__faq-question.active::after {
  content: '-';
  transform: translateY(-50%) rotate(180deg);
}

.page-live__faq-answer {
  font-size: 1em;
  color: #555555;
  padding: 0 20px 20px 20px;
  display: none;
  line-height: 1.8;
}

.page-live__faq-answer.active {
  display: block;
}

.page-live__contact-support-text {
  text-align: center;
  font-size: 1.1em;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #555555;
}

/* CTA Section */
.page-live__cta-section {
  background-color: #000000; /* Dark background for strong CTA */
  color: #FFFFFF;
  padding: 80px 0;
  text-align: center;
}

.page-live__cta-section .page-live__section-title,
.page-live__cta-section .page-live__section-subtitle {
  color: #FFFFFF;
}

.page-live__cta-actions .page-live__button {
  margin: 0 15px;
  min-width: 180px;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .page-live__hero-title {
    font-size: 2.8em;
  }

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

  .page-live__about-grid,
  .page-live__gcash-content {
    flex-direction: column;
  }

  .page-live__gcash-content {
    flex-direction: column-reverse; /* Image on top for mobile */
  }
}

@media (max-width: 768px) {
  .page-live {
    padding-top: var(--header-offset, 80px); /* Adjust for mobile header */
  }

  .page-live__hero-title {
    font-size: 2em;
  }

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

  .page-live__hero-actions .page-live__button {
    display: block;
    margin: 15px auto;
  }

  .page-live__section-title {
    font-size: 2em;
  }

  .page-live__section-subtitle {
    font-size: 1em;
  }

  .page-live__game-image,
  .page-live__promo-image,
  .page-live__advantage-image,
  .page-live__about-image,
  .page-live__gcash-image {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure images are not too small */
    min-height: 200px;
  }

  /* Critical: Ensure content images do not cause horizontal scroll */
  .page-live img {
    max-width: 100% !important;
    height: auto !important;
  }

  .page-live__cta-actions .page-live__button {
    display: block;
    margin: 15px auto;
  }

  .page-live__advantage-item {
    padding: 15px;
  }

  .page-live__faq-question {
    font-size: 1.1em;
  }

  .page-live__faq-answer {
    font-size: 0.95em;
  }
  
  .page-live__advantage-image {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-live__hero-title {
    font-size: 1.8em;
  }

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

  .page-live__hero-content {
    width: 95%;
  }

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

  .page-live__button {
    padding: 10px 20px;
    font-size: 1em;
  }

  .page-live__container {
    padding: 0 15px;
  }
}