/* style/cockfighting.css */

/* Custom Colors */
:root {
  --page-cockfighting-card-bg: #11271B;
  --page-cockfighting-background: #08160F;
  --page-cockfighting-text-main: #F2FFF6;
  --page-cockfighting-text-secondary: #A7D9B8;
  --page-cockfighting-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-cockfighting-border: #2E7A4E;
  --page-cockfighting-glow: #57E38D;
  --page-cockfighting-gold: #F2C14E;
  --page-cockfighting-divider: #1E3A2A;
  --page-cockfighting-deep-green: #0A4B2C;
}

/* Base styles for the page */
.page-cockfighting {
  background-color: var(--page-cockfighting-background); /* Dark background */
  color: var(--page-cockfighting-text-main); /* Light text for dark background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-top: 0; /* body handles padding-top */
}

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

.page-cockfighting__section-title {
  font-size: 2.8em;
  font-weight: 700;
  color: var(--page-cockfighting-gold);
  text-align: center;
  margin-bottom: 40px;
  padding-top: 20px;
  line-height: 1.2;
}

.page-cockfighting__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--page-cockfighting-text-secondary);
  text-align: justify;
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding for first section */
  padding-bottom: 60px;
  overflow: hidden;
  background-color: var(--page-cockfighting-deep-green); /* Ensure a dark base */
}

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

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

.page-cockfighting__hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -150px; /* Pull content up over image for visual flow */
  background: rgba(8, 22, 15, 0.85); /* Semi-transparent dark background for text */
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--page-cockfighting-border);
}

.page-cockfighting__main-title {
  font-size: clamp(2.5em, 4vw, 3.5em); /* Responsive H1 font size */
  font-weight: 800;
  color: var(--page-cockfighting-gold);
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.page-cockfighting__description {
  font-size: 1.2em;
  color: var(--page-cockfighting-text-main);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.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: 50px;
  font-size: 1.1em;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-cockfighting__btn-primary {
  background: var(--page-cockfighting-button-gradient);
  color: #ffffff; /* White text for contrast */
  border: 2px solid var(--page-cockfighting-glow);
  box-shadow: 0 0 15px var(--page-cockfighting-glow);
}

.page-cockfighting__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 25px var(--page-cockfighting-glow);
}

.page-cockfighting__btn-secondary {
  background: transparent;
  color: var(--page-cockfighting-glow);
  border: 2px solid var(--page-cockfighting-glow);
}

.page-cockfighting__btn-secondary:hover {
  background: var(--page-cockfighting-glow);
  color: var(--page-cockfighting-background);
  transform: translateY(-3px);
}

/* Introduction Section */
.page-cockfighting__introduction-section {
  padding: 60px 0;
  background-color: #f0f0f0; /* Light background */
  color: #333333; /* Dark text */
}

.page-cockfighting__introduction-section .page-cockfighting__section-title {
  color: var(--page-cockfighting-deep-green);
}

.page-cockfighting__introduction-section .page-cockfighting__text-block {
  color: #555555;
}

.page-cockfighting__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Features Section */
.page-cockfighting__features-section {
  padding: 60px 0;
  background-color: var(--page-cockfighting-background);
}

.page-cockfighting__features-section .page-cockfighting__section-title {
  color: var(--page-cockfighting-gold);
}

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

.page-cockfighting__card {
  background-color: var(--page-cockfighting-card-bg);
  border: 1px solid var(--page-cockfighting-border);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  color: var(--page-cockfighting-text-main); /* Light text for dark card */
}

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

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

.page-cockfighting__card-text {
  font-size: 1em;
  color: var(--page-cockfighting-text-secondary);
}

.page-cockfighting__card-image {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 20px;
  border-radius: 8px;
  object-fit: cover;
}

/* How-To-Play Section */
.page-cockfighting__how-to-play-section {
  padding: 60px 0;
  background-color: #f9f9f9; /* Light background */
  color: #333333; /* Dark text */
}

.page-cockfighting__how-to-play-section .page-cockfighting__section-title {
  color: var(--page-cockfighting-deep-green);
}

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

.page-cockfighting__step-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  color: #333333;
}

.page-cockfighting__step-title {
  font-size: 1.5em;
  color: var(--page-cockfighting-deep-green);
  margin-bottom: 15px;
}

.page-cockfighting__step-text {
  font-size: 0.95em;
  color: #666666;
}

.page-cockfighting__step-image {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 20px;
  border-radius: 5px;
}

/* Strategy Section */
.page-cockfighting__strategy-section {
  padding: 60px 0;
  background-color: var(--page-cockfighting-background);
}

.page-cockfighting__strategy-section .page-cockfighting__section-title {
  color: var(--page-cockfighting-gold);
}

.page-cockfighting__strategy-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  color: var(--page-cockfighting-text-secondary);
}

.page-cockfighting__strategy-list li {
  background-color: var(--page-cockfighting-card-bg);
  border-left: 5px solid var(--page-cockfighting-glow);
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 1.05em;
  line-height: 1.5;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__strategy-list li strong {
  color: var(--page-cockfighting-gold);
}

/* Advantages Section */
.page-cockfighting__advantages-section {
  padding: 60px 0;
  background-color: #f0f0f0; /* Light background */
  color: #333333; /* Dark text */
}

.page-cockfighting__advantages-section .page-cockfighting__section-title {
  color: var(--page-cockfighting-deep-green);
}

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

.page-cockfighting__advantage-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  color: #333333;
}

.page-cockfighting__advantage-title {
  font-size: 1.6em;
  color: var(--page-cockfighting-deep-green);
  margin-bottom: 10px;
}

.page-cockfighting__advantage-text {
  font-size: 0.95em;
  color: #666666;
}

/* FAQ Section */
.page-cockfighting__faq-section {
  padding: 60px 0;
  background-color: var(--page-cockfighting-deep-green);
}

.page-cockfighting__faq-section .page-cockfighting__section-title {
  color: var(--page-cockfighting-gold);
}

.page-cockfighting__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__faq-item {
  background-color: var(--page-cockfighting-card-bg);
  border: 1px solid var(--page-cockfighting-border);
  border-radius: 10px;
  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: 18px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--page-cockfighting-text-main);
  cursor: pointer;
  background-color: var(--page-cockfighting-deep-green);
  border-bottom: 1px solid var(--page-cockfighting-divider);
}

.page-cockfighting__faq-question:hover {
  background-color: rgba(17, 168, 78, 0.2);
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
  border-bottom: 1px solid var(--page-cockfighting-divider);
}

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

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
  transform: rotate(45deg);
}

.page-cockfighting__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1.05em;
  color: var(--page-cockfighting-text-secondary);
  line-height: 1.6;
}

/* Final CTA Section */
.page-cockfighting__cta-final-section {
  padding: 60px 0;
  text-align: center;
  background-color: #f9f9f9; /* Light background */
  color: #333333; /* Dark text */
}

.page-cockfighting__cta-final-section .page-cockfighting__section-title {
  color: var(--page-cockfighting-deep-green);
}

.page-cockfighting__cta-final-section .page-cockfighting__text-block {
  color: #555555;
  max-width: 800px;
  margin: 0 auto 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__hero-content {
    margin-top: -100px;
  }
  .page-cockfighting__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-cockfighting__section-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    padding-bottom: 40px;
  }
  .page-cockfighting__hero-content {
    padding: 30px 15px;
    margin-top: -80px;
  }
  .page-cockfighting__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }
  .page-cockfighting__description {
    font-size: 1em;
  }
  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-cockfighting__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-cockfighting__text-block {
    font-size: 0.95em;
  }
  .page-cockfighting__grid,
  .page-cockfighting__step-by-step,
  .page-cockfighting__advantages-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-cockfighting__card,
  .page-cockfighting__step-card,
  .page-cockfighting__advantage-item {
    padding: 20px;
  }
  .page-cockfighting__card-title,
  .page-cockfighting__step-title,
  .page-cockfighting__advantage-title {
    font-size: 1.4em;
  }
  .page-cockfighting__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-cockfighting__faq-answer {
    padding: 10px 20px 15px;
    font-size: 0.95em;
  }

  /* Mobile image responsiveness */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-cockfighting__container,
  .page-cockfighting__hero-section,
  .page-cockfighting__introduction-section,
  .page-cockfighting__features-section,
  .page-cockfighting__how-to-play-section,
  .page-cockfighting__strategy-section,
  .page-cockfighting__advantages-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-final-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
  /* Ensure padding is applied to sections for content spacing */
  .page-cockfighting__hero-section,
  .page-cockfighting__introduction-section,
  .page-cockfighting__features-section,
  .page-cockfighting__how-to-play-section,
  .page-cockfighting__strategy-section,
  .page-cockfighting__advantages-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-final-section {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-cockfighting__hero-section {
    padding-top: 10px !important; /* Small top padding, not --header-offset */
  }
}

@media (max-width: 480px) {
  .page-cockfighting__hero-content {
    margin-top: -60px;
  }
  .page-cockfighting__main-title {
    font-size: clamp(1.5em, 7vw, 2em);
  }
  .page-cockfighting__section-title {
    font-size: 1.6em;
  }
  .page-cockfighting__faq-question {
    padding: 12px 15px;
    font-size: 1em;
  }
  .page-cockfighting__faq-answer {
    padding: 8px 15px 12px;
  }
}