/* style/cockfighting.css */

/* Custom Colors */
:root {
  --page-cockfighting-primary-color: #11A84E;
  --page-cockfighting-secondary-color: #22C768;
  --page-cockfighting-text-main: #F2FFF6;
  --page-cockfighting-text-secondary: #A7D9B8;
  --page-cockfighting-background-dark: #08160F;
  --page-cockfighting-card-bg: #11271B;
  --page-cockfighting-border-color: #2E7A4E;
  --page-cockfighting-glow-color: #57E38D;
  --page-cockfighting-gold-color: #F2C14E;
  --page-cockfighting-divider-color: #1E3A2A;
  --page-cockfighting-deep-green: #0A4B2C;

  /* Button Gradient */
  --page-cockfighting-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

/* Base styles for the page content, assuming body has a dark background from shared.css */
.page-cockfighting {
  background-color: var(--page-cockfighting-background-dark); /* Fallback/explicit background */
  color: var(--page-cockfighting-text-main); /* Light text for dark background */
  font-family: 'Arial', sans-serif; /* Example font */
  line-height: 1.6;
}

/* Highlight text for keywords */
.page-cockfighting__highlight {
  color: var(--page-cockfighting-gold-color);
  font-weight: bold;
}

/* Sections */
.page-cockfighting__hero-section,
.page-cockfighting__about-section,
.page-cockfighting__how-to-play-section,
.page-cockfighting__bet-types-section,
.page-cockfighting__tips-section,
.page-cockfighting__promotions-section,
.page-cockfighting__security-section,
.page-cockfighting__faq-section,
.page-cockfighting__cta-section {
  padding: 80px 0;
  position: relative;
  overflow: hidden; /* Prevent content overflow */
}

.page-cockfighting__dark-bg {
  background-color: var(--page-cockfighting-background-dark);
  color: var(--page-cockfighting-text-main);
}

.page-cockfighting__light-bg {
  background-color: #f8f8f8; /* A light background for contrast */
  color: #333333; /* Dark text for light background */
}

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

/* Hero Section */
.page-cockfighting__hero-section {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  text-align: center;
  position: relative;
  padding-top: 10px; /* Small top padding */
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  position: relative;
  z-index: 1;
}

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

.page-cockfighting__hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 20px;
  max-width: 800px;
  background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for readability */
  margin-top: -100px; /* Overlap slightly with image for visual flow */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}


.page-cockfighting__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
  font-weight: bold;
  color: var(--page-cockfighting-gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-cockfighting__hero-description {
  font-size: 1.2em;
  color: var(--page-cockfighting-text-secondary);
  margin-bottom: 30px;
}

/* Section Titles */
.page-cockfighting__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--page-cockfighting-gold-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-cockfighting__section-description {
  font-size: 1.1em;
  color: var(--page-cockfighting-text-secondary);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
}

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

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

.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%; /* For responsive buttons */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
  text-align: center;
}

.page-cockfighting__btn-primary {
  background: var(--page-cockfighting-btn-gradient);
  color: var(--page-cockfighting-text-main);
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-cockfighting__btn-secondary {
  background-color: transparent;
  color: var(--page-cockfighting-gold-color);
  border: 2px solid var(--page-cockfighting-gold-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-secondary:hover {
  background-color: var(--page-cockfighting-gold-color);
  color: var(--page-cockfighting-background-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Text Blocks */
.page-cockfighting__text-block {
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-cockfighting__text-block p {
  margin-bottom: 1em;
  font-size: 1.05em;
  color: inherit; /* Inherit from section for contrast */
}

/* Lists */
.page-cockfighting__list,
.page-cockfighting__step-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.page-cockfighting__list li,
.page-cockfighting__step-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  font-size: 1.05em;
  color: inherit; /* Inherit for contrast */
}

.page-cockfighting__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--page-cockfighting-gold-color);
  font-weight: bold;
}

.page-cockfighting__step-list li {
  counter-increment: step-counter;
}

.page-cockfighting__step-list li::before {
  content: counter(step-counter) '.';
  position: absolute;
  left: 0;
  color: var(--page-cockfighting-gold-color);
  font-weight: bold;
}

/* Images in content */
.page-cockfighting__image-content {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  object-fit: cover;
}

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

/* Cards */
.page-cockfighting__card {
  background-color: var(--page-cockfighting-card-bg); /* Dark card background */
  color: var(--page-cockfighting-text-main); /* Light text */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--page-cockfighting-border-color);
}

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

.page-cockfighting__card p {
  font-size: 1em;
  color: var(--page-cockfighting-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-cockfighting__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8_px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* About Section Specific Layout */
.page-cockfighting__about-section .page-cockfighting__container,
.page-cockfighting__security-section .page-cockfighting__container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
}

.page-cockfighting__about-section .page-cockfighting__text-block,
.page-cockfighting__security-section .page-cockfighting__text-block {
  flex: 1;
  margin: 0;
  text-align: left;
}

.page-cockfighting__about-section .page-cockfighting__image-content,
.page-cockfighting__security-section .page-cockfighting__image-content {
  flex: 1;
  max-width: 50%;
  margin: 0;
}

/* Tips Section Specific Layout */
.page-cockfighting__tips-section .page-cockfighting__container {
  display: flex;
  flex-direction: row-reverse; /* Image on left, text on right */
  align-items: center;
  gap: 40px;
}

.page-cockfighting__tips-section .page-cockfighting__text-block {
  flex: 1;
  margin: 0;
  text-align: left;
}

.page-cockfighting__tips-section .page-cockfighting__image-content {
  flex: 1;
  max-width: 50%;
  margin: 0;
}


/* FAQ Section */
.page-cockfighting__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.page-cockfighting__faq-item {
  background-color: var(--page-cockfighting-card-bg);
  border: 1px solid var(--page-cockfighting-border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--page-cockfighting-gold-color);
  background-color: var(--page-cockfighting-deep-green);
  transition: background-color 0.3s ease;
  list-style: none; /* For <summary> tag */
}

.page-cockfighting__faq-question::-webkit-details-marker {
  display: none; /* Hide default arrow for <summary> */
}

.page-cockfighting__faq-question:hover {
  background-color: var(--page-cockfighting-primary-color);
}

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

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: var(--page-cockfighting-text-main);
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
  content: '−'; /* Change to minus when open for <details> */
}

.page-cockfighting__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: var(--page-cockfighting-text-secondary);
  border-top: 1px solid var(--page-cockfighting-divider-color);
}

/* CTA Section */
.page-cockfighting__cta-container {
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__hero-content {
    margin-top: -80px;
    padding: 30px 20px;
  }
  .page-cockfighting__about-section .page-cockfighting__container,
  .page-cockfighting__security-section .page-cockfighting__container,
  .page-cockfighting__tips-section .page-cockfighting__container {
    flex-direction: column;
    gap: 30px;
  }

  .page-cockfighting__about-section .page-cockfighting__image-content,
  .page-cockfighting__security-section .page-cockfighting__image-content,
  .page-cockfighting__tips-section .page-cockfighting__image-content {
    max-width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    min-height: 400px;
    padding-top: 10px !important; /* Ensure small top padding */
  }

  .page-cockfighting__hero-content {
    margin-top: -60px;
    padding: 20px 15px;
  }

  .page-cockfighting__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .page-cockfighting__hero-description {
    font-size: 1em;
  }

  .page-cockfighting__section-title {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
  }

  .page-cockfighting__section-description {
    font-size: 0.95em;
  }

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

  /* Mobile mandatory image responsive */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Mobile mandatory video responsive (if any, though not in this HTML) */
  .page-cockfighting video,
  .page-cockfighting__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Mobile mandatory button responsive */
  .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; /* Add padding for readability */
    padding-right: 15px; /* Add padding for readability */
  }
  
  /* Mobile mandatory container responsive */
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__cta-buttons,
  .page-cockfighting__video-section, /* If video exists */
  .page-cockfighting__video-container, /* If video exists */
  .page-cockfighting__video-wrapper /* If video exists */
  {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  .page-cockfighting__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-cockfighting__faq-answer {
    padding: 15px 20px;
  }

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

/* Ensure no filter is used for images */
.page-cockfighting img {
  filter: none !important;
}

/* Specific content area image CSS size lower limit */
/* This rule ensures content images are not shrunk below 200px. */
/* It applies to all img elements within the .page-cockfighting scope. */
.page-cockfighting img:not(.page-cockfighting__hero-image) {
  min-width: 200px;
  min-height: 200px;
}
.page-cockfighting__card-image {
  min-width: 200px;
  min-height: 200px;
  height: auto; /* Ensure auto height for responsiveness */
}