.page-live-streaming {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --button-register: #C30808;
  --button-login: #C30808;
  --font-register-login: #FFFF00;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-live-streaming__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-live-streaming__light-bg {
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

.page-live-streaming__hero-section {
  text-align: center;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Apply header offset */
  background-image: url('[GALLERY:hero_main:1920x1080:cockfighting,live_arena,crowd,excitement]');
  background-size: cover;
  background-position: center;
  position: relative;
  z-index: 1;
}

.page-live-streaming__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

.page-live-streaming__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--text-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-live-streaming__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
}

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

.page-live-streaming__btn-primary,
.page-live-streaming__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  font-size: 1.1em;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-live-streaming__btn-primary {
  background-color: var(--button-register);
  color: var(--font-register-login);
  border: 2px solid var(--button-register);
}

.page-live-streaming__btn-primary:hover {
  background-color: #a30606;
  border-color: #a30606;
}

.page-live-streaming__btn-secondary {
  background-color: transparent;
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

.page-live-streaming__btn-secondary:hover {
  background-color: var(--text-light);
  color: var(--primary-color);
}

.page-live-streaming__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.page-live-streaming__dark-bg .page-live-streaming__section-title {
  color: var(--text-light);
}

.page-live-streaming__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: var(--text-dark);
}

.page-live-streaming__dark-bg .page-live-streaming__section-description {
  color: var(--text-light);
}

.page-live-streaming__video-section {
  padding: 60px 0;
  background-color: var(--background-color, var(--secondary-color)); /* Use body background or default */
  color: var(--text-dark);
}

.page-live-streaming__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 10px;
  margin-top: 30px;
}

.page-live-streaming__video-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
}

.page-live-streaming__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-live-streaming__features-section {
  padding: 80px 0;
}

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

.page-live-streaming__feature-card {
  background-color: var(--secondary-color);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  color: var(--text-dark);
}

.page-live-streaming__feature-card:hover {
  transform: translateY(-10px);
}

.page-live-streaming__feature-icon {
  width: 100%; /* Ensure full width within card */
  height: auto;
  max-height: 200px; /* Limit height to prevent excessive stretching */
  object-fit: contain; /* Maintain aspect ratio */
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-live-streaming__feature-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-live-streaming__feature-text {
  font-size: 1em;
  line-height: 1.7;
}

.page-live-streaming__how-to-bet-section {
  padding: 80px 0;
  text-align: center;
}

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

.page-live-streaming__step-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  color: var(--text-light);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-live-streaming__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--font-register-login);
  margin-bottom: 15px;
}

.page-live-streaming__step-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: var(--text-light);
}

.page-live-streaming__step-text {
  font-size: 1em;
  line-height: 1.7;
}

.page-live-streaming__step-text a {
  color: var(--font-register-login);
  text-decoration: underline;
}

.page-live-streaming__step-text a:hover {
  color: #ffcc00;
}

.page-live-streaming__cta-center {
  text-align: center;
  margin-top: 50px;
}

.page-live-streaming__schedule-section {
  padding: 80px 0;
}

.page-live-streaming__schedule-table-wrapper {
  overflow-x: auto;
  margin-top: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-live-streaming__schedule-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px; /* Ensure table is not too narrow on smaller screens */
}

.page-live-streaming__schedule-table th,
.page-live-streaming__schedule-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

.page-live-streaming__schedule-table th {
  background-color: var(--primary-color);
  color: var(--text-light);
  font-weight: bold;
}

.page-live-streaming__schedule-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.page-live-streaming__schedule-table tr:hover {
  background-color: #f0f0f0;
}

.page-live-streaming__table-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

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

.page-live-streaming__schedule-note {
  text-align: center;
  margin-top: 30px;
  font-style: italic;
  color: #666;
}

.page-live-streaming__promotions-section {
  padding: 80px 0;
  text-align: center;
}

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

.page-live-streaming__promo-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-light);
  transition: transform 0.3s ease;
}

.page-live-streaming__promo-card:hover {
  transform: translateY(-10px);
}

.page-live-streaming__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-live-streaming__promo-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: var(--text-light);
}

.page-live-streaming__promo-text {
  font-size: 1em;
  line-height: 1.7;
  margin-bottom: 20px;
}

.page-live-streaming__promo-card .page-live-streaming__btn-primary {
  background-color: var(--button-register);
  color: var(--font-register-login);
  border: 2px solid var(--button-register);
  padding: 10px 20px;
  font-size: 1em;
}

.page-live-streaming__promo-card .page-live-streaming__btn-primary:hover {
  background-color: #a30606;
  border-color: #a30606;
}

.page-live-streaming__faq-section {
  padding: 80px 0;
}

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

.page-live-streaming__faq-item {
  background-color: var(--secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-live-streaming__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #f5f5f5;
  color: var(--primary-color);
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-live-streaming__faq-question:hover {
  background-color: #e0e0e0;
}

.page-live-streaming__faq-heading {
  margin: 0;
  font-size: 1.2em;
}

.page-live-streaming__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-live-streaming__faq-item.active .page-live-streaming__faq-toggle {
  transform: rotate(45deg);
}

.page-live-streaming__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-dark);
}

.page-live-streaming__faq-item.active .page-live-streaming__faq-answer {
  max-height: 1000px !important;
  padding: 20px;
}

.page-live-streaming__faq-answer p {
  margin: 0;
}

.page-live-streaming__faq-answer a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-live-streaming__cta-banner {
  padding: 80px 0;
  text-align: center;
  background-image: url('[GALLERY:cta_banner:1920x400:cockfighting,betting,promo,action]');
  background-size: cover;
  background-position: center;
  position: relative;
  z-index: 1;
}

.page-live-streaming__cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: -1;
}

.page-live-streaming__cta-banner-content {
  color: var(--text-light);
}

.page-live-streaming__cta-banner-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: var(--text-light);
}

.page-live-streaming__cta-banner-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-live-streaming__hero-title {
    font-size: 2.8em;
  }

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

  .page-live-streaming__cta-banner-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-live-streaming__hero-section {
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-live-streaming__hero-title {
    font-size: 2.2em;
  }

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

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

  .page-live-streaming__btn-primary,
  .page-live-streaming__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    margin: 0 auto;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-live-streaming__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-live-streaming__video-section {
    padding: 40px 0;
  }

  .page-live-streaming__features-grid,
  .page-live-streaming__steps-grid,
  .page-live-streaming__promotions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-live-streaming__feature-card,
  .page-live-streaming__step-card,
  .page-live-streaming__promo-card {
    padding: 20px;
  }

  .page-live-streaming__feature-title,
  .page-live-streaming__step-title,
  .page-live-streaming__promo-title {
    font-size: 1.3em;
  }

  .page-live-streaming__schedule-table-wrapper {
    margin: 0 -15px;
    padding: 0 15px;
  }

  .page-live-streaming__schedule-table {
    min-width: unset;
  }

  .page-live-streaming__schedule-table th,
  .page-live-streaming__schedule-table td {
    padding: 10px;
    font-size: 0.9em;
  }

  .page-live-streaming__promo-image {
    height: 180px;
  }

  .page-live-streaming__faq-question {
    padding: 15px;
  }

  .page-live-streaming__faq-heading {
    font-size: 1em;
  }

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

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

  .page-live-streaming__cta-banner {
    padding: 60px 0;
  }

  .page-live-streaming__cta-banner-title {
    font-size: 1.8em;
  }

  .page-live-streaming__cta-banner-description {
    font-size: 1em;
  }

  .page-live-streaming img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-live-streaming video,
  .page-live-streaming__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-live-streaming__section,
  .page-live-streaming__card,
  .page-live-streaming__container,
  .page-live-streaming__video-section,
  .page-live-streaming__video-container,
  .page-live-streaming__video-wrapper,
  .page-live-streaming__cta-buttons,
  .page-live-streaming__button-group,
  .page-live-streaming__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-live-streaming__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }
}

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

  .page-live-streaming__section-title {
    font-size: 1.6em;
  }

  .page-live-streaming__cta-banner-title {
    font-size: 1.6em;
  }

  .page-live-streaming__btn-primary,
  .page-live-streaming__btn-secondary {
    font-size: 0.95em;
    padding: 10px 15px;
  }

  .page-live-streaming__schedule-table th,
  .page-live-streaming__schedule-table td {
    font-size: 0.85em;
  }
}