/* style/cockfighting.css */
:root {
  --primary-color: #FFD700;
  --secondary-color: #8B0000;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #000000;
  --bg-light: #f9f9f9;
  --card-bg-dark-overlay: rgba(255, 255, 255, 0.1);
  --border-color: #e0e0e0;
}

.page-cockfighting {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--bg-dark); /* Ensure consistency with body bg */
  padding-top: 120px; /* Desktop: Ensure content is below fixed header */
}

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

.page-cockfighting__section-title,
.page-cockfighting__main-heading {
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-cockfighting__main-heading {
  font-size: 44px;
  margin-bottom: 20px;
}

.page-cockfighting__text-content {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 30px;
  text-align: center;
  color: var(--text-light);
}

.page-cockfighting__highlight {
  color: var(--primary-color);
  font-weight: bold;
}

.page-cockfighting__inline-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-cockfighting__inline-link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

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

.page-cockfighting__cta-buttons--center {
  margin-top: 50px;
}

.page-cockfighting__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-cockfighting__btn-primary {
  background: var(--primary-color);
  color: var(--text-dark);
}

.page-cockfighting__btn-primary:hover {
  background: var(--secondary-color);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-cockfighting__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Section Specific Styles */
.page-cockfighting__introduction-section,
.page-cockfighting__betting-types-section,
.page-cockfighting__tips-section,
.page-cockfighting__mobile-app-section,
.page-cockfighting__conclusion-section {
  padding: 80px 0;
}

.page-cockfighting__why-choose-section,
.page-cockfighting__guide-section,
.page-cockfighting__promotions-section,
.page-cockfighting__faq-section,
.page-cockfighting__blog-section {
  padding: 80px 0;
}

.page-cockfighting__dark-bg {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-cockfighting__light-bg {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

/* Hero Video Section */
.page-cockfighting__hero-video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Desktop: Adjust for fixed header */
  background-color: var(--bg-dark);
}

.page-cockfighting__hero-video-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-cockfighting__hero-video-link {
  display: block;
  text-decoration: none;
  position: relative;
  width: 100%;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__hero-video-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--primary-color-rgb), 0.4);
}

.page-cockfighting__hero-video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
  object-fit: cover;
  pointer-events: none; /* Prevent video controls from blocking click event */
}

.page-cockfighting__hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.page-cockfighting__hero-video-link:hover .page-cockfighting__hero-video-overlay {
  opacity: 1;
}

.page-cockfighting__hero-video-click-hint {
  color: #ffffff;
  font-size: 20px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  padding: 12px 25px;
  background: rgba(var(--primary-color-rgb), 0.8);
  border-radius: 30px;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.page-cockfighting__hero-video-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
}

.page-cockfighting__play-now-button {
  display: inline-block;
  padding: 18px 45px;
  background: var(--primary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 30px;
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.page-cockfighting__play-now-button:hover {
  background: var(--secondary-color);
  color: var(--text-light);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Features Grid */
.page-cockfighting__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__feature-card {
  background: #ffffff;
  color: var(--text-dark);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__feature-icon {
  width: 120px;
  height: 120px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-cockfighting__card-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-cockfighting__card-description {
  font-size: 16px;
  color: var(--text-dark);
}

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

.page-cockfighting__betting-item {
  background: var(--card-bg-dark-overlay);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-light);
}

.page-cockfighting__list-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-cockfighting__list-description {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-light);
}

/* Guide List */
.page-cockfighting__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

.page-cockfighting__guide-item {
  background: #ffffff;
  color: var(--text-dark);
  padding: 25px 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  padding-left: 70px;
}

.page-cockfighting__guide-item::before {
  content: attr(data-step);
  position: absolute;
  left: 20px;
  top: 25px;
  background: var(--primary-color);
  color: var(--text-dark);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__guide-item:nth-child(1)::before { content: '1'; }
.page-cockfighting__guide-item:nth-child(2)::before { content: '2'; }
.page-cockfighting__guide-item:nth-child(3)::before { content: '3'; }
.page-cockfighting__guide-item:nth-child(4)::before { content: '4'; }
.page-cockfighting__guide-item:nth-child(5)::before { content: '5'; }

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

.page-cockfighting__tips-item {
  background: var(--card-bg-dark-overlay);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-light);
  text-align: center;
}

.page-cockfighting__tip-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

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

.page-cockfighting__promo-card {
  background: #ffffff;
  color: var(--text-dark);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-cockfighting__promo-card .page-cockfighting__card-button {
  margin-top: auto; /* Push button to bottom */
}

/* Mobile App Section */
.page-cockfighting__app-flex-container {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.page-cockfighting__app-content {
  flex: 1;
  min-width: 300px;
}

.page-cockfighting__app-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 300px;
}

.page-cockfighting__app-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__app-features-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  text-align: left;
}

.page-cockfighting__app-feature-item {
  color: var(--text-light);
  font-size: 17px;
  margin-bottom: 10px;
  position: relative;
  padding-left: 30px;
}

.page-cockfighting__app-feature-item::before {
  content: '✓';
  color: var(--primary-color);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

/* FAQ Section */
.page-cockfighting__faq-list {
  margin-top: 40px;
}

.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #ffffff;
  color: var(--text-dark);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-cockfighting__faq-question:hover {
  background: var(--bg-light);
  border-color: #d0d0d0;
}

.page-cockfighting__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--text-dark);
}

.page-cockfighting__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
  color: var(--primary-color);
  transform: rotate(180deg);
}

.page-cockfighting__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: var(--bg-light);
  color: var(--text-dark);
  border-radius: 0 0 8px 8px;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 2000px !important; /* Sufficiently large */
  padding: 20px 25px !important;
  opacity: 1;
}

.page-cockfighting__faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  text-align: left;
}

/* Blog Section */
.page-cockfighting__blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__blog-item {
  background: var(--card-bg-dark-overlay);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-cockfighting__blog-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__blog-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-cockfighting__blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.page-cockfighting__blog-item-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-color);
  margin: 20px 20px 10px;
  line-height: 1.3;
}

.page-cockfighting__blog-item-excerpt {
  font-size: 16px;
  color: var(--text-light);
  margin: 0 20px 15px;
  flex-grow: 1;
}

.page-cockfighting__blog-item-date {
  font-size: 14px;
  color: #aaa;
  margin: 0 20px 20px;
}

/* Footer Placeholder */
.page-cockfighting__footer-placeholder {
  height: 100px; /* Adjust as needed */
  background-color: #111;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__main-heading {
    font-size: 38px;
  }
  .page-cockfighting__section-title {
    font-size: 32px;
  }
  .page-cockfighting__text-content {
    font-size: 17px;
  }
  .page-cockfighting__play-now-button {
    font-size: 20px;
    padding: 16px 40px;
  }
}

@media (max-width: 768px) {
  .page-cockfighting {
    padding-top: 100px !important; /* Mobile: Adjust for fixed header */
    font-size: 16px;
    line-height: 1.6;
  }
  .page-cockfighting__container {
    padding: 0 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-cockfighting__main-heading {
    font-size: 32px !important;
    margin-bottom: 15px !important;
  }
  .page-cockfighting__section-title {
    font-size: 28px !important;
    margin-bottom: 30px !important;
  }
  .page-cockfighting__text-content {
    font-size: 15px !important;
    margin-bottom: 20px !important;
  }

  /* Hero Video Section Mobile */
  .page-cockfighting__hero-video-section {
    padding-top: 10px !important; /* Mobile: Adjust for fixed header */
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-cockfighting__hero-video-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }
  .page-cockfighting__hero-video-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-cockfighting__hero-video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 8px;
    overflow: hidden !important;
  }
  .page-cockfighting__hero-video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    object-fit: contain; 
  }
  .page-cockfighting__hero-video-cta {
    margin-top: 30px;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .page-cockfighting__play-now-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 14px 30px !important;
    font-size: 18px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-cockfighting__hero-video-click-hint {
    font-size: 16px !important;
    padding: 10px 20px !important;
  }

  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
    padding: 0 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .page-cockfighting__cta-button {
    width: 100% !important;
    padding: 12px 25px !important;
    font-size: 16px !important;
  }

  .page-cockfighting__features-grid,
  .page-cockfighting__betting-list,
  .page-cockfighting__tips-list,
  .page-cockfighting__promo-cards,
  .page-cockfighting__blog-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting__feature-icon,
  .page-cockfighting__tip-icon {
    width: 80px;
    height: 80px;
  }

  .page-cockfighting__feature-card,
  .page-cockfighting__betting-item,
  .page-cockfighting__tips-item,
  .page-cockfighting__promo-card,
  .page-cockfighting__blog-item {
    padding: 20px;
  }

  .page-cockfighting__card-title {
    font-size: 18px;
  }

  .page-cockfighting__card-description,
  .page-cockfighting__list-description,
  .page-cockfighting__app-feature-item,
  .page-cockfighting__blog-item-excerpt {
    font-size: 15px;
  }

  .page-cockfighting__app-flex-container {
    flex-direction: column;
  }
  .page-cockfighting__app-image {
    width: 80%;
  }

  .page-cockfighting__faq-question {
    padding: 15px 20px;
  }
  .page-cockfighting__faq-question h3 {
    font-size: 16px;
  }
  .page-cockfighting__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-cockfighting__faq-answer {
    padding: 0 20px;
  }
  .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    padding: 15px 20px !important;
  }

  .page-cockfighting__blog-image {
    height: 180px;
  }
  .page-cockfighting__blog-item-title {
    font-size: 18px;
    margin: 15px 15px 8px;
  }
  .page-cockfighting__blog-item-excerpt,
  .page-cockfighting__blog-item-date {
    margin: 0 15px 15px;
  }
  .page-cockfighting__blog-item-date {
    font-size: 13px;
  }

  /* Image responsiveness */
  .page-cockfighting img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__promo-card,
  .page-cockfighting__blog-item,
  .page-cockfighting__feature-card,
  .page-cockfighting__betting-item,
  .page-cockfighting__tips-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden;
  }
}

/* Ensure all images are responsive by default */
.page-cockfighting img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Ensure all videos are responsive by default */
.page-cockfighting video,
.page-cockfighting__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

/* Video containers responsive by default */
.page-cockfighting__hero-video-section,
.page-cockfighting__hero-video-container,
.page-cockfighting__hero-video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Ensure all buttons are responsive by default */
.page-cockfighting__cta-button,
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting a[class*="button"],
.page-cockfighting a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

/* Button containers responsive by default */
.page-cockfighting__cta-buttons,
.page-cockfighting__button-group,
.page-cockfighting__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}