/* style/cockfighting.css */
.page-cockfighting {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #1a1a2e; /* Inherited from body, ensuring consistency */
}

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

.page-cockfighting__section {
  padding: 60px 0;
  position: relative;
}

.page-cockfighting__section-title {
  font-size: 2.5em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-cockfighting__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

/* Hero Section */
.page-cockfighting__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Fallback for header offset */
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #017439, #1a1a2e);
}

.page-cockfighting__hero-content {
  z-index: 1;
  max-width: 900px;
  margin-bottom: 40px;
}

.page-cockfighting__hero-title {
  font-size: 3.5em;
  color: #ffffff;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

.page-cockfighting__hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-cockfighting__hero-video {
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  filter: brightness(0.5); /* Darken video for text readability */
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-small,
.page-cockfighting__btn-text {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.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: #a00606;
  border-color: #a00606;
}

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

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

.page-cockfighting__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
  border-radius: 5px;
  background-color: #017439;
  color: #ffffff;
  border: 1px solid #017439;
  margin-top: 10px;
}

.page-cockfighting__btn-small:hover {
  background-color: #005a2e;
  border-color: #005a2e;
}

.page-cockfighting__btn-text {
  color: #FFFF00;
  text-decoration: underline;
  background: none;
  border: none;
  padding: 0;
  font-weight: normal;
}

.page-cockfighting__btn-text:hover {
  color: #ffffff;
}

/* Section Backgrounds */
.page-cockfighting__dark-bg {
  background-color: #1a1a2e;
  color: #ffffff;
}

.page-cockfighting__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-cockfighting__light-bg .page-cockfighting__section-title,
.page-cockfighting__light-bg .page-cockfighting__list-title,
.page-cockfighting__light-bg .page-cockfighting__card-title {
  color: #017439;
}

/* Images */
.page-cockfighting__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__image--left {
  float: left;
  margin-right: 30px;
  margin-bottom: 15px;
  width: 50%; /* Adjust as needed */
  min-width: 200px; /* Enforce min size */
}

.page-cockfighting__image--right {
  float: right;
  margin-left: 30px;
  margin-bottom: 15px;
  width: 50%; /* Adjust as needed */
  min-width: 200px; /* Enforce min size */
}

.page-cockfighting__image--center {
  margin-left: auto;
  margin-right: auto;
  width: 70%; /* Adjust as needed */
  min-width: 200px; /* Enforce min size */
}

/* Clearfix for floated images */
.page-cockfighting__container::after {
  content: "";
  display: table;
  clear: both;
}

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

.page-cockfighting__card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark bg */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  height: 100%; /* Ensure equal height */
}

.page-cockfighting__light-bg .page-cockfighting__card {
  background-color: #f8f8f8; /* Light background for light section */
  color: #333333;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: bold;
  color: #FFFF00; /* Yellow for titles on dark cards */
}

.page-cockfighting__light-bg .page-cockfighting__card-title {
  color: #017439; /* Brand green for titles on light cards */
}

.page-cockfighting__card-text {
  font-size: 1em;
  line-height: 1.5;
}

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

.page-cockfighting__feature-item {
  background-color: rgba(1, 116, 57, 0.8); /* Brand green with opacity */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-cockfighting__feature-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  font-weight: bold;
  color: #FFFF00; /* Yellow for feature titles */
}

.page-cockfighting__feature-description {
  font-size: 1em;
  line-height: 1.5;
  flex-grow: 1;
}

/* Ordered/Unordered Lists */
.page-cockfighting__ordered-list,
.page-cockfighting__unordered-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-cockfighting__ordered-list li,
.page-cockfighting__unordered-list li {
  background-color: #f8f8f8;
  margin-bottom: 20px;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  counter-increment: list-counter;
  position: relative;
  padding-left: 70px;
  color: #333333;
}

.page-cockfighting__ordered-list li::before {
  content: counter(list-counter);
  position: absolute;
  left: 25px;
  top: 25px;
  background-color: #017439;
  color: #ffffff;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2em;
}

.page-cockfighting__unordered-list li {
  padding-left: 50px;
}

.page-cockfighting__unordered-list li::before {
  content: '•';
  position: absolute;
  left: 25px;
  top: 25px;
  color: #017439;
  font-size: 2em;
  line-height: 1;
}

.page-cockfighting__list-title {
  font-size: 1.3em;
  color: #017439;
  margin-bottom: 10px;
}

.page-cockfighting__list-text {
  font-size: 1em;
  color: #555555;
}

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

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

.page-cockfighting__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #FFFF00; /* Yellow for FAQ questions */
  background-color: rgba(1, 116, 57, 0.6); /* Slightly darker brand green */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
  transform: rotate(45deg);
}

.page-cockfighting__faq-answer {
  padding: 20px 25px;
  background-color: rgba(255, 255, 255, 0.05);
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-cockfighting__faq-answer p {
  margin-bottom: 10px;
}

/* Conclusion Section */
.page-cockfighting__conclusion-section .page-cockfighting__cta-buttons--bottom {
  margin-top: 40px;
}

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

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

  .page-cockfighting__image--left,
  .page-cockfighting__image--right {
    float: none;
    margin: 20px auto;
    width: 80%;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    min-height: 60vh;
  }

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

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

  .page-cockfighting__section {
    padding: 40px 0;
  }

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

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

  .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: 1em;
  }

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

  .page-cockfighting__ordered-list li,
  .page-cockfighting__unordered-list li {
    padding: 20px 20px 20px 60px;
    font-size: 0.95em;
  }

  .page-cockfighting__ordered-list li::before {
    left: 20px;
    top: 20px;
    width: 30px;
    height: 30px;
    font-size: 1em;
  }

  .page-cockfighting__unordered-list li::before {
    left: 20px;
    top: 20px;
    font-size: 1.8em;
  }

  .page-cockfighting__list-title {
    font-size: 1.1em;
  }

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

  .page-cockfighting__faq-answer {
    padding: 15px 20px;
    font-size: 0.95em;
  }

  /* Mobile image responsiveness */
  .page-cockfighting img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    float: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .page-cockfighting__hero-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,
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__cta-buttons,
  .page-cockfighting__button-group,
  .page-cockfighting__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow-x: hidden !important;
  }
  
  .page-cockfighting__hero-section {
      padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile if not handled by body */
  }

  .page-cockfighting__cta-buttons {
    flex-direction: column !important;
    gap: 10px !important;
  }
}

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

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

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