/* style/cockfighting.css */

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

.page-cockfighting {
  font-family: 'Arial', sans-serif;
  color: var(--text-main);
  background-color: var(--background-color); /* Assuming body background is handled by shared, this is for main content sections */
}

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

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

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

.page-cockfighting__hero-content {
  position: relative; /* Changed from absolute to relative to avoid overlaying on image */
  z-index: 2;
  max-width: 900px;
  padding: 40px 20px;
  margin-top: -150px; /* Pull content up over the image, but not directly on it */
  background: linear-gradient(180deg, rgba(8, 22, 15, 0.8) 0%, var(--background-color) 100%);
  border-radius: 10px;
}

.page-cockfighting__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -1px;
}

.page-cockfighting__hero-description {
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 30px;
  line-height: 1.6;
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button adapts to container */
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-cockfighting__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
  opacity: 0.9;
}

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

.page-cockfighting__btn-secondary:hover {
  background-color: var(--primary-color);
  color: #ffffff;
  transform: translateY(-3px);
}

/* 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, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

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

.page-cockfighting__dark-section {
  background-color: var(--background-color);
  padding: 80px 0;
}

.page-cockfighting__introduction-section,
.page-cockfighting__types-section,
.page-cockfighting__betting-rules-section,
.page-cockfighting__strategy-section,
.page-cockfighting__why-choose-section,
.page-cockfighting__faq-section,
.page-cockfighting__conclusion-section {
  padding: 80px 0;
}

.page-cockfighting__card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main);
  max-width: 100%;
  box-sizing: border-box;
}

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

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

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

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

.page-cockfighting__feature-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Type Grid */
.page-cockfighting__type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-cockfighting__type-image {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-cockfighting__type-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--gold-color);
  margin-bottom: 15px;
}

.page-cockfighting__type-description {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Rules List */
.page-cockfighting__rules-list {
  list-style: none;
  padding: 0;
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-cockfighting__rules-item {
  background-color: var(--card-bg);
  border-left: 5px solid var(--primary-color);
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__rules-heading {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-cockfighting__rules-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.page-cockfighting__cta-buttons--center {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

/* Strategy Section */
.page-cockfighting__strategy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

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

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

.page-cockfighting__strategy-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Why Choose Section */
.page-cockfighting__advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

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

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

.page-cockfighting__advantage-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

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

.page-cockfighting__faq-list {
  max-width: 900px;
  margin: 50px 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-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  background-color: var(--deep-green);
  border-bottom: 1px solid var(--border-color);
}

.page-cockfighting__faq-question:hover {
  background-color: rgba(10, 75, 44, 0.8);
}

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

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

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

.page-cockfighting__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  margin-left: 15px;
  color: var(--gold-color);
  transition: transform 0.3s ease;
}

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

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

/* Conclusion Section */
.page-cockfighting__conclusion-section {
  text-align: center;
  padding-bottom: 80px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__hero-content {
    margin-top: -100px;
  }
}

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

  .page-cockfighting__hero-image-wrapper {
    max-height: 400px;
  }

  .page-cockfighting__hero-content {
    padding: 30px 15px;
    margin-top: -80px;
  }

  .page-cockfighting__main-title {
    font-size: 2rem;
  }

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

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

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 100%;
    padding: 12px 20px;
    font-size: 1rem;
  }

  .page-cockfighting__introduction-section,
  .page-cockfighting__types-section,
  .page-cockfighting__betting-rules-section,
  .page-cockfighting__strategy-section,
  .page-cockfighting__why-choose-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__conclusion-section {
    padding: 40px 0;
  }

  .page-cockfighting__section-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

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

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

  .page-cockfighting__feature-grid,
  .page-cockfighting__type-grid,
  .page-cockfighting__rules-list,
  .page-cockfighting__strategy-grid,
  .page-cockfighting__advantages-grid {
    gap: 20px;
    margin-top: 30px;
  }

  .page-cockfighting__card {
    padding: 20px;
  }

  .page-cockfighting__feature-title,
  .page-cockfighting__type-title,
  .page-cockfighting__rules-heading,
  .page-cockfighting__strategy-title,
  .page-cockfighting__advantage-title {
    font-size: 1.3rem;
  }

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

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

  /* Mobile responsive overrides for images, videos, buttons */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

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

  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__video-section,
  .page-cockfighting__video-container,
  .page-cockfighting__video-wrapper,
  .page-cockfighting__cta-buttons,
  .page-cockfighting__button-group,
  .page-cockfighting__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-cockfighting__cta-button,
  .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;
    padding-right: 15px;
  }

  .page-cockfighting__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}