/* style/cockfighting.css */

/* Root variables for consistent colors */
:root {
  --primary-color: #007BFF;
  --secondary-color: #FFC107;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #121212;
  --bg-light: #f8f9fa;
  --card-bg-dark-mode: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards on dark body bg */
  --border-color-dark-mode: rgba(255, 255, 255, 0.15);
}

.page-cockfighting {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Main text color for dark body background */
  background-color: var(--bg-dark); /* Inherited from shared.css, but explicit here for clarity */
  padding-top: 120px; /* Desktop: Ensure content is not hidden by fixed header */
}

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

/* Hero Section */
.page-cockfighting__hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
  padding: 80px 0;
  text-align: center;
  color: var(--text-light);
  border-bottom: 5px solid var(--secondary-color);
}

.page-cockfighting__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  color: var(--text-light);
}

.page-cockfighting__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: rgba(255, 255, 255, 0.9);
}

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

.page-cockfighting__cta-button {
  display: inline-block;
  padding: 15px 35px;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 2px solid transparent;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Ensure long words break */
  max-width: 100%; /* Ensure button doesn't exceed container width */
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.page-cockfighting__cta-button--primary {
  background: var(--secondary-color);
  color: var(--text-dark); /* Dark text on bright yellow */
  border-color: var(--secondary-color);
}

.page-cockfighting__cta-button--primary:hover {
  background: #e0ac00; /* A darker yellow */
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__cta-button--secondary {
  background: transparent;
  color: var(--text-light);
  border-color: var(--text-light);
}

.page-cockfighting__cta-button--secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.page-cockfighting__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 50px;
  color: var(--text-light);
  font-weight: bold;
  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: var(--secondary-color);
  border-radius: 2px;
}

/* Features Section */
.page-cockfighting__features-section {
  padding: 80px 0;
  background-color: var(--bg-dark);
}

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

.page-cockfighting__feature-item {
  background: var(--card-bg-dark-mode); /* Card background on dark body bg */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color-dark-mode);
  color: var(--text-light);
}

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

.page-cockfighting__feature-image {
  width: 100%; /* Ensure image fills card width */
  max-width: 300px; /* Limit max size for consistency */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

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

.page-cockfighting__feature-text {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.8);
}

/* Guide Section */
.page-cockfighting__guide-section {
  padding: 80px 0;
  background: #0d0d0d; /* A slightly darker background for contrast */
  color: var(--text-light);
}

.page-cockfighting__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-cockfighting__guide-item {
  text-align: center;
  padding: 30px;
  background: var(--card-bg-dark-mode);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color-dark-mode);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-light);
}

.page-cockfighting__guide-step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--secondary-color);
  color: var(--text-dark);
  border-radius: 50%;
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

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

.page-cockfighting__guide-step-text {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.7);
  flex-grow: 1; /* Ensure text takes available space */
}

.page-cockfighting__btn-primary {
  display: inline-block;
  padding: 10px 25px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 30px;
  font-size: 0.9em;
  font-weight: bold;
  margin-top: 20px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid var(--primary-color);
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-cockfighting__btn-primary:hover {
  background: #0056b3;
  transform: translateY(-2px);
}

/* Tips Section */
.page-cockfighting__tips-section {
  padding: 80px 0;
  background-color: var(--bg-dark);
}

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

.page-cockfighting__tip-item {
  background: var(--card-bg-dark-mode);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color-dark-mode);
  color: var(--text-light);
}

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

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

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

.page-cockfighting__tip-text {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.8);
}

/* CTA Banner */
.page-cockfighting__cta-banner {
  background: linear-gradient(90deg, #0a0a0a 0%, #2a2a2a 100%);
  padding: 60px 0;
  text-align: center;
  color: var(--text-light);
  border-top: 5px solid var(--primary-color);
  border-bottom: 5px solid var(--primary-color);
}

.page-cockfighting__banner-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  font-weight: bold;
  color: var(--secondary-color);
}

.page-cockfighting__banner-text {
  font-size: 1.2em;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: rgba(255, 255, 255, 0.9);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__hero-title {
    font-size: 2.8em;
  }

  .page-cockfighting__section-title {
    font-size: 2em;
  }

  .page-cockfighting__banner-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-cockfighting {
    padding-top: 100px !important; /* Mobile: Ensure content is not hidden by fixed header */
    font-size: 15px;
  }

  .page-cockfighting__container {
    padding: 0 15px;
  }

  .page-cockfighting__hero-section {
    padding: 60px 0;
  }

  .page-cockfighting__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-cockfighting__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

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

  .page-cockfighting__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-cockfighting__section-title {
    font-size: 1.8em;
    margin-bottom: 40px;
    padding-bottom: 10px;
  }
  
  .page-cockfighting__section-title::after {
    width: 60px;
    height: 3px;
  }

  .page-cockfighting__features-section,
  .page-cockfighting__guide-section,
  .page-cockfighting__tips-section,
  .page-cockfighting__cta-banner {
    padding: 50px 0;
  }

  .page-cockfighting__feature-item,
  .page-cockfighting__guide-item,
  .page-cockfighting__tip-item {
    padding: 25px;
  }

  .page-cockfighting__feature-image,
  .page-cockfighting__tip-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-cockfighting__guide-step-number {
    width: 50px;
    height: 50px;
    font-size: 1.8em;
  }

  .page-cockfighting__guide-step-title,
  .page-cockfighting__feature-title,
  .page-cockfighting__tip-title {
    font-size: 1.3em;
  }

  .page-cockfighting__btn-primary {
    padding: 10px 20px;
    font-size: 0.85em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-cockfighting__banner-title {
    font-size: 2em;
  }

  .page-cockfighting__banner-text {
    font-size: 1em;
    margin-bottom: 30px;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__hero-title {
    font-size: 1.8em;
  }
  .page-cockfighting__section-title {
    font-size: 1.5em;
  }
  .page-cockfighting__banner-title {
    font-size: 1.8em;
  }
}

/* Ensure all images are responsive and don't overflow */
.page-cockfighting img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Ensure all containers with images/buttons/videos are responsive */
.page-cockfighting__hero-section,
.page-cockfighting__features-section,
.page-cockfighting__guide-section,
.page-cockfighting__tips-section,
.page-cockfighting__cta-banner,
.page-cockfighting__container,
.page-cockfighting__feature-item,
.page-cockfighting__guide-item,
.page-cockfighting__tip-item {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden; /* Prevent content overflow */
}

/* Specific overrides for mobile */
@media (max-width: 768px) {
  .page-cockfighting__hero-section,
  .page-cockfighting__features-section,
  .page-cockfighting__guide-section,
  .page-cockfighting__tips-section,
  .page-cockfighting__cta-banner {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* General button responsiveness */
.page-cockfighting a[class*="button"],
.page-cockfighting a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}
@media (max-width: 768px) {
  .page-cockfighting a[class*="button"],
  .page-cockfighting a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px; /* Add padding to prevent text touching edges */
    padding-right: 15px; /* Add padding to prevent text touching edges */
  }
  .page-cockfighting__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Ensure no CSS filters changing image colors */
.page-cockfighting img {
  filter: none;
}