:root {
  --phfiery-primary: #F2C14E;
  --phfiery-secondary: #FFD36B;
  --phfiery-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  --phfiery-card-bg: #111111;
  --phfiery-background: #0A0A0A;
  --phfiery-text-main: #FFF6D6;
  --phfiery-border: #3A2A12;
  --phfiery-glow: #FFD36B;
}

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

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

/* Hero/Video Section */
.page-live__hero-video-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 560px; /* Minimum height for desktop */
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--phfiery-background);
}

.page-live__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1920px; /* Max width for video container */
  height: 100%;
  overflow: hidden;
}

.page-live__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  cursor: pointer;
}

.page-live__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  filter: brightness(0.7); /* Slightly darken video for text readability */
}

.page-live__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 20px;
  color: var(--phfiery-text-main);
  max-width: 800px;
  margin: 0 auto;
}

.page-live__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--phfiery-text-main);
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-live__hero-description {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--phfiery-text-main);
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.page-live__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* General Section Styles */
.page-live__intro-section,
.page-live__live-casino-section,
.page-live__live-sports-section,
.page-live__promotions-section,
.page-live__experience-section,
.page-live__security-section,
.page-live__get-started-section,
.page-live__partners-section,
.page-live__faq-section,
.page-live__final-cta-section {
  padding: 60px 0;
  background-color: var(--phfiery-background);
}

.page-live__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--phfiery-primary);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

/* Buttons */
.page-live__btn-primary,
.page-live__btn-secondary,
.page-live__btn-tertiary {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  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: var(--phfiery-button-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%, #E8B94B 100%);
  box-shadow: 0 6px 20px rgba(255, 211, 107, 0.6);
}

.page-live__btn-secondary {
  background: transparent;
  color: var(--phfiery-primary);
  border: 2px solid var(--phfiery-primary);
}

.page-live__btn-secondary:hover {
  background: var(--phfiery-primary);
  color: var(--phfiery-background);
}

.page-live__btn-tertiary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--phfiery-primary);
  border: 1px solid var(--phfiery-border);
  font-size: 0.9em;
  padding: 8px 20px;
}

.page-live__btn-tertiary:hover {
  background: var(--phfiery-primary);
  color: var(--phfiery-background);
}

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

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

.page-live__game-card {
  background: var(--phfiery-card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--phfiery-border);
  display: flex;
  flex-direction: column;
  color: var(--phfiery-text-main);
}

.page-live__game-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

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

.page-live__game-card-text {
  font-size: 1rem;
  color: var(--phfiery-text-main);
  padding: 0 20px;
  flex-grow: 1;
}

.page-live__game-card .page-live__btn-tertiary {
  margin: 20px;
  align-self: flex-start;
}

/* Live Sports Section */
.page-live__live-sports-section .page-live__section-description {
  margin-bottom: 30px;
}

.page-live__sports-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 30px;
  display: block;
}

/* Promotions Section */
.page-live__promo-list {
  list-style: none;
  padding: 0;
  margin: 40px 0 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-live__promo-item {
  background: var(--phfiery-card-bg);
  border-radius: 10px;
  padding: 30px;
  border: 1px solid var(--phfiery-border);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-live__promo-title {
  font-size: 1.6rem;
  color: var(--phfiery-primary);
  margin-bottom: 15px;
}

.page-live__promo-text {
  font-size: 1rem;
  color: var(--phfiery-text-main);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-live__promo-item .page-live__btn-tertiary {
  align-self: flex-start;
}

/* Experience Section */
.page-live__features-list {
  list-style: none;
  padding: 0;
  margin: 40px 0 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-live__feature-item {
  background: var(--phfiery-card-bg);
  border-radius: 10px;
  padding: 30px;
  border: 1px solid var(--phfiery-border);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-live__feature-text {
  font-size: 1rem;
  color: var(--phfiery-text-main);
}

/* Security Section */
.page-live__security-points {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 800px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  text-align: left;
}

.page-live__security-item {
  background: var(--phfiery-card-bg);
  border-radius: 8px;
  padding: 15px 20px;
  border: 1px solid var(--phfiery-border);
  color: var(--phfiery-text-main);
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-live__security-item::before {
  content: '✓';
  color: var(--phfiery-primary);
  font-weight: bold;
  font-size: 1.2em;
}

.page-live__security-section .page-live__btn-secondary {
  display: block;
  margin: 30px auto 0 auto;
  max-width: 300px;
}

/* Get Started Section */
.page-live__steps-list {
  list-style: none;
  padding: 0;
  margin: 40px 0 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-live__step-item {
  background: var(--phfiery-card-bg);
  border-radius: 10px;
  padding: 30px;
  border: 1px solid var(--phfiery-border);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-live__step-title {
  font-size: 1.6rem;
  color: var(--phfiery-primary);
  margin-bottom: 15px;
}

.page-live__step-text {
  font-size: 1rem;
  color: var(--phfiery-text-main);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-live__step-item .page-live__btn-tertiary {
  align-self: flex-start;
}

/* Partners Section */
.page-live__partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Adjusted for 167x127 images */
  gap: 20px;
  margin-top: 40px;
  justify-items: center;
}

.page-live__partner-item {
  background: var(--phfiery-card-bg);
  border-radius: 8px;
  padding: 10px;
  border: 1px solid var(--phfiery-border);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 167px;
  height: 127px;
  box-sizing: border-box;
}

.page-live__partner-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
   /* Fixed width for partner images */
   /* Fixed height for partner images */
}

/* FAQ Section */
.page-live__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.page-live__faq-item {
  background: var(--phfiery-card-bg);
  border: 1px solid var(--phfiery-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-live__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  color: var(--phfiery-primary);
  font-weight: bold;
  font-size: 1.2rem;
  transition: background-color 0.3s ease;
}

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

.page-live__faq-title {
  margin: 0;
  color: var(--phfiery-primary);
  font-size: 1.2rem;
}

.page-live__faq-toggle {
  font-size: 1.8rem;
  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: var(--phfiery-text-main);
  font-size: 1rem;
}

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

.page-live__faq-answer p {
  margin: 0;
}

/* Final CTA Section */
.page-live__final-cta-section .page-live__section-description {
  margin-bottom: 30px;
}

/* Global Image Responsiveness */
.page-live img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .page-live {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-live__hero-video-section {
    min-height: 400px;
    padding-top: 10px !important; /* Ensure small top padding */
  }

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

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

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

  .page-live__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .page-live__btn-primary,
  .page-live__btn-secondary,
  .page-live__btn-tertiary,
  .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 20px;
  }

  .page-live__hero-cta-buttons,
  .page-live__cta-buttons,
  .page-live__button-group,
  .page-live__btn-container {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-live__game-category-grid,
  .page-live__promo-list,
  .page-live__features-list,
  .page-live__security-points,
  .page-live__steps-list,
  .page-live__partner-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-live__intro-section,
  .page-live__live-casino-section,
  .page-live__live-sports-section,
  .page-live__promotions-section,
  .page-live__experience-section,
  .page-live__security-section,
  .page-live__get-started-section,
  .page-live__partners-section,
  .page-live__faq-section,
  .page-live__final-cta-section {
    padding: 40px 0;
  }

  /* Ensure all images and videos are responsive */
  .page-live img,
  .page-live video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-live__card,
  .page-live__section,
  .page-live__container,
  .page-live__video-wrapper,
  .page-live__partner-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-live__partner-item img {
    
    
  }

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

  .page-live__faq-title {
    font-size: 1.1rem;
  }

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

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