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

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

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding as per requirements, relying on body padding-top for header offset */
  padding-bottom: 50px;
  background-color: #f5f5f5;
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Cover the area, will be changed to contain on mobile */
  aspect-ratio: 16 / 9; /* Maintain aspect ratio */
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin-top: 30px;
  padding: 0 15px;
}

.page-cockfighting__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: #017439;
  margin-bottom: 15px;
  line-height: 1.2;
}

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

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

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting__btn-primary {
  background: #C30808; /* Custom color for Register/Login */
  color: #FFFFFF; /* Adjusted for WCAG AA contrast, original #FFFF00 was too low */
  border: 2px solid #C30808;
}

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

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

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

/* Section Titles */
.page-cockfighting__section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

.page-cockfighting__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #017439;
  border-radius: 2px;
}

/* Text Blocks */
.page-cockfighting__text-block {
  font-size: 1.05rem;
  margin-bottom: 20px;
  text-align: justify;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Dark Background Sections */
.page-cockfighting__dark-section {
  background-color: #017439;
  color: #FFFFFF;
  padding: 60px 0;
}

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

.page-cockfighting__dark-section .page-cockfighting__section-title::after {
  background-color: #FFFFFF;
}

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

/* Introduction Section */
.page-cockfighting__introduction-section {
  padding: 60px 0;
}

/* Betting Types Section */
.page-cockfighting__betting-types-section {
  padding: 60px 0;
  background-color: #f9f9f9;
}

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

.page-cockfighting__card {
  background: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-cockfighting__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-cockfighting__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #017439;
  padding: 20px 15px 10px;
  margin: 0;
}

.page-cockfighting__card-title a {
  color: inherit;
  text-decoration: none;
}

.page-cockfighting__card-title a:hover {
  text-decoration: underline;
}

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

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

.page-cockfighting__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-cockfighting__guide-list li {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #FFFFFF;
}

.page-cockfighting__guide-list li:last-child {
  margin-bottom: 0;
}

.page-cockfighting__list-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #FFFF00; /* Custom color for register/login font */
  margin-top: 0;
  margin-bottom: 10px;
}

.page-cockfighting__guide-list p {
  font-size: 1rem;
  color: #f0f0f0;
  margin-bottom: 0;
}

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

/* Strategy Section */
.page-cockfighting__strategy-section {
  padding: 60px 0;
  background-color: #f9f9f9;
}

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

.page-cockfighting__strategy-item {
  text-align: center;
  background: #FFFFFF;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-cockfighting__strategy-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__strategy-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #017439;
  margin-bottom: 10px;
}

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

/* Promotions Section */
.page-cockfighting__promotions-section {
  padding: 60px 0;
}

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

.page-cockfighting__promotions-grid .page-cockfighting__card {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-cockfighting__promotions-grid .page-cockfighting__card-title {
  color: #FFFF00;
}

.page-cockfighting__promotions-grid .page-cockfighting__card-description {
  color: #f0f0f0;
}

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

/* Features Section */
.page-cockfighting__features-section {
  padding: 60px 0;
  background-color: #f9f9f9;
}

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

.page-cockfighting__feature-item {
  text-align: center;
  background: #FFFFFF;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-cockfighting__feature-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__feature-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #017439;
  margin-bottom: 10px;
}

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

/* FAQ Section */
details.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

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: rgba(255, 255, 255, 0.15);
}

.page-cockfighting__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFFFFF;
}

.page-cockfighting__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFFF00;
  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: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 10px 10px;
  color: #f0f0f0;
  font-size: 1rem;
}

/* Responsive Styles */

/* @media (max-width: 1024px) for general adjustments */
@media (max-width: 1024px) {
  .page-cockfighting__container {
    padding: 15px;
  }
  .page-cockfighting__hero-image-wrapper {
    max-height: 500px;
  }
  .page-cockfighting__hero-description {
    font-size: 1.1rem;
  }
  .page-cockfighting__betting-grid,
  .page-cockfighting__strategy-grid,
  .page-cockfighting__promotions-grid,
  .page-cockfighting__features-list {
    gap: 20px;
  }
  .page-cockfighting__card-image {
    height: 200px;
  }
  .page-cockfighting__card-title {
    font-size: 1.3rem;
  }
  .page-cockfighting__guide-list li {
    padding: 20px;
  }
  .page-cockfighting__list-title {
    font-size: 1.4rem;
  }
}

/* @media (max-width: 768px) - Mobile specific styles */
@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    padding-bottom: 30px;
  }
  .page-cockfighting__hero-image-wrapper {
    max-height: unset; /* Remove max-height for mobile */
  }
  .page-cockfighting__hero-image {
    object-fit: contain !important; /* HERO image: object-fit:contain */
    aspect-ratio: unset !important; /* HERO image: aspect-ratio:unset */
    height: auto !important;
    width: 100% !important;
  }
  .page-cockfighting__hero-content {
    margin-top: 20px;
  }
  .page-cockfighting__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem); /* Adjust font size for mobile */
  }
  .page-cockfighting__hero-description {
    font-size: 1rem;
  }
  .page-cockfighting__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }

  /* Buttons mobile adaptation */
  .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__hero-cta-buttons,
  .page-cockfighting__guide-cta,
  .page-cockfighting__promotions-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .page-cockfighting__section-title {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
    margin-bottom: 30px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-cockfighting__text-block {
    font-size: 0.95rem;
    padding-left: 15px;
    padding-right: 15px;
    text-align: left; /* Align left for better readability on mobile */
  }

  /* General image and container adaptation */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-cockfighting__container,
  .page-cockfighting__card,
  .page-cockfighting__introduction-section,
  .page-cockfighting__betting-types-section,
  .page-cockfighting__guide-section,
  .page-cockfighting__strategy-section,
  .page-cockfighting__promotions-section,
  .page-cockfighting__features-section,
  .page-cockfighting__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden; /* Ensure no horizontal scroll */
  }

  /* Product/Betting grid for mobile */
  .page-cockfighting__betting-grid,
  .page-cockfighting__promotions-grid {
    grid-template-columns: 1fr;
  }
  .page-cockfighting__strategy-grid,
  .page-cockfighting__features-list {
    grid-template-columns: 1fr;
  }
  .page-cockfighting__card-image {
    height: auto;
  }
  .page-cockfighting__card-title {
    font-size: 1.2rem;
  }
  .page-cockfighting__card-description {
    font-size: 0.9rem;
  }

  /* Guide list */
  .page-cockfighting__guide-list li {
    padding: 15px;
  }
  .page-cockfighting__list-title {
    font-size: 1.3rem;
  }

  /* FAQ mobile */
  details.page-cockfighting__faq-item summary.page-cockfighting__faq-question {
    padding: 15px;
  }
  .page-cockfighting__faq-qtext {
    font-size: 1rem;
  }
  .page-cockfighting__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
    padding: 0 15px 15px;
  }
}