.page-cockfighting {
  font-family: 'Arial', sans-serif;
  color: #333333;
  background-color: #FFFFFF;
  line-height: 1.6;
}

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

/* --- Hero Section --- */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  overflow: hidden;
}

.page-cockfighting__hero-background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.page-cockfighting__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

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

.page-cockfighting__hero-description {
  font-size: 1.3em;
  color: #F0F0F0;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* --- General Sections --- */
.page-cockfighting__section-title {
  font-size: 2.5em;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
  padding-top: 60px;
}

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

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

.page-cockfighting__image--center {
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__image--left {
  float: left;
  margin-right: 30px;
  margin-bottom: 20px;
  max-width: 45%;
}

.page-cockfighting__image--right {
  float: right;
  margin-left: 30px;
  margin-bottom: 20px;
  max-width: 45%;
}

/* --- Video Section --- */
.page-cockfighting__video-section {
  padding: 80px 0;
  background-color: #f8f8f8;
  text-align: center;
}

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

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

.page-cockfighting__video-link {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.page-cockfighting__video-description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto;
}

/* --- Bet Types Section --- */
.page-cockfighting__bet-types-section {
  padding: 80px 0;
}

.page-cockfighting__bet-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__bet-item {
  background-color: #017439;
  color: #FFFFFF;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.page-cockfighting__bet-item-title {
  font-size: 1.5em;
  color: #FFFF00;
  margin-bottom: 15px;
}

.page-cockfighting__bet-item p {
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
}

/* --- Guide Section --- */
.page-cockfighting__guide-section {
  padding: 80px 0;
}

.page-cockfighting__guide-list {
  list-style: none;
  counter-reset: guide-counter;
  padding: 0;
  margin-top: 40px;
  clear: both; /* Clear floats from images */
}

.page-cockfighting__guide-item {
  position: relative;
  margin-bottom: 30px;
  padding-left: 60px;
}

.page-cockfighting__guide-item::before {
  counter-increment: guide-counter;
  content: counter(guide-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  background-color: #017439;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
}

.page-cockfighting__guide-item-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 10px;
}

/* --- Strategy Section --- */
.page-cockfighting__strategy-section {
  padding: 80px 0;
}

.page-cockfighting__strategy-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  clear: both; /* Clear floats from images */
}

.page-cockfighting__strategy-item {
  background-color: #017439;
  color: #FFFFFF;
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__strategy-item-title {
  font-size: 1.4em;
  color: #FFFF00;
  margin-bottom: 10px;
}

.page-cockfighting__strategy-item p {
  color: #f0f0f0;
}

/* --- Why Choose Section --- */
.page-cockfighting__why-choose-section {
  padding: 80px 0;
  background-color: #f8f8f8;
}

.page-cockfighting__advantages-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__advantage-item {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  border: 1px solid #e0e0e0;
}

.page-cockfighting__advantage-item-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 15px;
}

.page-cockfighting__advantage-item p {
  font-size: 1em;
  line-height: 1.6;
}

/* --- FAQ Section --- */
.page-cockfighting__faq-section {
  padding: 80px 0;
}

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

.page-cockfighting__faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  background-color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #017439;
  color: #FFFFFF;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-cockfighting__faq-question h3 {
  margin: 0;
  color: inherit; /* Inherit color from parent */
  font-size: 1.2em;
}

.page-cockfighting__faq-question:hover {
  background-color: #005f2e;
}

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

.page-cockfighting__faq-item.active .page-cockfighting__faq-question {
  background-color: #005f2e;
}

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

.page-cockfighting__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #f9f9f9;
  color: #333333;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px;
}

.page-cockfighting__faq-answer p {
  margin: 0;
  line-height: 1.6;
}

/* --- CTA Section --- */
.page-cockfighting__cta-section {
  padding: 80px 0;
  text-align: center;
}

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

/* --- Buttons & Links --- */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-register,
.page-cockfighting__btn-login {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-cockfighting__btn-primary {
  background-color: #017439;
  color: #FFFFFF;
}

.page-cockfighting__btn-primary:hover {
  background-color: #005f2e;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__btn-register,
.page-cockfighting__btn-login {
  background-color: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom font color for register/login */
}

.page-cockfighting__btn-register:hover,
.page-cockfighting__btn-login:hover {
  background-color: #a30606;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__text-link {
  color: #017439;
  text-decoration: underline;
  font-weight: bold;
}

.page-cockfighting__text-link:hover {
  color: #005f2e;
}

/* --- Background Colors for sections based on type --- */
.page-cockfighting__dark-section {
  background-color: #017439;
  color: #FFFFFF;
}

.page-cockfighting__dark-section .page-cockfighting__section-title,
.page-cockfighting__dark-section h3 {
  color: #FFFF00; /* Yellow for titles on dark background for better contrast with green theme */
}

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

/* --- Clearfix for floated images --- */
.page-cockfighting__overview-section::after,
.page-cockfighting__guide-section::after,
.page-cockfighting__strategy-section::after {
  content: "";
  display: table;
  clear: both;
}

/* --- 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: 30px auto;
    max-width: 80%;
  }
}

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

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

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

  .page-cockfighting__hero-description {
    font-size: 1em;
    padding: 0 15px;
  }

  .page-cockfighting__section-title {
    font-size: 1.8em;
    padding-top: 40px;
  }

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

  /* Images responsive */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 20px auto !important; /* Center images on mobile */
  }

  /* Video responsive */
  .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: 0;
    padding-right: 0;
    overflow: hidden !important;
  }

  .page-cockfighting__video-wrapper {
    padding-bottom: 56.25% !important; /* Maintain aspect ratio */
  }

  /* Buttons responsive */
  .page-cockfighting__hero-cta-buttons,
  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-register,
  .page-cockfighting__btn-login,
  .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: 12px 20px;
  }

  .page-cockfighting__bet-list,
  .page-cockfighting__advantages-list {
    grid-template-columns: 1fr;
  }

  .page-cockfighting__guide-item {
    padding-left: 50px;
  }

  .page-cockfighting__guide-item::before {
    width: 35px;
    height: 35px;
    font-size: 1.2em;
  }

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

  .page-cockfighting__faq-question h3 {
    font-size: 1.1em;
  }

  .page-cockfighting__faq-answer {
    padding: 15px;
  }
  
  /* Ensure content containers don't cause horizontal scroll */
  .page-cockfighting__overview-section,
  .page-cockfighting__bet-types-section,
  .page-cockfighting__guide-section,
  .page-cockfighting__strategy-section,
  .page-cockfighting__why-choose-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }
}