/* General styles for the cockfighting page */
.page-cockfighting {
  font-family: 'Arial', sans-serif;
  color: #333333;
  background-color: #F5F7FA;
  line-height: 1.6;
}

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

.page-cockfighting__section-title {
  font-size: 32px;
  font-weight: 700;
  color: #E53935;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

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

.page-cockfighting__section-title--light {
  color: #ffffff;
}

.page-cockfighting__section-title--light::after {
  background-color: #ffffff;
}

.page-cockfighting__text-block {
  font-size: 16px;
  margin-bottom: 20px;
  text-align: justify;
}

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

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-bottom: 30px;
  padding-top: 10px; /* Small top padding, assuming body handles --header-offset */
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  position: relative;
}

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

.page-cockfighting__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #ffffff;
  max-width: 800px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for readability */
  border-radius: 10px;
  box-sizing: border-box;
}

.page-cockfighting__main-title {
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
  font-size: clamp(28px, 4vw, 56px); /* Responsive font size for H1 */
}

.page-cockfighting__hero-description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #f0f0f0;
  line-height: 1.5;
}

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

.page-cockfighting__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: none;
}

.page-cockfighting__btn-primary:hover {
  background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-cockfighting__btn-secondary:hover {
  background: #E53935;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Intro Section */
.page-cockfighting__intro-section {
  background-color: #F5F7FA;
  padding: 60px 0;
}

/* Features Section */
.page-cockfighting__features-section {
  background-color: #E53935; /* Main brand color for dark background */
  padding: 60px 0;
}

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

.page-cockfighting__feature-item {
  background: #ffffff;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  color: #333333;
}

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

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

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

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

/* How-To-Play Section */
.page-cockfighting__how-to-play-section {
  background-color: #F5F7FA;
  padding: 60px 0;
}

.page-cockfighting__steps-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
}

.page-cockfighting__step-item {
  background: #ffffff;
  border-left: 5px solid #E53935;
  padding: 25px 30px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  position: relative;
  color: #333333;
}

.page-cockfighting__step-item::before {
  counter-increment: step-counter;
  content: "0" counter(step-counter);
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  background: #FF5A4F;
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__step-item:nth-child(n+10)::before {
  content: counter(step-counter);
}

.page-cockfighting__step-title {
  font-size: 24px;
  font-weight: 700;
  color: #E53935;
  margin-bottom: 10px;
  margin-left: 30px; /* Offset for the counter */
}

.page-cockfighting__step-item p {
  margin-left: 30px;
}

/* Tips Section */
.page-cockfighting__tips-section {
  background-color: #E53935;
  padding: 60px 0;
}

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

.page-cockfighting__tip-item {
  background: #ffffff;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  color: #333333;
}

.page-cockfighting__tip-item:hover {
  transform: translateY(-5px);
}

.page-cockfighting__tip-title {
  font-size: 22px;
  font-weight: 700;
  color: #FF5A4F;
  margin-bottom: 15px;
}

/* FAQ Section */
details.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  color: #333333;
}
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: 17px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-cockfighting__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #E53935;
  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 10px 10px;
}

/* CTA Section */
.page-cockfighting__cta-section {
  background-color: #FF5A4F; /* Auxiliary brand color for background */
  padding: 80px 0;
  text-align: center;
}

.page-cockfighting__cta-section .page-cockfighting__section-title {
  margin-bottom: 20px;
}

.page-cockfighting__cta-section .page-cockfighting__text-block {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

/* Copyright Info */
.page-cockfighting__copyright-info {
  text-align: center;
  padding: 20px 15px;
  font-size: 14px;
  color: #666666;
  background-color: #eeeeee;
  margin-top: 30px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-cockfighting__hero-content {
    padding: 15px;
  }
  .page-cockfighting__main-title {
    font-size: clamp(24px, 5vw, 48px);
  }
  .page-cockfighting__hero-description {
    font-size: 16px;
  }
  .page-cockfighting__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-cockfighting__feature-title,
  .page-cockfighting__tip-title,
  .page-cockfighting__step-title {
    font-size: 20px;
  }
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    font-size: 16px;
    padding: 12px 25px;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__hero-content {
    max-width: 90%;
    padding: 10px;
  }
  .page-cockfighting__main-title {
    font-size: clamp(20px, 6vw, 36px);
  }
  .page-cockfighting__hero-description {
    font-size: 14px;
    margin-bottom: 20px;
  }
  .page-cockfighting__section-title {
    font-size: 24px;
    margin-bottom: 25px;
  }
  .page-cockfighting__feature-item,
  .page-cockfighting__tip-item,
  .page-cockfighting__step-item {
    padding: 20px;
  }
  .page-cockfighting__feature-image {
    height: 180px;
  }
  .page-cockfighting__feature-title,
  .page-cockfighting__tip-title,
  .page-cockfighting__step-title {
    font-size: 18px;
  }
  .page-cockfighting__faq-qtext {
    font-size: 16px;
  }
  details.page-cockfighting__faq-item summary.page-cockfighting__faq-question { padding: 15px; }
  .page-cockfighting__faq-answer { padding: 0 15px 15px; }

  /* Mobile image adaptation */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  
  .page-cockfighting__hero-image-wrapper,
  .page-cockfighting__feature-item,
  .page-cockfighting__step-item,
  .page-cockfighting__tip-item,
  .page-cockfighting__container,
  .page-cockfighting__features-grid,
  .page-cockfighting__tips-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  /* Mobile button adaptation */
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    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;
  }
  /* If multiple buttons, ensure they wrap or stack */
  .page-cockfighting__hero-content a.page-cockfighting__btn-primary {
    display: block; /* Stack buttons in hero */
  }
}

@media (max-width: 480px) {
  .page-cockfighting__main-title {
    font-size: clamp(18px, 7vw, 28px);
  }
  .page-cockfighting__hero-description {
    font-size: 13px;
  }
  .page-cockfighting__section-title {
    font-size: 20px;
  }
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    font-size: 14px;
    padding: 10px 20px;
  }
  .page-cockfighting__step-item::before {
    left: -15px;
    width: 30px;
    height: 30px;
    font-size: 16px;
  }
  .page-cockfighting__step-title {
    margin-left: 20px;
    font-size: 16px;
  }
  .page-cockfighting__step-item p {
    margin-left: 20px;
  }
  .page-cockfighting__faq-qtext {
    font-size: 15px;
  }
  .page-cockfighting__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
}