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

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, body handles header offset */
  margin-bottom: 40px;
  overflow: hidden;
  display: flex; /* Use flex for image and content to be siblings */
  flex-direction: column;
  align-items: center;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  /* Ensure no filter is applied */
  filter: none;
}

.page-cockfighting__hero-content {
  position: relative; /* Not absolute, to be below the image */
  text-align: center;
  padding: 30px 20px;
  max-width: 900px;
  width: 100%;
  box-sizing: border-box;
  background: #ffffff; /* Explicitly white background for content */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-top: -80px; /* Overlap slightly with the image for visual effect */
  z-index: 1;
}

.page-cockfighting__hero-title {
  font-size: clamp(28px, 3.5vw, 48px); /* H1 clamp for responsiveness */
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
}

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

.page-cockfighting__hero-cta {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

/* General Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box; /* Ensure padding doesn't push width */
  max-width: 100%; /* Default for all buttons */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
}

.page-cockfighting__btn-primary {
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

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

.page-cockfighting__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-cockfighting__btn-secondary:hover {
  background-color: #f0f8ff;
  color: #1e87c0;
  border-color: #1e87c0;
}

.page-cockfighting__btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

/* Container for content sections */
.page-cockfighting__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Section Titles */
.page-cockfighting__section-title {
  font-size: clamp(24px, 3vw, 38px);
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-cockfighting__subsection-title {
  font-size: clamp(20px, 2.5vw, 30px);
  color: #333333;
  margin-top: 30px;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-cockfighting__text-block {
  font-size: 17px;
  margin-bottom: 20px;
  line-height: 1.7;
}

/* Image Wrapper */
.page-cockfighting__image-wrapper {
  margin: 30px 0;
  text-align: center;
}

.page-cockfighting__image-wrapper--right {
  text-align: right;
}

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

.page-cockfighting__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: block; /* Ensure it behaves as a block element for max-width */
  margin: 0 auto; /* Center block images */
  /* Ensure no filter is applied */
  filter: none;
}

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

/* Why Choose Us Section */
.page-cockfighting__why-choose-us {
  padding: 60px 0;
  background-color: #26A9E0; /* Brand color as background */
  color: #FFFFFF; /* White text for contrast */
}

.page-cockfighting__why-choose-us .page-cockfighting__section-title {
  color: #FFFFFF; /* White title for contrast */
}

.page-cockfighting__why-choose-us .page-cockfighting__feature-title {
  color: #FFFFFF; /* White title for contrast */
}

.page-cockfighting__why-choose-us .page-cockfighting__feature-description {
  color: #f0f0f0; /* Slightly off-white for body text */
}

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

.page-cockfighting__feature-card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards on dark background */
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.page-cockfighting__feature-card:hover {
  transform: translateY(-5px);
}

.page-cockfighting__feature-title {
  font-size: 22px;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-cockfighting__feature-description {
  font-size: 16px;
  line-height: 1.6;
}

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

/* Betting Guide Section */
.page-cockfighting__betting-guide-section {
  padding: 60px 0;
}

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

.page-cockfighting__step-item {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 25px;
  text-align: center;
}

.page-cockfighting__step-title {
  font-size: 20px;
  color: #26A9E0;
  margin-bottom: 10px;
  font-weight: 700;
}

.page-cockfighting__step-description {
  font-size: 16px;
  color: #555555;
}

/* Promotions Section */
.page-cockfighting__promotions-section {
  padding: 60px 0;
  background-color: #f5f5f5; /* Light grey background */
}

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

.page-cockfighting__card {
  background: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: #333333; /* Dark text for white background */
}

.page-cockfighting__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  /* Ensure no filter is applied */
  filter: none;
}

.page-cockfighting__card-title {
  font-size: 20px;
  color: #26A9E0;
  padding: 15px 20px 10px;
  font-weight: 700;
}

.page-cockfighting__card-description {
  font-size: 16px;
  color: #555555;
  padding: 0 20px 15px;
  flex-grow: 1;
}

.page-cockfighting__card .page-cockfighting__btn-primary {
  margin: 0 20px 20px;
  align-self: flex-start; /* Align button to start */
  width: auto; /* Override max-width 100% for card buttons */
  padding: 10px 20px;
  font-size: 15px;
}

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

.page-cockfighting__faq-list {
  margin-top: 40px;
}

details.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  color: #333333; /* Dark text for white background */
}
details.page-cockfighting__faq-item summary.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-cockfighting__faq-item summary.page-cockfighting__faq-question::-webkit-details-marker {
  display: none;
}
details.page-cockfighting__faq-item summary.page-cockfighting__faq-question:hover {
  background: #f5f5f5;
}
.page-cockfighting__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #26A9E0; /* Question text in brand color */
}
.page-cockfighting__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555; /* Answer text color */
}

/* CTA Section */
.page-cockfighting__cta-section {
  padding: 60px 0;
  background-color: #26A9E0; /* Brand color as background */
  color: #FFFFFF; /* White text for contrast */
  text-align: center;
}

.page-cockfighting__cta-section .page-cockfighting__section-title {
  color: #FFFFFF;
}

.page-cockfighting__cta-section .page-cockfighting__text-block {
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-cockfighting__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  width: 100%; /* Ensure container takes full width for responsive buttons */
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

/* Tablet and smaller desktops */
@media (max-width: 1024px) {
  .page-cockfighting__hero-content {
    margin-top: -60px;
    padding: 25px 15px;
  }
  .page-cockfighting__hero-title {
    font-size: clamp(26px, 4vw, 42px);
  }
  .page-cockfighting__hero-description {
    font-size: 17px;
  }
  .page-cockfighting__section-title {
    font-size: clamp(22px, 3.5vw, 34px);
  }
  .page-cockfighting__subsection-title {
    font-size: clamp(18px, 3vw, 26px);
  }
  .page-cockfighting__text-block {
    font-size: 16px;
  }
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    padding: 12px 24px;
    font-size: 15px;
  }
  .page-cockfighting__features-grid,
  .page-cockfighting__steps-grid,
  .page-cockfighting__promotion-cards {
    gap: 20px;
  }
  .page-cockfighting__card-image {
    height: 180px;
  }
}

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

  /* Hero Section */
  .page-cockfighting__hero-section {
    padding-top: 10px; /* Small top padding for mobile */
    margin-bottom: 20px;
  }
  .page-cockfighting__hero-image {
    object-fit: contain; /* Banner image for mobile */
    max-height: 400px; /* Limit height for mobile banner */
    width: 100% !important;
    height: auto !important;
  }
  .page-cockfighting__hero-content {
    margin-top: -40px;
    padding: 20px 15px;
    width: calc(100% - 30px); /* Adjust width for padding */
  }
  .page-cockfighting__hero-title {
    font-size: clamp(24px, 6vw, 36px);
    margin-bottom: 10px;
  }
  .page-cockfighting__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-cockfighting__hero-cta {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }

  /* General Buttons - Mobile specific */
  .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: 12px 15px !important; /* Adjust padding for mobile */
    font-size: 16px !important;
  }
  .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;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Stack buttons vertically */
  }

  /* Container & Sections */
  .page-cockfighting__container {
    padding: 0 15px; /* Adjust padding for mobile */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-cockfighting__about-section,
  .page-cockfighting__why-choose-us,
  .page-cockfighting__betting-guide-section,
  .page-cockfighting__promotions-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-section {
    padding: 40px 0; /* Adjust section padding */
  }
  .page-cockfighting__section-title {
    font-size: clamp(20px, 5vw, 30px);
    margin-bottom: 25px;
  }
  .page-cockfighting__subsection-title {
    font-size: clamp(18px, 4.5vw, 24px);
    margin-top: 25px;
    margin-bottom: 15px;
  }
  .page-cockfighting__text-block {
    font-size: 16px;
    margin-bottom: 15px;
  }

  /* Image Responsiveness - Mobile */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  .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__image-wrapper {
    margin: 20px 0;
  }
  .page-cockfighting__card-image {
    height: 150px; /* Adjust card image height for mobile */
  }

  /* Grids - Mobile */
  .page-cockfighting__features-grid,
  .page-cockfighting__steps-grid,
  .page-cockfighting__promotion-cards {
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 25px;
  }

  /* FAQ Mobile */
  details.page-cockfighting__faq-item summary.page-cockfighting__faq-question {
    padding: 15px;
  }
  .page-cockfighting__faq-qtext {
    font-size: 15px;
  }
  details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
    padding: 0 15px 15px;
  }
}

/* Ensure no filter for images */
.page-cockfighting img {
  filter: none !important;
}

/* Ensure color contrast for dark/light sections */
.page-cockfighting__dark-bg {
  color: #ffffff; /* Deep background with light text */
  background: #26A9E0; /* Using brand color for dark background */
}

.page-cockfighting__light-bg {
  color: #333333; /* Light background with dark text */
  background: #ffffff;
}

.page-cockfighting__medium-bg {
  color: #333333; /* Medium background (light gray) with dark text */
  background: #f5f5f5;
}

/* Ensure card buttons are responsive within cards */
.page-cockfighting__card .page-cockfighting__btn-primary {
    width: calc(100% - 40px); /* Adjust for card padding */
}
@media (max-width: 768px) {
    .page-cockfighting__card .page-cockfighting__btn-primary {
        width: calc(100% - 30px) !important; /* Adjust for mobile card padding */
        margin: 0 15px 15px !important;
    }
}