/* Base styles for the page */
.page-cockfighting {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #F3F8FF; /* Text Main */
  background-color: var(--deep-navy); /* From shared.css, dark background */
}

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

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

.page-cockfighting__section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #F2C14E; /* Gold */
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

.page-cockfighting__sub-title {
  font-size: 24px;
  font-weight: 600;
  color: #1D5FD1; /* Auxiliary color */
  margin-bottom: 15px;
}

.page-cockfighting__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-cockfighting__list li {
  margin-bottom: 8px;
  color: #AFC4E8; /* Text Secondary */
}

/* Hero Section */
.page-cockfighting__hero-section {
  padding-top: 10px; /* Small top padding, not --header-offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 500px;
  justify-content: center;
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  margin-bottom: 20px;
}

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

.page-cockfighting__hero-content {
  max-width: 800px;
  margin-bottom: 30px;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-cockfighting__hero-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 20px;
  color: #F2C14E; /* Gold */
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.6);
}

.page-cockfighting__hero-description {
  font-size: 20px;
  color: #AFC4E8; /* Text Secondary */
  margin-bottom: 30px;
}

/* CTA Buttons */
.page-cockfighting__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); /* Button Gradient */
  color: #F3F8FF; /* Text Main */
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 15px #4FA8FF; /* Glow */
}

.page-cockfighting__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 20px #4FA8FF;
}

.page-cockfighting__cta-button--large {
  font-size: 22px;
  padding: 18px 40px;
}

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

.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background: transparent;
  color: #1D5FD1; /* Auxiliary color */
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  border: 2px solid #1D5FD1; /* Auxiliary color */
  transition: all 0.3s ease;
  cursor: pointer;
}

.page-cockfighting__btn-secondary:hover {
  background: #1D5FD1;
  color: #F3F8FF;
}

/* Introduction Section */
.page-cockfighting__introduction p {
  margin-bottom: 15px;
  color: #AFC4E8;
  text-align: justify;
}

/* Game Types Section */
.page-cockfighting__grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-cockfighting__card {
  background: #10233F; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #244D84; /* Border */
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-cockfighting__card-title {
  font-size: 22px;
  font-weight: 700;
  color: #F2C14E; /* Gold */
  padding: 15px 20px 10px;
}

.page-cockfighting__card-description {
  color: #AFC4E8;
  padding: 0 20px 15px;
  flex-grow: 1;
  text-align: justify;
}

.page-cockfighting__card-button {
  display: block;
  text-align: center;
  padding: 10px 20px;
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); /* Button Gradient */
  color: #F3F8FF;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 8px 8px;
  transition: background 0.3s ease;
}

.page-cockfighting__card-button:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
}

/* Rules and Tips Section */
.page-cockfighting__content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

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

.page-cockfighting__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__text-block p {
  color: #AFC4E8;
  margin-bottom: 15px;
  text-align: justify;
}

/* Benefits Section */
.page-cockfighting__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-cockfighting__benefit-item {
  background: #10233F; /* Card BG */
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #244D84; /* Border */
  text-align: center;
}

.page-cockfighting__benefit-title {
  font-size: 20px;
  font-weight: 700;
  color: #F2C14E; /* Gold */
  margin-bottom: 10px;
}

.page-cockfighting__benefit-item p {
  color: #AFC4E8;
  font-size: 15px;
}

/* How to Join Section */
.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: #10233F; /* Card BG */
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #244D84; /* Border */
  text-align: center;
}

.page-cockfighting__step-icon {
  width: 60px;
  height: 60px;
  line-height: 60px;
  background: #1D5FD1; /* Auxiliary color */
  color: #F3F8FF;
  font-size: 30px;
  font-weight: bold;
  border-radius: 50%;
  margin: 0 auto 20px;
  box-shadow: 0 0 10px rgba(29, 95, 209, 0.6);
}

.page-cockfighting__step-title {
  font-size: 20px;
  font-weight: 700;
  color: #F2C14E; /* Gold */
  margin-bottom: 10px;
}

.page-cockfighting__step-item p {
  color: #AFC4E8;
  font-size: 15px;
}

/* FAQ Section */
details.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #244D84; /* Border */
  overflow: hidden;
  background: #10233F; /* Card BG */
}

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(29, 95, 209, 0.1);
}

.page-cockfighting__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F3F8FF; /* Text Main */
}

.page-cockfighting__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #F2C14E; /* Gold */
  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: #08162B; /* Deep Navy, slightly darker for contrast */
  border-radius: 0 0 5px 5px;
}

details.page-cockfighting__faq-item .page-cockfighting__faq-answer p {
  color: #AFC4E8;
  margin-bottom: 0;
}

/* Conclusion Section */
.page-cockfighting__conclusion p {
  color: #AFC4E8;
  text-align: center;
  margin-bottom: 30px;
}

/* General Image Responsiveness */
.page-cockfighting img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* General Button Responsiveness */
.page-cockfighting__cta-button,
.page-cockfighting__btn-secondary,
.page-cockfighting__card-button {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

/* Media Queries */
@media (min-width: 769px) {
  .page-cockfighting__hero-section {
    flex-direction: row; /* Desktop: image on right, content on left */
    text-align: left;
    padding-bottom: 40px;
    align-items: flex-start;
  }

  .page-cockfighting__hero-content {
    width: 55%;
    margin-right: 5%;
    margin-bottom: 0;
    padding-left: 0; /* Remove padding if container handles it */
  }

  .page-cockfighting__hero-image-wrapper {
    width: 40%;
    margin-bottom: 0;
  }

  .page-cockfighting__hero-title {
    font-size: 56px;
  }

  .page-cockfighting__content-grid {
    grid-template-columns: 1fr 1fr; /* Desktop: 2 columns for rules/tips */
  }

  .page-cockfighting__text-block:nth-of-type(1) {
    grid-column: 1 / 2;
  }

  .page-cockfighting__image-block {
    grid-column: 2 / 3;
    grid-row: 1 / 3; /* Image spans two rows */
    align-self: center;
  }

  .page-cockfighting__text-block:nth-of-type(2) {
    grid-column: 1 / 2;
  }
}

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

  .page-cockfighting__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-cockfighting__section-title {
    font-size: 28px;
    margin-bottom: 25px;
  }

  .page-cockfighting__hero-title {
    font-size: 36px;
  }

  .page-cockfighting__hero-description {
    font-size: 16px;
  }

  .page-cockfighting__cta-button {
    padding: 12px 25px;
    font-size: 16px;
  }

  .page-cockfighting__cta-button--large {
    font-size: 18px;
    padding: 15px 30px;
  }

  .page-cockfighting__grid-cards,
  .page-cockfighting__benefits-grid,
  .page-cockfighting__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting__card-image {
    height: 180px;
  }

  .page-cockfighting__card-title {
    font-size: 20px;
  }

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

  .page-cockfighting__sub-title {
    font-size: 20px;
  }

  /* Mobile specific image adaptation */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-cockfighting__hero-image-wrapper,
  .page-cockfighting__image-block,
  .page-cockfighting__card,
  .page-cockfighting__benefit-item,
  .page-cockfighting__step-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
  
  /* Mobile specific button adaptation */
  .page-cockfighting__cta-button,
  .page-cockfighting__btn-secondary,
  .page-cockfighting__card-button,
  .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;
  }
  
  .page-cockfighting__cta-center .page-cockfighting__cta-button {
    margin: 0 auto;
  }

  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 all content areas have appropriate padding on mobile */
.page-cockfighting__section {
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
}

/* Color Contrast Fixes (if needed, applied as a safety net) */
.page-cockfighting__dark-bg {
  color: #ffffff; /* Deep Navy background, light text */
  background: #113B7A;
}

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

.page-cockfighting__medium-bg {
  color: #000000; /* Medium background, dark text */
  background: #1D5FD1;
}

.page-cockfighting__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}