.page-cockfighting-live {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  line-height: 1.6;
}

.page-cockfighting-live__dark-bg {
  background-color: #121212;
  color: #ffffff;
}

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

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

.page-cockfighting-live__section-title {
  font-size: 2.5em;
  color: #017439; /* Brand color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.page-cockfighting-live__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f0f0; /* Lighter text for dark backgrounds */
}

.page-cockfighting-live__sub-title {
  font-size: 1.8em;
  color: #017439; /* Brand color for sub-titles */
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-cockfighting-live__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-cockfighting-live__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.3;
}

.page-cockfighting-live__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-cockfighting-live__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.page-cockfighting-live__hero-title {
  font-size: 3.5em;
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-cockfighting-live__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 40px;
  line-height: 1.5;
}

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

.page-cockfighting-live__btn-primary,
.page-cockfighting-live__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-cockfighting-live__btn-primary {
  background-color: #C30808; /* Custom color for Login/Register */
  color: #FFFF00; /* Custom font color for Login/Register */
  border: 2px solid #C30808;
}

.page-cockfighting-live__btn-primary:hover {
  background-color: #e02020;
  border-color: #e02020;
}

.page-cockfighting-live__btn-secondary {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
}

.page-cockfighting-live__btn-secondary:hover {
  background-color: #005a2d;
  border-color: #005a2d;
}

.page-cockfighting-live__video-section {
  padding: 80px 20px;
  text-align: center;
}

.page-cockfighting-live__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

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

.page-cockfighting-live__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.page-cockfighting-live__advantages-section {
  padding: 80px 20px;
}

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

.page-cockfighting-live__card {
  background-color: #f8f8f8;
  color: #333333;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-cockfighting-live__card:hover {
  transform: translateY(-5px);
}

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

.page-cockfighting-live__card-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-cockfighting-live__card-text {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
}

.page-cockfighting-live__card-link {
  display: inline-block;
  color: #017439;
  text-decoration: none;
  font-weight: bold;
  border-bottom: 2px solid #017439;
  padding-bottom: 5px;
}

.page-cockfighting-live__card-link:hover {
  color: #005a2d;
  border-color: #005a2d;
}

.page-cockfighting-live__rules-section {
  padding: 80px 20px;
  text-align: center;
}

.page-cockfighting-live__content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-cockfighting-live__text-block {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 12px;
  color: #f0f0f0;
}

.page-cockfighting-live__text-block h3 {
  color: #017439;
}

.page-cockfighting-live__text-block ul,
.page-cockfighting-live__text-block ol {
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-cockfighting-live__text-block li {
  margin-bottom: 10px;
}

.page-cockfighting-live__tips-section {
  padding: 80px 20px;
}

.page-cockfighting-live__grid-2-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
  align-items: center;
}

.page-cockfighting-live__image-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-cockfighting-live__login-guide-section {
  padding: 80px 20px;
  text-align: center;
}

.page-cockfighting-live__promotions-section {
  padding: 80px 20px;
}

.page-cockfighting-live__promotion-card {
  display: flex;
  background-color: #f8f8f8;
  color: #333333;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  overflow: hidden;
  align-items: center;
}

.page-cockfighting-live__promotion-card:nth-child(even) {
  flex-direction: row-reverse; /* Alternate image/text layout */
}

.page-cockfighting-live__promotion-image {
  flex: 1;
  max-width: 50%;
  height: 300px;
  object-fit: cover;
}

.page-cockfighting-live__promotion-content {
  flex: 1;
  padding: 30px;
  text-align: left;
}

.page-cockfighting-live__promotion-title {
  font-size: 1.8em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-cockfighting-live__promotion-text {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
}

.page-cockfighting-live__faq-section {
  padding: 80px 20px;
  text-align: center;
}

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

.page-cockfighting-live__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #f0f0f0;
}

.page-cockfighting-live__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.1);
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

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

.page-cockfighting-live__faq-question h3 {
  margin: 0;
  color: #ffffff;
}

.page-cockfighting-live__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #017439;
}

.page-cockfighting-live__faq-item.active .page-cockfighting-live__faq-toggle {
  transform: rotate(45deg);
  color: #FFFF00; /* Custom color for active toggle */
}

.page-cockfighting-live__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #cccccc;
}

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

.page-cockfighting-live__cta-bottom {
  padding: 80px 20px;
  text-align: center;
}

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

/* General image styles */
.page-cockfighting-live img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
  .page-cockfighting-live__hero-title {
    font-size: 3em;
  }
  .page-cockfighting-live__hero-description {
    font-size: 1.1em;
  }
  .page-cockfighting-live__grid-2-cols {
    grid-template-columns: 1fr;
  }
  .page-cockfighting-live__promotion-card {
    flex-direction: column;
  }
  .page-cockfighting-live__promotion-card:nth-child(even) {
    flex-direction: column;
  }
  .page-cockfighting-live__promotion-image {
    max-width: 100%;
    height: auto;
  }
  .page-cockfighting-live__promotion-content {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .page-cockfighting-live__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }
  .page-cockfighting-live__hero-title {
    font-size: 2.5em;
  }
  .page-cockfighting-live__hero-description {
    font-size: 1em;
  }
  .page-cockfighting-live__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-cockfighting-live__btn-primary,
  .page-cockfighting-live__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px;
    font-size: 1em;
  }
  
  .page-cockfighting-live__section-title {
    font-size: 2em;
  }
  .page-cockfighting-live__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-cockfighting-live__sub-title {
    font-size: 1.5em;
  }

  .page-cockfighting-live__video-section,
  .page-cockfighting-live__advantages-section,
  .page-cockfighting-live__rules-section,
  .page-cockfighting-live__tips-section,
  .page-cockfighting-live__login-guide-section,
  .page-cockfighting-live__promotions-section,
  .page-cockfighting-live__faq-section,
  .page-cockfighting-live__cta-bottom {
    padding: 40px 15px;
  }

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

  .page-cockfighting-live__grid-3-cols,
  .page-cockfighting-live__content-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-cockfighting-live__card {
    padding: 20px;
  }
  .page-cockfighting-live__text-block {
    padding: 20px;
  }
  
  /* Image responsive rules */
  .page-cockfighting-live img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-cockfighting-live__image-wrapper,
  .page-cockfighting-live__promotion-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    height: auto !important;
  }

  /* Video responsive rules */
  .page-cockfighting-live__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
  .page-cockfighting-live__video-link,
  .page-cockfighting-live__video {
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
  }

  .page-cockfighting-live__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
}