/* style/cockfighting.css */

/* --- General Page Styling --- */
.page-cockfighting {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--Text-Main, #F2FFF6); /* Default text color for the page, assuming dark background */
  background-color: var(--Background, #08160F); /* Page background color */
}

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

.page-cockfighting__section-title {
  font-size: 2.5em;
  color: var(--Text-Main, #F2FFF6);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  position: relative;
  padding-bottom: 10px;
}

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

/* --- Hero Section (Video) --- */
.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  padding: 60px 0;
  padding-top: 10px; /* Small top padding as body handles header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--Deep-Green, #0A4B2C); /* Dark background for hero */
  overflow: hidden; /* Ensure no overflow */
}

.page-cockfighting__video-wrapper {
  width: 100%;
  max-width: 1200px; /* Match container max-width */
  margin: 0 auto 30px auto; /* Space below video */
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.page-cockfighting__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

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

.page-cockfighting__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Using clamp for H1 font size */
  color: var(--Text-Main, #F2FFF6);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-cockfighting__hero-description {
  font-size: 1.1em;
  color: var(--Text-Secondary, #A7D9B8);
  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; /* Ensure buttons wrap on smaller screens */
  width: 100%; /* Ensure container takes full width for wrapping */
  max-width: 500px; /* Limit max width for button group */
  margin: 0 auto;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 14px 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%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
}

.page-cockfighting__btn-primary {
  background: linear-gradient(180deg, var(--Button, #2AD16F) 0%, var(--Deep-Green, #13994A) 100%);
  color: var(--Text-Main, #F2FFF6);
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4); /* Using RGB for Button color */
}

.page-cockfighting__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-cockfighting__btn-secondary {
  background: transparent;
  color: var(--Glow, #57E38D);
  border: 2px solid var(--Glow, #57E38D);
}

.page-cockfighting__btn-secondary:hover {
  background: var(--Glow, #57E38D);
  color: var(--Background, #08160F);
}

/* --- About Section --- */
.page-cockfighting__about-section {
  padding: 80px 0;
  background-color: var(--Card-B-G, #11271B); /* Dark background for this section */
  color: var(--Text-Main, #F2FFF6);
}

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

.page-cockfighting__image-block img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  display: block; /* Ensure no extra space below image */
}

.page-cockfighting__text-block p {
  margin-bottom: 20px;
  color: var(--Text-Secondary, #A7D9B8);
}

/* --- Features Section --- */
.page-cockfighting__features-section {
  padding: 80px 0;
  background-color: var(--Background, #08160F); /* Default background */
}

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

.page-cockfighting__feature-card {
  background-color: var(--Card-B-G, #11271B);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: var(--Text-Main, #F2FFF6);
}

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

.page-cockfighting__feature-card img {
  width: 100%; /* Make image responsive within card */
  max-width: 200px; /* Example max width for card images */
  height: auto;
  margin: 0 auto 20px auto;
  border-radius: 8px;
  display: block; /* Remove extra space below image */
  min-width: 200px; /* Ensure min size */
  min-height: 200px; /* Ensure min size */
}

.page-cockfighting__card-title {
  font-size: 1.5em;
  color: var(--Glow, #57E38D);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-cockfighting__feature-card p {
  color: var(--Text-Secondary, #A7D9B8);
  font-size: 0.95em;
}

/* --- How To Play Section --- */
.page-cockfighting__how-to-play {
  padding: 80px 0;
  background-color: var(--Deep-Green, #0A4B2C); /* Darker green background */
  color: var(--Text-Main, #F2FFF6);
}

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

.page-cockfighting__step-card {
  background-color: var(--Card-B-G, #11271B);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--Text-Main, #F2FFF6);
}

.page-cockfighting__step-number {
  font-size: 3em;
  font-weight: bold;
  color: var(--Gold, #F2C14E);
  margin-bottom: 15px;
  line-height: 1;
}

.page-cockfighting__step-card p {
  color: var(--Text-Secondary, #A7D9B8);
  font-size: 0.95em;
}

.page-cockfighting__center-cta {
  text-align: center;
}

/* --- Tips Section --- */
.page-cockfighting__tips-section {
  padding: 80px 0;
  background-color: var(--Background, #08160F);
  color: var(--Text-Main, #F2FFF6);
}

.page-cockfighting__tips-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.page-cockfighting__tip-item {
  display: flex;
  align-items: flex-start;
  gap: 25px;
  background-color: var(--Card-B-G, #11271B);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__tip-item img {
  flex-shrink: 0;
  width: 200px; /* Explicitly set to 200px */
  height: 200px; /* Explicitly set to 200px */
  min-width: 200px; /* Ensure min size */
  min-height: 200px; /* Ensure min size */
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--Glow, #57E38D);
  display: block;
}

.page-cockfighting__tip-content {
  text-align: left;
}

.page-cockfighting__tip-content .page-cockfighting__card-title {
  text-align: left;
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.4em;
  color: var(--Glow, #57E38D);
}

.page-cockfighting__tip-content p {
  color: var(--Text-Secondary, #A7D9B8);
}

/* --- Promotions CTA Section --- */
.page-cockfighting__promotions-cta {
  padding: 60px 0;
  background-color: var(--Deep-Green, #0A4B2C);
  text-align: center;
  color: var(--Text-Main, #F2FFF6);
}

.page-cockfighting__promotions-cta .page-cockfighting__text-block {
  font-size: 1.1em;
  color: var(--Text-Secondary, #A7D9B8);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* --- FAQ Section --- */
.page-cockfighting__faq-section {
  padding: 80px 0;
  background-color: var(--Background, #08160F);
  color: var(--Text-Main, #F2FFF6);
}

.page-cockfighting__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-cockfighting__faq-item {
  background-color: var(--Card-B-G, #11271B);
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--Text-Main, #F2FFF6);
  cursor: pointer;
  background-color: var(--Card-B-G, #11271B);
  border-bottom: 1px solid var(--Divider, #1E3A2A);
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
  border-bottom: none; /* Remove border when open */
}

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

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--Glow, #57E38D);
  transition: transform 0.3s ease;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' or '-' effect */
}

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

.page-cockfighting__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: var(--Text-Secondary, #A7D9B8);
  line-height: 1.6;
}

.page-cockfighting__faq-answer p {
  margin-bottom: 10px;
}
.page-cockfighting__faq-answer p:last-child {
  margin-bottom: 0;
}
.page-cockfighting__faq-answer a {
    color: var(--Glow, #57E38D);
    text-decoration: underline;
}
.page-cockfighting__faq-answer a:hover {
    color: var(--Gold, #F2C14E);
}


/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-cockfighting__section-title {
    font-size: 2em;
  }
  .page-cockfighting__main-title {
    font-size: clamp(1.8em, 5vw, 2.8em);
  }
  .page-cockfighting__content-grid {
    grid-template-columns: 1fr;
  }
  .page-cockfighting__image-block {
    order: -1; /* Image above text on smaller screens */
    margin-bottom: 30px;
  }
  .page-cockfighting__tips-list {
    gap: 30px;
  }
  .page-cockfighting__tip-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .page-cockfighting__tip-content .page-cockfighting__card-title {
    text-align: center;
  }
  .page-cockfighting__tip-item img {
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    padding: 40px 0;
    padding-top: 10px !important; /* body handles --header-offset, this is small visual top padding */
  }
  .page-cockfighting__video-wrapper {
    margin-bottom: 20px;
  }
  .page-cockfighting__main-title {
    font-size: clamp(1.5em, 6vw, 2.2em);
    margin-bottom: 15px;
  }
  .page-cockfighting__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }
  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100% !important;
    padding: 0 15px;
  }
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-cockfighting__container {
    padding: 0 15px;
  }
  .page-cockfighting__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-cockfighting__about-section,
  .page-cockfighting__features-section,
  .page-cockfighting__how-to-play,
  .page-cockfighting__tips-section,
  .page-cockfighting__promotions-cta,
  .page-cockfighting__faq-section {
    padding: 50px 0;
  }
  .page-cockfighting__features-grid,
  .page-cockfighting__steps-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-cockfighting__feature-card,
  .page-cockfighting__step-card,
  .page-cockfighting__tip-item {
    padding: 25px;
  }
  .page-cockfighting__tip-item img {
    min-width: 200px !important;
    min-height: 200px !important;
    width: 200px !important;
    height: 200px !important;
  }
  .page-cockfighting img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-cockfighting video,
  .page-cockfighting__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-cockfighting__video-section,
  .page-cockfighting__video-container,
  .page-cockfighting__video-wrapper,
  .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;
    overflow: hidden !important; /* For video/image containers */
  }
  .page-cockfighting__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-cockfighting__faq-answer {
    padding: 0 20px 15px 20px;
  }
}