.page-cockfighting {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: var(--dark-bg-1); /* Inherited from shared.css, typically dark */
}

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

/* --- Hero Section --- */
.page-cockfighting__hero-section {
  position: relative;
  padding: 100px 20px;
  text-align: center;
  background: linear-gradient(135deg, #017439, #005f2e);
  color: #ffffff;
  padding-top: var(--header-offset, 120px);
}

.page-cockfighting__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
}

.page-cockfighting__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

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

.page-cockfighting__btn-primary:hover {
  background-color: #a30606;
  border-color: #a30606;
}

.page-cockfighting__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-cockfighting__btn-secondary:hover {
  background-color: #ffffff;
  color: #017439;
}

/* --- Video Section --- */
.page-cockfighting__video-section {
  padding: 60px 20px;
  text-align: center;
  background-color: #0d0d0d; /* Slightly darker for video contrast */
  color: #ffffff;
}

.page-cockfighting__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__video,
.page-cockfighting__video-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  cursor: pointer;
}

.page-cockfighting__video-caption {
  font-style: italic;
  margin-top: 20px;
  color: #f0f0f0;
}

/* --- General Section Styles --- */
.page-cockfighting__section-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  font-weight: bold;
  text-align: center;
  color: #ffffff;
}

.page-cockfighting__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-cockfighting__light-bg {
  background-color: #ffffff; /* White background for light sections */
  color: #333333; /* Dark text for light background */
  padding: 60px 20px;
}

.page-cockfighting__dark-bg {
  background-color: #017439; /* Brand primary color for dark sections */
  color: #ffffff; /* White text for brand primary background */
  padding: 60px 20px;
}

/* Adjust text color for sections with light background */
.page-cockfighting__light-bg .page-cockfighting__section-title,
.page-cockfighting__light-bg .page-cockfighting__section-description,
.page-cockfighting__light-bg h3,
.page-cockfighting__light-bg p,
.page-cockfighting__light-bg li {
  color: #333333;
}

/* --- About Section --- */
.page-cockfighting__about-section {
  padding-bottom: 60px;
}

.page-cockfighting__content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.page-cockfighting__content-grid:nth-child(even) {
  grid-template-areas: "text" "image";
}

.page-cockfighting__content-grid:nth-child(odd) {
  grid-template-areas: "text" "image";
}

.page-cockfighting__text-block h3 {
  font-size: 1.8em;
  margin-bottom: 15px;
  font-weight: bold;
  color: #017439;
}

.page-cockfighting__text-block p {
  margin-bottom: 15px;
  line-height: 1.8;
}

.page-cockfighting__image-block {
  text-align: center;
}

.page-cockfighting__image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* --- Rules Section --- */
.page-cockfighting__rules-section h3 {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-cockfighting__rules-section ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 20px;
}

.page-cockfighting__rules-section li {
  margin-bottom: 10px;
}

/* --- Types Section --- */
.page-cockfighting__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-cockfighting__card {
  background-color: #f8f8f8;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-cockfighting__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  width: 100%; /* Ensure image fills card width */
  min-height: 200px; /* Minimum height for card images */
}

.page-cockfighting__card-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #017439;
}

.page-cockfighting__card-text {
  font-size: 1em;
  line-height: 1.7;
  flex-grow: 1;
}

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

.page-cockfighting__tip-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #ffffff;
  transition: background-color 0.3s ease;
}

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

.page-cockfighting__tip-title {
  font-size: 1.6em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFFF00; /* Highlight tip titles */
}

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

/* --- Advantages Section --- */
.page-cockfighting__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-cockfighting__feature-card {
  background-color: #f8f8f8;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  color: #333333;
}

.page-cockfighting__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  display: block; /* Ensures proper centering */
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__feature-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #017439;
}

.page-cockfighting__feature-text {
  font-size: 1em;
  line-height: 1.7;
}

/* --- FAQ Section --- */
.page-cockfighting__faq-section {
  padding-bottom: 60px;
}

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

.page-cockfighting__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transition: background-color 0.3s ease;
}

.page-cockfighting__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

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

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #FFFF00;
}

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

.page-cockfighting__faq-item details > summary {
  list-style: none;
}

.page-cockfighting__faq-item details > summary::-webkit-details-marker {
  display: none;
}

/* --- Bottom CTA Section --- */
.page-cockfighting__cta-bottom-section {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(45deg, #017439, #005f2e);
  color: #ffffff;
}

/* --- Responsive Design --- */

/* Tablets and smaller desktops */
@media (max-width: 1024px) {
  .page-cockfighting__hero-title {
    font-size: 2.8em;
  }

  .page-cockfighting__hero-description {
    font-size: 1.1em;
  }

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

  .page-cockfighting__section-description {
    font-size: 1em;
  }

  .page-cockfighting__content-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "image" "text" !important; /* Stack image above text */
  }

  .page-cockfighting__content-grid:nth-child(even) {
    grid-template-areas: "image" "text" !important;
  }

  .page-cockfighting__content-grid:nth-child(odd) {
    grid-template-areas: "image" "text" !important;
  }

  .page-cockfighting__text-block {
    order: 2;
  }
  .page-cockfighting__image-block {
    order: 1;
  }
}

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

  .page-cockfighting__hero-section {
    padding: 80px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

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

  .page-cockfighting__hero-description {
    font-size: 1em;
  }

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

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

  .page-cockfighting__video-section,
  .page-cockfighting__about-section,
  .page-cockfighting__rules-section,
  .page-cockfighting__types-section,
  .page-cockfighting__tips-section,
  .page-cockfighting__advantages-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-bottom-section {
    padding: 40px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no overflow */
  }

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

  .page-cockfighting__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-cockfighting__content-grid,
  .page-cockfighting__card-grid,
  .page-cockfighting__tips-grid,
  .page-cockfighting__feature-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-cockfighting__text-block h3 {
    font-size: 1.5em;
  }

  .page-cockfighting__card-title {
    font-size: 1.3em;
  }

  .page-cockfighting__tip-title {
    font-size: 1.4em;
  }

  .page-cockfighting__feature-title {
    font-size: 1.3em;
  }

  .page-cockfighting__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  /* Image and Video responsiveness */
  .page-cockfighting img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-cockfighting__video-wrapper,
  .page-cockfighting__video,
  .page-cockfighting__image-block,
  .page-cockfighting__card,
  .page-cockfighting__feature-card,
  .page-cockfighting__video-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no overflow */
  }

  .page-cockfighting__card-image {
    min-height: 150px; /* Adjust min height for mobile cards */
 }}