.page-cockfighting {
  font-family: 'Arial', sans-serif;
  color: #1F2D3D;
  background-color: #F4F7FB;
}

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

.page-cockfighting__section {
  padding: 50px 0;
  margin-bottom: 20px;
}

.page-cockfighting__section-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  color: #1F2D3D;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

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

.page-cockfighting__content-area p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #1F2D3D;
}

.page-cockfighting__content-area strong {
  color: #2F6BFF;
  font-weight: 700;
}

.page-cockfighting__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin-top: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__image--center {
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__image--margin-top {
  margin-top: 40px;
}

.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
  padding-top: 10px; /* Adjusted for header offset, as shared.css handles body padding-top */
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 550px;
}

.page-cockfighting__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
  border-radius: 0;
  margin: 0;
  box-shadow: none;
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  box-sizing: border-box;
}

.page-cockfighting__hero-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  color: #ffffff;
}

.page-cockfighting__hero-description {
  font-size: clamp(18px, 2.5vw, 22px);
  margin-bottom: 30px;
  line-height: 1.6;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
  color: #ffffff;
}

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

.page-cockfighting__cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-cockfighting__cta-button--primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  border: none;
}

.page-cockfighting__cta-button--primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__cta-button--secondary {
  background: #ffffff;
  color: #2F6BFF;
  border: 2px solid #2F6BFF;
}

.page-cockfighting__cta-button--secondary:hover {
  background: #f0f0f0;
  border-color: #4A8BFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__intro-section {
  background-color: #F4F7FB;
}

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

.page-cockfighting__type-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #D6E2FF;
}

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

.page-cockfighting__type-title {
  font-size: 22px;
  font-weight: 700;
  color: #2F6BFF;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-cockfighting__type-card p {
  font-size: 15px;
  line-height: 1.6;
  color: #1F2D3D;
}

.page-cockfighting__dark-section {
  background-color: #2F6BFF;
  color: #ffffff;
}

.page-cockfighting__dark-section .page-cockfighting__content-area p {
  color: #ffffff;
}

.page-cockfighting__dark-section .page-cockfighting__step-title {
  color: #ffffff;
}

.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: rgba(255, 255, 255, 0.15);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.page-cockfighting__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: #ffffff;
  color: #2F6BFF;
  border-radius: 50%;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__step-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-cockfighting__step-card p {
  font-size: 15px;
  line-height: 1.6;
  color: #f0f0f0;
}

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

.page-cockfighting__button-group--center {
  text-align: center;
}

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

.page-cockfighting__benefit-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #D6E2FF;
}

.page-cockfighting__benefit-title {
  font-size: 22px;
  font-weight: 700;
  color: #2F6BFF;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-cockfighting__benefit-card p {
  font-size: 15px;
  line-height: 1.6;
  color: #1F2D3D;
}

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

.page-cockfighting__tip-item {
  background: #ffffff;
  padding: 25px 30px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #D6E2FF;
  transition: box-shadow 0.3s ease;
}

.page-cockfighting__tip-item:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.page-cockfighting__tip-title {
  font-size: 20px;
  font-weight: 700;
  color: #2F6BFF;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-cockfighting__tip-item p {
  font-size: 15px;
  line-height: 1.6;
  color: #1F2D3D;
}

/* FAQ Section */
details.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
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;
  color: #1F2D3D;
}
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: #1F2D3D;
}
.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: #1F2D3D;
}
.page-cockfighting__faq-answer p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

.page-cockfighting__register-cta {
  padding: 60px 0;
  text-align: center;
  background-color: #2F6BFF;
  color: #ffffff;
}

.page-cockfighting__container--flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.page-cockfighting__register-cta-title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  flex: 1;
  min-width: 280px;
}

/* Media Queries */
@media (max-width: 1024px) {
  .page-cockfighting__hero-title {
    font-size: clamp(32px, 4.5vw, 48px);
  }
  .page-cockfighting__hero-description {
    font-size: clamp(16px, 2.2vw, 20px);
  }
  .page-cockfighting__section-title {
    font-size: clamp(26px, 3.5vw, 34px);
  }
  .page-cockfighting__type-title, .page-cockfighting__benefit-title {
    font-size: 20px;
  }
  .page-cockfighting__step-title {
    font-size: 18px;
  }
  .page-cockfighting__tip-title {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-cockfighting__section {
    padding: 40px 0 !important;
  }

  .page-cockfighting__hero-section {
    min-height: 450px;
    padding-top: 10px !important;
    padding-bottom: 40px !important;
  }

  .page-cockfighting__hero-image-wrapper {
    position: relative;
    height: 250px; /* Adjust height for mobile hero image */
    width: 100%;
    margin-bottom: 20px;
  }

  .page-cockfighting__hero-image {
    object-fit: contain !important; /* Prevents cropping on mobile */
    aspect-ratio: unset !important; /* Allows height to be set */
    height: 100% !important;
    width: 100% !important;
    position: relative;
    filter: none; /* Remove brightness filter for better visibility on smaller screens */
  }

  .page-cockfighting__hero-content {
    padding: 0;
    text-align: center;
  }

  .page-cockfighting__hero-title {
    font-size: clamp(28px, 8vw, 36px);
    margin-bottom: 15px;
    color: #1F2D3D; /* Darker text for better contrast if image is lighter */
    text-shadow: none;
  }

  .page-cockfighting__hero-description {
    font-size: clamp(15px, 4vw, 18px);
    margin-bottom: 25px;
    color: #1F2D3D;
    text-shadow: none;
  }

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

  .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% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
  }

  .page-cockfighting__button-group,
  .page-cockfighting__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    flex-direction: column !important;
    gap: 15px !important;
    padding: 0 15px !important;
  }

  .page-cockfighting__section-title {
    font-size: clamp(24px, 7vw, 30px);
    margin-bottom: 30px;
  }

  .page-cockfighting__content-area p {
    font-size: 15px;
  }

  .page-cockfighting__types-grid, .page-cockfighting__steps-grid, .page-cockfighting__benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
  }

  .page-cockfighting__type-card, .page-cockfighting__step-card, .page-cockfighting__benefit-card {
    padding: 25px;
  }

  .page-cockfighting__type-title, .page-cockfighting__benefit-title {
    font-size: 20px;
  }

  .page-cockfighting__step-title {
    font-size: 18px;
  }

  .page-cockfighting__image {
    max-width: 100% !important;
    height: auto !important;
    margin-top: 25px !important;
  }

  .page-cockfighting__tips-list {
    margin-top: 25px;
  }

  .page-cockfighting__tip-item {
    padding: 20px;
  }

  .page-cockfighting__tip-title {
    font-size: 18px;
  }

  details.page-cockfighting__faq-item summary.page-cockfighting__faq-question {
    padding: 15px !important;
  }
  .page-cockfighting__faq-qtext {
    font-size: 15px !important;
  }
  .page-cockfighting__faq-toggle {
    font-size: 20px !important;
    width: 24px !important;
    height: 24px !important;
  }
  details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
    padding: 0 15px 15px !important;
  }

  .page-cockfighting__register-cta {
    padding: 40px 0 !important;
  }
  .page-cockfighting__container--flex {
    flex-direction: column;
    gap: 20px;
  }
  .page-cockfighting__register-cta-title {
    font-size: clamp(22px, 6vw, 28px);
    text-align: center;
  }
  .page-cockfighting__register-cta .page-cockfighting__cta-button {
    width: 100%;
  }

  /* Generic image and container overflow fix */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__content-area {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__hero-section {
    min-height: 400px;
  }
  .page-cockfighting__hero-image-wrapper {
    height: 200px;
  }
  .page-cockfighting__cta-button {
    font-size: 15px;
    padding: 10px 20px;
  }
}