.page-cockfighting {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light body background */
  background-color: var(--background-color, #FFFFFF); /* Inherit from shared, default white */
  line-height: 1.6;
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  overflow: hidden;
  background-color: #f5f5f5; /* Light background for hero section */
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 30px; /* Space between image and content */
}

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

.page-cockfighting__hero-content {
  max-width: 900px;
  width: 100%; /* Ensure width is 100% for flex centering */
  z-index: 1;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-cockfighting__main-title {
  font-size: clamp(2.2rem, 4vw, 3rem); /* Responsive H1 font size */
  color: #26A9E0; /* Brand color for H1 */
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-cockfighting__intro-description {
  font-size: 1.15rem;
  color: #555555;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Section Titles */
.page-cockfighting__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.3;
}

.page-cockfighting__section-title--white {
  color: #FFFFFF;
}

/* Text Blocks */
.page-cockfighting__text-block {
  font-size: 1rem;
  margin-bottom: 20px;
  text-align: justify;
}

.page-cockfighting__text-block--white {
  color: #FFFFFF;
}

/* CTA Buttons */
.page-cockfighting__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%; /* Ensure container takes full width */
  max-width: 100%;
  box-sizing: border-box;
}

.page-cockfighting__cta-buttons--centered {
  margin-top: 40px;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid;
  max-width: 100%; /* Ensure buttons don't overflow */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to break words */
  text-align: center;
}

.page-cockfighting__btn-primary {
  background-color: #26A9E0;
  color: #FFFFFF;
  border-color: #26A9E0;
}

.page-cockfighting__btn-primary:hover {
  background-color: #1e87c2;
  border-color: #1e87c2;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0;
  border-color: #26A9E0;
}

.page-cockfighting__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1e87c2;
  border-color: #1e87c2;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Login Button specific color */
a[href="login.html"].page-cockfighting__btn-secondary {
  background-color: #EA7C07;
  color: #FFFFFF;
  border-color: #EA7C07;
}
a[href="login.html"].page-cockfighting__btn-secondary:hover {
  background-color: #c96706;
  border-color: #c96706;
}


/* About Section */
.page-cockfighting__about-section {
  padding: 60px 0;
  background-color: #FFFFFF; /* Light background */
}

/* Features Section */
.page-cockfighting__features-section {
  padding: 60px 0;
  background-color: #f0f8ff; /* Slightly off-white background */
}

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

.page-cockfighting__feature-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333333; /* Ensure text is dark on light background */
}

.page-cockfighting__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__feature-image {
  width: 100%;
  max-width: 400px; /* Example display size */
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px; /* Enforce min size */
}

.page-cockfighting__card-title {
  font-size: 1.4rem;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-cockfighting__card-description {
  font-size: 0.95rem;
  color: #666666;
  flex-grow: 1; /* Allow description to take available space */
}

/* How to Play Section */
.page-cockfighting__how-to-play-section {
  padding: 60px 0;
  background-color: #26A9E0; /* Dark background */
  color: #FFFFFF; /* White text for dark background */
}

.page-cockfighting__how-to-play-section .page-cockfighting__section-title {
  color: #FFFFFF;
}

.page-cockfighting__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-cockfighting__list-item {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for list items */
  border-radius: 8px;
  padding: 25px 30px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-cockfighting__list-title {
  font-size: 1.3rem;
  color: #FFFFFF;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-cockfighting__list-item p {
  font-size: 1rem;
  color: #f0f0f0;
}

/* FAQ Section */
.page-cockfighting__faq-section {
  padding: 60px 0;
  background-color: #FFFFFF; /* Light background */
}

.page-cockfighting__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333; /* Ensure text is dark on light background */
}

.page-cockfighting__faq-item summary {
  list-style: none; /* Hide default marker */
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: #26A9E0; /* Brand color for question */
  background-color: #eaf6ff; /* Light blue background for summary */
  transition: background-color 0.3s ease;
}

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

.page-cockfighting__faq-item summary:hover {
  background-color: #dbeeff;
}

.page-cockfighting__faq-qtext {
  flex-grow: 1;
}

.page-cockfighting__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  width: 20px; /* Fixed width for consistent alignment */
  text-align: center;
  color: #26A9E0;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
  content: "−"; /* Change to minus when open */
}

.page-cockfighting__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1rem;
  color: #555555;
  background-color: #FFFFFF;
  border-top: 1px solid #e0e0e0;
}

/* CTA Register Section */
.page-cockfighting__cta-register {
  padding: 80px 0;
  background-color: #26A9E0;
  text-align: center;
}

.page-cockfighting__cta-register-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-cockfighting__hero-content {
    max-width: 768px;
  }

  .page-cockfighting__main-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
  }

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

@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    padding: 10px 15px 40px;
  }

  .page-cockfighting__hero-content {
    padding: 0 10px;
  }

  .page-cockfighting__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .page-cockfighting__intro-description {
    font-size: 0.95rem;
  }

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

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-cockfighting__section-title {
    font-size: clamp(1.5rem, 5.5vw, 2.2rem);
    margin-bottom: 30px;
  }

  .page-cockfighting__feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting__feature-image {
    max-width: 100%;
    height: auto;
    min-height: 200px;
  }

  .page-cockfighting__list-item {
    padding: 20px 25px;
  }

  .page-cockfighting__list-title {
    font-size: 1.2rem;
  }

  .page-cockfighting__faq-item summary {
    padding: 15px 20px;
    font-size: 1rem;
  }

  .page-cockfighting__faq-answer {
    padding: 10px 20px 15px;
  }

  /* Mobile image responsiveness */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Video (if any) responsiveness */
  .page-cockfighting video,
  .page-cockfighting__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-cockfighting__video-section,
  .page-cockfighting__video-container,
  .page-cockfighting__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-cockfighting__video-section {
    padding-top: 10px !important;
  }
}

/* Ensure no filter on images */
.page-cockfighting img {
  filter: none !important;
}