/* style/cockfighting.css */

:root {
  --page-cockfighting-primary-color: #11A84E;
  --page-cockfighting-secondary-color: #22C768;
  --page-cockfighting-text-main: #F2FFF6;
  --page-cockfighting-text-secondary: #A7D9B8;
  --page-cockfighting-card-bg: #11271B;
  --page-cockfighting-background: #08160F;
  --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;
  --page-cockfighting-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-cockfighting-light-bg-text: #333333; /* For sections on body's light background */
}

.page-cockfighting {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--page-cockfighting-light-bg-text); /* Default text color for sections on body's light background */
  background-color: #f8f8f8; /* Inherited from body, but explicitly set for clarity */
}

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

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  overflow: hidden;
}

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

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

.page-cockfighting__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px;
  color: var(--page-cockfighting-text-main);
}

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

.page-cockfighting__description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: var(--page-cockfighting-text-secondary);
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  font-size: 1rem;
  box-sizing: border-box;
}

.page-cockfighting__btn-primary {
  background: var(--page-cockfighting-button-gradient);
  color: var(--page-cockfighting-text-main);
  border: 2px solid transparent;
}

.page-cockfighting__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(34, 199, 104, 0.4);
}

.page-cockfighting__btn-secondary {
  background: none;
  color: var(--page-cockfighting-text-main);
  border: 2px solid var(--page-cockfighting-secondary-color);
}

.page-cockfighting__btn-secondary:hover {
  background: var(--page-cockfighting-secondary-color);
  color: var(--page-cockfighting-background);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(34, 199, 104, 0.2);
}

/* General Section Styling */
.page-cockfighting__intro-section,
.page-cockfighting__how-to-start,
.page-cockfighting__tips-strategies,
.page-cockfighting__faq-section {
  padding: 60px 0;
  background-color: #f8f8f8; /* Light background for these sections */
  color: var(--page-cockfighting-light-bg-text);
}

.page-cockfighting__dark-section {
  background-color: var(--page-cockfighting-background);
  color: var(--page-cockfighting-text-main);
  padding: 60px 0;
}

.page-cockfighting__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: inherit;
}

.page-cockfighting__description-secondary {
  font-size: 1.05rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: var(--page-cockfighting-text-secondary);
}

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

.page-cockfighting__grid-item {
  text-align: center;
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  color: var(--page-cockfighting-light-bg-text);
}

.page-cockfighting__feature-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-cockfighting__item-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--page-cockfighting-primary-color);
}

.page-cockfighting__item-description {
  font-size: 0.95rem;
  color: var(--page-cockfighting-light-bg-text);
}

/* Bet Types Section */
.page-cockfighting__bet-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

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

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

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

.page-cockfighting__cta-center {
  text-align: center;
  margin-top: 50px;
}

/* How to Start Section */
.page-cockfighting__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__step-item {
  text-align: center;
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  position: relative;
  padding-top: 60px; /* Space for number */
  color: var(--page-cockfighting-light-bg-text);
}

.page-cockfighting__step-number {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background-color: var(--page-cockfighting-primary-color);
  color: var(--page-cockfighting-text-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
}

.page-cockfighting__link {
  color: var(--page-cockfighting-primary-color);
  text-decoration: none;
  font-weight: bold;
  margin-top: 15px;
  display: inline-block;
}

.page-cockfighting__link:hover {
  text-decoration: underline;
}

/* Video Section */
.page-cockfighting__video-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
}

.page-cockfighting__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px; /* Example max-width for video */
  margin: 0 auto;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
}

.page-cockfighting__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block; /* Ensure it respects max-width */
  cursor: pointer;
}

/* Tips & Strategies Section */
.page-cockfighting__strategy-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.page-cockfighting__list-item {
  background-color: #ffffff;
  padding: 20px 25px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  font-size: 1.05rem;
  color: var(--page-cockfighting-light-bg-text);
  border-left: 5px solid var(--page-cockfighting-primary-color);
}

.page-cockfighting__list-item strong {
  color: var(--page-cockfighting-primary-color);
}

/* Promotions Section */
.page-cockfighting__promotion-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__promotion-cards .page-cockfighting__card {
  padding: 20px;
  background-color: var(--page-cockfighting-card-bg);
  color: var(--page-cockfighting-text-main);
}

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

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

.page-cockfighting__faq-item {
  background-color: #ffffff;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  color: var(--page-cockfighting-light-bg-text);
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  color: var(--page-cockfighting-primary-color);
  list-style: none; /* For details/summary */
}

.page-cockfighting__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Chrome/Safari */
}

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

.page-cockfighting__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  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;
  line-height: 1.6;
  color: var(--page-cockfighting-light-bg-text);
}

/* Conclusion Section */
.page-cockfighting__conclusion-section {
  text-align: center;
  padding: 80px 0;
  background-color: var(--page-cockfighting-deep-green);
  color: var(--page-cockfighting-text-main);
}

.page-cockfighting__conclusion-section .page-cockfighting__description-secondary {
  color: var(--page-cockfighting-text-secondary);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__hero-content {
    padding: 30px 20px;
  }

  .page-cockfighting__main-title {
    font-size: clamp(2.2rem, 4.5vw, 3rem);
  }

  .page-cockfighting__description {
    font-size: 1rem;
  }

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

@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    padding-bottom: 40px;
  }

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

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

  .page-cockfighting__description {
    font-size: 0.95rem;
  }

  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding: 0 15px;
  }

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 0.9rem;
    white-space: normal !important;
    word-wrap: break-word !important;
    text-align: center;
  }

  .page-cockfighting__intro-section,
  .page-cockfighting__bet-types,
  .page-cockfighting__how-to-start,
  .page-cockfighting__video-section,
  .page-cockfighting__tips-strategies,
  .page-cockfighting__promotions-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__conclusion-section {
    padding: 40px 0;
  }

  .page-cockfighting__container {
    padding: 0 15px;
  }

  .page-cockfighting__section-title {
    font-size: clamp(1.5rem, 4.5vw, 2rem);
    margin-bottom: 30px;
  }

  .page-cockfighting__description-secondary {
    font-size: 0.9rem;
    margin-bottom: 40px;
  }

  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-cockfighting__feature-image,
  .page-cockfighting__card-image {
    height: 180px;
  }

  .page-cockfighting__grid-item,
  .page-cockfighting__step-item,
  .page-cockfighting__card {
    padding: 25px;
  }

  .page-cockfighting__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-cockfighting__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }

  .page-cockfighting__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-cockfighting__list-item,
  .page-cockfighting__faq-question,
  .page-cockfighting__faq-answer {
    font-size: 0.95rem;
    padding: 15px 20px;
  }

  .page-cockfighting__faq-item[open] .page-cockfighting__faq-answer {
    padding: 0 20px 15px 20px;
  }

  /* Ensure all containers with images/videos/buttons are responsive */
  .page-cockfighting__hero-section,
  .page-cockfighting__intro-section .page-cockfighting__container,
  .page-cockfighting__bet-types .page-cockfighting__container,
  .page-cockfighting__how-to-start .page-cockfighting__container,
  .page-cockfighting__video-section .page-cockfighting__container,
  .page-cockfighting__tips-strategies .page-cockfighting__container,
  .page-cockfighting__promotions-section .page-cockfighting__container,
  .page-cockfighting__faq-section .page-cockfighting__container,
  .page-cockfighting__conclusion-section .page-cockfighting__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__main-title {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
  }

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    padding: 10px 15px;
    font-size: 0.85rem;
  }

  .page-cockfighting__item-title {
    font-size: 1.2rem;
  }

  .page-cockfighting__card-title {
    font-size: 1.3rem;
  }

  .page-cockfighting__step-number {
    width: 35px;
    height: 35px;
    font-size: 1.3rem;
  }
}