/* style/live.css */

:root {
  --phpvip-primary: #F2C14E;
  --phpvip-secondary: #FFD36B;
  --phpvip-btn-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  --phpvip-card-bg: #111111;
  --phpvip-background: #0A0A0A;
  --phpvip-text-main: #FFF6D6;
  --phpvip-border: #3A2A12;
  --phpvip-glow: #FFD36B;
  --header-offset-desktop: 120px;
  --header-offset-mobile: 100px;
}

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

.page-live__hero-section {
  padding-top: var(--header-offset, var(--header-offset-desktop)); /* Ensure content is not hidden by fixed header */
  background: linear-gradient(135deg, var(--phpvip-primary), var(--phpvip-secondary));
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 600px; /* Minimum height for hero section */
}

.page-live__hero-content-wrapper {
  display: flex;
  flex-direction: column; /* Image on top, text below */
  align-items: center;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

.page-live__hero-image-block {
  width: 100%;
  margin-bottom: 30px;
  text-align: center;
}

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

.page-live__hero-text-block {
  text-align: center;
  color: var(--phpvip-text-main);
  max-width: 800px;
}

.page-live__main-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--phpvip-text-main);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-live__hero-description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 30px;
  opacity: 0.9;
}

.page-live__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-live__btn-primary,
.page-live__btn-secondary,
.page-live__btn-small {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  text-align: center;
}

.page-live__btn-primary {
  background: var(--phpvip-btn-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4);
}

.page-live__btn-primary:hover {
  background: linear-gradient(180deg, #FFD36B 0%, #C7901A 100%);
  box-shadow: 0 6px 20px rgba(255, 211, 107, 0.6);
  transform: translateY(-2px);
}

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

.page-live__btn-secondary:hover {
  background: var(--phpvip-primary);
  color: var(--phpvip-card-bg);
  border-color: var(--phpvip-primary);
  transform: translateY(-2px);
}

.page-live__btn-small {
  padding: 8px 15px;
  font-size: 0.9rem;
  background: var(--phpvip-btn-gradient);
  color: #ffffff;
  border: none;
  border-radius: 5px;
  display: block;
  margin-top: auto; /* Push to bottom of card */
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.page-live__btn-small:hover {
  background: linear-gradient(180deg, #FFD36B 0%, #C7901A 100%);
  transform: translateY(-1px);
}

.page-live__section {
  padding: 60px 20px;
}

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

.page-live__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--phpvip-text-main);
}

.page-live__sub-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  text-align: center;
  margin-top: 60px;
  margin-bottom: 30px;
  color: var(--phpvip-text-main);
}

.page-live__text-block {
  font-size: 1.1rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: var(--phpvip-text-main);
}

.page-live__dark-section {
  background-color: var(--phpvip-background);
  color: var(--phpvip-text-main);
}

.page-live__light-bg {
  background-color: #f8f8f8;
  color: #333333;
}

.page-live__light-bg .page-live__section-title,
.page-live__light-bg .page-live__text-block,
.page-live__light-bg .page-live__feature-title,
.page-live__light-bg .page-live__tech-title,
.page-live__light-bg .page-live__step-title,
.page-live__light-bg .page-live__faq-title,
.page-live__light-bg .page-live__faq-answer p {
  color: #333333;
}

.page-live__card {
  background: var(--phpvip-card-bg);
  border: 1px solid var(--phpvip-border);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: var(--phpvip-text-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-live__feature-icon,
.page-live__game-icon,
.page-live__tech-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
  border-radius: 5px;
}

.page-live__feature-icon {
  width: 200px;
  height: 200px;
  object-fit: contain;
}

.page-live__game-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  margin-bottom: 10px;
}

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

.page-live__feature-title,
.page-live__game-title,
.page-live__tech-title,
.page-live__promo-title,
.page-live__step-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--phpvip-text-main);
}

.page-live__light-bg .page-live__feature-title,
.page-live__light-bg .page-live__tech-title,
.page-live__light-bg .page-live__step-title {
  color: #333333;
}

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

.page-live__feature-item p {
  font-size: 1rem;
  line-height: 1.5;
  opacity: 0.8;
}

/* Games Section */
.page-live__games-section {
  background-color: var(--phpvip-background);
}

.page-live__game-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  margin-top: 50px;
}

.page-live__game-card {
  padding: 20px;
}

.page-live__game-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 20px;
  opacity: 0.8;
  flex-grow: 1;
}

/* Technology Section */
.page-live__technology-section {
  background-color: #f8f8f8;
}

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

.page-live__tech-item p {
  font-size: 1rem;
  line-height: 1.5;
  opacity: 0.8;
  color: #333333;
}

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

.page-live__promo-card p {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 20px;
  opacity: 0.8;
  flex-grow: 1;
}

.page-live__promo-cta {
  margin-top: 50px;
}

/* Getting Started Section */
.page-live__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-live__step-item {
  padding-top: 40px;
  position: relative;
}

.page-live__step-number {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--phpvip-btn-gradient);
  color: #ffffff;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  border: 2px solid var(--phpvip-primary);
}

.page-live__step-item p {
  font-size: 1rem;
  line-height: 1.5;
  opacity: 0.8;
  color: #333333;
}

/* Summary Section */
.page-live__summary-section .page-live__cta-buttons {
  margin-top: 40px;
}

/* FAQ Section */
.page-live__faq-section {
  background-color: #f8f8f8;
}

.page-live__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-live__faq-item {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-live__faq-item.active {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

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

.page-live__faq-toggle {
  font-size: 1.5rem;
  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: #555555;
}

.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: 1rem;
  line-height: 1.6;
  color: #333333;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-live__hero-content-wrapper {
    flex-direction: column;
  }
  .page-live__hero-image-block {
    margin-bottom: 20px;
  }
  .page-live__hero-text-block {
    max-width: 700px;
  }
}

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

  .page-live__section {
    padding: 40px 15px;
  }

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

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

  .page-live__btn-primary,
  .page-live__btn-secondary,
  .page-live__btn-small,
  .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: 12px 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-direction: column;
    gap: 10px;
  }
  
  .page-live img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-live__section,
  .page-live__card,
  .page-live__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-live__game-categories,
  .page-live__features-grid,
  .page-live__tech-grid,
  .page-live__promo-grid,
  .page-live__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-live__tech-image {
    height: 180px; /* Adjust height for smaller screens */
  }

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

  .page-live__faq-question {
    font-size: 1rem;
    padding: 15px 18px;
  }

  .page-live__faq-answer {
    padding: 10px 18px;
  }

  .page-live__faq-answer p {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .page-live__hero-section {
    min-height: 400px;
  }
  .page-live__main-title {
    font-size: clamp(1.5rem, 9vw, 2.2rem);
  }
  .page-live__hero-description {
    font-size: 0.9rem;
  }
  .page-live__section-title {
    font-size: clamp(1.5rem, 8vw, 2.2rem);
  }
  .page-live__sub-title {
    font-size: clamp(1.3rem, 7vw, 1.8rem);
  }
  .page-live__step-number {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
  }
}