.page-cockfighting {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light backgrounds */
  line-height: 1.6;
  background-color: var(--bg-color, #ffffff); /* Ensure it respects shared bg-color */
}

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

.page-cockfighting__section-title {
  font-size: 2.5rem;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-cockfighting__section-description {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
  background-color: #f0f8ff; /* Light background for hero */
  overflow: hidden;
}

.page-cockfighting__hero-content {
  max-width: 600px;
  margin-right: 40px;
  z-index: 1;
  position: relative;
}

.page-cockfighting__hero-title {
  font-size: 3.5rem;
  color: #26A9E0;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-cockfighting__hero-cta {
  display: flex;
  gap: 20px;
}

.page-cockfighting__hero-image-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.9); /* Subtle filter, not color changing */
}

.page-cockfighting__hero-section .page-cockfighting__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

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

.page-cockfighting__btn-primary:hover {
  background-color: #1e87c0;
  transform: translateY(-2px);
}

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

.page-cockfighting__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
  transform: translateY(-2px);
}

.page-cockfighting__cta-center {
  text-align: center;
  margin-top: 40px;
}

.page-cockfighting__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* General Section Styling */
.page-cockfighting__about-section,
.page-cockfighting__features-section,
.page-cockfighting__types-section,
.page-cockfighting__guide-section,
.page-cockfighting__strategies-section,
.page-cockfighting__responsible-gambling-section,
.page-cockfighting__faq-section,
.page-cockfighting__cta-section {
  padding: 80px 0;
}

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

.page-cockfighting__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-cockfighting__dark-bg .page-cockfighting__section-title,
.page-cockfighting__dark-bg .page-cockfighting__section-description,
.page-cockfighting__dark-bg .page-cockfighting__card-title {
  color: #ffffff;
}

/* Content Grid */
.page-cockfighting__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-cockfighting__content-grid--reverse {
  flex-direction: row-reverse;
}

.page-cockfighting__text-block {
  flex: 1;
}

.page-cockfighting__text-block p {
  margin-bottom: 15px;
  font-size: 1rem;
}

.page-cockfighting__image-block {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-cockfighting__image-content {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Features Section */
.page-cockfighting__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-cockfighting__feature-card {
  background-color: rgba(255, 255, 255, 0.15);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__feature-card .page-cockfighting__card-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-cockfighting__feature-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #f0f0f0;
}

/* Types Section */
.page-cockfighting__types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-cockfighting__type-card {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.page-cockfighting__type-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-cockfighting__type-card .page-cockfighting__card-title {
  font-size: 1.3rem;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-cockfighting__type-card p {
  font-size: 0.9rem;
  color: #555555;
}

/* Guide Section */
.page-cockfighting__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-cockfighting__step-item {
  background-color: #f7f7f7;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-cockfighting__step-number {
  display: inline-block;
  width: 50px;
  height: 50px;
  line-height: 50px;
  border-radius: 50%;
  background-color: #26A9E0;
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-cockfighting__step-title {
  font-size: 1.4rem;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-cockfighting__step-item p {
  font-size: 0.95rem;
  color: #555555;
}

/* Strategies Section */
.page-cockfighting__strategy-list {
  list-style: none;
  padding: 0;
}

.page-cockfighting__strategy-list li {
  background-color: rgba(255, 255, 255, 0.15);
  margin-bottom: 15px;
  padding: 15px 20px;
  border-radius: 8px;
  font-size: 1rem;
  color: #ffffff;
  position: relative;
  padding-left: 35px;
}

.page-cockfighting__strategy-list li::before {
  content: '✓';
  color: #ffffff;
  background-color: #1e87c0;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  font-weight: bold;
}

/* Responsible Gambling Section */
.page-cockfighting__responsible-points-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-cockfighting__point-card {
  background-color: #f7f7f7;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.page-cockfighting__point-card p {
  font-size: 0.95rem;
  color: #555555;
}

/* FAQ Section */
.page-cockfighting__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: #26A9E0;
  color: #ffffff;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: bold;
}

.page-cockfighting__faq-question h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #ffffff;
}

.page-cockfighting__faq-toggle {
  font-size: 1.5rem;
  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;
  background-color: #f9f9f9;
  color: #333333;
}

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

.page-cockfighting__faq-answer p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

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

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

  .page-cockfighting__hero-image-wrapper {
    width: 45%;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

  .page-cockfighting__hero-section .page-cockfighting__container {
    flex-direction: column;
    text-align: center;
  }

  .page-cockfighting__hero-content {
    margin-right: 0;
    margin-bottom: 40px;
    max-width: 100%;
  }

  .page-cockfighting__hero-title {
    font-size: 2.5rem;
  }

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

  .page-cockfighting__hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    margin-top: 20px;
  }

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

  .page-cockfighting__hero-cta {
    flex-direction: column;
    gap: 15px;
  }

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary,
  .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-left: 15px;
    padding-right: 15px;
  }

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

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

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

  .page-cockfighting__about-section,
  .page-cockfighting__features-section,
  .page-cockfighting__types-section,
  .page-cockfighting__guide-section,
  .page-cockfighting__strategies-section,
  .page-cockfighting__responsible-gambling-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-section {
    padding: 40px 0;
  }

  .page-cockfighting__content-grid {
    flex-direction: column;
  }

  .page-cockfighting__content-grid--reverse {
    flex-direction: column;
  }

  .page-cockfighting__image-content {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Ensure all image containers are responsive */
  .page-cockfighting__image-block,
  .page-cockfighting__type-card,
  .page-cockfighting__feature-card,
  .page-cockfighting__point-card,
  .page-cockfighting__step-item,
  .page-cockfighting__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-cockfighting__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-cockfighting__faq-question,
  .page-cockfighting__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Content area images should not be smaller than 200px, but responsive */
  .page-cockfighting__content-area img,
  .page-cockfighting__text-block img {
    min-width: 200px;
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__hero-title {
    font-size: 2rem;
  }
  .page-cockfighting__section-title {
    font-size: 1.5rem;
  }
  .page-cockfighting__faq-question h3 {
    font-size: 1rem;
  }
  .page-cockfighting__faq-question {
    padding: 15px 15px;
  }
  .page-cockfighting__faq-answer {
    padding: 10px 15px;
  }
}