/* style/live-streaming.css */
.page-live-streaming {
  background-color: #08160F;
  color: #F2FFF6;
}

.page-live-streaming__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background: linear-gradient(rgba(8, 22, 15, 0.8), rgba(8, 22, 15, 0.8)), url('[GALLERY:hero_video_cover:1920x1080:cockfighting,live,match,arena,vietnam,green,gold]') center/cover no-repeat;
  color: #F2FFF6;
  text-align: center;
}

.page-live-streaming__video-container {
  width: 100%; /* Desktop width: 100% */
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-live-streaming__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 700;
  line-height: 1.2;
  color: #F2FFF6;
  margin-bottom: 20px;
  max-width: 900px;
}

.page-live-streaming__intro-text {
  font-size: 1.1em;
  line-height: 1.6;
  color: #A7D9B8;
  margin-bottom: 30px;
  max-width: 800px;
}

.page-live-streaming__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin-top: 40px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

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

.page-live-streaming__content-section {
  padding: 80px 20px;
  text-align: center;
}

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

.page-live-streaming__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  font-weight: 700;
  color: #F2FFF6;
  margin-bottom: 20px;
}

.page-live-streaming__section-description {
  font-size: 1.05em;
  line-height: 1.6;
  color: #A7D9B8;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-live-streaming__match-card,
.page-live-streaming__highlight-item,
.page-live-streaming__step-item,
.page-live-streaming__article-card {
  background-color: #11271B;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-live-streaming__match-card:hover,
.page-live-streaming__highlight-item:hover,
.page-live-streaming__step-item:hover,
.page-live-streaming__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-live-streaming__match-image,
.page-live-streaming__highlight-image,
.page-live-streaming__step-image,
.page-live-streaming__article-image {
  width: 100%;
  height: auto;
  min-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  display: block;
}

.page-live-streaming__card-title,
.page-live-streaming__item-title {
  font-size: 1.4em;
  font-weight: 600;
  color: #F2FFF6;
  margin-bottom: 15px;
}

.page-live-streaming__card-title a,
.page-live-streaming__item-title a {
  color: #F2FFF6;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-live-streaming__card-title a:hover,
.page-live-streaming__item-title a:hover {
  color: #57E38D;
}

.page-live-streaming__card-text,
.page-live-streaming__item-text {
  font-size: 1em;
  line-height: 1.6;
  color: #A7D9B8;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-live-streaming__btn-primary,
.page-live-streaming__btn-secondary,
.page-live-streaming__cta-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping for buttons */
  word-wrap: break-word; /* Allow text wrapping for buttons */
  box-sizing: border-box;
  max-width: 100%;
}

.page-live-streaming__btn-primary,
.page-live-streaming__cta-button {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  border: none;
}

.page-live-streaming__btn-primary:hover,
.page-live-streaming__cta-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 0 15px #57E38D;
}

.page-live-streaming__btn-secondary {
  background-color: transparent;
  color: #57E38D;
  border: 2px solid #2E7A4E;
}

.page-live-streaming__btn-secondary:hover {
  background-color: #2E7A4E;
  color: #F2FFF6;
}

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

.page-live-streaming__faq-section {
  background-color: #0A4B2C;
  padding: 80px 20px;
}

.page-live-streaming__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
  text-align: left;
}

.page-live-streaming__faq-item {
  background-color: #11271B;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.page-live-streaming__faq-item[open] {
  background-color: #1E3A2A;
}

.page-live-streaming__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: #F2FFF6;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.page-live-streaming__faq-question::-webkit-details-marker {
  display: none;
}

.page-live-streaming__faq-qtext {
  flex-grow: 1;
}

.page-live-streaming__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 20px;
  transition: transform 0.3s ease;
  color: #57E38D;
}

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

.page-live-streaming__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: #A7D9B8;
}

.page-live-streaming__faq-answer p {
  margin-bottom: 10px;
}

.page-live-streaming__faq-link {
  color: #57E38D;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-live-streaming__faq-link:hover {
  color: #F2C14E;
}

.page-live-streaming__cta-bottom {
  background-color: #08160F;
  padding-top: 60px;
  padding-bottom: 80px;
}

.page-live-streaming__cta-container {
  background-color: #11271B;
  border-radius: 15px;
  padding: 50px 30px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-live-streaming__hero-section,
  .page-live-streaming__content-section {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-live-streaming__matches-grid,
  .page-live-streaming__highlights-grid,
  .page-live-streaming__guide-steps,
  .page-live-streaming__articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-live-streaming__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }

  .page-live-streaming__intro-text {
    font-size: 1em;
  }

  .page-live-streaming__section-title {
    font-size: clamp(1.6em, 5vw, 2.2em);
  }

  .page-live-streaming__section-description {
    font-size: 0.95em;
  }

  .page-live-streaming__hero-section {
    padding-top: 10px !important; /* body handles --header-offset */
    padding-bottom: 40px;
  }

  .page-live-streaming__content-section {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  /* Mobile image responsiveness */
  .page-live-streaming img {
    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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Mobile video responsiveness */
  .page-live-streaming video,
  .page-live-streaming__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Mobile button responsiveness */
  .page-live-streaming__cta-button,
  .page-live-streaming__btn-primary,
  .page-live-streaming__btn-secondary,
  .page-live-streaming a[class*="button"],
  .page-live-streaming 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-left: 15px;
    padding-right: 15px;
  }

  .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;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
    overflow: hidden !important;
  }

  .page-live-streaming__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

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

  .page-live-streaming__cta-container {
    padding: 30px 20px;
  }
}