.page-cockfighting {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #f5f5f5;
}

.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  min-height: 500px;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  overflow: hidden;
}

.page-cockfighting__dark-section {
  background-color: #0A0A0A;
  color: #ffffff;
}

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

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

.page-cockfighting__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

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

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

.page-cockfighting__section {
  padding: 60px 20px;
  text-align: center;
}

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

.page-cockfighting__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  color: #0A0A0A;
}

.page-cockfighting__dark-section .page-cockfighting__section-title {
  color: #E0B40C;
}

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

.page-cockfighting__dark-section .page-cockfighting__text-block {
  color: #f0f0f0;
}

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

.page-cockfighting__image-item {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__content-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 8px;
  margin: 30px auto;
  display: block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__ordered-list,
.page-cockfighting__unordered-list,
.page-cockfighting__promotions-list {
  text-align: left;
  max-width: 900px;
  margin: 20px auto 40px auto;
  padding-left: 25px;
  font-size: 1.1em;
}

.page-cockfighting__ordered-list li,
.page-cockfighting__unordered-list li,
.page-cockfighting__promotions-list li {
  margin-bottom: 10px;
  color: #333333;
}

.page-cockfighting__dark-section .page-cockfighting__ordered-list li,
.page-cockfighting__dark-section .page-cockfighting__unordered-list li,
.page-cockfighting__dark-section .page-cockfighting__promotions-list li {
  color: #f0f0f0;
}

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

.page-cockfighting__card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #333333;
}

.page-cockfighting__dark-section .page-cockfighting__card {
  background: #1a1a1a;
  color: #ffffff;
}

.page-cockfighting__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__card-title {
  font-size: 1.8em;
  color: #0A0A0A;
  margin-bottom: 15px;
}

.page-cockfighting__dark-section .page-cockfighting__card-title {
  color: #E0B40C;
}

.page-cockfighting__card-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  margin: 0 auto 20px auto;
  object-fit: cover;
}

.page-cockfighting__card-description {
  font-size: 1em;
  line-height: 1.7;
  text-align: left;
}

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

.page-cockfighting__feature-item {
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333333;
}

.page-cockfighting__dark-section .page-cockfighting__feature-item {
  background: #1a1a1a;
  color: #ffffff;
}

.page-cockfighting__feature-icon {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-cockfighting__feature-title {
  font-size: 1.5em;
  color: #0A0A0A;
  margin-bottom: 10px;
}

.page-cockfighting__dark-section .page-cockfighting__feature-title {
  color: #E0B40C;
}

.page-cockfighting__feature-description {
  font-size: 0.95em;
  line-height: 1.6;
}

.page-cockfighting__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  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: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

.page-cockfighting__btn-primary {
  background-color: #E0B40C;
  color: #0A0A0A;
  border: 2px solid #E0B40C;
}

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

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

.page-cockfighting__dark-section .page-cockfighting__btn-secondary {
  color: #E0B40C;
  border: 2px solid #E0B40C;
}

.page-cockfighting__btn-secondary:hover {
  background-color: #E0B40C;
  color: #0A0A0A;
}

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

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

.page-cockfighting__dark-section .page-cockfighting__faq-item {
  background: #1a1a1a;
  color: #ffffff;
}

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

.page-cockfighting__dark-section .page-cockfighting__faq-question {
  color: #E0B40C;
}

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

.page-cockfighting__dark-section .page-cockfighting__faq-question:hover {
  background-color: #2a2a2a;
}

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

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

.page-cockfighting__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
}

.page-cockfighting__dark-section .page-cockfighting__faq-answer {
  color: #cccccc;
}

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

.page-cockfighting a {
  color: #E0B40C;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-cockfighting a:hover {
  color: #ffc107;
  text-decoration: underline;
}

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

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

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

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

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

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

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

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

  .page-cockfighting__text-block,
  .page-cockfighting__ordered-list,
  .page-cockfighting__unordered-list,
  .page-cockfighting__promotions-list {
    font-size: 1em;
    padding-left: 20px;
  }

  .page-cockfighting__image-grid {
    grid-template-columns: 1fr;
  }

  .page-cockfighting__card-grid {
    grid-template-columns: 1fr;
  }

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

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

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .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;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

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

  .page-cockfighting__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-cockfighting__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

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