/* style/cockfighting.css */

:root {
  --bj66-primary-color: #11A84E;
  --bj66-secondary-color: #22C768;
  --bj66-card-bg: #11271B;
  --bj66-background: #08160F;
  --bj66-text-main: #F2FFF6;
  --bj66-text-secondary: #A7D9B8;
  --bj66-border-color: #2E7A4E;
  --bj66-glow-color: #57E38D;
  --bj66-gold-color: #F2C14E;
  --bj66-divider-color: #1E3A2A;
  --bj66-deep-green: #0A4B2C;
  --bj66-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

/* Base styles for the page */
.page-cockfighting {
  font-family: Arial, sans-serif;
  color: var(--bj66-text-main);
  background-color: var(--bj66-background); /* Assuming body background from shared.css is dark, applying dark background for main content */
  line-height: 1.6;
}

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

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

.page-cockfighting__section-title {
  font-size: 2.8em;
  color: var(--bj66-gold-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-cockfighting__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Using clamp for responsive H1 */
  color: var(--bj66-gold-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.03em;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__sub-title {
  font-size: 1.8em;
  color: var(--bj66-text-main);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* body already handles padding-top from header, so this is decorative */
  background-color: var(--bj66-deep-green);
  overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height of image wrapper */
  overflow: hidden;
  position: relative;
  margin-bottom: 30px;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim the image for better text readability */
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.page-cockfighting__hero-description {
  font-size: 1.1em;
  color: var(--bj66-text-secondary);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-cockfighting__btn-primary {
  background: var(--bj66-button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-cockfighting__btn-secondary {
  background: var(--bj66-card-bg);
  color: var(--bj66-secondary-color);
  border: 2px solid var(--bj66-secondary-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  background: var(--bj66-secondary-color);
  color: var(--bj66-background);
}

.page-cockfighting__inline-link {
  color: var(--bj66-gold-color);
  text-decoration: none;
  font-weight: bold;
}

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

.page-cockfighting__content-area {
  margin-top: 30px;
}

.page-cockfighting__grid-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-cockfighting__grid-two-cols-reverse {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-cockfighting__grid-two-cols-reverse .page-cockfighting__image-block {
  order: 2;
}

.page-cockfighting__grid-two-cols-reverse .page-cockfighting__text-block {
  order: 1;
}

.page-cockfighting__text-block p {
  margin-bottom: 15px;
  color: var(--bj66-text-secondary);
}

.page-cockfighting__image-block img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

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

.page-cockfighting__card {
  background-color: var(--bj66-card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--bj66-border-color);
  color: var(--bj66-text-main);
}

.page-cockfighting__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

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

.page-cockfighting__card-title {
  font-size: 1.5em;
  color: var(--bj66-gold-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-cockfighting__card p {
  color: var(--bj66-text-secondary);
  font-size: 0.95em;
}

.page-cockfighting__dark-section {
  background-color: var(--bj66-deep-green);
  color: var(--bj66-text-main);
}

.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-color: var(--bj66-card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--bj66-border-color);
  color: var(--bj66-text-main);
}

.page-cockfighting__step-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 8px var(--bj66-glow-color));
  min-width: 100px; /* Ensure icons are not too small, but not strictly content images */
  min-height: 100px;
}

.page-cockfighting__step-title {
  font-size: 1.4em;
  color: var(--bj66-gold-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-cockfighting__step-card p {
  color: var(--bj66-text-secondary);
  font-size: 0.95em;
  margin-bottom: 20px;
}

.page-cockfighting__step-button {
  width: 80%; /* Make buttons inside steps a bit smaller than full width */
  margin-top: 15px;
}

.page-cockfighting__promo-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.page-cockfighting__promo-list li {
  background-color: rgba(34, 199, 104, 0.1);
  border-left: 4px solid var(--bj66-secondary-color);
  padding: 12px 20px;
  margin-bottom: 10px;
  border-radius: 5px;
  color: var(--bj66-text-main);
  font-size: 1.05em;
}

.page-cockfighting__promo-list li strong {
  color: var(--bj66-gold-color);
}

.page-cockfighting__faq-list {
  margin-top: 40px;
}

.page-cockfighting__faq-item {
  background-color: var(--bj66-card-bg);
  border: 1px solid var(--bj66-border-color);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--bj66-text-main);
}

.page-cockfighting__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--bj66-gold-color);
  cursor: pointer;
  outline: none;
  list-style: none; /* Hide default marker */
}

.page-cockfighting__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-cockfighting__faq-item[open] summary {
  background-color: var(--bj66-deep-green);
}

.page-cockfighting__faq-qtext {
  flex-grow: 1;
}

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--bj66-secondary-color);
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
  transform: rotate(45deg); /* Change '+' to 'x' or similar */
  color: var(--bj66-gold-color);
}

.page-cockfighting__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: var(--bj66-text-secondary);
  line-height: 1.7;
}

.page-cockfighting__faq-answer p {
  margin-bottom: 10px;
}

.page-cockfighting__faq-button {
  display: block;
  width: fit-content;
  margin: 40px auto 0 auto;
}

.page-cockfighting__conclusion-section {
  text-align: center;
  padding: 80px 0;
}

.page-cockfighting__conclusion-text {
  font-size: 1.2em;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: var(--bj66-text-secondary);
}

.page-cockfighting__conclusion-button {
  margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__section-title {
    font-size: 2.2em;
  }
  .page-cockfighting__main-title {
    font-size: clamp(2em, 4.5vw, 3em);
  }
  .page-cockfighting__grid-two-cols,
  .page-cockfighting__grid-two-cols-reverse {
    grid-template-columns: 1fr;
  }
  .page-cockfighting__grid-two-cols-reverse .page-cockfighting__image-block {
    order: 1;
  }
  .page-cockfighting__grid-two-cols-reverse .page-cockfighting__text-block {
    order: 2;
  }
}

@media (max-width: 768px) {
  .page-cockfighting {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-cockfighting__container {
    padding: 0 15px !important;
  }
  .page-cockfighting__section {
    padding: 40px 0;
  }
  .page-cockfighting__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-cockfighting__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }
  .page-cockfighting__hero-section {
    padding: 10px 0 40px 0;
  }
  .page-cockfighting__hero-image-wrapper {
    margin-bottom: 20px;
  }
  .page-cockfighting__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }
  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .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__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;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-cockfighting__image-block img,
  .page-cockfighting__card-image,
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__text-block,
  .page-cockfighting__image-block,
  .page-cockfighting__hero-image-wrapper,
  .page-cockfighting__steps-grid,
  .page-cockfighting__step-card,
  .page-cockfighting__faq-list,
  .page-cockfighting__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure content doesn't overflow */
  }
  .page-cockfighting__step-icon {
    min-width: 80px !important;
    min-height: 80px !important;
    width: 80px !important;
    height: 80px !important;
  }
  .page-cockfighting__faq-item summary {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-cockfighting__faq-answer {
    padding: 0 20px 15px;
  }
}