/* style/cockfighting.css */

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

.page-cockfighting {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--page-cockfighting-text-main);
  background-color: var(--page-cockfighting-background);
  line-height: 1.6;
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  text-align: center;
  background-color: var(--page-cockfighting-deep-green);
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
}

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

.page-cockfighting__hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-cockfighting__main-title {
  color: var(--page-cockfighting-gold);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 15px;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.4);
  /* No hardcoded large font-size for H1 */
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

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

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%;
}

.page-cockfighting__btn-primary {
  background: var(--page-cockfighting-button-gradient);
  color: #ffffff; /* White text for contrast */
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-cockfighting__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

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

.page-cockfighting__btn-secondary:hover {
  background: rgba(242, 193, 78, 0.1);
  transform: translateY(-3px);
}

.page-cockfighting__btn-small {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  background: var(--page-cockfighting-button-gradient);
  color: #ffffff;
  margin-top: 10px;
  transition: background 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-cockfighting__btn-small:hover {
  background: var(--page-cockfighting-primary-color);
}

.page-cockfighting__btn-large {
  padding: 18px 35px;
  font-size: 1.2rem;
  border-radius: 10px;
}

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

.page-cockfighting__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--page-cockfighting-gold);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  padding-top: 40px;
}

.page-cockfighting__text-block {
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: center;
  margin-bottom: 30px;
  color: var(--page-cockfighting-text-secondary);
}

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

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

.page-cockfighting__feature-card {
  background: var(--page-cockfighting-card-bg);
  border: 1px solid var(--page-cockfighting-border);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--page-cockfighting-text-main);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-cockfighting__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__feature-icon {
  width: 100%;
  max-width: 250px; /* Ensure content images are large enough */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

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

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

/* How to Play Section */
.page-cockfighting__how-to-play-section {
  padding: 60px 0;
  background-color: var(--page-cockfighting-deep-green);
}

.page-cockfighting__step-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-cockfighting__step-item {
  background: var(--page-cockfighting-card-bg);
  border: 1px solid var(--page-cockfighting-border);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  color: var(--page-cockfighting-text-main);
}

.page-cockfighting__step-title {
  font-size: 1.3rem;
  color: var(--page-cockfighting-primary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

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

/* Betting Types Section */
.page-cockfighting__betting-types-section {
  padding: 60px 0;
  background-color: var(--page-cockfighting-background);
}

.page-cockfighting__betting-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.page-cockfighting__betting-item {
  background: var(--page-cockfighting-card-bg);
  border: 1px solid var(--page-cockfighting-border);
  border-radius: 10px;
  padding: 25px;
  color: var(--page-cockfighting-text-main);
}

.page-cockfighting__item-title {
  font-size: 1.3rem;
  color: var(--page-cockfighting-gold);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-cockfighting__betting-item p {
  font-size: 1rem;
  color: var(--page-cockfighting-text-secondary);
}

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

.page-cockfighting__tips-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.page-cockfighting__tip-item {
  background: var(--page-cockfighting-card-bg);
  border: 1px solid var(--page-cockfighting-border);
  border-radius: 10px;
  padding: 25px;
  color: var(--page-cockfighting-text-main);
}

.page-cockfighting__tip-item p {
  font-size: 1rem;
  color: var(--page-cockfighting-text-secondary);
}

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

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

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

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--page-cockfighting-primary-color);
  cursor: pointer;
  transition: background-color 0.3s ease;
  user-select: none;
  list-style: none; /* For details/summary */
}

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

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

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

.page-cockfighting__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  width: 24px;
  text-align: center;
  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(--page-cockfighting-text-secondary);
  line-height: 1.7;
  border-top: 1px solid var(--page-cockfighting-divider);
  margin-top: -1px; /* Overlap border for cleaner look */
}

.page-cockfighting__faq-answer p {
  margin-top: 15px;
}

/* Final CTA Section */
.page-cockfighting__final-cta-section {
  padding: 80px 20px;
  text-align: center;
  background-color: var(--page-cockfighting-deep-green);
}

.page-cockfighting__final-cta-section .page-cockfighting__section-title {
  margin-bottom: 25px;
}

.page-cockfighting__final-cta-section .page-cockfighting__text-block {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

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

@media (max-width: 768px) {
  .page-cockfighting {
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-cockfighting__main-title {
    font-size: clamp(1.8rem, 6vw, 2.8rem);
    margin-bottom: 10px;
  }

  .page-cockfighting__hero-description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

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

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary,
  .page-cockfighting__btn-small,
  .page-cockfighting__btn-large,
  .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;
    padding-right: 15px;
  }

  .page-cockfighting__container,
  .page-cockfighting__introduction-section,
  .page-cockfighting__how-to-play-section,
  .page-cockfighting__betting-types-section,
  .page-cockfighting__tips-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__final-cta-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-cockfighting__section-title {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    margin-bottom: 30px;
    padding-top: 30px;
  }

  .page-cockfighting__text-block {
    font-size: 0.95rem;
  }

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

  .page-cockfighting__hero-image {
    border-radius: 5px;
  }

  .page-cockfighting__feature-grid,
  .page-cockfighting__step-list,
  .page-cockfighting__betting-list,
  .page-cockfighting__tips-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting__feature-icon {
    max-width: 180px; /* Adjust for mobile, but keep above 200px if possible */
    min-width: 200px;
    height: auto;
  }

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

  .page-cockfighting__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

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

/* Ensure content area images are at least 200x200px */
.page-cockfighting__feature-icon {
  min-width: 200px;
  min-height: 200px;
}

/* No filter on images */
.page-cockfighting img {
  filter: none !important;
}