/* style/cockfighting.css */
:root {
  --primary-color: #1A2E4E;
  --secondary-color: #FFD700;
  --text-color-light: #ffffff;
  --text-color-dark: #333333;
  --background-dark: #0d0d0d; /* Assuming --dark-bg-1 from shared.css is similar to this */
}

.page-cockfighting {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-light); /* Default text color for dark body background */
  background-color: var(--background-dark); /* Ensure consistency with body background */
  padding-top: 0; /* Handled by specific sections */
}

/* 🚨 Video Section - MUST be at the top */
.page-cockfighting__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  /* 🚨 MUST add desktop padding-top, ensure content is not obscured by fixed nav bar */
  padding-top: 10px; /* Desktop: Adjust based on actual nav bar height */
  background-color: #000000;
}

.page-cockfighting__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__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio - 🚨 PageSpeed optimization: fixed aspect ratio to avoid CLS */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  object-fit: cover;
}

/* 🚨 Play Now button styles (MUST include, centered below video) */
.page-cockfighting__video-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

.page-cockfighting__play-now-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color); /* Gold/Yellow for CTA */
  color: var(--primary-color); /* Dark text on bright button */
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  border: none;
  cursor: pointer;
  text-transform: uppercase;
}

.page-cockfighting__play-now-button:hover {
  background: #e6c200; /* Slightly darker yellow on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.page-cockfighting__play-now-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.page-cockfighting__hero-section {
  padding: 120px 20px 80px; /* 🚨 Desktop padding-top for fixed header */
  text-align: center;
  background: linear-gradient(135deg, var(--primary-color), #0d1e3a); /* Dark gradient for hero */
  color: var(--text-color-light);
}

.page-cockfighting__hero-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-cockfighting__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--secondary-color);
  line-height: 1.2;
}

.page-cockfighting__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  opacity: 0.9;
}

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

.page-cockfighting__cta-button {
  display: inline-block;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
}

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

.page-cockfighting__btn-primary:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

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

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

/* General Content Area */
.page-cockfighting__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
  background-color: var(--background-dark); /* Ensure consistency with body background */
  color: var(--text-color-light);
}

.page-cockfighting__section-title {
  font-size: 2.5em;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  padding-bottom: 15px;
}

.page-cockfighting__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

.page-cockfighting__sub-title {
  font-size: 2em;
  color: var(--secondary-color);
  margin-top: 40px;
  margin-bottom: 25px;
  text-align: left;
}

.page-cockfighting__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

.page-cockfighting__image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.page-cockfighting__grid-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__grid-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__feature-list, .page-cockfighting__game-types, .page-cockfighting__value-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-cockfighting__list-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 10px;
  padding: 15px 20px;
  border-left: 5px solid var(--secondary-color);
  border-radius: 5px;
  font-size: 1.05em;
  transition: background-color 0.3s ease;
}

.page-cockfighting__list-item:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-cockfighting__list-item strong {
  color: var(--secondary-color);
}

.page-cockfighting__cta-banner {
  background: linear-gradient(90deg, #FFD700, #e6c200);
  color: var(--primary-color); /* Dark text on bright banner */
  padding: 40px;
  border-radius: 10px;
  text-align: center;
  margin-top: 60px;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

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

.page-cockfighting__banner-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  line-height: 1.7;
}

/* FAQ Section */
.page-cockfighting__faq-section {
  padding: 80px 20px;
  background-color: var(--primary-color); /* Dark section background */
  color: var(--text-color-light);
}

.page-cockfighting__faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-cockfighting__faq-list {
  margin-top: 40px;
}

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

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #2a4163; /* Slightly lighter dark background */
  border: 1px solid #3c5a87;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-cockfighting__faq-question:hover {
  background: #3c5a87;
  border-color: #4e6e9e;
}

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

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

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
  color: var(--text-color-light);
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

.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 20px;
  opacity: 0;
  background: #1a2e4e;
  color: rgba(255, 255, 255, 0.85);
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 2000px !important; /* 🚨 MUST use !important and sufficient max-height */
  padding: 20px !important;
  opacity: 1;
  background: #1a2e4e;
  border-radius: 0 0 5px 5px;
}

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

/* Brand Section */
.page-cockfighting__brand-section {
  padding: 80px 20px;
  background-color: var(--background-dark);
  color: var(--text-color-light);
}

.page-cockfighting__brand-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.page-cockfighting__brand-item {
  background-color: #1a2e4e; /* Use primary color for brand items */
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-cockfighting__item-title {
  font-size: 1.8em;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

/* Blog Section */
.page-cockfighting__blog-section {
  padding: 80px 20px;
  background-color: #000000; /* Darker background for blog section */
  color: var(--text-color-light);
}

.page-cockfighting__blog-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.page-cockfighting__blog-item {
  background-color: #1a2e4e; /* Primary color for blog cards */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-cockfighting__blog-link {
  text-decoration: none;
  color: inherit;
  display: block;
  padding-bottom: 20px;
}

.page-cockfighting__blog-item-image {
  width: 100%;
  height: 200px; /* Fixed height for blog images */
  object-fit: cover;
  margin-bottom: 15px;
}

.page-cockfighting__blog-item-title {
  font-size: 1.4em;
  color: var(--secondary-color);
  margin: 0 20px 10px;
  line-height: 1.4;
}

.page-cockfighting__blog-item-excerpt {
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 20px 15px;
  line-height: 1.6;
}

.page-cockfighting__blog-item-date {
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 20px;
  display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__main-title {
    font-size: 2.8em;
  }
  .page-cockfighting__section-title {
    font-size: 2.2em;
  }
  .page-cockfighting__sub-title {
    font-size: 1.8em;
  }
  .page-cockfighting__hero-description,
  .page-cockfighting__text-block {
    font-size: 1em;
  }
  .page-cockfighting__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-cockfighting__grid-image {
    height: 200px;
  }
  .page-cockfighting__blog-item-image {
    height: 180px;
  }
  .page-cockfighting__blog-item-title {
    font-size: 1.2em;
  }
  .page-cockfighting__blog-item-excerpt {
    font-size: 0.9em;
  }
}

@media (max-width: 768px) {
  /* 🚨 Mobile Responsive - MUST use !important */
  .page-cockfighting {
    font-size: 15px;
    line-height: 1.7;
  }

  /* 🚨 Video Section Mobile */
  .page-cockfighting__video-section {
    padding-top: 10px !important; /* Mobile: Adjust based on mobile nav bar height */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-cockfighting__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__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 4px;
    overflow: hidden !important;
  }

  .page-cockfighting__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 4px;
    object-fit: contain; /* Use contain to ensure full video is visible */
  }

  /* 🚨 Play Now button mobile responsive (MUST include) */
  .page-cockfighting__video-cta {
    margin-top: 20px;
    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: 12px 30px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Hero Section Mobile */
  .page-cockfighting__hero-section {
    padding: 100px 15px 60px; /* 🚨 Mobile padding-top for fixed header */
  }
  .page-cockfighting__main-title {
    font-size: 2.2em;
  }
  .page-cockfighting__hero-description {
    font-size: 1em;
  }
  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-cockfighting__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* General Content Area Mobile */
  .page-cockfighting__content-area {
    padding: 60px 15px;
  }
  .page-cockfighting__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-cockfighting__sub-title {
    font-size: 1.5em;
    margin-top: 30px;
  }
  .page-cockfighting__text-block {
    font-size: 0.95em;
  }
  .page-cockfighting__image-grid {
    grid-template-columns: 1fr;
  }
  .page-cockfighting__grid-image {
    height: 180px;
  }
  .page-cockfighting__list-item {
    padding: 12px 15px;
    font-size: 1em;
  }
  .page-cockfighting__cta-banner {
    padding: 30px 20px;
  }
  .page-cockfighting__banner-title {
    font-size: 1.8em;
  }
  .page-cockfighting__banner-text {
    font-size: 1em;
  }

  /* FAQ Section Mobile */
  .page-cockfighting__faq-section {
    padding: 60px 15px;
  }
  .page-cockfighting__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-cockfighting__faq-question h3 {
    font-size: 1em;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  .page-cockfighting__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-cockfighting__faq-answer {
    padding: 0 15px;
  }
  .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    padding: 15px !important;
  }

  /* Brand Section Mobile */
  .page-cockfighting__brand-section {
    padding: 60px 15px;
  }
  .page-cockfighting__brand-item {
    padding: 25px;
  }
  .page-cockfighting__item-title {
    font-size: 1.5em;
  }

  /* Blog Section Mobile */
  .page-cockfighting__blog-section {
    padding: 60px 15px;
  }
  .page-cockfighting__blog-list {
    grid-template-columns: 1fr;
  }
  .page-cockfighting__blog-item-image {
    height: 150px;
  }
  .page-cockfighting__blog-item-title {
    font-size: 1.1em;
    margin: 0 15px 8px;
  }
  .page-cockfighting__blog-item-excerpt {
    font-size: 0.9em;
    margin: 0 15px 10px;
  }
  .page-cockfighting__blog-item-date {
    margin: 0 15px;
  }

  /* 🚨 ALL IMAGES responsive (MUST include) */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-cockfighting__video-section,
  .page-cockfighting__hero-section,
  .page-cockfighting__content-area,
  .page-cockfighting__faq-section,
  .page-cockfighting__brand-section,
  .page-cockfighting__blog-section,
  .page-cockfighting__video-container,
  .page-cockfighting__video-wrapper,
  .page-cockfighting__hero-container,
  .page-cockfighting__faq-container,
  .page-cockfighting__brand-container,
  .page-cockfighting__blog-container,
  .page-cockfighting__cta-buttons,
  .page-cockfighting__image-grid,
  .page-cockfighting__blog-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
}

@media (max-width: 480px) {
  .page-cockfighting__main-title {
    font-size: 1.8em;
  }
  .page-cockfighting__section-title {
    font-size: 1.6em;
  }
  .page-cockfighting__cta-banner {
    padding: 25px 15px;
  }
  .page-cockfighting__banner-title {
    font-size: 1.5em;
  }
  .page-cockfighting__banner-text {
    font-size: 0.95em;
  }
}