/* style/cockfighting.css */

/* Base styles for the page, adapting to dark body background */
.page-cockfighting {
  color: #ffffff; /* Light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Rely on body background from shared.css */
}

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

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  overflow: hidden;
  background-color: #000000; /* Ensure a dark background for the hero section */
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit image height */
  overflow: hidden;
  margin-bottom: 30px;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  background: rgba(0, 0, 0, 0.7); /* Semi-transparent dark background for text */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-cockfighting__intro-text {
  font-size: 1.15rem;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-cockfighting__highlight-text {
  color: #FFFF00; /* Login/Register font color for highlights */
  font-weight: bold;
}

.page-cockfighting__game-type {
  color: #017439; /* Primary color for game types */
  font-weight: bold;
}

/* Video Section */
.page-cockfighting__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* body handles --header-offset, so only a small top padding here */
  background-color: #000000;
  color: #ffffff;
}

.page-cockfighting__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px; /* Max width for video container */
  margin: 30px auto;
  background-color: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
  box-sizing: border-box; /* Crucial for responsiveness */
}

.page-cockfighting__video {
  width: 100%;
  height: auto; /* Ensure video scales correctly */
  display: block;
  border-radius: 10px;
  cursor: pointer; /* Indicate clickable video */
}

/* General Section Styling */
.page-cockfighting__section {
  padding: 80px 0;
  background-color: #000000; /* Dark background for all sections */
  color: #ffffff; /* Light text */
}

.page-cockfighting__dark-section {
  background-color: #0d0d0d; /* Slightly different dark shade for contrast */
}

.page-cockfighting__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: #ffffff;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.3;
}

.page-cockfighting__text-block {
  font-size: 1.05rem;
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Button Styles */
.page-cockfighting__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

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

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

.page-cockfighting__btn-secondary {
  background-color: transparent;
  color: #017439; /* Primary color */
  border: 2px solid #017439;
}

.page-cockfighting__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
  transform: translateY(-2px);
}

/* 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: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

.page-cockfighting__feature-title {
  font-size: 1.5rem;
  color: #FFFF00;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-cockfighting__feature-description {
  font-size: 1rem;
  color: #f0f0f0;
}

/* Content Grid (for types of cockfighting) */
.page-cockfighting__content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__card {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  color: #ffffff;
  text-align: center;
}

.page-cockfighting__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

.page-cockfighting__card-title {
  font-size: 1.3rem;
  color: #FFFF00;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-cockfighting__card-description {
  font-size: 0.95rem;
  color: #f0f0f0;
}

/* Steps Grid (for guide) */
.page-cockfighting__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 50px;
}

.page-cockfighting__step-card {
  background: rgba(255, 255, 255, 0.15);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  color: #ffffff;
}

.page-cockfighting__step-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: #017439; /* Primary color */
  margin-bottom: 15px;
}

.page-cockfighting__step-title {
  font-size: 1.4rem;
  color: #FFFF00;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-cockfighting__step-description {
  font-size: 1rem;
  color: #f0f0f0;
}

.page-cockfighting__guide-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

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

.page-cockfighting__tip-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

.page-cockfighting__tip-title {
  font-size: 1.4rem;
  color: #FFFF00;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-cockfighting__tip-description {
  font-size: 1rem;
  color: #f0f0f0;
}

.page-cockfighting__tips-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

/* Event List */
.page-cockfighting__event-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-cockfighting__list-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-cockfighting__event-title {
  font-size: 1.3rem;
  color: #FFFF00;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-cockfighting__event-description {
  font-size: 1rem;
  color: #f0f0f0;
}

.page-cockfighting__event-list a {
  color: #017439;
  text-decoration: underline;
}

.page-cockfighting__event-list a:hover {
  color: #00a04a;
}

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

.page-cockfighting__faq-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  overflow: hidden; /* Ensure content doesn't overflow when collapsed */
}

.page-cockfighting__faq-item summary {
  list-style: none; /* Hide default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: bold;
  color: #FFFF00;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.3);
}

.page-cockfighting__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-cockfighting__faq-qtext {
  flex-grow: 1;
  margin-right: 15px;
}

.page-cockfighting__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: #017439;
}

.page-cockfighting__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: #f0f0f0;
}

.page-cockfighting__faq-answer p {
  margin-bottom: 0;
  text-align: left;
}

/* Links within content */
.page-cockfighting a:not(.page-cockfighting__cta-button) {
  color: #017439; /* Primary color for general links */
  text-decoration: underline;
}

.page-cockfighting a:not(.page-cockfighting__cta-button):hover {
  color: #00a04a;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-cockfighting {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-cockfighting__container,
  .page-cockfighting__hero-section,
  .page-cockfighting__section,
  .page-cockfighting__content-grid,
  .page-cockfighting__features-grid,
  .page-cockfighting__steps-grid,
  .page-cockfighting__tips-grid,
  .page-cockfighting__faq-list {
    padding-left: 15px;
    padding-right: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-cockfighting__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-cockfighting__hero-content {
    padding: 20px;
  }

  .page-cockfighting__main-title {
    font-size: 2rem;
  }

  .page-cockfighting__intro-text {
    font-size: 1rem;
  }

  .page-cockfighting__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .page-cockfighting__text-block {
    font-size: 0.95rem;
  }

  /* Images responsive */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-cockfighting__card-image {
    height: auto; /* Allow height to adjust for mobile */
  }

  /* Videos responsive */
  .page-cockfighting__video-section {
    padding-top: 10px !important;
  }
  .page-cockfighting__video-wrapper,
  .page-cockfighting__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-cockfighting__video-section .page-cockfighting__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons responsive */
  .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% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 15px; /* Add spacing between stacked buttons */
  }
}