/* style/cockfighting.css */

/* Custom Colors as CSS Variables */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --background-color: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow: #57E38D;
  --gold: #F2C14E;
  --divider: #1E3A2A;
  --deep-green: #0A4B2C;
  --glow-rgb: 87, 227, 141; /* RGB for #57E38D */
}

/* General Styles for .page-cockfighting */
.page-cockfighting {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color, ensuring contrast with body background */
  background-color: var(--background-color); /* Inherited from shared.css */
}

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

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

.page-cockfighting__section-title {
  font-size: 2.5rem;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-cockfighting__text-block {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__text-block--emphasize {
  font-style: italic;
  font-weight: bold;
  color: var(--glow);
}

.page-cockfighting__card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: var(--text-main);
}

.page-cockfighting__card-title {
  font-size: 1.5rem;
  color: var(--text-main);
  margin-top: 20px;
  margin-bottom: 15px;
}

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

.page-cockfighting__list {
  list-style: none;
  padding: 0;
  margin: 0 auto 40px auto;
  max-width: 800px;
}

.page-cockfighting__list-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 10px;
  color: var(--text-main);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
}

.page-cockfighting__list-item strong {
  color: var(--glow);
  margin-right: 8px;
}

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

.page-cockfighting__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main); /* Text Main */
  border: none;
}

.page-cockfighting__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

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

.page-cockfighting__btn-secondary:hover {
  background: var(--glow);
  color: var(--card-bg);
  transform: translateY(-2px);
}

.page-cockfighting__btn-center {
  display: block;
  margin: 20px auto;
}

.page-cockfighting__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-cockfighting__cta-buttons--center {
  text-align: center;
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding */
  overflow: hidden;
  background-color: var(--deep-green); /* Fallback for image loading */
  min-height: 500px; /* Ensure hero section has a minimum height */
  justify-content: center;
}

.page-cockfighting__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

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

.page-cockfighting__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--text-main);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

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

/* Why Choose Section */
.page-cockfighting__why-choose {
  background-color: var(--background-color);
}

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

.page-cockfighting__feature-icon {
  width: 100%;
  height: auto;
  max-width: 250px;
  margin: 0 auto 20px auto;
  border-radius: 8px;
  object-fit: cover;
}

/* How to Play Section */
.page-cockfighting__how-to-play {
  background-color: var(--deep-green);
}

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

.page-cockfighting__step-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  color: var(--text-main);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__step-title {
  font-size: 1.6rem;
  color: var(--glow);
  margin-bottom: 15px;
}

.page-cockfighting__step-description {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* Bet Types Section */
.page-cockfighting__bet-types {
  background-color: var(--background-color);
}

/* Strategies Section */
.page-cockfighting__strategies {
  background-color: var(--deep-green);
}

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

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

/* Promotions Section */
.page-cockfighting__promotions {
  background-color: var(--background-color);
}

/* FAQ Section */
.page-cockfighting__faq {
  background-color: var(--deep-green);
}

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

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

.page-cockfighting__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--text-main);
  transition: background-color 0.3s ease;
}

.page-cockfighting__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-cockfighting__faq-item summary:hover {
  background-color: rgba(var(--glow-rgb), 0.1);
}

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

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

.page-cockfighting__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: var(--text-secondary);
}

.page-cockfighting__faq-answer p {
  margin: 0;
}

/* Final CTA Section */
.page-cockfighting__cta-final {
  background-color: var(--background-color);
}

.page-cockfighting__cta-final .page-cockfighting__container {
  background-color: var(--deep-green);
  padding: 50px;
  border-radius: 15px;
  text-align: center;
}

.page-cockfighting__cta-final .page-cockfighting__section-title {
  color: var(--text-main);
  margin-bottom: 20px;
}

.page-cockfighting__cta-final .page-cockfighting__text-block {
  color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__section-title {
    font-size: 2rem;
  }
  .page-cockfighting__hero-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-cockfighting__hero-description {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .page-cockfighting {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-cockfighting__section {
    padding: 40px 0;
  }
  .page-cockfighting__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
  .page-cockfighting__text-block {
    font-size: 1rem;
    text-align: left;
    padding: 0 15px;
  }
  .page-cockfighting__hero-section {
    padding-bottom: 40px;
  }
  .page-cockfighting__hero-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-cockfighting__hero-description {
    font-size: 1rem;
  }
  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px !important;
    font-size: 1rem !important;
  }
  .page-cockfighting__container {
    padding: 0 15px;
  }
  .page-cockfighting__features-grid,
  .page-cockfighting__steps-list,
  .page-cockfighting__strategies-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-cockfighting__feature-card,
  .page-cockfighting__step-item,
  .page-cockfighting__strategy-card {
    padding: 20px;
  }
  .page-cockfighting__feature-icon,
  .page-cockfighting__strategy-image {
    max-width: 100%;
    width: 100%;
    height: auto;
  }
  .page-cockfighting__list-item {
    font-size: 1rem;
    padding: 12px 15px;
  }
  .page-cockfighting__faq-item summary {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-cockfighting__faq-answer {
    padding: 0 20px 15px 20px;
  }
  .page-cockfighting__cta-final .page-cockfighting__container {
    padding: 30px 20px;
  }
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-cockfighting__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
  /* No video section, so no need for __video-section padding-top here */
}