/* style/cockfighting.css */

/* Variables and Base Styles */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #000080; /* Dark Blue */
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #000000; /* From shared.css body */
  --bg-light: #f5f5f5; /* For sections on dark body */
  --border-color: #e0e0e0;
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-dark: rgba(0, 0, 0, 0.25);
  --transition-speed: 0.3s;
}

/* Page-specific container for scope */
.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); /* Should be inherited from body, but good to ensure */
}

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

.page-cockfighting__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.page-cockfighting__sub-title {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-cockfighting__text-block {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--text-light); /* Ensure light text on dark body */
}

/* Hero Section (Module 1: H1 + CTA) */
.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #000040 100%);
  color: var(--text-light);
}

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

.page-cockfighting__main-title {
  font-size: 3.5em;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.2;
}

.page-cockfighting__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #f0f0f0; /* Slightly off-white for contrast on dark background */
}

.page-cockfighting__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-cockfighting__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all var(--transition-speed) ease;
  box-shadow: 0 5px 15px var(--shadow-dark);
  text-align: center;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  box-sizing: border-box; /* Include padding and border in element's total width and height */
  max-width: 100%; /* Ensure it doesn't overflow */
}

.page-cockfighting__btn-primary {
  background: var(--primary-color);
  color: var(--secondary-color); /* Gold background, dark blue text for contrast */
  border: 2px solid var(--primary-color);
}

.page-cockfighting__btn-primary:hover {
  background: #e6c200; /* Slightly darker gold */
  border-color: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px var(--shadow-dark);
}

.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(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px var(--shadow-dark);
}

/* Content Section (General content, e.g., introduction to cockfighting) */
.page-cockfighting__content-section {
  background-color: var(--bg-light); /* Light background for content on dark body */
  padding: 60px 0;
}

.page-cockfighting__content-section .page-cockfighting__section-title {
  color: var(--secondary-color); /* Dark blue title on light background */
}

.page-cockfighting__content-section .page-cockfighting__text-block {
  color: var(--text-dark); /* Dark text on light background */
}

.page-cockfighting__image-text-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  margin-bottom: 40px;
}

.page-cockfighting__image-text-block .page-cockfighting__image {
  flex: 1;
  min-width: 300px;
  border-radius: 8px;
  box-shadow: 0 4px 15px var(--shadow-light);
  object-fit: cover;
  max-width: 100%; /* Responsive image */
  height: auto;
}

.page-cockfighting__image-text-block .page-cockfighting__text-block {
  flex: 2;
  min-width: 300px;
}

.page-cockfighting__feature-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.page-cockfighting__feature-item {
  background: #ffffff;
  border-left: 5px solid var(--primary-color);
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 5px;
  box-shadow: 0 2px 10px var(--shadow-light);
  color: var(--text-dark);
  font-size: 1.05em;
}

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

.page-cockfighting__cta-section {
  text-align: center;
  margin-top: 50px;
  padding: 40px;
  background-color: var(--secondary-color);
  border-radius: 10px;
  color: var(--text-light);
  box-shadow: 0 5px 20px var(--shadow-dark);
}

.page-cockfighting__cta-text {
  font-size: 1.4em;
  margin-bottom: 30px;
  font-weight: 600;
  color: #f0f0f0;
}

/* Module 3: Brand Introduction */
.page-cockfighting__brand-section {
  background-color: var(--secondary-color); /* Dark blue background */
  padding: 60px 0;
  color: var(--text-light);
}

.page-cockfighting__brand-section .page-cockfighting__section-title {
  color: var(--primary-color);
}

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

.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: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark blue */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform var(--transition-speed) ease;
  color: var(--text-light);
}

.page-cockfighting__brand-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.page-cockfighting__brand-icon {
  width: 200px; /* Min size 200x200px */
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
  max-width: 100%;
  height: auto;
}

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

.page-cockfighting__item-description {
  font-size: 1em;
  line-height: 1.7;
  color: #f0f0f0;
}

/* Module 4: Blog List */
.page-cockfighting__blog-section {
  background-color: var(--bg-light); /* Light background for blog section */
  padding: 60px 0;
}

.page-cockfighting__blog-section .page-cockfighting__section-title {
  color: var(--secondary-color);
}

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

.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: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px var(--shadow-light);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  display: flex;
  flex-direction: column;
}

.page-cockfighting__blog-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px var(--shadow-light);
}

.page-cockfighting__blog-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  max-width: 100%;
  height: auto; /* Override fixed height for responsiveness */
}

.page-cockfighting__blog-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.page-cockfighting__blog-link {
  text-decoration: none;
  color: inherit;
}

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

.page-cockfighting__blog-item-title:hover {
  color: var(--primary-color);
}

.page-cockfighting__blog-item-excerpt {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-cockfighting__blog-item-date {
  font-size: 0.85em;
  color: #888888;
  text-align: right;
}

.page-cockfighting__view-all-button {
  text-align: center;
  margin-top: 50px;
}

/* Module 2: FAQ Section */
.page-cockfighting__faq-section {
  background-color: var(--secondary-color); /* Dark blue background */
  padding: 60px 0;
  color: var(--text-light);
}

.page-cockfighting__faq-section .page-cockfighting__section-title {
  color: var(--primary-color);
}

.page-cockfighting__faq-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

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

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

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color var(--transition-speed) ease, border-color var(--transition-speed) ease;
  position: relative;
  color: var(--text-dark); /* Dark text on light background */
}

.page-cockfighting__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-cockfighting__faq-question:active {
  background: #eeeeee;
}

.page-cockfighting__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
  color: var(--secondary-color); /* Dark blue for question title */
}

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

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg); /* Optional: 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 15px;
  opacity: 0;
  background: #fdfdfd; /* Light background for answer */
  color: var(--text-dark); /* Dark text for answer */
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to hold content */
  padding: 20px 15px !important;
  opacity: 1;
  background: #fdfdfd;
  border-radius: 0 0 5px 5px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

/* Video Section (Top of page) */
.page-cockfighting__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  background-color: var(--bg-dark); /* Ensure dark background */
}

.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-link {
  display: block;
  text-decoration: none;
  position: relative;
  width: 100%;
  cursor: pointer;
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.page-cockfighting__video-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);;
}

.page-cockfighting__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.page-cockfighting__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.3);
  border-radius: 8px;
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
  pointer-events: none;
  z-index: 1;
}

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

.page-cockfighting__video-click-hint {
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  background: rgba(0, 123, 255, 0.8); /* Use a distinct color for the hint */
  border-radius: 5px;
  white-space: nowrap;
}

.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(--primary-color);
  color: var(--secondary-color); /* Gold background, dark blue text */
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all var(--transition-speed) ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

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

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

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-cockfighting__main-title {
    font-size: 2.8em;
  }
  .page-cockfighting__hero-description {
    font-size: 1.2em;
  }
  .page-cockfighting__section-title {
    font-size: 2em;
  }
  .page-cockfighting__sub-title {
    font-size: 1.6em;
  }
}

@media (max-width: 768px) {
  /* General mobile adjustments */
  .page-cockfighting__container,
  .page-cockfighting__hero-container,
  .page-cockfighting__brand-container,
  .page-cockfighting__blog-container,
  .page-cockfighting__faq-container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  .page-cockfighting__hero-section,
  .page-cockfighting__content-section,
  .page-cockfighting__brand-section,
  .page-cockfighting__blog-section,
  .page-cockfighting__faq-section {
    padding: 40px 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  /* Video Section Mobile */
  .page-cockfighting__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    padding-bottom: 30px !important;
  }
  
  .page-cockfighting__video-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .page-cockfighting__video-link,
  .page-cockfighting__video-wrapper,
  .page-cockfighting__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important; /* Ensure video scales */
    border-radius: 4px;
    object-fit: contain; /* Ensure video content is fully visible */
  }

  .page-cockfighting__video-cta {
    margin-top: 20px;
    padding: 0 15px;
  }

  .page-cockfighting__play-now-button {
    width: 100% !important;
    padding: 12px 25px !important;
    font-size: 16px !important;
  }

  /* H1 + CTA Section Mobile */
  .page-cockfighting__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }
  .page-cockfighting__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-cockfighting__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }
  .page-cockfighting__cta-button {
    width: 100% !important;
    padding: 12px 25px !important;
    font-size: 1em !important;
  }

  /* General Images Mobile */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  .page-cockfighting__image-text-block {
    flex-direction: column;
    gap: 20px;
  }
  .page-cockfighting__image-text-block .page-cockfighting__image {
    min-width: unset;
  }
  .page-cockfighting__brand-icon {
    width: 150px;
    height: 100px;
  }

  /* Blog List Mobile */
  .page-cockfighting__blog-list {
    grid-template-columns: 1fr; /* Single column layout */
  }
  .page-cockfighting__blog-image {
    height: 180px;
  }

  /* FAQ Mobile */
  .page-cockfighting__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-cockfighting__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px); /* Adjust width for toggle icon */
  }
  
  .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;
  }

  /* Ensure all content sections prevent overflow */
  .page-cockfighting__hero-section,
  .page-cockfighting__content-section,
  .page-cockfighting__brand-section,
  .page-cockfighting__blog-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-buttons,
  .page-cockfighting__cta-section {
    overflow-x: hidden !important;
  }
}

/* Ensure content area images do not shrink below 200px */
.page-cockfighting__content-section img,
.page-cockfighting__brand-item img,
.page-cockfighting__blog-item img {
  min-width: 200px;
  min-height: 200px;
}

@media (max-width: 768px) {
  .page-cockfighting__content-section img,
  .page-cockfighting__brand-item img,
  .page-cockfighting__blog-item img {
    min-width: 200px !important; /* Ensure minimum size on mobile if layout allows */
    min-height: 200px !important;
  }
}