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

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

.page-cockfighting__section {
  padding: 40px 0;
  text-align: center;
}

.page-cockfighting__section:nth-of-type(even) {
  background-color: var(--bg-page, #F5F7FA);
}

.page-cockfighting__section-title {
  font-size: 36px;
  color: #E53935;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-cockfighting__section-description {
  font-size: 18px;
  color: #555555;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, relies on body padding-top for header offset */
  margin-bottom: 40px;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 810px;
}

.page-cockfighting__hero-content {
  position: relative; /* Not absolutely positioned on image */
  background-color: rgba(255, 255, 255, 0.95);
  padding: 30px 20px;
  margin: -80px auto 0 auto; /* Pull up slightly */
  max-width: 900px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  z-index: 10;
  text-align: center;
}

.page-cockfighting__hero-title {
  font-size: clamp(28px, 4vw, 48px);
  color: #E53935;
  margin-bottom: 15px;
  font-weight: 800;
  line-height: 1.2;
}

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

.page-cockfighting__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(229, 57, 53, 0.3);
}

.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background: #ffffff;
  color: #E53935;
  text-decoration: none;
  border: 2px solid #E53935;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting__btn-secondary:hover {
  background: #E53935;
  color: #ffffff;
  box-shadow: 0 5px 10px rgba(229, 57, 53, 0.2);
}

.page-cockfighting__intro-section .page-cockfighting__content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
  text-align: left;
  align-items: center;
}

.page-cockfighting__intro-section .page-cockfighting__content-wrapper p {
  font-size: 17px;
  color: #333333;
  line-height: 1.7;
  flex: 1;
}

.page-cockfighting__intro-section .page-cockfighting__image-responsive {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__bet-types-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;
  padding: 25px;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

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

.page-cockfighting__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  object-fit: cover;
  min-height: 200px;
}

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

.page-cockfighting__card-text {
  font-size: 16px;
  color: #555555;
  line-height: 1.7;
}

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

.page-cockfighting__step-card {
  background: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 10px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-cockfighting__step-number {
  font-size: 48px;
  font-weight: 900;
  color: #FF5A4F;
  margin-bottom: 15px;
  line-height: 1;
}

.page-cockfighting__step-title {
  font-size: 24px;
  color: #E53935;
  margin-bottom: 10px;
  font-weight: 700;
}

.page-cockfighting__step-card p {
  font-size: 16px;
  color: #555555;
  line-height: 1.7;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-cockfighting__strategy-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  text-align: left;
}

.page-cockfighting__strategy-list li {
  background: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

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

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

.page-cockfighting__strategy-list p {
  font-size: 16px;
  color: #555555;
  line-height: 1.7;
}

.page-cockfighting__strategy-image {
  margin-top: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-cockfighting__promo-card {
  padding: 0;
  overflow: hidden;
  text-align: center;
}

.page-cockfighting__promo-card .page-cockfighting__card-image {
  border-radius: 10px 10px 0 0;
  margin-bottom: 0;
  object-fit: cover;
  min-height: 200px;
}

.page-cockfighting__promo-card .page-cockfighting__card-title {
  margin-top: 20px;
  padding: 0 15px;
}

.page-cockfighting__promo-card .page-cockfighting__card-text {
  padding: 0 15px 20px;
  font-size: 15px;
}

.page-cockfighting__cta-wrapper {
  margin-top: 50px;
}

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

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

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: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}

.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;
  font-size: 16px;
  color: #555555;
  line-height: 1.7;
}

.page-cockfighting__faq-answer p {
  margin: 0;
}

.page-cockfighting__conclusion-section p {
  font-size: 18px;
  color: #333333;
  margin-bottom: 30px;
}

.page-cockfighting__text-link {
  color: #E53935;
  text-decoration: none;
  font-weight: 600;
}

.page-cockfighting__text-link:hover {
  text-decoration: underline;
}

/* General image and button responsive styles */
.page-cockfighting img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-cockfighting__section,
.page-cockfighting__card,
.page-cockfighting__container,
.page-cockfighting__cta-buttons,
.page-cockfighting__button-group,
.page-cockfighting__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-cockfighting__cta-button,
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting a[class*="button"],
.page-cockfighting a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

@media (max-width: 1024px) {
  .page-cockfighting__section-title {
    font-size: 32px;
  }
  .page-cockfighting__hero-content {
    margin-top: -60px;
    padding: 25px 15px;
  }
  .page-cockfighting__hero-title {
    font-size: clamp(26px, 3.5vw, 40px);
  }
  .page-cockfighting__hero-description {
    font-size: 17px;
  }
  .page-cockfighting__bet-types-grid,
  .page-cockfighting__steps-grid,
  .page-cockfighting__promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
  .page-cockfighting__card-title,
  .page-cockfighting__step-title,
  .page-cockfighting__list-title {
    font-size: 20px;
  }
  .page-cockfighting__faq-qtext {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__container {
    padding: 0 15px;
  }
  .page-cockfighting__section {
    padding: 30px 0;
  }
  .page-cockfighting__section-title {
    font-size: 28px;
  }
  .page-cockfighting__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-cockfighting__hero-section {
    padding-top: 10px;
    margin-bottom: 30px;
  }
  .page-cockfighting__hero-image {
    object-fit: contain;
    max-height: 400px; /* Adjust height for mobile hero */
  }
  .page-cockfighting__hero-content {
    margin-top: -40px;
    padding: 20px 10px;
  }
  .page-cockfighting__hero-title {
    font-size: clamp(24px, 6vw, 32px);
  }
  .page-cockfighting__hero-description {
    font-size: 15px;
    margin-bottom: 20px;
  }
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    font-size: 16px;
    padding: 12px 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-cockfighting__intro-section .page-cockfighting__content-wrapper {
    flex-direction: column;
    gap: 20px;
  }
  .page-cockfighting__intro-section .page-cockfighting__content-wrapper p {
    font-size: 15px;
  }
  .page-cockfighting__bet-types-grid,
  .page-cockfighting__steps-grid,
  .page-cockfighting__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-cockfighting__card {
    padding: 20px;
  }
  .page-cockfighting__card-image {
    min-height: 180px;
  }
  .page-cockfighting__card-title,
  .page-cockfighting__step-title,
  .page-cockfighting__list-title {
    font-size: 18px;
  }
  .page-cockfighting__card-text,
  .page-cockfighting__step-card p,
  .page-cockfighting__strategy-list p {
    font-size: 15px;
  }
  .page-cockfighting__step-number {
    font-size: 40px;
  }
  .page-cockfighting__strategy-list li {
    padding: 20px;
  }
  .page-cockfighting__cta-wrapper {
    margin-top: 30px;
  }
  details.page-cockfighting__faq-item summary.page-cockfighting__faq-question { padding: 15px; }
  .page-cockfighting__faq-qtext { font-size: 16px; }
  .page-cockfighting__faq-toggle { font-size: 20px; width: 24px; }
  details.page-cockfighting__faq-item .page-cockfighting__faq-answer { padding: 0 15px 15px; font-size: 15px; }
  .page-cockfighting__conclusion-section p {
    font-size: 16px;
  }

  /* Force responsive for all images and buttons */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .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;
  }
  .page-cockfighting__cta-buttons {
    display: flex;
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 10px;
  }
}